forked from moonrepo/moon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprism.config.js
86 lines (84 loc) · 1.34 KB
/
prism.config.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
const tailwind = require('./tailwind.config');
const { colors } = tailwind.theme;
module.exports = {
plain: {
backgroundColor: colors.slate['900'],
color: colors.gray['100'],
},
styles: [
{
types: ['changed'],
style: {
color: colors.yellow['100'],
},
},
{
types: ['deleted'],
style: {
color: colors.red['300'],
},
},
{
types: ['inserted'],
style: {
color: colors.green['300'],
},
},
{
types: ['comment'],
style: {
color: colors.gray['600'],
fontStyle: 'italic',
},
},
{
types: ['punctuation'],
style: {
color: colors.gray['300'],
},
},
{
types: ['constant'],
style: {
color: colors.red['200'],
},
},
{
types: ['string', 'url'],
style: {
color: colors.green['200'],
},
},
{
types: ['variable'],
style: {
color: colors.yellow['100'],
},
},
{
types: ['number', 'boolean'],
style: {
color: colors.teal['300'],
},
},
{
types: ['attr-name'],
style: {
color: colors.yellow['300'],
},
},
{
types: ['keyword', 'operator', 'property', 'namespace', 'tag', 'selector', 'doctype'],
style: {
color: colors.purple['300'],
},
},
{
types: ['builtin', 'char', 'constant', 'function', 'class-name'],
style: {
color: colors.pink['300'],
fontWeight: 'bold',
},
},
],
};