Skip to content

Commit c2f74b2

Browse files
authored
fix(theme): Fix and simplify VS Code dark theme (#416)
1 parent 15b2bee commit c2f74b2

File tree

1 file changed

+10
-29
lines changed

1 file changed

+10
-29
lines changed

themes/vscode/src/index.ts

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,65 +22,46 @@ export function vscodeDarkInit(options?: CreateThemeOptions) {
2222
...settings,
2323
},
2424
styles: [
25-
{ tag: t.keyword, color: '#569cd6' },
2625
{
27-
tag: [t.controlKeyword, t.moduleKeyword],
28-
color: '#c586c0',
26+
tag: [t.keyword, t.operatorKeyword, t.modifier, t.color, t.constant(t.name), t.standard(t.name), t.tagName, t.special(t.brace), t.atom, t.bool, t.special(t.variableName)],
27+
color: '#569cd6',
2928
},
3029
{
31-
tag: [t.name, t.deleted, t.character, t.macroName],
32-
color: '#9cdcfe',
30+
tag: [t.controlKeyword, t.moduleKeyword],
31+
color: '#c586c0',
3332
},
3433
{
35-
tag: [t.propertyName],
34+
tag: [t.name, t.deleted, t.character, t.macroName, t.propertyName, t.variableName, t.labelName, t.definition(t.name)],
3635
color: '#9cdcfe',
3736
},
38-
39-
{ tag: [t.variableName, t.labelName], color: '#9cdcfe' },
40-
{
41-
tag: [t.color, t.constant(t.name), t.standard(t.name)],
42-
color: '#569cd6',
43-
},
44-
{ tag: [t.definition(t.name)], color: '#9cdcfe' },
37+
{ tag: t.heading, fontWeight: 'bold', color: '#9cdcfe' },
4538
{
46-
tag: [t.typeName, t.className, t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],
39+
tag: [t.typeName, t.className, t.number, t.changed, t.annotation, t.self, t.namespace],
4740
color: '#4ec9b0',
4841
},
49-
{ tag: [t.tagName], color: '#569cd6' },
5042
{
5143
tag: [t.function(t.variableName), t.function(t.propertyName)],
5244
color: '#dcdcaa',
5345
},
5446
{ tag: [t.number], color: '#b5cea8' },
5547
{
56-
tag: [t.operator, t.operatorKeyword, t.url, t.escape, t.regexp, t.link, t.special(t.string)],
48+
tag: [t.operator, t.punctuation, t.separator, t.url, t.escape, t.regexp],
5749
color: '#d4d4d4',
5850
},
5951
{
6052
tag: [t.regexp],
6153
color: '#d16969',
6254
},
6355
{
64-
tag: [t.special(t.string)],
56+
tag: [t.special(t.string), t.processingInstruction, t.string, t.inserted],
6557
color: '#ce9178',
6658
},
67-
{ tag: [t.meta, t.comment], color: '#6a9955' },
68-
{ tag: [t.punctuation, t.separator], color: '#d4d4d4' },
6959
{ tag: [t.angleBracket], color: '#808080' },
70-
{ tag: t.special(t.brace), color: '#569cd6' },
7160
{ tag: t.strong, fontWeight: 'bold' },
7261
{ tag: t.emphasis, fontStyle: 'italic' },
7362
{ tag: t.strikethrough, textDecoration: 'line-through' },
63+
{ tag: [t.meta, t.comment], color: '#6a9955' },
7464
{ tag: t.link, color: '#6a9955', textDecoration: 'underline' },
75-
{ tag: t.heading, fontWeight: 'bold', color: '#9cdcfe' },
76-
{
77-
tag: [t.atom, t.bool, t.special(t.variableName)],
78-
color: '#569cd6',
79-
},
80-
{
81-
tag: [t.processingInstruction, t.string, t.inserted],
82-
color: '#ce9178',
83-
},
8465
{ tag: t.invalid, color: '#ff0000' },
8566
...styles,
8667
],

0 commit comments

Comments
 (0)