forked from keystonejs/keystone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprism-theme.ts
More file actions
77 lines (75 loc) · 1.31 KB
/
Copy pathprism-theme.ts
File metadata and controls
77 lines (75 loc) · 1.31 KB
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
import type { PrismTheme } from 'prism-react-renderer';
const theme: PrismTheme = {
plain: {
color: 'var(--text-heading)',
backgroundColor: '#f6f7f9',
},
styles: [
{
types: ['comment', 'prolog', 'doctype', 'cdata'],
style: {
color: 'var(--text)',
},
},
{
types: ['namespace'],
style: {
opacity: 0.7,
},
},
{
types: ['string', 'attr-value'],
style: {
color: '#eC1337',
},
},
{
types: ['punctuation', 'operator'],
style: {
color: '#94A3B8',
},
},
{
types: [
'entity',
'url',
'symbol',
'number',
'boolean',
'variable',
'constant',
'property',
'regex',
'inserted',
],
style: {
color: '#04865d',
},
},
{
types: ['atrule', 'keyword', 'attr-name', 'selector'],
style: {
color: '#0080A8',
},
},
{
types: ['function', 'deleted', 'tag'],
style: {
color: 'var(--focus)',
},
},
{
types: ['function-variable'],
style: {
color: '#7f54e0',
},
},
{
types: ['tag', 'selector', 'keyword'],
style: {
color: '#037dbb',
},
},
],
};
export default theme;