@@ -13,73 +13,92 @@ interface CodeShareProps {
1313 isOutSourcedScreen ?: boolean
1414}
1515
16+ // Customize themes: https://uiwjs.github.io/react-codemirror/#/editor/theme/single
1617const myDarkTheme = createTheme ( {
17-
1818 theme : "dark" ,
1919 settings : {
20- background : "#282C34" ,
20+ backgroundImage : '' ,
21+ selection : 'rgba(137, 180, 250, 0.3)' ,
22+ gutterBorder : '#313244' ,
23+ gutterActiveForeground : '#89b4fa' ,
24+ background : "#1e1e2e" ,
2125 foreground : "#cdd6f4" ,
2226 caret : "#f5e0dc" ,
23- selection : "#585b70aa" ,
24- selectionMatch : "#89b4fa" ,
25- lineHighlight : "#313244" ,
26- gutterBackground : "#1e1e2e" ,
27+ selectionMatch : 'rgba(137, 180, 250, 0.2)' ,
28+ lineHighlight : "rgba(137, 180, 250, 0.05)" ,
29+ gutterBackground : "#181825" ,
2730 gutterForeground : "#6c7086"
2831 } ,
2932 styles : [
30- { tag : t . comment , color : "#6c7086" } ,
33+ { tag : t . comment , color : "#6c7086" , fontStyle : "italic" } ,
3134 { tag : t . variableName , color : "#cba6f7" } ,
35+ { tag : t . special ( t . variableName ) , color : "#f5c2e7" } ,
3236 { tag : t . quote , color : "#cdd6f4" } ,
3337 { tag : t . moduleKeyword , color : "#f38ba8" } ,
3438 { tag : [ t . string , t . special ( t . brace ) ] , color : "#a6e3a1" } ,
3539 { tag : t . number , color : "#fab387" } ,
3640 { tag : t . bool , color : "#fab387" } ,
3741 { tag : t . null , color : "#fab387" } ,
38- { tag : t . keyword , color : "#f38ba8 " } ,
42+ { tag : t . keyword , color : "#cba6f7 " } ,
3943 { tag : t . operator , color : "#89dceb" } ,
44+ { tag : t . function ( t . variableName ) , color : "#89b4fa" } ,
4045 { tag : t . className , color : "#f9e2af" } ,
46+ { tag : t . definition ( t . className ) , color : "#f9e2af" } ,
4147 { tag : t . definition ( t . typeName ) , color : "#f9e2af" } ,
4248 { tag : t . typeName , color : "#f9e2af" } ,
4349 { tag : t . angleBracket , color : "#cdd6f4" } ,
4450 { tag : t . tagName , color : "#89b4fa" } ,
45- { tag : t . attributeName , color : "#f9e2af" } ,
46- { tag : t . propertyName , color : "#a6e3a1" } ,
47- { tag : t . annotation , color : "#f38ba8" }
51+ { tag : t . attributeName , color : "#fab387" } ,
52+ { tag : t . propertyName , color : "#94e2d5" } ,
53+ { tag : t . annotation , color : "#f38ba8" } ,
54+ { tag : t . regexp , color : "#f38ba8" } ,
55+ { tag : t . labelName , color : "#89dceb" } ,
56+ { tag : t . processingInstruction , color : "#f38ba8" }
4857 ]
4958} ) ;
5059
60+
5161const myLightTheme = createTheme ( {
52- theme : " light" ,
62+ theme : ' light' ,
5363 settings : {
54- background : "#ffffff" ,
55- foreground : "#4c4f69" ,
56- caret : "#dc8a78" ,
57- selection : "#dce0e8aa" ,
58- selectionMatch : "#7287fd" ,
59- lineHighlight : "#eff1f5" ,
60- gutterBackground : "#ffffff" ,
61- gutterForeground : "#9ca0b0"
64+ background : '#eff1f5' ,
65+ backgroundImage : '' ,
66+ foreground : '#4c4f69' ,
67+ caret : '#dc8a78' ,
68+ selection : 'rgba(220, 138, 120, 0.3)' ,
69+ selectionMatch : 'rgba(220, 138, 120, 0.2)' ,
70+ gutterBackground : '#e6e9ef' ,
71+ gutterForeground : '#6c6f85' ,
72+ gutterBorder : '#ccd0da' ,
73+ gutterActiveForeground : '#1e66f5' ,
74+ lineHighlight : 'rgba(220, 138, 120, 0.08)' ,
6275 } ,
6376 styles : [
64- { tag : t . comment , color : "#9ca0b0" } ,
65- { tag : t . variableName , color : "#8839ef" } ,
66- { tag : t . quote , color : "#4c4f69" } ,
67- { tag : t . moduleKeyword , color : "#d20f39" } ,
68- { tag : [ t . string , t . special ( t . brace ) ] , color : "#40a02b" } ,
69- { tag : t . number , color : "#df8e1d" } ,
70- { tag : t . bool , color : "#df8e1d" } ,
71- { tag : t . null , color : "#df8e1d" } ,
72- { tag : t . keyword , color : "#d20f39" } ,
73- { tag : t . operator , color : "#04a5e5" } ,
74- { tag : t . className , color : "#e5c890" } ,
75- { tag : t . definition ( t . typeName ) , color : "#e5c890" } ,
76- { tag : t . typeName , color : "#e5c890" } ,
77- { tag : t . angleBracket , color : "#4c4f69" } ,
78- { tag : t . tagName , color : "#1e66f5" } ,
79- { tag : t . attributeName , color : "#e5c890" } ,
80- { tag : t . propertyName , color : "#40a02b" } ,
81- { tag : t . annotation , color : "#d20f39" }
82- ]
77+ { tag : t . comment , color : '#9ca0b0' , fontStyle : "italic" } ,
78+ { tag : t . variableName , color : '#8839ef' } ,
79+ { tag : t . special ( t . variableName ) , color : '#ea76cb' } ,
80+ { tag : t . quote , color : '#4c4f69' } ,
81+ { tag : t . moduleKeyword , color : '#d20f39' } ,
82+ { tag : [ t . string , t . special ( t . brace ) ] , color : '#40a02b' } ,
83+ { tag : t . number , color : '#fe640b' } ,
84+ { tag : t . bool , color : '#fe640b' } ,
85+ { tag : t . null , color : '#fe640b' } ,
86+ { tag : t . keyword , color : '#8839ef' } ,
87+ { tag : t . operator , color : '#179299' } ,
88+ { tag : t . function ( t . variableName ) , color : '#1e66f5' } ,
89+ { tag : t . className , color : '#df8e1d' } ,
90+ { tag : t . definition ( t . className ) , color : '#df8e1d' } ,
91+ { tag : t . definition ( t . typeName ) , color : '#df8e1d' } ,
92+ { tag : t . typeName , color : '#df8e1d' } ,
93+ { tag : t . angleBracket , color : '#4c4f69' } ,
94+ { tag : t . tagName , color : '#1e66f5' } ,
95+ { tag : t . attributeName , color : '#fe640b' } ,
96+ { tag : t . propertyName , color : '#04a5e5' } ,
97+ { tag : t . annotation , color : '#d20f39' } ,
98+ { tag : t . regexp , color : '#d20f39' } ,
99+ { tag : t . labelName , color : '#179299' } ,
100+ { tag : t . processingInstruction , color : '#d20f39' }
101+ ] ,
83102} ) ;
84103
85104
0 commit comments