12.5 KB549 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/light_plus.json
12
13const theme: IRawTheme = {
14 name: 'Light+ (default light)',
15 settings: [
16 {
17 settings: {
18 foreground: '#000000',
19 background: '#FFFFFF',
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: '#795E26',
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: '#267f99',
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: '#267f99',
88 },
89 },
90 {
91 name: 'Control flow / Special keywords',
92 scope: [
93 'keyword.control',
94 'source.cpp keyword.operator.new',
95 'source.cpp keyword.operator.delete',
96 'keyword.other.using',
97 'keyword.other.operator',
98 'entity.name.operator',
99 ],
100 settings: {
101 foreground: '#AF00DB',
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: '#001080',
114 },
115 },
116 {
117 name: 'Constants and enums',
118 scope: ['variable.other.constant', 'variable.other.enummember'],
119 settings: {
120 foreground: '#328267',
121 },
122 },
123 {
124 name: 'Object keys, TS grammar specific',
125 scope: 'meta.object-literal.key',
126 settings: {
127 foreground: '#001080',
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: '#0451a5',
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: '#d16969',
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: '#811f3f',
169 },
170 },
171 {
172 scope: 'keyword.operator.quantifier.regexp',
173 settings: {
174 foreground: '#000000',
175 },
176 },
177 {
178 scope: ['keyword.operator.or.regexp', 'keyword.control.anchor.regexp'],
179 settings: {
180 foreground: '#ff0000',
181 },
182 },
183 {
184 scope: 'constant.character',
185 settings: {
186 foreground: '#0000ff',
187 },
188 },
189 {
190 scope: 'constant.character.escape',
191 settings: {
192 foreground: '#ff0000',
193 },
194 },
195 {
196 scope: 'entity.name.label',
197 settings: {
198 foreground: '#000000',
199 },
200 },
201 {
202 scope: ['meta.embedded', 'source.groovy.embedded'],
203 settings: {
204 foreground: '#000000ff',
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: 'meta.diff.header',
221 settings: {
222 foreground: '#000080',
223 },
224 },
225 {
226 scope: 'comment',
227 settings: {
228 foreground: '#008000',
229 },
230 },
231 {
232 scope: 'constant.language',
233 settings: {
234 foreground: '#0000ff',
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: '#098658',
246 },
247 },
248 {
249 scope: 'constant.regexp',
250 settings: {
251 foreground: '#811f3f',
252 },
253 },
254 {
255 name: 'css tags in selectors, xml tags',
256 scope: 'entity.name.tag',
257 settings: {
258 foreground: '#800000',
259 },
260 },
261 {
262 scope: 'entity.name.selector',
263 settings: {
264 foreground: '#800000',
265 },
266 },
267 {
268 scope: 'entity.other.attribute-name',
269 settings: {
270 foreground: '#ff0000',
271 },
272 },
273 {
274 scope: [
275 'entity.other.attribute-name.class.css',
276 'entity.other.attribute-name.class.mixin.css',
277 'entity.other.attribute-name.id.css',
278 'entity.other.attribute-name.parent-selector.css',
279 'entity.other.attribute-name.pseudo-class.css',
280 'entity.other.attribute-name.pseudo-element.css',
281 'source.css.less entity.other.attribute-name.id',
282 'entity.other.attribute-name.attribute.scss',
283 'entity.other.attribute-name.scss',
284 ],
285 settings: {
286 foreground: '#800000',
287 },
288 },
289 {
290 scope: 'invalid',
291 settings: {
292 foreground: '#cd3131',
293 },
294 },
295 {
296 scope: 'markup.underline',
297 settings: {
298 fontStyle: 'underline',
299 },
300 },
301 {
302 scope: 'markup.bold',
303 settings: {
304 fontStyle: 'bold',
305 foreground: '#000080',
306 },
307 },
308 {
309 scope: 'markup.heading',
310 settings: {
311 fontStyle: 'bold',
312 foreground: '#800000',
313 },
314 },
315 {
316 scope: 'markup.italic',
317 settings: {
318 fontStyle: 'italic',
319 },
320 },
321 {
322 scope: 'markup.inserted',
323 settings: {
324 foreground: '#098658',
325 },
326 },
327 {
328 scope: 'markup.deleted',
329 settings: {
330 foreground: '#a31515',
331 },
332 },
333 {
334 scope: 'markup.changed',
335 settings: {
336 foreground: '#0451a5',
337 },
338 },
339 {
340 scope: [
341 'punctuation.definition.quote.begin.markdown',
342 'punctuation.definition.list.begin.markdown',
343 ],
344 settings: {
345 foreground: '#0451a5',
346 },
347 },
348 {
349 scope: 'markup.inline.raw',
350 settings: {
351 foreground: '#800000',
352 },
353 },
354 {
355 name: 'brackets of XML/HTML tags',
356 scope: 'punctuation.definition.tag',
357 settings: {
358 foreground: '#800000',
359 },
360 },
361 {
362 scope: ['meta.preprocessor', 'entity.name.function.preprocessor'],
363 settings: {
364 foreground: '#0000ff',
365 },
366 },
367 {
368 scope: 'meta.preprocessor.string',
369 settings: {
370 foreground: '#a31515',
371 },
372 },
373 {
374 scope: 'meta.preprocessor.numeric',
375 settings: {
376 foreground: '#098658',
377 },
378 },
379 {
380 scope: 'meta.structure.dictionary.key.python',
381 settings: {
382 foreground: '#0451a5',
383 },
384 },
385 {
386 scope: 'storage',
387 settings: {
388 foreground: '#0000ff',
389 },
390 },
391 {
392 scope: 'storage.type',
393 settings: {
394 foreground: '#0000ff',
395 },
396 },
397 {
398 scope: ['storage.modifier', 'keyword.operator.noexcept'],
399 settings: {
400 foreground: '#0000ff',
401 },
402 },
403 {
404 scope: ['string', 'entity.name.operator.custom-literal.string', 'meta.embedded.assembly'],
405 settings: {
406 foreground: '#a31515',
407 },
408 },
409 {
410 scope: [
411 'string.comment.buffered.block.pug',
412 'string.quoted.pug',
413 'string.interpolated.pug',
414 'string.unquoted.plain.in.yaml',
415 'string.unquoted.plain.out.yaml',
416 'string.unquoted.block.yaml',
417 'string.quoted.single.yaml',
418 'string.quoted.double.xml',
419 'string.quoted.single.xml',
420 'string.unquoted.cdata.xml',
421 'string.quoted.double.html',
422 'string.quoted.single.html',
423 'string.unquoted.html',
424 'string.quoted.single.handlebars',
425 'string.quoted.double.handlebars',
426 ],
427 settings: {
428 foreground: '#0000ff',
429 },
430 },
431 {
432 scope: 'string.regexp',
433 settings: {
434 foreground: '#811f3f',
435 },
436 },
437 {
438 name: 'String interpolation',
439 scope: [
440 'punctuation.definition.template-expression.begin',
441 'punctuation.definition.template-expression.end',
442 'punctuation.section.embedded',
443 ],
444 settings: {
445 foreground: '#0000ff',
446 },
447 },
448 {
449 name: 'Reset JavaScript string interpolation expression',
450 scope: 'meta.template.expression',
451 settings: {
452 foreground: '#000000',
453 },
454 },
455 {
456 scope: [
457 'support.type.vendored.property-name',
458 'support.type.property-name',
459 'variable.css',
460 'variable.scss',
461 'variable.other.less',
462 'source.coffee.embedded',
463 ],
464 settings: {
465 foreground: '#ff0000',
466 },
467 },
468 {
469 scope: 'support.type.property-name.json',
470 settings: {
471 foreground: '#0451a5',
472 },
473 },
474 {
475 scope: 'keyword',
476 settings: {
477 foreground: '#0000ff',
478 },
479 },
480 {
481 scope: 'keyword.operator',
482 settings: {
483 foreground: '#000000',
484 },
485 },
486 {
487 scope: [
488 'keyword.operator.new',
489 'keyword.operator.expression',
490 'keyword.operator.cast',
491 'keyword.operator.sizeof',
492 'keyword.operator.alignof',
493 'keyword.operator.typeid',
494 'keyword.operator.alignas',
495 'keyword.operator.instanceof',
496 'keyword.operator.logical.python',
497 'keyword.operator.wordlike',
498 ],
499 settings: {
500 foreground: '#0000ff',
501 },
502 },
503 {
504 scope: 'keyword.other.unit',
505 settings: {
506 foreground: '#098658',
507 },
508 },
509 {
510 scope: ['punctuation.section.embedded.begin.php', 'punctuation.section.embedded.end.php'],
511 settings: {
512 foreground: '#800000',
513 },
514 },
515 {
516 scope: 'support.function.git-rebase',
517 settings: {
518 foreground: '#0451a5',
519 },
520 },
521 {
522 scope: 'constant.sha.git-rebase',
523 settings: {
524 foreground: '#098658',
525 },
526 },
527 {
528 name: 'coloring of the Java import and package identifiers',
529 scope: [
530 'storage.modifier.import.java',
531 'variable.language.wildcard.java',
532 'storage.modifier.package.java',
533 ],
534 settings: {
535 foreground: '#000000',
536 },
537 },
538 {
539 name: 'this.self',
540 scope: 'variable.language',
541 settings: {
542 foreground: '#0000ff',
543 },
544 },
545 ],
546};
547
548export default theme;
549