@@ -22,16 +22,42 @@ export const getCodeEditorTheme = (isDark: boolean) => {
22
22
const themeInit = isDark ? githubDarkInit : githubLightInit
23
23
const styles = isDark
24
24
? [
25
- { tag : [ t . className , t . propertyName ] , color : 'var(--code-editor-property-name)' } ,
26
- { tag : [ t . variableName , t . attributeName , t . number , t . operator ] , color : 'var(--code-editor-number)' } ,
27
- { tag : [ t . heading , t . strong ] , color : 'var(--code-editor-property-name)' , fontWeight : 'bold' } ,
28
- { tag : [ t . emphasis ] , color : 'var(--code-editor-property-name)' , fontStyle : 'italic' } ,
29
- { tag : [ t . atom , t . bool , t . special ( t . variableName ) ] , color : 'var(--code-editor-boolean)' } ,
25
+ {
26
+ tag : [ t . className , t . propertyName ] ,
27
+ color : 'var(--code-editor-property-name)' ,
28
+ } ,
29
+ {
30
+ tag : [ t . variableName , t . attributeName , t . number , t . operator ] ,
31
+ color : 'var(--code-editor-number)' ,
32
+ } ,
33
+ {
34
+ tag : [ t . heading , t . strong ] ,
35
+ color : 'var(--code-editor-property-name)' ,
36
+ fontWeight : 'bold' ,
37
+ } ,
38
+ {
39
+ tag : [ t . emphasis ] ,
40
+ color : 'var(--code-editor-property-name)' ,
41
+ fontStyle : 'italic' ,
42
+ } ,
43
+ {
44
+ tag : [ t . atom , t . bool , t . special ( t . variableName ) ] ,
45
+ color : 'var(--code-editor-boolean)' ,
46
+ } ,
30
47
]
31
48
: [
32
- { tag : [ t . className , t . propertyName ] , color : 'var(--code-editor-property-name)' } ,
33
- { tag : [ t . variableName , t . attributeName , t . number , t . operator ] , color : 'var(--code-editor-number)' } ,
34
- { tag : [ t . atom , t . bool , t . special ( t . variableName ) ] , color : 'var(--code-editor-boolean)' } ,
49
+ {
50
+ tag : [ t . className , t . propertyName ] ,
51
+ color : 'var(--code-editor-property-name)' ,
52
+ } ,
53
+ {
54
+ tag : [ t . variableName , t . attributeName , t . number , t . operator ] ,
55
+ color : 'var(--code-editor-number)' ,
56
+ } ,
57
+ {
58
+ tag : [ t . atom , t . bool , t . special ( t . variableName ) ] ,
59
+ color : 'var(--code-editor-boolean)' ,
60
+ } ,
35
61
]
36
62
37
63
return {
0 commit comments