Skip to content

Commit cd2f47b

Browse files
committed
feat: use github theme
1 parent ec1541b commit cd2f47b

File tree

3 files changed

+709
-2
lines changed

3 files changed

+709
-2
lines changed
Lines changed: 350 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,350 @@
1+
import type { editor } from 'monaco-editor/esm/vs/editor/editor.api'
2+
3+
export default {
4+
base: 'vs-dark',
5+
inherit: true,
6+
rules: [
7+
{
8+
background: '24292e',
9+
token: '',
10+
},
11+
{
12+
foreground: '959da5',
13+
token: 'comment',
14+
},
15+
{
16+
foreground: '959da5',
17+
token: 'punctuation.definition.comment',
18+
},
19+
{
20+
foreground: '959da5',
21+
token: 'string.comment',
22+
},
23+
{
24+
foreground: 'c8e1ff',
25+
token: 'constant',
26+
},
27+
{
28+
foreground: 'c8e1ff',
29+
token: 'entity.name.constant',
30+
},
31+
{
32+
foreground: 'c8e1ff',
33+
token: 'variable.other.constant',
34+
},
35+
{
36+
foreground: 'c8e1ff',
37+
token: 'variable.language',
38+
},
39+
{
40+
foreground: 'b392f0',
41+
token: 'entity',
42+
},
43+
{
44+
foreground: 'b392f0',
45+
token: 'entity.name',
46+
},
47+
{
48+
foreground: 'f6f8fa',
49+
token: 'variable.parameter.function',
50+
},
51+
{
52+
foreground: '7bcc72',
53+
token: 'entity.name.tag',
54+
},
55+
{
56+
foreground: 'ea4a5a',
57+
token: 'keyword',
58+
},
59+
{
60+
foreground: 'ea4a5a',
61+
token: 'storage',
62+
},
63+
{
64+
foreground: 'ea4a5a',
65+
token: 'storage.type',
66+
},
67+
{
68+
foreground: 'f6f8fa',
69+
token: 'storage.modifier.package',
70+
},
71+
{
72+
foreground: 'f6f8fa',
73+
token: 'storage.modifier.import',
74+
},
75+
{
76+
foreground: 'f6f8fa',
77+
token: 'storage.type.java',
78+
},
79+
{
80+
foreground: '79b8ff',
81+
token: 'string',
82+
},
83+
{
84+
foreground: '79b8ff',
85+
token: 'punctuation.definition.string',
86+
},
87+
{
88+
foreground: '79b8ff',
89+
token: 'string punctuation.section.embedded source',
90+
},
91+
{
92+
foreground: 'c8e1ff',
93+
token: 'support',
94+
},
95+
{
96+
foreground: 'c8e1ff',
97+
token: 'meta.property-name',
98+
},
99+
{
100+
foreground: 'fb8532',
101+
token: 'variable',
102+
},
103+
{
104+
foreground: 'f6f8fa',
105+
token: 'variable.other',
106+
},
107+
{
108+
foreground: 'd73a49',
109+
fontStyle: 'bold italic underline',
110+
token: 'invalid.broken',
111+
},
112+
{
113+
foreground: 'd73a49',
114+
fontStyle: 'bold italic underline',
115+
token: 'invalid.deprecated',
116+
},
117+
{
118+
foreground: 'fafbfc',
119+
background: 'd73a49',
120+
fontStyle: 'italic underline',
121+
token: 'invalid.illegal',
122+
},
123+
{
124+
foreground: 'fafbfc',
125+
background: 'd73a49',
126+
fontStyle: 'italic underline',
127+
token: 'carriage-return',
128+
},
129+
{
130+
foreground: 'd73a49',
131+
fontStyle: 'bold italic underline',
132+
token: 'invalid.unimplemented',
133+
},
134+
{
135+
foreground: 'd73a49',
136+
token: 'message.error',
137+
},
138+
{
139+
foreground: 'f6f8fa',
140+
token: 'string source',
141+
},
142+
{
143+
foreground: 'c8e1ff',
144+
token: 'string variable',
145+
},
146+
{
147+
foreground: '79b8ff',
148+
token: 'source.regexp',
149+
},
150+
{
151+
foreground: '79b8ff',
152+
token: 'string.regexp',
153+
},
154+
{
155+
foreground: '79b8ff',
156+
token: 'string.regexp.character-class',
157+
},
158+
{
159+
foreground: '79b8ff',
160+
token: 'string.regexp constant.character.escape',
161+
},
162+
{
163+
foreground: '79b8ff',
164+
token: 'string.regexp source.ruby.embedded',
165+
},
166+
{
167+
foreground: '79b8ff',
168+
token: 'string.regexp string.regexp.arbitrary-repitition',
169+
},
170+
{
171+
foreground: '7bcc72',
172+
fontStyle: 'bold',
173+
token: 'string.regexp constant.character.escape',
174+
},
175+
{
176+
foreground: 'c8e1ff',
177+
token: 'support.constant',
178+
},
179+
{
180+
foreground: 'c8e1ff',
181+
token: 'support.variable',
182+
},
183+
{
184+
foreground: 'c8e1ff',
185+
token: 'meta.module-reference',
186+
},
187+
{
188+
foreground: 'fb8532',
189+
token: 'markup.list',
190+
},
191+
{
192+
foreground: '0366d6',
193+
fontStyle: 'bold',
194+
token: 'markup.heading',
195+
},
196+
{
197+
foreground: '0366d6',
198+
fontStyle: 'bold',
199+
token: 'markup.heading entity.name',
200+
},
201+
{
202+
foreground: 'c8e1ff',
203+
token: 'markup.quote',
204+
},
205+
{
206+
foreground: 'f6f8fa',
207+
fontStyle: 'italic',
208+
token: 'markup.italic',
209+
},
210+
{
211+
foreground: 'f6f8fa',
212+
fontStyle: 'bold',
213+
token: 'markup.bold',
214+
},
215+
{
216+
foreground: 'c8e1ff',
217+
token: 'markup.raw',
218+
},
219+
{
220+
foreground: 'b31d28',
221+
background: 'ffeef0',
222+
token: 'markup.deleted',
223+
},
224+
{
225+
foreground: 'b31d28',
226+
background: 'ffeef0',
227+
token: 'meta.diff.header.from-file',
228+
},
229+
{
230+
foreground: 'b31d28',
231+
background: 'ffeef0',
232+
token: 'punctuation.definition.deleted',
233+
},
234+
{
235+
foreground: '176f2c',
236+
background: 'f0fff4',
237+
token: 'markup.inserted',
238+
},
239+
{
240+
foreground: '176f2c',
241+
background: 'f0fff4',
242+
token: 'meta.diff.header.to-file',
243+
},
244+
{
245+
foreground: '176f2c',
246+
background: 'f0fff4',
247+
token: 'punctuation.definition.inserted',
248+
},
249+
{
250+
foreground: 'b08800',
251+
background: 'fffdef',
252+
token: 'markup.changed',
253+
},
254+
{
255+
foreground: 'b08800',
256+
background: 'fffdef',
257+
token: 'punctuation.definition.changed',
258+
},
259+
{
260+
foreground: '2f363d',
261+
background: '959da5',
262+
token: 'markup.ignored',
263+
},
264+
{
265+
foreground: '2f363d',
266+
background: '959da5',
267+
token: 'markup.untracked',
268+
},
269+
{
270+
foreground: 'b392f0',
271+
fontStyle: 'bold',
272+
token: 'meta.diff.range',
273+
},
274+
{
275+
foreground: 'c8e1ff',
276+
token: 'meta.diff.header',
277+
},
278+
{
279+
foreground: '0366d6',
280+
fontStyle: 'bold',
281+
token: 'meta.separator',
282+
},
283+
{
284+
foreground: '0366d6',
285+
token: 'meta.output',
286+
},
287+
{
288+
foreground: 'ffeef0',
289+
token: 'brackethighlighter.tag',
290+
},
291+
{
292+
foreground: 'ffeef0',
293+
token: 'brackethighlighter.curly',
294+
},
295+
{
296+
foreground: 'ffeef0',
297+
token: 'brackethighlighter.round',
298+
},
299+
{
300+
foreground: 'ffeef0',
301+
token: 'brackethighlighter.square',
302+
},
303+
{
304+
foreground: 'ffeef0',
305+
token: 'brackethighlighter.angle',
306+
},
307+
{
308+
foreground: 'ffeef0',
309+
token: 'brackethighlighter.quote',
310+
},
311+
{
312+
foreground: 'd73a49',
313+
token: 'brackethighlighter.unmatched',
314+
},
315+
{
316+
foreground: 'd73a49',
317+
token: 'sublimelinter.mark.error',
318+
},
319+
{
320+
foreground: 'fb8532',
321+
token: 'sublimelinter.mark.warning',
322+
},
323+
{
324+
foreground: '6a737d',
325+
token: 'sublimelinter.gutter-mark',
326+
},
327+
{
328+
foreground: '79b8ff',
329+
fontStyle: 'underline',
330+
token: 'constant.other.reference.link',
331+
},
332+
{
333+
foreground: '79b8ff',
334+
fontStyle: 'underline',
335+
token: 'string.other.link',
336+
},
337+
],
338+
colors: {
339+
'editor.foreground': '#f6f8fa',
340+
'editor.background': '#24292e',
341+
'editor.selectionBackground': '#4c2889',
342+
'editor.inactiveSelectionBackground': '#444d56',
343+
'editor.lineHighlightBackground': '#444d56',
344+
'editorCursor.foreground': '#ffffff',
345+
'editorWhitespace.foreground': '#6a737d',
346+
'editorIndentGuide.background': '#6a737d',
347+
'editorIndentGuide.activeBackground': '#f6f8fa',
348+
'editor.selectionHighlightBorder': '#444d56',
349+
},
350+
} as editor.IStandaloneThemeData

0 commit comments

Comments
 (0)