-
-
Notifications
You must be signed in to change notification settings - Fork 107
/
theme.js
104 lines (101 loc) · 2.11 KB
/
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
const colors = {
text: 'rgba(0, 0, 0, 0.84)',
muted: 'rgba(0, 0, 0, 0.68)',
grey: 'rgba(0, 0, 0, 0.54)',
background: '#ffffff',
codeBackground: 'rgb(243, 243, 243)',
primary: 'lavender',
boxShadow: 'rgba(0, 0, 0, 0.04)',
separator: 'rgba(0, 0, 0, 0.09)',
categories: {
// the background colors of post's categories
},
}
const fonts = {
sansSerif:
"-apple-system, BlinkMacSystemFont, Avenir, 'Avenir Next', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
monospace:
"'SFMono-Regular', Menlo, Monaco, 'Courier New', Courier, monospace",
}
const shadows = {
box: `0 1px 4px ${colors.boxShadow}`,
}
module.exports = {
colors,
fonts,
shadows,
highlighting: {
plain: {
color: colors.text,
backgroundColor: colors.codeBackground,
},
styles: [
{
types: ['comment', 'prolog', 'doctype', 'cdata'],
style: {
color: '#999988',
fontStyle: 'italic',
},
},
{
types: ['namespace'],
style: {
opacity: 0.7,
},
},
{
types: ['string', 'attr-value'],
style: {
color: '#e3116c',
},
},
{
types: ['punctuation', 'operator'],
style: {
color: '#393A34',
},
},
{
types: [
'entity',
'url',
'symbol',
'number',
'boolean',
'variable',
'constant',
'property',
'regex',
'inserted',
],
style: {
color: '#36acaa',
},
},
{
types: ['atrule', 'keyword', 'attr-name', 'selector'],
style: {
color: '#00a4db',
},
},
{
types: ['function', 'deleted', 'tag'],
style: {
color: '#d73a49',
},
},
{
types: ['function-variable'],
style: {
color: '#6f42c1',
},
},
{
types: ['tag', 'selector', 'keyword'],
style: {
color: '#00009f',
},
},
],
},
}