Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/editor/standalone/common/themes.ts
3296 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { editorActiveIndentGuide1, editorIndentGuide1 } from '../../common/core/editorColorRegistry.js';
7
import { IStandaloneThemeData } from './standaloneTheme.js';
8
import { editorBackground, editorForeground, editorInactiveSelection, editorSelectionHighlight } from '../../../platform/theme/common/colorRegistry.js';
9
10
/* -------------------------------- Begin vs theme -------------------------------- */
11
export const vs: IStandaloneThemeData = {
12
base: 'vs',
13
inherit: false,
14
rules: [
15
{ token: '', foreground: '000000', background: 'fffffe' },
16
{ token: 'invalid', foreground: 'cd3131' },
17
{ token: 'emphasis', fontStyle: 'italic' },
18
{ token: 'strong', fontStyle: 'bold' },
19
20
{ token: 'variable', foreground: '001188' },
21
{ token: 'variable.predefined', foreground: '4864AA' },
22
{ token: 'constant', foreground: 'dd0000' },
23
{ token: 'comment', foreground: '008000' },
24
{ token: 'number', foreground: '098658' },
25
{ token: 'number.hex', foreground: '3030c0' },
26
{ token: 'regexp', foreground: '800000' },
27
{ token: 'annotation', foreground: '808080' },
28
{ token: 'type', foreground: '008080' },
29
30
{ token: 'delimiter', foreground: '000000' },
31
{ token: 'delimiter.html', foreground: '383838' },
32
{ token: 'delimiter.xml', foreground: '0000FF' },
33
34
{ token: 'tag', foreground: '800000' },
35
{ token: 'tag.id.pug', foreground: '4F76AC' },
36
{ token: 'tag.class.pug', foreground: '4F76AC' },
37
{ token: 'meta.scss', foreground: '800000' },
38
{ token: 'metatag', foreground: 'e00000' },
39
{ token: 'metatag.content.html', foreground: 'FF0000' },
40
{ token: 'metatag.html', foreground: '808080' },
41
{ token: 'metatag.xml', foreground: '808080' },
42
{ token: 'metatag.php', fontStyle: 'bold' },
43
44
{ token: 'key', foreground: '863B00' },
45
{ token: 'string.key.json', foreground: 'A31515' },
46
{ token: 'string.value.json', foreground: '0451A5' },
47
48
{ token: 'attribute.name', foreground: 'FF0000' },
49
{ token: 'attribute.value', foreground: '0451A5' },
50
{ token: 'attribute.value.number', foreground: '098658' },
51
{ token: 'attribute.value.unit', foreground: '098658' },
52
{ token: 'attribute.value.html', foreground: '0000FF' },
53
{ token: 'attribute.value.xml', foreground: '0000FF' },
54
55
{ token: 'string', foreground: 'A31515' },
56
{ token: 'string.html', foreground: '0000FF' },
57
{ token: 'string.sql', foreground: 'FF0000' },
58
{ token: 'string.yaml', foreground: '0451A5' },
59
60
{ token: 'keyword', foreground: '0000FF' },
61
{ token: 'keyword.json', foreground: '0451A5' },
62
{ token: 'keyword.flow', foreground: 'AF00DB' },
63
{ token: 'keyword.flow.scss', foreground: '0000FF' },
64
65
{ token: 'operator.scss', foreground: '666666' },
66
{ token: 'operator.sql', foreground: '778899' },
67
{ token: 'operator.swift', foreground: '666666' },
68
{ token: 'predefined.sql', foreground: 'C700C7' },
69
],
70
colors: {
71
[editorBackground]: '#FFFFFE',
72
[editorForeground]: '#000000',
73
[editorInactiveSelection]: '#E5EBF1',
74
[editorIndentGuide1]: '#D3D3D3',
75
[editorActiveIndentGuide1]: '#939393',
76
[editorSelectionHighlight]: '#ADD6FF4D'
77
}
78
};
79
/* -------------------------------- End vs theme -------------------------------- */
80
81
82
/* -------------------------------- Begin vs-dark theme -------------------------------- */
83
export const vs_dark: IStandaloneThemeData = {
84
base: 'vs-dark',
85
inherit: false,
86
rules: [
87
{ token: '', foreground: 'D4D4D4', background: '1E1E1E' },
88
{ token: 'invalid', foreground: 'f44747' },
89
{ token: 'emphasis', fontStyle: 'italic' },
90
{ token: 'strong', fontStyle: 'bold' },
91
92
{ token: 'variable', foreground: '74B0DF' },
93
{ token: 'variable.predefined', foreground: '4864AA' },
94
{ token: 'variable.parameter', foreground: '9CDCFE' },
95
{ token: 'constant', foreground: '569CD6' },
96
{ token: 'comment', foreground: '608B4E' },
97
{ token: 'number', foreground: 'B5CEA8' },
98
{ token: 'number.hex', foreground: '5BB498' },
99
{ token: 'regexp', foreground: 'B46695' },
100
{ token: 'annotation', foreground: 'cc6666' },
101
{ token: 'type', foreground: '3DC9B0' },
102
103
{ token: 'delimiter', foreground: 'DCDCDC' },
104
{ token: 'delimiter.html', foreground: '808080' },
105
{ token: 'delimiter.xml', foreground: '808080' },
106
107
{ token: 'tag', foreground: '569CD6' },
108
{ token: 'tag.id.pug', foreground: '4F76AC' },
109
{ token: 'tag.class.pug', foreground: '4F76AC' },
110
{ token: 'meta.scss', foreground: 'A79873' },
111
{ token: 'meta.tag', foreground: 'CE9178' },
112
{ token: 'metatag', foreground: 'DD6A6F' },
113
{ token: 'metatag.content.html', foreground: '9CDCFE' },
114
{ token: 'metatag.html', foreground: '569CD6' },
115
{ token: 'metatag.xml', foreground: '569CD6' },
116
{ token: 'metatag.php', fontStyle: 'bold' },
117
118
{ token: 'key', foreground: '9CDCFE' },
119
{ token: 'string.key.json', foreground: '9CDCFE' },
120
{ token: 'string.value.json', foreground: 'CE9178' },
121
122
{ token: 'attribute.name', foreground: '9CDCFE' },
123
{ token: 'attribute.value', foreground: 'CE9178' },
124
{ token: 'attribute.value.number.css', foreground: 'B5CEA8' },
125
{ token: 'attribute.value.unit.css', foreground: 'B5CEA8' },
126
{ token: 'attribute.value.hex.css', foreground: 'D4D4D4' },
127
128
{ token: 'string', foreground: 'CE9178' },
129
{ token: 'string.sql', foreground: 'FF0000' },
130
131
{ token: 'keyword', foreground: '569CD6' },
132
{ token: 'keyword.flow', foreground: 'C586C0' },
133
{ token: 'keyword.json', foreground: 'CE9178' },
134
{ token: 'keyword.flow.scss', foreground: '569CD6' },
135
136
{ token: 'operator.scss', foreground: '909090' },
137
{ token: 'operator.sql', foreground: '778899' },
138
{ token: 'operator.swift', foreground: '909090' },
139
{ token: 'predefined.sql', foreground: 'FF00FF' },
140
],
141
colors: {
142
[editorBackground]: '#1E1E1E',
143
[editorForeground]: '#D4D4D4',
144
[editorInactiveSelection]: '#3A3D41',
145
[editorIndentGuide1]: '#404040',
146
[editorActiveIndentGuide1]: '#707070',
147
[editorSelectionHighlight]: '#ADD6FF26'
148
}
149
};
150
/* -------------------------------- End vs-dark theme -------------------------------- */
151
152
153
154
/* -------------------------------- Begin hc-black theme -------------------------------- */
155
export const hc_black: IStandaloneThemeData = {
156
base: 'hc-black',
157
inherit: false,
158
rules: [
159
{ token: '', foreground: 'FFFFFF', background: '000000' },
160
{ token: 'invalid', foreground: 'f44747' },
161
{ token: 'emphasis', fontStyle: 'italic' },
162
{ token: 'strong', fontStyle: 'bold' },
163
164
{ token: 'variable', foreground: '1AEBFF' },
165
{ token: 'variable.parameter', foreground: '9CDCFE' },
166
{ token: 'constant', foreground: '569CD6' },
167
{ token: 'comment', foreground: '608B4E' },
168
{ token: 'number', foreground: 'FFFFFF' },
169
{ token: 'regexp', foreground: 'C0C0C0' },
170
{ token: 'annotation', foreground: '569CD6' },
171
{ token: 'type', foreground: '3DC9B0' },
172
173
{ token: 'delimiter', foreground: 'FFFF00' },
174
{ token: 'delimiter.html', foreground: 'FFFF00' },
175
176
{ token: 'tag', foreground: '569CD6' },
177
{ token: 'tag.id.pug', foreground: '4F76AC' },
178
{ token: 'tag.class.pug', foreground: '4F76AC' },
179
{ token: 'meta', foreground: 'D4D4D4' },
180
{ token: 'meta.tag', foreground: 'CE9178' },
181
{ token: 'metatag', foreground: '569CD6' },
182
{ token: 'metatag.content.html', foreground: '1AEBFF' },
183
{ token: 'metatag.html', foreground: '569CD6' },
184
{ token: 'metatag.xml', foreground: '569CD6' },
185
{ token: 'metatag.php', fontStyle: 'bold' },
186
187
{ token: 'key', foreground: '9CDCFE' },
188
{ token: 'string.key', foreground: '9CDCFE' },
189
{ token: 'string.value', foreground: 'CE9178' },
190
191
{ token: 'attribute.name', foreground: '569CD6' },
192
{ token: 'attribute.value', foreground: '3FF23F' },
193
194
{ token: 'string', foreground: 'CE9178' },
195
{ token: 'string.sql', foreground: 'FF0000' },
196
197
{ token: 'keyword', foreground: '569CD6' },
198
{ token: 'keyword.flow', foreground: 'C586C0' },
199
200
{ token: 'operator.sql', foreground: '778899' },
201
{ token: 'operator.swift', foreground: '909090' },
202
{ token: 'predefined.sql', foreground: 'FF00FF' },
203
],
204
colors: {
205
[editorBackground]: '#000000',
206
[editorForeground]: '#FFFFFF',
207
[editorIndentGuide1]: '#FFFFFF',
208
[editorActiveIndentGuide1]: '#FFFFFF',
209
}
210
};
211
/* -------------------------------- End hc-black theme -------------------------------- */
212
213
/* -------------------------------- Begin hc-light theme -------------------------------- */
214
export const hc_light: IStandaloneThemeData = {
215
base: 'hc-light',
216
inherit: false,
217
rules: [
218
{ token: '', foreground: '292929', background: 'FFFFFF' },
219
{ token: 'invalid', foreground: 'B5200D' },
220
{ token: 'emphasis', fontStyle: 'italic' },
221
{ token: 'strong', fontStyle: 'bold' },
222
223
{ token: 'variable', foreground: '264F70' },
224
{ token: 'variable.predefined', foreground: '4864AA' },
225
{ token: 'constant', foreground: 'dd0000' },
226
{ token: 'comment', foreground: '008000' },
227
{ token: 'number', foreground: '098658' },
228
{ token: 'number.hex', foreground: '3030c0' },
229
{ token: 'regexp', foreground: '800000' },
230
{ token: 'annotation', foreground: '808080' },
231
{ token: 'type', foreground: '008080' },
232
233
{ token: 'delimiter', foreground: '000000' },
234
{ token: 'delimiter.html', foreground: '383838' },
235
236
{ token: 'tag', foreground: '800000' },
237
{ token: 'tag.id.pug', foreground: '4F76AC' },
238
{ token: 'tag.class.pug', foreground: '4F76AC' },
239
{ token: 'meta.scss', foreground: '800000' },
240
{ token: 'metatag', foreground: 'e00000' },
241
{ token: 'metatag.content.html', foreground: 'B5200D' },
242
{ token: 'metatag.html', foreground: '808080' },
243
{ token: 'metatag.xml', foreground: '808080' },
244
{ token: 'metatag.php', fontStyle: 'bold' },
245
246
{ token: 'key', foreground: '863B00' },
247
{ token: 'string.key.json', foreground: 'A31515' },
248
{ token: 'string.value.json', foreground: '0451A5' },
249
250
{ token: 'attribute.name', foreground: '264F78' },
251
{ token: 'attribute.value', foreground: '0451A5' },
252
253
{ token: 'string', foreground: 'A31515' },
254
{ token: 'string.sql', foreground: 'B5200D' },
255
256
{ token: 'keyword', foreground: '0000FF' },
257
{ token: 'keyword.flow', foreground: 'AF00DB' },
258
259
{ token: 'operator.sql', foreground: '778899' },
260
{ token: 'operator.swift', foreground: '666666' },
261
{ token: 'predefined.sql', foreground: 'C700C7' },
262
],
263
colors: {
264
[editorBackground]: '#FFFFFF',
265
[editorForeground]: '#292929',
266
[editorIndentGuide1]: '#292929',
267
[editorActiveIndentGuide1]: '#292929',
268
}
269
};
270
/* -------------------------------- End hc-light theme -------------------------------- */
271
272
273