-
Notifications
You must be signed in to change notification settings - Fork 283
/
prism-theme.js
113 lines (111 loc) · 2.08 KB
/
prism-theme.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Based on palenight, default code highlighting theme of Docusaurus
// See: https://github.com/FormidableLabs/prism-react-renderer/blob/master/packages/prism-react-renderer/src/themes/palenight.ts
const theme = {
plain: {
color: "#bfc7d5",
backgroundColor: "#292d3e",
},
styles: [
{
types: ["comment"],
style: {
color: "rgb(105, 112, 152)",
fontStyle: "italic",
},
},
{
types: ["string", "inserted", "char"],
style: {
color: "rgb(195, 232, 141)",
},
},
{
types: ["number"],
style: {
color: "rgb(247, 140, 108)",
},
},
{
types: ["self"],
style: {
color: "rgb(191, 199, 213)",
fontWeight: 'bold',
},
},
{
types: ["type-hint"],
style: {
color: "rgb(243,63,148)",
},
},
{
types: ["builtin", "function"],
style: {
color: "rgb(130, 170, 255)",
},
},
{
types: ["variable"],
style: {
color: "rgb(191, 199, 213)",
},
},
{
types: ["class-name", "attr-name"],
style: {
color: "rgb(255, 203, 107)",
},
},
{
types: ["tag", "deleted"],
style: {
color: "rgb(255, 85, 114)",
},
},
{
types: ["operator"],
style: {
color: "rgb(137, 221, 255)",
},
},
{
types: ["boolean"],
style: {
color: "rgb(235, 88, 116)",
},
},
{
types: ["constant"],
style: {
color: "rgb(245, 110, 88)",
},
},
{
types: ["keyword"],
style: {
color: "rgb(199, 146, 234)",
},
},
{
types: ["doctype"],
style: {
color: "rgb(199, 146, 234)",
fontStyle: "italic",
},
},
{
types: ["namespace", "punctuation", "selector"],
style: {
color: "rgb(178, 204, 214)",
},
},
{
types: ["url"],
style: {
color: "rgb(221, 221, 221)",
},
},
],
}
// CommonJS format, DON'T convert to ESM
module.exports = theme;