-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathvariables.css
More file actions
230 lines (185 loc) · 6.49 KB
/
Copy pathvariables.css
File metadata and controls
230 lines (185 loc) · 6.49 KB
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
:root {
/* Code and UI font */
--line-height: 1.45;
--base-font-size: 13pt;
--code-font: "Source Code Pro", monospace;
--ui-font: "Helvetica Neue";
/* This palette pulls out most colors used across Hazel */
/* BASE */
--NONE: oklch(0% 0 0 / 0%); /* transparent */
--SAND: oklch(99% 0.012 90); /* code background */
--STONE: oklch(52% 0.03 220); /* code text */
--BLACK: oklch(0% 0 0); /* use sparingly */
/* SHALE - focal syntax and top level ui */
--BR1: oklch(85% 0.07 90); /* caret shard, token buffer*/
--BR2: oklch(from var(--BR1) 70% c h); /* exp shard arms */
--BR3: oklch(from var(--BR1) 60% c h); /* top ui accent */
--BR4: oklch(from var(--BR1) 50% c h); /* top ui accent */
/* CLAY - peripheral syntax */
--T1: oklch(97% 0.025 90); /* buffer shards */
--T2: oklch(from var(--T1) 94% c h); /* projector shards */
--T3: oklch(from var(--T1) 91% c h); /* result background */
--T4: oklch(from var(--T1) 88% c h); /* darker background */
/* MOLTEN - under construction */
--Y0: oklch(95% 0.05 90); /* menu fill */
--Y1: oklch(91% 0.11 95); /* selections */
--Y2: oklch(88% 0.2 95); /* explicit hole */
--Y3: oklch(71% 0.2 95); /* incomplete shards */
/* MAGMA - opportunities */
--R0: oklch(85% 0.1 30); /* broken shard fill */
--R1: oklch(60% 0.3 30); /* caret, error stroke */
--R2: oklch(40% 0.3 30); /* error text, broken shard text
/* GLASS - sorts */
--TYP: oklch(60% 0.2 300);
--PAT: oklch(from var(--TYP) l c calc(h - 1 * 75));
--TPAT: var(--PAT);
--LABEL: oklch(60% 0.2 180);
/* AURA - docs highlighting */
--highlight-a: oklch(0.95 0.07 360);
--highlight-b: oklch(from var(--highlight-a) l c calc(h - 1 * 120));
--highlight-c: oklch(from var(--highlight-a) l c calc(h - 2 * 120));
/* MOSS - affirmations */
--G0: oklch(70% 0.15 150); /* page title, passing tests */
--G1: oklch(85% 0.15 150); /* ! passing tests hover */
--G2: oklch(80% 0.05 150); /* ! comments */
--GB0: oklch(70% 0.05 120); /* ! nut menu active */
--GB1: oklch(45% 0.05 120); /* ! nut menu fill */
/* FREE PARKING - ??? */
--textarea-v-stripe: oklch(78% 0.14 6 / 55%);
--textarea-h-stripe: oklch(87% 0.07 246);
--textarea-h-strip-selected: oklch(68% 0.14 76 / 30%);
--SHADOW: oklch(50% 0.1 90 / 33%);
--ERRHOLE: oklch(96% 0.02 47); /* temporary due to child arms */
--CREASE: oklch(0% 0 0 / 40%);
/* CODE BACKGROUND */
--main-bkg: var(--T3);
--light-page-color: var(--menu-item-hover-bkg);
--cell-active: var(--SAND);
--main-scroll-thumb: var(--BR1);
--main-scroll-track: var(--NONE);
--cell-selected-accent: var(--R1);
/* CODE DECO */
--caret-color: var(--R1);
--error-hole-stroke: var(--R1);
/* CODE TOKENS */
--token-exp: var(--STONE);
--token-pat: var(--PAT);
--token-typ: var(--TYP);
--token-tpat: var(--TPAT);
--token-label: var(--LABEL);
--token-string-lit: var(--Y3);
--token-comment: var(--G2);
--token-incomplete: var(--Y3);
--token-inconsistent: var(--token-exp);
--token-buffer: var(--BR1);
--token-explicit-hole: var(--Y2);
--token-explicit-hole-shadow: var(--BLACK);
--token-secondary: var(--shard-exp);
--token-rul: var(--token-exp);
--token-any: var(--R2);
/* CODE SHARDS */
--shard-caret-exp: var(--T2);
--shard-lines-exp: var(--BR1);
--shard-exp: var(--T2);
--shard-caret-pat: oklch(from var(--token-pat) 95% calc(c/4) h);
--shard-caret-typ: oklch(from var(--token-typ) 95% calc(c/4) h);
--shard-caret-tpat: oklch(from var(--token-tpat) 95% calc(c/4) h);
--shard-pat: var(--shard-caret-pat);
--shard-typ: var(--shard-caret-typ);
--shard-tpat: var(--shard-caret-tpat);
--shard-selected: var(--Y1);
--shard-selected-expanded: var(--Y0);
--shard-buffer: var(--T1);
--shard_projector: var(--T2);
--shard-rul: var(--shard-exp);
--shard-lines-rul: var(--shard-lines-exp);
--shadow-selected: var(--R0);
--shard-any: var(--shard-exp);
--shadow-any: var(--R0);
/* EMPTY HOLE DECO */
--empty-hole-stroke: var(--BR1);
--empty-hole-fill: var(--Y0);
/* ERROR HOLE DECO */
--error-hole-fill: var(--ERRHOLE);
/* BACKPACK DECO */
--backpack-selection: var(--shard-selected);
--backpack-joiner: var(--backpack-selection);
--backpack-genie: var(--backpack-selection);
--backpack-selection-outline: var(--light-page-color);
--backback-targets: var(--Y3);
/* PROJECTORS */
--textarea-indicated: var(--SAND);
--textarea-text: var(--BR3);
/* DYNAMICS UI */
--cell-result-text: var(--BR4);
--cell-result-border: var(--BR1);
--cell-result-hidden: var(--BR1); /* ?? */
--eval-exception: var(--test-fail-active);
--eval-exception-stroke: var(--R2);
--step-hole-color: var(--G0);
/* TOP-LEVEL UI */
--select-text: var(--BR4);
--editor-mode-text: var(--BR4);
--toggle-knob: var(--SAND);
--primary-accent: var(--G0);
--nut-menu: var(--GB1);
--nut-menu-active: var(--GB0);
--menu-bkg: var(--Y0);
--menu-item-hover-bkg: var(--SAND);
--menu-item-text: var(--STONE);
--menu-outline: var(--BR2);
--menu-icon: var(--BR4);
--menu-group-name: var(--menu-icon);
--menu-scroll-thumb: var(--menu-outline);
--menu-scroll-track: var(--BR1);
--menu-divider: var(--CREASE);
--menu-shadow: var(--SHADOW);
--ui-bkg: var(--T1);
--ci-icon-bkg: var(--BR3);
--ci-status-text: var(--BR4);
--ci-status-error-text: var(--R2);
--ci-status-error-bkg: var(--test-fail-active);
--context-inspector-colon: var(--BR2);
--ui-header-text: var(--BR3);
--explain-this-expander: var(--BR3);
/* EXERCISE MODE UI */
--cell-caption: var(--BR2);
--cell-result: var(--T3);
--cell-exercises-border: var(--BR2);
--test-panel-bkg: var(--menu-bkg);
--test-percent-text: var(--SAND);
--test-pass: var(--G0);
--test-pass-active: var(--G1);
--test-fail: var(--R1);
--test-fail-active: var(--R0);
--test-indet: var(--BR2);
--test-indet-active: var(--BR1);
/* Z-STACK */
/* BELOW CODE LEVEL */
--err-hole-arms-z: 1;
--tile-z: 2;
--err-hole-z: 3;
--select-z: 4;
--stepper-interactive-z: 5;
--projector-underlay-z: 9;
/* AT CODE LEVEL */
--code-text-z: 10;
--projector-z: 10;
/* ABOVE CODE LEVEL */
--backpack-targets-z: 11;
--projector-indicated-z: 11;
--projector-hover-z: 12;
--caret-z: 20;
--projector-overlay-z: 29;
/* TOP LEVEL UI */
--context-menu-z: 30; /* must be over num-samples badge */
--context-inspector-z: 30; /* keep below bottom bar */
--bottom-bar-z: 31;
--top-bar-z: 31;
--explainthis-expander-z: 31;
--backpack-z: 32;
--top-bar-hover-z: 33;
/* HACKS */
--modal-back-z: 100;
--modal-z: 101;
}