-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrsms-dark.sublime-color-scheme
334 lines (309 loc) · 11.4 KB
/
rsms-dark.sublime-color-scheme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
{
"name": "rsms dark",
"author": "rsms",
"variables": {
"red": "hsl(5, 100%, 50%)",
"green": "hsl(150, 100%, 43%)",
"blue": "hsl(210, 100%, 50%)",
"orange": "hsl(27, 100%, 50%)",
"yellow": "hsl(60, 100%, 50%)",
"cyan": "hsl(180, 100%, 50%)",
// "transparent": "#ff000000", // note: ff needed to force transparency
"fg": "#fff",
"bg": "hsl(50, 3%, 10%)",
"unimportant": "color(var(fg) alpha(0.4))",
"cursor": "hsl(320, 90%, 70%)",
"accent": "var(cursor)",
"selection": "hsl(204, 100%, 70%)",
"type": "var(orange)",
"keyword": "var(blue)",
"data": "var(green)",
"meta": "color(var(data) saturation(15%) lightness(50%))",
"metaKeyword": "color(var(data) saturation(20%) lightness(60%))",
"header": "color(var(keyword) saturation(80%) lightness(70%))",
"fgBase": "color(var(fg) alpha(0.8))",
"typeRef": "color(var(type) saturation(100%) lightness(87%))",
"keywordBase": "color(var(keyword) saturation(40%) lightness(70%))",
"dataBase": "color(var(data) saturation(40%) lightness(70%))",
},
"globals": {
"foreground": "var(fgBase)",
"background": "var(bg)",
"accent": "var(accent)",
"caret": "var(cursor)",
// selection
"selection": "color(var(selection) alpha(0.3))",
"selection_border_width": "0",
"inactive_selection": "color(var(selection) alpha(0.2) saturation(0%))",
// gutter
// "gutter": "#000", // defaults to background
"gutter_foreground": "color(var(fg) alpha(0.3))",
"line_highlight": "color(var(fg) alpha(0.12))",
"line_diff_width": "2", // width of diff lines (in dp)
"line_diff_added": "var(green)",
"line_diff_modified": "color(var(yellow) lightness(65%))",
"line_diff_deleted": "color(var(red) lightness(60%))",
// guides
// alpha part controls color of guides (vertical tab lines)
"guide": "color(var(fg) alpha(0.06))",
// decorations
"highlight": "color(var(selection) alpha(0.4) lightness(70%))", // border of "other" matches
"find_highlight_foreground": "#000",
"find_highlight": "var(yellow)",
"misspelling": "color(var(red) lightness(65%))",
// "invisibles": "#000", // defaults to color(foreground alpha(0.35))
// brackets
"brackets_options": "foreground bold",
"brackets_foreground": "var(cursor)",
"bracket_contents_options": "foreground",
"bracket_contents_foreground": "var(cursor)",
// canvas shadow (indicates scroll)
"shadow": "color(var(cursor) alpha(0.8))",
"shadow_width": "5",
},
"rules": [
{
// Comments
"scope": "comment",
"foreground": "color(var(fg) alpha(0.35))",
// "foreground_adjust": "alpha(0.3)"
},
{
// meta keyword (may appear in comments)
"scope": "meta.keyword",
"foreground": "var(metaKeyword)",
},
{
// meta variable (may appear in comments)
"scope": "meta.variable",
"foreground": "var(meta)",
},
{
// meta variable (may appear in comments)
"scope": "meta.annotation",
"foreground": "var(meta)",
},
{
// Punctuation
// separator e.g. "," and ":" in `{ foo: bar, baz: cat }`
// terminator e.g. ";" in `x = y;`
// accessor e.g. "->" and "." in `foo->bar.baz`
// section e.g. "(" and ")" in `foo((baz)bar)`
// section e.g. "[" and "]" in `foo[bar]`
// section e.g. "{" and "}" in `if { ... }`
//
// keyword.operator.type.annotation is for TypeScript
// e.g. ":" in
// interface Foo {
// name :string
// }
//
// meta.interface keyword.operator.optional is for TypeScript
// e.g. "?" in
// interface Foo {
// name? :string
// }
//
"scope": "punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.section, keyword.operator.type.annotation, meta.interface keyword.operator.optional, meta.field.declaration keyword.operator.optional",
"foreground": "var(unimportant)"
},
// Type
{
// Type definition
// e.g. "Foo" in `typedef struct x Foo` (C)
"scope": "entity.name.type, entity.name.class, meta.type.declaration entity.name.type, entity.name.type.typedef",
"foreground": "color(var(type) lightness(70%) saturation(90%))"
},
{
// Type reference
// e.g. "Foo" in `function hello(f :Foo)` (TS)
"scope": "support.type, meta.type.annotation entity.name.type, source.go storage.type, entity.other.inherited-class",
"foreground": "var(typeRef)",
// void getThing(const Foo* p)
// const meta.function.parameters meta.group storage.modifier
// Foo meta.function.parameters meta.group
// p meta.function.parameters meta.group variable.parameter
},
// Keyword
{
// Keyword
// e.g. "if" and "else" in "if this else that"
// storage.type.type e.g. "type" in "type foo = int"
// storage.type.interface e.g. "interface" in "interface Foo {}"
// storage.type.class e.g. "class" in "class Foo {}"
// keyword.operator.new e.g. "new" in "new Error()"
"scope": "keyword, storage, storage.type.keyword, keyword.operator.new, keyword.operator.delete",
"foreground": "var(keywordBase)",
},
{
"scope": "keyword.operator",
// "foreground": "var(fgBase)"
"foreground": "color(var(orange) lightness(80%))"
},
// Function
{ // Function definitions
"scope": "entity.name.function - meta.function-call",
"foreground": "var(fg)",
"font_style": "bold",
},
// Data
{ // e.g. "foo" and 42
// Note: JS inside HTML uses punctuation.definition...
"scope": "string, constant, string punctuation.definition, constant punctuation.definition",
"foreground": "var(dataBase)"
},
{ // e.g. "%d" in `"age: %d"`
"scope": "string constant",
"foreground": "color(var(data) lightness(90%))"
},
{ // e.g. "name" in `"user: ${name}"`
"scope": "string variable",
"foreground": "var(fgBase)"
},
{ // regexp
"scope": "string.regexp",
"background": "color(var(keyword) alpha(0.1) lightness(60%))"
},
// {
// "scope": "constant.language",
// "foreground": [
// "color(var(yellow) blend(#0f0 70%) lightness(70%))", // nil, true
// "color(var(yellow) blend(#f00 70%) lightness(70%))", // undefined
// "color(var(yellow) blend(#f00 70%) lightness(70%))", // false, null
// "color(var(yellow) blend(#00f 70%) lightness(70%))"
// ],
// // Uses "Hashed Syntax Highlighting"
// // https://www.sublimetext.com/docs/3/color_schemes.html#hashed_syntax_highlighting
// },
// XML, HTML etc with tags
{
"scope": "meta.tag",
"foreground": "var(unimportant)"
},
{ // things inside tag
"scope": "meta.tag entity, meta.tag.attributes",
"foreground": "var(fgBase)"
},
{ // e.g. "a" in `<a href="hello"></a>`
"scope": "meta.tag entity.name",
"foreground": "var(typeRef)"
},
// Assembly
{
"scope": "storage.register, storage.other.register, constant.language.registers, entity.name.function.reg, constant.language.register",
"foreground": "var(typeRef)"
},
{
"scope": "source.asm entity.directive, source.asm support.function.directive",
"foreground": "color(var(yellow) lightness(80%))"
},
// Structured text
{
"scope": "text punctuation",
"foreground": "var(unimportant)"
},
{
"scope": "text markup.heading",
"foreground": "var(fg)",
"font_style": "bold"
},
{ "scope": "text markup.italic", "font_style": "italic" },
{ "scope": "text markup.bold", "font_style": "bold" },
{ "scope": "text markup.bold & markup.italic", "font_style": "bold italic" },
{ "scope": "text markup.strikethrough", "foreground": "var(unimportant)" },
{ // List bullets
// "-" in "- hello\n- world"
"scope": "text markup.list punctuation.definition.list_item",
"foreground": "color(var(yellow) lightness(80%))",
"font_style": "bold"
},
// { // List item
// "scope": "text markup.list meta.paragraph.list",
// "foreground": "color(var(yellow) lightness(92%))",
// },
{ // table header text
"scope": "text.html.markdown meta.table.header",
"foreground": "var(dataBase)",
},
{ // table lines
"scope": "text.html.markdown punctuation.separator.table-cell, text.html.markdown meta.table.header-separator punctuation.section.table-header",
"foreground": "var(dataBase)",
},
// link, e.g. [Title](url)
{ "scope": "text meta.link", "foreground": "var(fg)" },
{ "scope": "text meta.link markup.underline.link", "foreground": "var(unimportant)" },
// image, e.g. ![alt](url)
{ "scope": "text meta.image", "foreground": "var(unimportant)" },
{ "scope": "text meta.image markup.underline.link", "foreground": "var(fg)" },
{ // code, e.g. `...` and ```...```
"scope": "text markup.raw, text meta.code-fence.definition, text markup.raw.code-fence",
"background": "color(var(fg) alpha(0.07))"
},
{
"scope": "text meta.code-fence.definition constant",
"foreground": "var(unimportant)"
},
// -------------------------------------------------------------------------------------------
// diff
{
"scope": "source.diff",
"foreground": "color(var(fg) alpha(0.5))",
// "font_style": "italic underline"
},
{ // all meta, including e.g. "@@ -26,6 +26,7 @@"
"scope": "meta.diff",
"foreground": "color(var(cyan) saturation(40%) lightness(60%))",
"font_style": "italic"
},
{ // header
"scope": "meta.diff.header",
"foreground": "var(header)",
"font_style": "italic"
},
{ // header prev files e.g. "--- a.c"
"scope": "meta.diff.header.from-file",
"foreground": "color(var(red) saturation(90%) lightness(70%))",
},
{ // header next file e.g. "+++ a.c"
"scope": "meta.diff.header.to-file",
"foreground": "color(var(green) saturation(90%) lightness(60%))",
},
{ // removed line
"scope": "markup.deleted",
"foreground": "color(var(red) saturation(65%) lightness(70%))",
// "background": "color(var(red) saturation(10%) lightness(10%))",
// "background": "#151515",
"background": "color(var(bg) lightness(9%))",
},
{ // added line
"scope": "markup.inserted",
"foreground": "color(var(green) saturation(90%) lightness(80%))",
// "background": "color(var(green) saturation(10%) lightness(13%))",
},
// -------------------------------------------------------------------------------------------
// misc
{
"scope": "invalid.deprecated",
"foreground": "var(red)",
"font_style": "italic underline"
},
{
"scope": "invalid.illegal",
"foreground": "var(fg)",
"background": "var(red)"
},
// {
// "scope": "meta.block.go",
// "foreground": "var(fg)",
// "background": "var(red)"
// },
// Example of Hashed Syntax Highlighting
// https://www.sublimetext.com/docs/3/color_schemes.html#hashed_syntax_highlighting
// Note: It seems that "source - punctuation" means "source minus punctuation", but
// I'm not sure. I can't find documentation on this.
// {
// "scope": "source - punctuation - keyword",
// "foreground": ["hsl(200, 60%, 70%)", "hsl(330, 60%, 70%)"]
// }
]
}