-
Notifications
You must be signed in to change notification settings - Fork 0
/
templates.js
100 lines (95 loc) · 2.76 KB
/
templates.js
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
// This file contains theme templates for each editor
const templates = {
sublime:
`
{
"name": "**TITLE**",
"variables":
{
**VARIABLES**
},
"globals":
{
"background": "var(c0)",
"foreground": "var(c1)",
"caret": "var(c1)",
"block_caret": "color(var(c1) alpha(0.20))",
"selection": "color(var(c1) alpha(0.20))",
"misspelling": "var(c6)",
"line_highlight": "#00000000",
"shadow": "#00000000",
"shadow_width": "1",
},
"rules":
[
{
"name": "Operators",
"scope": "keyword.operator",
"foreground": "var(c1)",
},
{
"name": "Types",
"scope": "storage.type, storage.modifier",
"foreground": "var(c2)",
},
{
"name": "Procedures, Keywords",
"scope": "entity.name.function, keyword, keyword.declaration.type, variable.function",
"foreground": "var(c3)",
},
{
"name": "Constants, Strings",
"scope": "constant, string, string.unquoted",
"foreground": "var(c4)",
},
{
"name": "Pre-Processor, Special, Addition",
"scope": "meta.preprocessor, meta.annotation, keyword.other.import, keyword.control.import, constant.character, markup.inserted, markup.inserted.diff",
"foreground": "var(c5)",
},
{
"name": "Errors, Removal",
"scope": "invalid.deprecated, markup.deleted, markup.deleted.diff",
"foreground": "var(c6)",
},
{
"name": "Comment",
"scope": "comment",
"foreground": "var(c7)",
},
]
}
`,
lite:
`
local style = require "core.style"
local common = require "core.common"
local scheme = {
**VARIABLES**
}
style.background = scheme.c0
style.background2 = scheme.c0
style.background3 = scheme.c0
style.text = scheme.c1
style.caret = scheme.c1
style.accent = scheme.c3
style.dim = scheme.c3
style.divider = scheme.c0
style.selection = scheme.c7
style.line_number = scheme.c1
style.line_number2 = scheme.c3
style.line_highlight = scheme.c0
style.scrollbar = scheme.c1
style.scrollbar2 = scheme.c3
style.syntax["normal"] = scheme.c1
style.syntax["symbol"] = scheme.c1
style.syntax["comment"] = scheme.c7
style.syntax["keyword"] = scheme.c3
style.syntax["keyword2"] = scheme.c2
style.syntax["number"] = scheme.c4
style.syntax["literal"] = scheme.c4
style.syntax["string"] = scheme.c4
style.syntax["operator"] = scheme.c1
style.syntax["function"] = scheme.c2
`,
}