12.0 KB541 lines
Blame
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8import type {IRawTheme} from 'vscode-textmate';
9
10// Theme data fetched from:
11// https://github.com/microsoft/vscode/raw/a716714a88891cad69c0753fb95923870df295f5/extensions/theme-defaults/themes/dark_plus.json
12
13const theme: IRawTheme = {
14 name: 'Dark+ (default dark)',
15 settings: [
16 {
17 settings: {
18 foreground: '#D4D4D4',
19 background: '#1E1E1E',
20 },
21 },
22 {
23 name: 'Function declarations',
24 scope: [
25 'entity.name.function',
26 'support.function',
27 'support.constant.handlebars',
28 'source.powershell variable.other.member',
29 'entity.name.operator.custom-literal',
30 ],
31 settings: {
32 foreground: '#DCDCAA',
33 },
34 },
35 {
36 name: 'Types declaration and references',
37 scope: [
38 'meta.return-type',
39 'support.class',
40 'support.type',
41 'entity.name.type',
42 'entity.name.namespace',
43 'entity.other.attribute',
44 'entity.name.scope-resolution',
45 'entity.name.class',
46 'storage.type.numeric.go',
47 'storage.type.byte.go',
48 'storage.type.boolean.go',
49 'storage.type.string.go',
50 'storage.type.uintptr.go',
51 'storage.type.error.go',
52 'storage.type.rune.go',
53 'storage.type.cs',
54 'storage.type.generic.cs',
55 'storage.type.modifier.cs',
56 'storage.type.variable.cs',
57 'storage.type.annotation.java',
58 'storage.type.generic.java',
59 'storage.type.java',
60 'storage.type.object.array.java',
61 'storage.type.primitive.array.java',
62 'storage.type.primitive.java',
63 'storage.type.token.java',
64 'storage.type.groovy',
65 'storage.type.annotation.groovy',
66 'storage.type.parameters.groovy',
67 'storage.type.generic.groovy',
68 'storage.type.object.array.groovy',
69 'storage.type.primitive.array.groovy',
70 'storage.type.primitive.groovy',
71 ],
72 settings: {
73 foreground: '#4EC9B0',
74 },
75 },
76 {
77 name: 'Types declaration and references, TS grammar specific',
78 scope: [
79 'meta.type.cast.expr',
80 'meta.type.new.expr',
81 'support.constant.math',
82 'support.constant.dom',
83 'support.constant.json',
84 'entity.other.inherited-class',
85 ],
86 settings: {
87 foreground: '#4EC9B0',
88 },
89 },
90 {
91 name: 'Control flow / Special keywords',
92 scope: [
93 'keyword.control',
94 'source.cpp keyword.operator.new',
95 'keyword.operator.delete',
96 'keyword.other.using',
97 'keyword.other.operator',
98 'entity.name.operator',
99 ],
100 settings: {
101 foreground: '#C586C0',
102 },
103 },
104 {
105 name: 'Variable and parameter name',
106 scope: [
107 'variable',
108 'meta.definition.variable.name',
109 'support.variable',
110 'entity.name.variable',
111 ],
112 settings: {
113 foreground: '#9CDCFE',
114 },
115 },
116 {
117 name: 'Constants and enums',
118 scope: ['variable.other.constant', 'variable.other.enummember'],
119 settings: {
120 foreground: '#51B6C4',
121 },
122 },
123 {
124 name: 'Object keys, TS grammar specific',
125 scope: 'meta.object-literal.key',
126 settings: {
127 foreground: '#9CDCFE',
128 },
129 },
130 {
131 name: 'CSS property value',
132 scope: [
133 'support.constant.property-value',
134 'support.constant.font-name',
135 'support.constant.media-type',
136 'support.constant.media',
137 'constant.other.color.rgb-value',
138 'constant.other.rgb-value',
139 'support.constant.color',
140 ],
141 settings: {
142 foreground: '#CE9178',
143 },
144 },
145 {
146 name: 'Regular expression groups',
147 scope: [
148 'punctuation.definition.group.regexp',
149 'punctuation.definition.group.assertion.regexp',
150 'punctuation.definition.character-class.regexp',
151 'punctuation.character.set.begin.regexp',
152 'punctuation.character.set.end.regexp',
153 'keyword.operator.negation.regexp',
154 'support.other.parenthesis.regexp',
155 ],
156 settings: {
157 foreground: '#CE9178',
158 },
159 },
160 {
161 scope: [
162 'constant.character.character-class.regexp',
163 'constant.other.character-class.set.regexp',
164 'constant.other.character-class.regexp',
165 'constant.character.set.regexp',
166 ],
167 settings: {
168 foreground: '#d16969',
169 },
170 },
171 {
172 scope: ['keyword.operator.or.regexp', 'keyword.control.anchor.regexp'],
173 settings: {
174 foreground: '#DCDCAA',
175 },
176 },
177 {
178 scope: 'keyword.operator.quantifier.regexp',
179 settings: {
180 foreground: '#d7ba7d',
181 },
182 },
183 {
184 scope: 'constant.character',
185 settings: {
186 foreground: '#569cd6',
187 },
188 },
189 {
190 scope: 'constant.character.escape',
191 settings: {
192 foreground: '#d7ba7d',
193 },
194 },
195 {
196 scope: 'entity.name.label',
197 settings: {
198 foreground: '#C8C8C8',
199 },
200 },
201 {
202 scope: ['meta.embedded', 'source.groovy.embedded'],
203 settings: {
204 foreground: '#D4D4D4',
205 },
206 },
207 {
208 scope: 'emphasis',
209 settings: {
210 fontStyle: 'italic',
211 },
212 },
213 {
214 scope: 'strong',
215 settings: {
216 fontStyle: 'bold',
217 },
218 },
219 {
220 scope: 'header',
221 settings: {
222 foreground: '#000080',
223 },
224 },
225 {
226 scope: 'comment',
227 settings: {
228 foreground: '#6A9955',
229 },
230 },
231 {
232 scope: 'constant.language',
233 settings: {
234 foreground: '#569cd6',
235 },
236 },
237 {
238 scope: [
239 'constant.numeric',
240 'entity.name.operator.custom-literal.number',
241 'keyword.operator.plus.exponent',
242 'keyword.operator.minus.exponent',
243 ],
244 settings: {
245 foreground: '#b5cea8',
246 },
247 },
248 {
249 scope: 'constant.regexp',
250 settings: {
251 foreground: '#646695',
252 },
253 },
254 {
255 scope: 'entity.name.tag',
256 settings: {
257 foreground: '#569cd6',
258 },
259 },
260 {
261 scope: 'entity.name.tag.css',
262 settings: {
263 foreground: '#d7ba7d',
264 },
265 },
266 {
267 scope: 'entity.other.attribute-name',
268 settings: {
269 foreground: '#9cdcfe',
270 },
271 },
272 {
273 scope: [
274 'entity.other.attribute-name.class.css',
275 'entity.other.attribute-name.class.mixin.css',
276 'entity.other.attribute-name.id.css',
277 'entity.other.attribute-name.parent-selector.css',
278 'entity.other.attribute-name.pseudo-class.css',
279 'entity.other.attribute-name.pseudo-element.css',
280 'source.css.less entity.other.attribute-name.id',
281 'entity.other.attribute-name.attribute.scss',
282 'entity.other.attribute-name.scss',
283 ],
284 settings: {
285 foreground: '#d7ba7d',
286 },
287 },
288 {
289 scope: 'invalid',
290 settings: {
291 foreground: '#f44747',
292 },
293 },
294 {
295 scope: 'markup.underline',
296 settings: {
297 fontStyle: 'underline',
298 },
299 },
300 {
301 scope: 'markup.bold',
302 settings: {
303 fontStyle: 'bold',
304 foreground: '#569cd6',
305 },
306 },
307 {
308 scope: 'markup.heading',
309 settings: {
310 fontStyle: 'bold',
311 foreground: '#569cd6',
312 },
313 },
314 {
315 scope: 'markup.italic',
316 settings: {
317 fontStyle: 'italic',
318 },
319 },
320 {
321 scope: 'markup.inserted',
322 settings: {
323 foreground: '#b5cea8',
324 },
325 },
326 {
327 scope: 'markup.deleted',
328 settings: {
329 foreground: '#ce9178',
330 },
331 },
332 {
333 scope: 'markup.changed',
334 settings: {
335 foreground: '#569cd6',
336 },
337 },
338 {
339 scope: 'punctuation.definition.quote.begin.markdown',
340 settings: {
341 foreground: '#6A9955',
342 },
343 },
344 {
345 scope: 'punctuation.definition.list.begin.markdown',
346 settings: {
347 foreground: '#6796e6',
348 },
349 },
350 {
351 scope: 'markup.inline.raw',
352 settings: {
353 foreground: '#ce9178',
354 },
355 },
356 {
357 name: 'brackets of XML/HTML tags',
358 scope: 'punctuation.definition.tag',
359 settings: {
360 foreground: '#808080',
361 },
362 },
363 {
364 scope: ['meta.preprocessor', 'entity.name.function.preprocessor'],
365 settings: {
366 foreground: '#569cd6',
367 },
368 },
369 {
370 scope: 'meta.preprocessor.string',
371 settings: {
372 foreground: '#ce9178',
373 },
374 },
375 {
376 scope: 'meta.preprocessor.numeric',
377 settings: {
378 foreground: '#b5cea8',
379 },
380 },
381 {
382 scope: 'meta.structure.dictionary.key.python',
383 settings: {
384 foreground: '#9cdcfe',
385 },
386 },
387 {
388 scope: 'meta.diff.header',
389 settings: {
390 foreground: '#569cd6',
391 },
392 },
393 {
394 scope: 'storage',
395 settings: {
396 foreground: '#569cd6',
397 },
398 },
399 {
400 scope: 'storage.type',
401 settings: {
402 foreground: '#569cd6',
403 },
404 },
405 {
406 scope: ['storage.modifier', 'keyword.operator.noexcept'],
407 settings: {
408 foreground: '#569cd6',
409 },
410 },
411 {
412 scope: ['string', 'entity.name.operator.custom-literal.string', 'meta.embedded.assembly'],
413 settings: {
414 foreground: '#ce9178',
415 },
416 },
417 {
418 scope: 'string.tag',
419 settings: {
420 foreground: '#ce9178',
421 },
422 },
423 {
424 scope: 'string.value',
425 settings: {
426 foreground: '#ce9178',
427 },
428 },
429 {
430 scope: 'string.regexp',
431 settings: {
432 foreground: '#d16969',
433 },
434 },
435 {
436 name: 'String interpolation',
437 scope: [
438 'punctuation.definition.template-expression.begin',
439 'punctuation.definition.template-expression.end',
440 'punctuation.section.embedded',
441 ],
442 settings: {
443 foreground: '#569cd6',
444 },
445 },
446 {
447 name: 'Reset JavaScript string interpolation expression',
448 scope: 'meta.template.expression',
449 settings: {
450 foreground: '#d4d4d4',
451 },
452 },
453 {
454 scope: [
455 'support.type.vendored.property-name',
456 'support.type.property-name',
457 'variable.css',
458 'variable.scss',
459 'variable.other.less',
460 'source.coffee.embedded',
461 ],
462 settings: {
463 foreground: '#9cdcfe',
464 },
465 },
466 {
467 scope: 'keyword',
468 settings: {
469 foreground: '#569cd6',
470 },
471 },
472 {
473 scope: 'keyword.operator',
474 settings: {
475 foreground: '#d4d4d4',
476 },
477 },
478 {
479 scope: [
480 'keyword.operator.new',
481 'keyword.operator.expression',
482 'keyword.operator.cast',
483 'keyword.operator.sizeof',
484 'keyword.operator.alignof',
485 'keyword.operator.typeid',
486 'keyword.operator.alignas',
487 'keyword.operator.instanceof',
488 'keyword.operator.logical.python',
489 'keyword.operator.wordlike',
490 ],
491 settings: {
492 foreground: '#569cd6',
493 },
494 },
495 {
496 scope: 'keyword.other.unit',
497 settings: {
498 foreground: '#b5cea8',
499 },
500 },
501 {
502 scope: ['punctuation.section.embedded.begin.php', 'punctuation.section.embedded.end.php'],
503 settings: {
504 foreground: '#569cd6',
505 },
506 },
507 {
508 scope: 'support.function.git-rebase',
509 settings: {
510 foreground: '#9cdcfe',
511 },
512 },
513 {
514 scope: 'constant.sha.git-rebase',
515 settings: {
516 foreground: '#b5cea8',
517 },
518 },
519 {
520 name: 'coloring of the Java import and package identifiers',
521 scope: [
522 'storage.modifier.import.java',
523 'variable.language.wildcard.java',
524 'storage.modifier.package.java',
525 ],
526 settings: {
527 foreground: '#d4d4d4',
528 },
529 },
530 {
531 name: 'this.self',
532 scope: 'variable.language',
533 settings: {
534 foreground: '#569cd6',
535 },
536 },
537 ],
538};
539
540export default theme;
541