Skip to content

Commit 64a83fe

Browse files
committed
Load VS themes from theme file, clean tokens.css
1 parent 0785eec commit 64a83fe

12 files changed

Lines changed: 317 additions & 676 deletions

File tree

extensions/theme-colorful-defaults/package.json

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "theme-defaults",
3+
"displayName": "Default Themes",
4+
"description": "The default light and dark themes (Plus and Visual Studio)",
5+
"categories": [ "Themes" ],
6+
"version": "0.1.10",
7+
"publisher": "vscode",
8+
"engines": { "vscode": "*" },
9+
"contributes": {
10+
"themes": [
11+
{
12+
"label": "Dark+ (default dark)",
13+
"uiTheme": "vs-dark",
14+
"path": "./themes/dark_plus.json"
15+
},
16+
{
17+
"label": "Light+ (default light)",
18+
"uiTheme": "vs",
19+
"path": "./themes/light_plus.json"
20+
},
21+
{
22+
"label": "Dark (Visual Studio)",
23+
"uiTheme": "vs-dark",
24+
"path": "./themes/dark_vs.json"
25+
},
26+
{
27+
"label": "Light (Visual Studio)",
28+
"uiTheme": "vs",
29+
"path": "./themes/light_vs.json"
30+
},
31+
{
32+
"label": "High Contrast",
33+
"uiTheme": "hc-black",
34+
"path": "./themes/hc_black.json"
35+
}
36+
]
37+
}
38+
}

extensions/theme-colorful-defaults/themes/dark_plus.json renamed to extensions/theme-defaults/themes/dark_plus.json

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"name": "Function declarations",
2525
"scope": [
2626
"entity.name.function",
27-
"entity.method.name"
27+
"entity.name.method"
2828
],
2929
"settings": {
3030
"foreground": "#DCDCAA"
@@ -59,26 +59,12 @@
5959
{
6060
"name": "CSS property value",
6161
"scope": [
62-
"css.support.property-value",
63-
"css.constant.rgb-value"
62+
"support.property-value.css",
63+
"constant.rgb-value.css"
6464
],
6565
"settings": {
6666
"foreground": "#CE9178"
6767
}
68-
},
69-
{
70-
"name": "JSON keys",
71-
"scope": "support.type.property-name",
72-
"settings": {
73-
"foreground": "#9CDCFE"
74-
}
75-
},
76-
{
77-
"name": "LESS workaround",
78-
"scope": "keyword.control.less",
79-
"settings": {
80-
"foreground": "#D7BA7D"
81-
}
8268
}
8369
]
8470
}

extensions/theme-colorful-defaults/themes/dark_vs.json renamed to extensions/theme-defaults/themes/dark_vs.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
{
22
"name": "Dark Visual Studio",
33
"settings": [
4-
{
5-
"scope": "string",
6-
"settings": {
7-
"foreground": "#ce9178"
8-
}
9-
},
10-
{
11-
"scope": "string.escape",
12-
"settings": {
13-
"foreground": "#ce9178"
14-
}
15-
},
16-
174
{
185
"scope": "emphasis",
196
"settings": {
@@ -248,6 +235,12 @@
248235
"settings": {
249236
"foreground": "#b5cea8"
250237
}
238+
},
239+
{
240+
"scope": "metatag.php",
241+
"settings": {
242+
"foreground": "#569cd6"
243+
}
251244
}
252245
]
253246
}
Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
{
2+
"name": "Dark Visual Studio",
3+
"settings": [
4+
{
5+
"scope": "emphasis",
6+
"settings": {
7+
"fontStyle": "italic"
8+
}
9+
},
10+
{
11+
"scope": "strong",
12+
"settings": {
13+
"fontStyle": "bold"
14+
}
15+
},
16+
{
17+
"scope": "header",
18+
"settings": {
19+
"foreground": "#000080"
20+
}
21+
},
22+
23+
{
24+
"scope": "comment",
25+
"settings": {
26+
"foreground": "#7ca668"
27+
}
28+
},
29+
{
30+
"scope": "constant.language",
31+
"settings": {
32+
"foreground": "#569cd6"
33+
}
34+
},
35+
{
36+
"scope": "constant.numeric",
37+
"settings": {
38+
"foreground": "#b5cea8"
39+
}
40+
},
41+
{
42+
"scope": "constant.regexp",
43+
"settings": {
44+
"foreground": "#b46695"
45+
}
46+
},
47+
{
48+
"scope": "constant.rgb-value",
49+
"settings": {
50+
"foreground": "#d4d4d4"
51+
}
52+
},
53+
{
54+
"scope": "entity.name.tag",
55+
"settings": {
56+
"foreground": "#569cd6"
57+
}
58+
},
59+
{
60+
"scope": "entity.name.selector",
61+
"settings": {
62+
"foreground": "#d7ba7d"
63+
}
64+
},
65+
{
66+
"scope": "entity.other.attribute-name",
67+
"settings": {
68+
"foreground": "#9cdcfe"
69+
}
70+
},
71+
{
72+
"scope": "entity.other.attribute-name.css",
73+
"settings": {
74+
"foreground": "#d7ba7d"
75+
}
76+
},
77+
{
78+
"scope": "invalid",
79+
"settings": {
80+
"foreground": "#f44747"
81+
}
82+
},
83+
{
84+
"scope": "markup.underline",
85+
"settings": {
86+
"fontStyle": "underline"
87+
}
88+
},
89+
{
90+
"scope": "markup.bold",
91+
"settings": {
92+
"fontStyle": "bold"
93+
}
94+
},
95+
{
96+
"scope": "markup.heading",
97+
"settings": {
98+
"foreground": "#6796e6"
99+
}
100+
},
101+
{
102+
"scope": "markup.italic",
103+
"settings": {
104+
"fontStyle": "italic"
105+
}
106+
},
107+
{
108+
"scope": "meta.selector",
109+
"settings": {
110+
"foreground": "#d7ba7d"
111+
}
112+
},
113+
{
114+
"scope": "meta.tag",
115+
"settings": {
116+
"foreground": "#808080"
117+
}
118+
},
119+
{
120+
"scope": "meta.preprocessor",
121+
"settings": {
122+
"foreground": "#569cd6"
123+
}
124+
},
125+
{
126+
"scope": "meta.preprocessor.string",
127+
"settings": {
128+
"foreground": "#ce9178"
129+
}
130+
},
131+
{
132+
"scope": "meta.preprocessor.numeric",
133+
"settings": {
134+
"foreground": "#b5cea8"
135+
}
136+
},
137+
{
138+
"scope": "meta.structure.dictionary.key.python",
139+
"settings": {
140+
"foreground": "#9cdcfe"
141+
}
142+
},
143+
{
144+
"scope": "storage",
145+
"settings": {
146+
"foreground": "#569cd6"
147+
}
148+
},
149+
{
150+
"scope": "storage.type",
151+
"settings": {
152+
"foreground": "#569cd6"
153+
}
154+
},
155+
{
156+
"scope": "storage.modifier",
157+
"settings": {
158+
"foreground": "#569cd6"
159+
}
160+
},
161+
{
162+
"scope": "string",
163+
"settings": {
164+
"foreground": "#ce9178"
165+
}
166+
},
167+
{
168+
"scope": "string.tag",
169+
"settings": {
170+
"foreground": "#ce9178"
171+
}
172+
},
173+
{
174+
"scope": "string.value",
175+
"settings": {
176+
"foreground": "#ce9178"
177+
}
178+
},
179+
{
180+
"scope": "string.regexp",
181+
"settings": {
182+
"foreground": "#d16969"
183+
}
184+
},
185+
{
186+
"scope": "support.type.property-name",
187+
"settings": {
188+
"foreground": "#d4d4d4"
189+
}
190+
},
191+
{
192+
"scope": "keyword",
193+
"settings": {
194+
"foreground": "#569cd6"
195+
}
196+
},
197+
{
198+
"scope": "keyword.control",
199+
"settings": {
200+
"foreground": "#569cd6"
201+
}
202+
},
203+
{
204+
"scope": "keyword.control.less",
205+
"settings": {
206+
"foreground": "#d7ba7d"
207+
}
208+
},
209+
{
210+
"scope": "keyword.operator",
211+
"settings": {
212+
"foreground": "#d4d4d4"
213+
}
214+
},
215+
{
216+
"scope": "keyword.operator.new",
217+
"settings": {
218+
"foreground": "#569cd6"
219+
}
220+
},
221+
{
222+
"scope": "keyword.other.unit",
223+
"settings": {
224+
"foreground": "#b5cea8"
225+
}
226+
}
227+
]
228+
}

0 commit comments

Comments
 (0)