@weasel-js/theme 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -14
- package/dist/chunk-LL2ERJPZ.js +175 -0
- package/dist/chunk-LL2ERJPZ.js.map +1 -0
- package/dist/chunk-PJMTWM34.js +6 -0
- package/dist/chunk-PJMTWM34.js.map +1 -0
- package/dist/chunk-XFCWYN2L.js +2401 -0
- package/dist/chunk-XFCWYN2L.js.map +1 -0
- package/dist/engine.d.ts +293 -0
- package/dist/engine.js +1789 -0
- package/dist/engine.js.map +1 -0
- package/dist/index.d.ts +49 -15
- package/dist/index.js +156 -116
- package/dist/index.js.map +1 -1
- package/dist/react.d.ts +7 -5
- package/dist/react.js +13 -18
- package/dist/react.js.map +1 -1
- package/dist/resolveTheme-CF8i5IHy.d.ts +766 -0
- package/dist/theme-DAZcQi_L.d.ts +191 -0
- package/dist/tokens.css +116 -42
- package/package.json +8 -1
- package/dist/chunk-VKZ4JIVX.js +0 -912
- package/dist/chunk-VKZ4JIVX.js.map +0 -1
- package/dist/resolveTheme-DiF2Ew25.d.ts +0 -296
|
@@ -0,0 +1,2401 @@
|
|
|
1
|
+
import { themeAxes, fullSelection, selectionKey, resolveTheme, isByAxis } from './chunk-LL2ERJPZ.js';
|
|
2
|
+
|
|
3
|
+
// src/generated/themes.ts
|
|
4
|
+
var THEMES = {
|
|
5
|
+
"weasel": {
|
|
6
|
+
name: "weasel",
|
|
7
|
+
axes: { "mode": { "default": "dark", "values": { "dark": { "scheme": "dark" }, "light": { "scheme": "light" } } }, "density": { "default": "comfortable", "values": { "compact": {}, "comfortable": {}, "roomy": {} } } },
|
|
8
|
+
selections: {
|
|
9
|
+
"mode=dark,density=compact": {
|
|
10
|
+
"--wzl-gray-50": "#f5f5f6",
|
|
11
|
+
"--wzl-gray-100": "#e6e7e9",
|
|
12
|
+
"--wzl-gray-200": "#c9cbcf",
|
|
13
|
+
"--wzl-gray-300": "#9ea1a8",
|
|
14
|
+
"--wzl-gray-400": "#6f737b",
|
|
15
|
+
"--wzl-gray-500": "#4d5058",
|
|
16
|
+
"--wzl-gray-600": "#383b42",
|
|
17
|
+
"--wzl-gray-700": "#25272c",
|
|
18
|
+
"--wzl-gray-800": "#181a1e",
|
|
19
|
+
"--wzl-gray-900": "#0e0f12",
|
|
20
|
+
"--wzl-accent-soft": "#1d1454",
|
|
21
|
+
"--wzl-accent-base": "#2e1f7a",
|
|
22
|
+
"--wzl-accent-strong": "#5841b8",
|
|
23
|
+
"--wzl-swatch-fuchsia": "#f641f7",
|
|
24
|
+
"--wzl-swatch-green": "#48e628",
|
|
25
|
+
"--wzl-swatch-sky": "#36bff2",
|
|
26
|
+
"--wzl-swatch-amber": "#e69628",
|
|
27
|
+
"--wzl-swatch-teal": "#3ee1cb",
|
|
28
|
+
"--wzl-swatch-red": "#f75034",
|
|
29
|
+
"--wzl-swatch-blue": "#407ef7",
|
|
30
|
+
"--wzl-swatch-citron": "#d5d23a",
|
|
31
|
+
"--wzl-swatch-rose": "#fa4590",
|
|
32
|
+
"--wzl-swatch-violet": "#955cf9",
|
|
33
|
+
"--wzl-font-size-2xs": "7px",
|
|
34
|
+
"--wzl-font-size-xs": "8px",
|
|
35
|
+
"--wzl-font-size-sm": "9px",
|
|
36
|
+
"--wzl-font-size-md": "11px",
|
|
37
|
+
"--wzl-font-size-lg": "14px",
|
|
38
|
+
"--wzl-font-size-xl": "17px",
|
|
39
|
+
"--wzl-space-1": "2px",
|
|
40
|
+
"--wzl-space-2": "4px",
|
|
41
|
+
"--wzl-space-3": "6px",
|
|
42
|
+
"--wzl-space-4": "8px",
|
|
43
|
+
"--wzl-space-5": "10px",
|
|
44
|
+
"--wzl-space-6": "12px",
|
|
45
|
+
"--wzl-space-7": "14px",
|
|
46
|
+
"--wzl-space-8": "16px",
|
|
47
|
+
"--wzl-surface": "#181a1e",
|
|
48
|
+
"--wzl-surface-raised": "#25272c",
|
|
49
|
+
"--wzl-surface-sunken": "#0e0f12",
|
|
50
|
+
"--wzl-fg": "#e6e7e9",
|
|
51
|
+
"--wzl-fg-muted": "#9ea1a8",
|
|
52
|
+
"--wzl-fg-subtle": "#6f737b",
|
|
53
|
+
"--wzl-border": "#25272c",
|
|
54
|
+
"--wzl-border-strong": "#6f737b",
|
|
55
|
+
"--wzl-accent-fg": "#5841b8",
|
|
56
|
+
"--wzl-fg-inverse": "#0e0f12",
|
|
57
|
+
"--wzl-shadow": "rgba(0, 0, 0, 0.6)",
|
|
58
|
+
"--wzl-danger-base": "#d94a3f",
|
|
59
|
+
"--wzl-warning-base": "#d99a3f",
|
|
60
|
+
"--wzl-success-base": "#2ec27e",
|
|
61
|
+
"--wzl-fg-on-accent": "#f5f5f6",
|
|
62
|
+
"--wzl-line-subtle": "rgba(230, 231, 233, 0.1)",
|
|
63
|
+
"--wzl-line": "rgba(230, 231, 233, 0.2)",
|
|
64
|
+
"--wzl-line-strong": "rgba(230, 231, 233, 0.4)",
|
|
65
|
+
"--wzl-curve-color": "#5841b8",
|
|
66
|
+
"--wzl-accent": "#2e1f7a",
|
|
67
|
+
"--wzl-accent-hover": "#5841b8",
|
|
68
|
+
"--wzl-danger": "#d94a3f",
|
|
69
|
+
"--wzl-warning": "#d99a3f",
|
|
70
|
+
"--wzl-success": "#2ec27e",
|
|
71
|
+
"--wzl-focus-ring": "#5841b8",
|
|
72
|
+
"--wzl-glass-tint": "#2e1f7a",
|
|
73
|
+
"--wzl-surface-hover": "rgba(230, 231, 233, 0.1)",
|
|
74
|
+
"--wzl-surface-pressed": "rgba(230, 231, 233, 0.18)",
|
|
75
|
+
"--wzl-radius-sm": "3px",
|
|
76
|
+
"--wzl-radius-md": "5px",
|
|
77
|
+
"--wzl-radius-lg": "14px",
|
|
78
|
+
"--wzl-radius-pill": "999px",
|
|
79
|
+
"--wzl-border-w": "1px",
|
|
80
|
+
"--wzl-line-width": "2px",
|
|
81
|
+
"--wzl-curve-width": "3px",
|
|
82
|
+
"--wzl-tb-height": "24px",
|
|
83
|
+
"--wzl-control-h-xs": "16px",
|
|
84
|
+
"--wzl-control-h-sm": "18px",
|
|
85
|
+
"--wzl-control-h": "20px",
|
|
86
|
+
"--wzl-icon-button-size": "20px",
|
|
87
|
+
"--wzl-slider-track-h": "4px",
|
|
88
|
+
"--wzl-slider-thumb-size": "8px",
|
|
89
|
+
"--wzl-slider-track-mix": "18%",
|
|
90
|
+
"--wzl-slider-thumb-mix": "70%",
|
|
91
|
+
"--wzl-handle-size": "9px",
|
|
92
|
+
"--wzl-handle-size-sm": "7px",
|
|
93
|
+
"--wzl-handle-size-lg": "10px",
|
|
94
|
+
"--wzl-field-pad-x": "8px",
|
|
95
|
+
"--wzl-glass-blur": "3px",
|
|
96
|
+
"--wzl-font-size": "11px",
|
|
97
|
+
"--wzl-tracking-none": "0",
|
|
98
|
+
"--wzl-tracking-wide": "0.06em",
|
|
99
|
+
"--wzl-tracking-wider": "0.08em",
|
|
100
|
+
"--wzl-z-toolbar": "10",
|
|
101
|
+
"--wzl-z-overlay": "20",
|
|
102
|
+
"--wzl-z-modal": "30",
|
|
103
|
+
"--wzl-leading-tight": "1",
|
|
104
|
+
"--wzl-leading-snug": "1.2",
|
|
105
|
+
"--wzl-leading": "1.4",
|
|
106
|
+
"--wzl-backdrop": "none",
|
|
107
|
+
"--wzl-motion-fast": "120ms",
|
|
108
|
+
"--wzl-motion-medium": "240ms",
|
|
109
|
+
"--wzl-ease-in-cubic": "cubic-bezier(0.32, 0, 0.67, 0)",
|
|
110
|
+
"--wzl-ease-out-cubic": "cubic-bezier(0.33, 1, 0.68, 1)",
|
|
111
|
+
"--wzl-ease-in-out-cubic": "cubic-bezier(0.65, 0, 0.35, 1)",
|
|
112
|
+
"--wzl-ease-out-back": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
113
|
+
"--wzl-font-ui": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
114
|
+
"--wzl-font-display": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
115
|
+
"--wzl-font-body": "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
116
|
+
"--wzl-font-mono": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
117
|
+
"--wzl-font-weight-light": "200",
|
|
118
|
+
"--wzl-font-weight-normal": "300",
|
|
119
|
+
"--wzl-font-weight-medium": "350",
|
|
120
|
+
"--wzl-font-weight-bold": "400",
|
|
121
|
+
"--wzl-space-xs": "4px",
|
|
122
|
+
"--wzl-space-sm": "8px",
|
|
123
|
+
"--wzl-space-md": "12px",
|
|
124
|
+
"--wzl-space-lg": "16px"
|
|
125
|
+
},
|
|
126
|
+
"mode=dark,density=comfortable": {
|
|
127
|
+
"--wzl-gray-50": "#f5f5f6",
|
|
128
|
+
"--wzl-gray-100": "#e6e7e9",
|
|
129
|
+
"--wzl-gray-200": "#c9cbcf",
|
|
130
|
+
"--wzl-gray-300": "#9ea1a8",
|
|
131
|
+
"--wzl-gray-400": "#6f737b",
|
|
132
|
+
"--wzl-gray-500": "#4d5058",
|
|
133
|
+
"--wzl-gray-600": "#383b42",
|
|
134
|
+
"--wzl-gray-700": "#25272c",
|
|
135
|
+
"--wzl-gray-800": "#181a1e",
|
|
136
|
+
"--wzl-gray-900": "#0e0f12",
|
|
137
|
+
"--wzl-accent-soft": "#1d1454",
|
|
138
|
+
"--wzl-accent-base": "#2e1f7a",
|
|
139
|
+
"--wzl-accent-strong": "#5841b8",
|
|
140
|
+
"--wzl-swatch-fuchsia": "#f641f7",
|
|
141
|
+
"--wzl-swatch-green": "#48e628",
|
|
142
|
+
"--wzl-swatch-sky": "#36bff2",
|
|
143
|
+
"--wzl-swatch-amber": "#e69628",
|
|
144
|
+
"--wzl-swatch-teal": "#3ee1cb",
|
|
145
|
+
"--wzl-swatch-red": "#f75034",
|
|
146
|
+
"--wzl-swatch-blue": "#407ef7",
|
|
147
|
+
"--wzl-swatch-citron": "#d5d23a",
|
|
148
|
+
"--wzl-swatch-rose": "#fa4590",
|
|
149
|
+
"--wzl-swatch-violet": "#955cf9",
|
|
150
|
+
"--wzl-font-size-2xs": "9px",
|
|
151
|
+
"--wzl-font-size-xs": "10px",
|
|
152
|
+
"--wzl-font-size-sm": "11px",
|
|
153
|
+
"--wzl-font-size-md": "13px",
|
|
154
|
+
"--wzl-font-size-lg": "16px",
|
|
155
|
+
"--wzl-font-size-xl": "20px",
|
|
156
|
+
"--wzl-space-1": "2px",
|
|
157
|
+
"--wzl-space-2": "4px",
|
|
158
|
+
"--wzl-space-3": "6px",
|
|
159
|
+
"--wzl-space-4": "8px",
|
|
160
|
+
"--wzl-space-5": "10px",
|
|
161
|
+
"--wzl-space-6": "12px",
|
|
162
|
+
"--wzl-space-7": "14px",
|
|
163
|
+
"--wzl-space-8": "16px",
|
|
164
|
+
"--wzl-surface": "#181a1e",
|
|
165
|
+
"--wzl-surface-raised": "#25272c",
|
|
166
|
+
"--wzl-surface-sunken": "#0e0f12",
|
|
167
|
+
"--wzl-fg": "#e6e7e9",
|
|
168
|
+
"--wzl-fg-muted": "#9ea1a8",
|
|
169
|
+
"--wzl-fg-subtle": "#6f737b",
|
|
170
|
+
"--wzl-border": "#25272c",
|
|
171
|
+
"--wzl-border-strong": "#6f737b",
|
|
172
|
+
"--wzl-accent-fg": "#5841b8",
|
|
173
|
+
"--wzl-fg-inverse": "#0e0f12",
|
|
174
|
+
"--wzl-shadow": "rgba(0, 0, 0, 0.6)",
|
|
175
|
+
"--wzl-danger-base": "#d94a3f",
|
|
176
|
+
"--wzl-warning-base": "#d99a3f",
|
|
177
|
+
"--wzl-success-base": "#2ec27e",
|
|
178
|
+
"--wzl-fg-on-accent": "#f5f5f6",
|
|
179
|
+
"--wzl-line-subtle": "rgba(230, 231, 233, 0.1)",
|
|
180
|
+
"--wzl-line": "rgba(230, 231, 233, 0.2)",
|
|
181
|
+
"--wzl-line-strong": "rgba(230, 231, 233, 0.4)",
|
|
182
|
+
"--wzl-curve-color": "#5841b8",
|
|
183
|
+
"--wzl-accent": "#2e1f7a",
|
|
184
|
+
"--wzl-accent-hover": "#5841b8",
|
|
185
|
+
"--wzl-danger": "#d94a3f",
|
|
186
|
+
"--wzl-warning": "#d99a3f",
|
|
187
|
+
"--wzl-success": "#2ec27e",
|
|
188
|
+
"--wzl-focus-ring": "#5841b8",
|
|
189
|
+
"--wzl-glass-tint": "#2e1f7a",
|
|
190
|
+
"--wzl-surface-hover": "rgba(230, 231, 233, 0.1)",
|
|
191
|
+
"--wzl-surface-pressed": "rgba(230, 231, 233, 0.18)",
|
|
192
|
+
"--wzl-radius-sm": "3px",
|
|
193
|
+
"--wzl-radius-md": "5px",
|
|
194
|
+
"--wzl-radius-lg": "14px",
|
|
195
|
+
"--wzl-radius-pill": "999px",
|
|
196
|
+
"--wzl-border-w": "1px",
|
|
197
|
+
"--wzl-line-width": "2px",
|
|
198
|
+
"--wzl-curve-width": "3px",
|
|
199
|
+
"--wzl-tb-height": "28px",
|
|
200
|
+
"--wzl-control-h-xs": "18px",
|
|
201
|
+
"--wzl-control-h-sm": "20px",
|
|
202
|
+
"--wzl-control-h": "24px",
|
|
203
|
+
"--wzl-icon-button-size": "22px",
|
|
204
|
+
"--wzl-slider-track-h": "4px",
|
|
205
|
+
"--wzl-slider-thumb-size": "8px",
|
|
206
|
+
"--wzl-slider-track-mix": "18%",
|
|
207
|
+
"--wzl-slider-thumb-mix": "70%",
|
|
208
|
+
"--wzl-handle-size": "9px",
|
|
209
|
+
"--wzl-handle-size-sm": "7px",
|
|
210
|
+
"--wzl-handle-size-lg": "10px",
|
|
211
|
+
"--wzl-field-pad-x": "8px",
|
|
212
|
+
"--wzl-glass-blur": "3px",
|
|
213
|
+
"--wzl-font-size": "13px",
|
|
214
|
+
"--wzl-tracking-none": "0",
|
|
215
|
+
"--wzl-tracking-wide": "0.06em",
|
|
216
|
+
"--wzl-tracking-wider": "0.08em",
|
|
217
|
+
"--wzl-z-toolbar": "10",
|
|
218
|
+
"--wzl-z-overlay": "20",
|
|
219
|
+
"--wzl-z-modal": "30",
|
|
220
|
+
"--wzl-leading-tight": "1",
|
|
221
|
+
"--wzl-leading-snug": "1.2",
|
|
222
|
+
"--wzl-leading": "1.4",
|
|
223
|
+
"--wzl-backdrop": "none",
|
|
224
|
+
"--wzl-motion-fast": "120ms",
|
|
225
|
+
"--wzl-motion-medium": "240ms",
|
|
226
|
+
"--wzl-ease-in-cubic": "cubic-bezier(0.32, 0, 0.67, 0)",
|
|
227
|
+
"--wzl-ease-out-cubic": "cubic-bezier(0.33, 1, 0.68, 1)",
|
|
228
|
+
"--wzl-ease-in-out-cubic": "cubic-bezier(0.65, 0, 0.35, 1)",
|
|
229
|
+
"--wzl-ease-out-back": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
230
|
+
"--wzl-font-ui": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
231
|
+
"--wzl-font-display": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
232
|
+
"--wzl-font-body": "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
233
|
+
"--wzl-font-mono": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
234
|
+
"--wzl-font-weight-light": "200",
|
|
235
|
+
"--wzl-font-weight-normal": "300",
|
|
236
|
+
"--wzl-font-weight-medium": "350",
|
|
237
|
+
"--wzl-font-weight-bold": "400",
|
|
238
|
+
"--wzl-space-xs": "4px",
|
|
239
|
+
"--wzl-space-sm": "8px",
|
|
240
|
+
"--wzl-space-md": "12px",
|
|
241
|
+
"--wzl-space-lg": "16px"
|
|
242
|
+
},
|
|
243
|
+
"mode=dark,density=roomy": {
|
|
244
|
+
"--wzl-gray-50": "#f5f5f6",
|
|
245
|
+
"--wzl-gray-100": "#e6e7e9",
|
|
246
|
+
"--wzl-gray-200": "#c9cbcf",
|
|
247
|
+
"--wzl-gray-300": "#9ea1a8",
|
|
248
|
+
"--wzl-gray-400": "#6f737b",
|
|
249
|
+
"--wzl-gray-500": "#4d5058",
|
|
250
|
+
"--wzl-gray-600": "#383b42",
|
|
251
|
+
"--wzl-gray-700": "#25272c",
|
|
252
|
+
"--wzl-gray-800": "#181a1e",
|
|
253
|
+
"--wzl-gray-900": "#0e0f12",
|
|
254
|
+
"--wzl-accent-soft": "#1d1454",
|
|
255
|
+
"--wzl-accent-base": "#2e1f7a",
|
|
256
|
+
"--wzl-accent-strong": "#5841b8",
|
|
257
|
+
"--wzl-swatch-fuchsia": "#f641f7",
|
|
258
|
+
"--wzl-swatch-green": "#48e628",
|
|
259
|
+
"--wzl-swatch-sky": "#36bff2",
|
|
260
|
+
"--wzl-swatch-amber": "#e69628",
|
|
261
|
+
"--wzl-swatch-teal": "#3ee1cb",
|
|
262
|
+
"--wzl-swatch-red": "#f75034",
|
|
263
|
+
"--wzl-swatch-blue": "#407ef7",
|
|
264
|
+
"--wzl-swatch-citron": "#d5d23a",
|
|
265
|
+
"--wzl-swatch-rose": "#fa4590",
|
|
266
|
+
"--wzl-swatch-violet": "#955cf9",
|
|
267
|
+
"--wzl-font-size-2xs": "10px",
|
|
268
|
+
"--wzl-font-size-xs": "12px",
|
|
269
|
+
"--wzl-font-size-sm": "13px",
|
|
270
|
+
"--wzl-font-size-md": "15px",
|
|
271
|
+
"--wzl-font-size-lg": "18px",
|
|
272
|
+
"--wzl-font-size-xl": "23px",
|
|
273
|
+
"--wzl-space-1": "2px",
|
|
274
|
+
"--wzl-space-2": "4px",
|
|
275
|
+
"--wzl-space-3": "6px",
|
|
276
|
+
"--wzl-space-4": "8px",
|
|
277
|
+
"--wzl-space-5": "10px",
|
|
278
|
+
"--wzl-space-6": "12px",
|
|
279
|
+
"--wzl-space-7": "14px",
|
|
280
|
+
"--wzl-space-8": "16px",
|
|
281
|
+
"--wzl-surface": "#181a1e",
|
|
282
|
+
"--wzl-surface-raised": "#25272c",
|
|
283
|
+
"--wzl-surface-sunken": "#0e0f12",
|
|
284
|
+
"--wzl-fg": "#e6e7e9",
|
|
285
|
+
"--wzl-fg-muted": "#9ea1a8",
|
|
286
|
+
"--wzl-fg-subtle": "#6f737b",
|
|
287
|
+
"--wzl-border": "#25272c",
|
|
288
|
+
"--wzl-border-strong": "#6f737b",
|
|
289
|
+
"--wzl-accent-fg": "#5841b8",
|
|
290
|
+
"--wzl-fg-inverse": "#0e0f12",
|
|
291
|
+
"--wzl-shadow": "rgba(0, 0, 0, 0.6)",
|
|
292
|
+
"--wzl-danger-base": "#d94a3f",
|
|
293
|
+
"--wzl-warning-base": "#d99a3f",
|
|
294
|
+
"--wzl-success-base": "#2ec27e",
|
|
295
|
+
"--wzl-fg-on-accent": "#f5f5f6",
|
|
296
|
+
"--wzl-line-subtle": "rgba(230, 231, 233, 0.1)",
|
|
297
|
+
"--wzl-line": "rgba(230, 231, 233, 0.2)",
|
|
298
|
+
"--wzl-line-strong": "rgba(230, 231, 233, 0.4)",
|
|
299
|
+
"--wzl-curve-color": "#5841b8",
|
|
300
|
+
"--wzl-accent": "#2e1f7a",
|
|
301
|
+
"--wzl-accent-hover": "#5841b8",
|
|
302
|
+
"--wzl-danger": "#d94a3f",
|
|
303
|
+
"--wzl-warning": "#d99a3f",
|
|
304
|
+
"--wzl-success": "#2ec27e",
|
|
305
|
+
"--wzl-focus-ring": "#5841b8",
|
|
306
|
+
"--wzl-glass-tint": "#2e1f7a",
|
|
307
|
+
"--wzl-surface-hover": "rgba(230, 231, 233, 0.1)",
|
|
308
|
+
"--wzl-surface-pressed": "rgba(230, 231, 233, 0.18)",
|
|
309
|
+
"--wzl-radius-sm": "3px",
|
|
310
|
+
"--wzl-radius-md": "5px",
|
|
311
|
+
"--wzl-radius-lg": "14px",
|
|
312
|
+
"--wzl-radius-pill": "999px",
|
|
313
|
+
"--wzl-border-w": "1px",
|
|
314
|
+
"--wzl-line-width": "2px",
|
|
315
|
+
"--wzl-curve-width": "3px",
|
|
316
|
+
"--wzl-tb-height": "32px",
|
|
317
|
+
"--wzl-control-h-xs": "22px",
|
|
318
|
+
"--wzl-control-h-sm": "24px",
|
|
319
|
+
"--wzl-control-h": "28px",
|
|
320
|
+
"--wzl-icon-button-size": "26px",
|
|
321
|
+
"--wzl-slider-track-h": "4px",
|
|
322
|
+
"--wzl-slider-thumb-size": "8px",
|
|
323
|
+
"--wzl-slider-track-mix": "18%",
|
|
324
|
+
"--wzl-slider-thumb-mix": "70%",
|
|
325
|
+
"--wzl-handle-size": "9px",
|
|
326
|
+
"--wzl-handle-size-sm": "7px",
|
|
327
|
+
"--wzl-handle-size-lg": "10px",
|
|
328
|
+
"--wzl-field-pad-x": "8px",
|
|
329
|
+
"--wzl-glass-blur": "3px",
|
|
330
|
+
"--wzl-font-size": "15px",
|
|
331
|
+
"--wzl-tracking-none": "0",
|
|
332
|
+
"--wzl-tracking-wide": "0.06em",
|
|
333
|
+
"--wzl-tracking-wider": "0.08em",
|
|
334
|
+
"--wzl-z-toolbar": "10",
|
|
335
|
+
"--wzl-z-overlay": "20",
|
|
336
|
+
"--wzl-z-modal": "30",
|
|
337
|
+
"--wzl-leading-tight": "1",
|
|
338
|
+
"--wzl-leading-snug": "1.2",
|
|
339
|
+
"--wzl-leading": "1.4",
|
|
340
|
+
"--wzl-backdrop": "none",
|
|
341
|
+
"--wzl-motion-fast": "120ms",
|
|
342
|
+
"--wzl-motion-medium": "240ms",
|
|
343
|
+
"--wzl-ease-in-cubic": "cubic-bezier(0.32, 0, 0.67, 0)",
|
|
344
|
+
"--wzl-ease-out-cubic": "cubic-bezier(0.33, 1, 0.68, 1)",
|
|
345
|
+
"--wzl-ease-in-out-cubic": "cubic-bezier(0.65, 0, 0.35, 1)",
|
|
346
|
+
"--wzl-ease-out-back": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
347
|
+
"--wzl-font-ui": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
348
|
+
"--wzl-font-display": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
349
|
+
"--wzl-font-body": "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
350
|
+
"--wzl-font-mono": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
351
|
+
"--wzl-font-weight-light": "200",
|
|
352
|
+
"--wzl-font-weight-normal": "300",
|
|
353
|
+
"--wzl-font-weight-medium": "350",
|
|
354
|
+
"--wzl-font-weight-bold": "400",
|
|
355
|
+
"--wzl-space-xs": "4px",
|
|
356
|
+
"--wzl-space-sm": "8px",
|
|
357
|
+
"--wzl-space-md": "12px",
|
|
358
|
+
"--wzl-space-lg": "16px"
|
|
359
|
+
},
|
|
360
|
+
"mode=light,density=compact": {
|
|
361
|
+
"--wzl-gray-50": "#f5f5f6",
|
|
362
|
+
"--wzl-gray-100": "#e6e7e9",
|
|
363
|
+
"--wzl-gray-200": "#c9cbcf",
|
|
364
|
+
"--wzl-gray-300": "#9ea1a8",
|
|
365
|
+
"--wzl-gray-400": "#6f737b",
|
|
366
|
+
"--wzl-gray-500": "#4d5058",
|
|
367
|
+
"--wzl-gray-600": "#383b42",
|
|
368
|
+
"--wzl-gray-700": "#25272c",
|
|
369
|
+
"--wzl-gray-800": "#181a1e",
|
|
370
|
+
"--wzl-gray-900": "#0e0f12",
|
|
371
|
+
"--wzl-accent-soft": "#1d1454",
|
|
372
|
+
"--wzl-accent-base": "#2e1f7a",
|
|
373
|
+
"--wzl-accent-strong": "#5841b8",
|
|
374
|
+
"--wzl-swatch-fuchsia": "#f641f7",
|
|
375
|
+
"--wzl-swatch-green": "#48e628",
|
|
376
|
+
"--wzl-swatch-sky": "#36bff2",
|
|
377
|
+
"--wzl-swatch-amber": "#e69628",
|
|
378
|
+
"--wzl-swatch-teal": "#3ee1cb",
|
|
379
|
+
"--wzl-swatch-red": "#f75034",
|
|
380
|
+
"--wzl-swatch-blue": "#407ef7",
|
|
381
|
+
"--wzl-swatch-citron": "#d5d23a",
|
|
382
|
+
"--wzl-swatch-rose": "#fa4590",
|
|
383
|
+
"--wzl-swatch-violet": "#955cf9",
|
|
384
|
+
"--wzl-font-size-2xs": "7px",
|
|
385
|
+
"--wzl-font-size-xs": "8px",
|
|
386
|
+
"--wzl-font-size-sm": "9px",
|
|
387
|
+
"--wzl-font-size-md": "11px",
|
|
388
|
+
"--wzl-font-size-lg": "14px",
|
|
389
|
+
"--wzl-font-size-xl": "17px",
|
|
390
|
+
"--wzl-space-1": "2px",
|
|
391
|
+
"--wzl-space-2": "4px",
|
|
392
|
+
"--wzl-space-3": "6px",
|
|
393
|
+
"--wzl-space-4": "8px",
|
|
394
|
+
"--wzl-space-5": "10px",
|
|
395
|
+
"--wzl-space-6": "12px",
|
|
396
|
+
"--wzl-space-7": "14px",
|
|
397
|
+
"--wzl-space-8": "16px",
|
|
398
|
+
"--wzl-surface": "#f5f5f6",
|
|
399
|
+
"--wzl-surface-raised": "#e6e7e9",
|
|
400
|
+
"--wzl-surface-sunken": "#c9cbcf",
|
|
401
|
+
"--wzl-fg": "#0e0f12",
|
|
402
|
+
"--wzl-fg-muted": "#383b42",
|
|
403
|
+
"--wzl-fg-subtle": "#4d5058",
|
|
404
|
+
"--wzl-border": "#c9cbcf",
|
|
405
|
+
"--wzl-border-strong": "#4d5058",
|
|
406
|
+
"--wzl-accent-fg": "#2e1f7a",
|
|
407
|
+
"--wzl-fg-inverse": "#f5f5f6",
|
|
408
|
+
"--wzl-shadow": "rgba(0, 0, 0, 0.18)",
|
|
409
|
+
"--wzl-danger-base": "#d94a3f",
|
|
410
|
+
"--wzl-warning-base": "#d99a3f",
|
|
411
|
+
"--wzl-success-base": "#2ec27e",
|
|
412
|
+
"--wzl-fg-on-accent": "#f5f5f6",
|
|
413
|
+
"--wzl-line-subtle": "rgba(14, 15, 18, 0.1)",
|
|
414
|
+
"--wzl-line": "rgba(14, 15, 18, 0.2)",
|
|
415
|
+
"--wzl-line-strong": "rgba(14, 15, 18, 0.4)",
|
|
416
|
+
"--wzl-curve-color": "#5841b8",
|
|
417
|
+
"--wzl-accent": "#2e1f7a",
|
|
418
|
+
"--wzl-accent-hover": "#5841b8",
|
|
419
|
+
"--wzl-danger": "#d94a3f",
|
|
420
|
+
"--wzl-warning": "#d99a3f",
|
|
421
|
+
"--wzl-success": "#2ec27e",
|
|
422
|
+
"--wzl-focus-ring": "#5841b8",
|
|
423
|
+
"--wzl-glass-tint": "#2e1f7a",
|
|
424
|
+
"--wzl-surface-hover": "rgba(14, 15, 18, 0.1)",
|
|
425
|
+
"--wzl-surface-pressed": "rgba(14, 15, 18, 0.18)",
|
|
426
|
+
"--wzl-radius-sm": "3px",
|
|
427
|
+
"--wzl-radius-md": "5px",
|
|
428
|
+
"--wzl-radius-lg": "14px",
|
|
429
|
+
"--wzl-radius-pill": "999px",
|
|
430
|
+
"--wzl-border-w": "1px",
|
|
431
|
+
"--wzl-line-width": "2px",
|
|
432
|
+
"--wzl-curve-width": "3px",
|
|
433
|
+
"--wzl-tb-height": "24px",
|
|
434
|
+
"--wzl-control-h-xs": "16px",
|
|
435
|
+
"--wzl-control-h-sm": "18px",
|
|
436
|
+
"--wzl-control-h": "20px",
|
|
437
|
+
"--wzl-icon-button-size": "20px",
|
|
438
|
+
"--wzl-slider-track-h": "4px",
|
|
439
|
+
"--wzl-slider-thumb-size": "8px",
|
|
440
|
+
"--wzl-slider-track-mix": "18%",
|
|
441
|
+
"--wzl-slider-thumb-mix": "70%",
|
|
442
|
+
"--wzl-handle-size": "9px",
|
|
443
|
+
"--wzl-handle-size-sm": "7px",
|
|
444
|
+
"--wzl-handle-size-lg": "10px",
|
|
445
|
+
"--wzl-field-pad-x": "8px",
|
|
446
|
+
"--wzl-glass-blur": "3px",
|
|
447
|
+
"--wzl-font-size": "11px",
|
|
448
|
+
"--wzl-tracking-none": "0",
|
|
449
|
+
"--wzl-tracking-wide": "0.06em",
|
|
450
|
+
"--wzl-tracking-wider": "0.08em",
|
|
451
|
+
"--wzl-z-toolbar": "10",
|
|
452
|
+
"--wzl-z-overlay": "20",
|
|
453
|
+
"--wzl-z-modal": "30",
|
|
454
|
+
"--wzl-leading-tight": "1",
|
|
455
|
+
"--wzl-leading-snug": "1.2",
|
|
456
|
+
"--wzl-leading": "1.4",
|
|
457
|
+
"--wzl-backdrop": "none",
|
|
458
|
+
"--wzl-motion-fast": "120ms",
|
|
459
|
+
"--wzl-motion-medium": "240ms",
|
|
460
|
+
"--wzl-ease-in-cubic": "cubic-bezier(0.32, 0, 0.67, 0)",
|
|
461
|
+
"--wzl-ease-out-cubic": "cubic-bezier(0.33, 1, 0.68, 1)",
|
|
462
|
+
"--wzl-ease-in-out-cubic": "cubic-bezier(0.65, 0, 0.35, 1)",
|
|
463
|
+
"--wzl-ease-out-back": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
464
|
+
"--wzl-font-ui": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
465
|
+
"--wzl-font-display": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
466
|
+
"--wzl-font-body": "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
467
|
+
"--wzl-font-mono": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
468
|
+
"--wzl-font-weight-light": "200",
|
|
469
|
+
"--wzl-font-weight-normal": "300",
|
|
470
|
+
"--wzl-font-weight-medium": "350",
|
|
471
|
+
"--wzl-font-weight-bold": "400",
|
|
472
|
+
"--wzl-space-xs": "4px",
|
|
473
|
+
"--wzl-space-sm": "8px",
|
|
474
|
+
"--wzl-space-md": "12px",
|
|
475
|
+
"--wzl-space-lg": "16px"
|
|
476
|
+
},
|
|
477
|
+
"mode=light,density=comfortable": {
|
|
478
|
+
"--wzl-gray-50": "#f5f5f6",
|
|
479
|
+
"--wzl-gray-100": "#e6e7e9",
|
|
480
|
+
"--wzl-gray-200": "#c9cbcf",
|
|
481
|
+
"--wzl-gray-300": "#9ea1a8",
|
|
482
|
+
"--wzl-gray-400": "#6f737b",
|
|
483
|
+
"--wzl-gray-500": "#4d5058",
|
|
484
|
+
"--wzl-gray-600": "#383b42",
|
|
485
|
+
"--wzl-gray-700": "#25272c",
|
|
486
|
+
"--wzl-gray-800": "#181a1e",
|
|
487
|
+
"--wzl-gray-900": "#0e0f12",
|
|
488
|
+
"--wzl-accent-soft": "#1d1454",
|
|
489
|
+
"--wzl-accent-base": "#2e1f7a",
|
|
490
|
+
"--wzl-accent-strong": "#5841b8",
|
|
491
|
+
"--wzl-swatch-fuchsia": "#f641f7",
|
|
492
|
+
"--wzl-swatch-green": "#48e628",
|
|
493
|
+
"--wzl-swatch-sky": "#36bff2",
|
|
494
|
+
"--wzl-swatch-amber": "#e69628",
|
|
495
|
+
"--wzl-swatch-teal": "#3ee1cb",
|
|
496
|
+
"--wzl-swatch-red": "#f75034",
|
|
497
|
+
"--wzl-swatch-blue": "#407ef7",
|
|
498
|
+
"--wzl-swatch-citron": "#d5d23a",
|
|
499
|
+
"--wzl-swatch-rose": "#fa4590",
|
|
500
|
+
"--wzl-swatch-violet": "#955cf9",
|
|
501
|
+
"--wzl-font-size-2xs": "9px",
|
|
502
|
+
"--wzl-font-size-xs": "10px",
|
|
503
|
+
"--wzl-font-size-sm": "11px",
|
|
504
|
+
"--wzl-font-size-md": "13px",
|
|
505
|
+
"--wzl-font-size-lg": "16px",
|
|
506
|
+
"--wzl-font-size-xl": "20px",
|
|
507
|
+
"--wzl-space-1": "2px",
|
|
508
|
+
"--wzl-space-2": "4px",
|
|
509
|
+
"--wzl-space-3": "6px",
|
|
510
|
+
"--wzl-space-4": "8px",
|
|
511
|
+
"--wzl-space-5": "10px",
|
|
512
|
+
"--wzl-space-6": "12px",
|
|
513
|
+
"--wzl-space-7": "14px",
|
|
514
|
+
"--wzl-space-8": "16px",
|
|
515
|
+
"--wzl-surface": "#f5f5f6",
|
|
516
|
+
"--wzl-surface-raised": "#e6e7e9",
|
|
517
|
+
"--wzl-surface-sunken": "#c9cbcf",
|
|
518
|
+
"--wzl-fg": "#0e0f12",
|
|
519
|
+
"--wzl-fg-muted": "#383b42",
|
|
520
|
+
"--wzl-fg-subtle": "#4d5058",
|
|
521
|
+
"--wzl-border": "#c9cbcf",
|
|
522
|
+
"--wzl-border-strong": "#4d5058",
|
|
523
|
+
"--wzl-accent-fg": "#2e1f7a",
|
|
524
|
+
"--wzl-fg-inverse": "#f5f5f6",
|
|
525
|
+
"--wzl-shadow": "rgba(0, 0, 0, 0.18)",
|
|
526
|
+
"--wzl-danger-base": "#d94a3f",
|
|
527
|
+
"--wzl-warning-base": "#d99a3f",
|
|
528
|
+
"--wzl-success-base": "#2ec27e",
|
|
529
|
+
"--wzl-fg-on-accent": "#f5f5f6",
|
|
530
|
+
"--wzl-line-subtle": "rgba(14, 15, 18, 0.1)",
|
|
531
|
+
"--wzl-line": "rgba(14, 15, 18, 0.2)",
|
|
532
|
+
"--wzl-line-strong": "rgba(14, 15, 18, 0.4)",
|
|
533
|
+
"--wzl-curve-color": "#5841b8",
|
|
534
|
+
"--wzl-accent": "#2e1f7a",
|
|
535
|
+
"--wzl-accent-hover": "#5841b8",
|
|
536
|
+
"--wzl-danger": "#d94a3f",
|
|
537
|
+
"--wzl-warning": "#d99a3f",
|
|
538
|
+
"--wzl-success": "#2ec27e",
|
|
539
|
+
"--wzl-focus-ring": "#5841b8",
|
|
540
|
+
"--wzl-glass-tint": "#2e1f7a",
|
|
541
|
+
"--wzl-surface-hover": "rgba(14, 15, 18, 0.1)",
|
|
542
|
+
"--wzl-surface-pressed": "rgba(14, 15, 18, 0.18)",
|
|
543
|
+
"--wzl-radius-sm": "3px",
|
|
544
|
+
"--wzl-radius-md": "5px",
|
|
545
|
+
"--wzl-radius-lg": "14px",
|
|
546
|
+
"--wzl-radius-pill": "999px",
|
|
547
|
+
"--wzl-border-w": "1px",
|
|
548
|
+
"--wzl-line-width": "2px",
|
|
549
|
+
"--wzl-curve-width": "3px",
|
|
550
|
+
"--wzl-tb-height": "28px",
|
|
551
|
+
"--wzl-control-h-xs": "18px",
|
|
552
|
+
"--wzl-control-h-sm": "20px",
|
|
553
|
+
"--wzl-control-h": "24px",
|
|
554
|
+
"--wzl-icon-button-size": "22px",
|
|
555
|
+
"--wzl-slider-track-h": "4px",
|
|
556
|
+
"--wzl-slider-thumb-size": "8px",
|
|
557
|
+
"--wzl-slider-track-mix": "18%",
|
|
558
|
+
"--wzl-slider-thumb-mix": "70%",
|
|
559
|
+
"--wzl-handle-size": "9px",
|
|
560
|
+
"--wzl-handle-size-sm": "7px",
|
|
561
|
+
"--wzl-handle-size-lg": "10px",
|
|
562
|
+
"--wzl-field-pad-x": "8px",
|
|
563
|
+
"--wzl-glass-blur": "3px",
|
|
564
|
+
"--wzl-font-size": "13px",
|
|
565
|
+
"--wzl-tracking-none": "0",
|
|
566
|
+
"--wzl-tracking-wide": "0.06em",
|
|
567
|
+
"--wzl-tracking-wider": "0.08em",
|
|
568
|
+
"--wzl-z-toolbar": "10",
|
|
569
|
+
"--wzl-z-overlay": "20",
|
|
570
|
+
"--wzl-z-modal": "30",
|
|
571
|
+
"--wzl-leading-tight": "1",
|
|
572
|
+
"--wzl-leading-snug": "1.2",
|
|
573
|
+
"--wzl-leading": "1.4",
|
|
574
|
+
"--wzl-backdrop": "none",
|
|
575
|
+
"--wzl-motion-fast": "120ms",
|
|
576
|
+
"--wzl-motion-medium": "240ms",
|
|
577
|
+
"--wzl-ease-in-cubic": "cubic-bezier(0.32, 0, 0.67, 0)",
|
|
578
|
+
"--wzl-ease-out-cubic": "cubic-bezier(0.33, 1, 0.68, 1)",
|
|
579
|
+
"--wzl-ease-in-out-cubic": "cubic-bezier(0.65, 0, 0.35, 1)",
|
|
580
|
+
"--wzl-ease-out-back": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
581
|
+
"--wzl-font-ui": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
582
|
+
"--wzl-font-display": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
583
|
+
"--wzl-font-body": "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
584
|
+
"--wzl-font-mono": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
585
|
+
"--wzl-font-weight-light": "200",
|
|
586
|
+
"--wzl-font-weight-normal": "300",
|
|
587
|
+
"--wzl-font-weight-medium": "350",
|
|
588
|
+
"--wzl-font-weight-bold": "400",
|
|
589
|
+
"--wzl-space-xs": "4px",
|
|
590
|
+
"--wzl-space-sm": "8px",
|
|
591
|
+
"--wzl-space-md": "12px",
|
|
592
|
+
"--wzl-space-lg": "16px"
|
|
593
|
+
},
|
|
594
|
+
"mode=light,density=roomy": {
|
|
595
|
+
"--wzl-gray-50": "#f5f5f6",
|
|
596
|
+
"--wzl-gray-100": "#e6e7e9",
|
|
597
|
+
"--wzl-gray-200": "#c9cbcf",
|
|
598
|
+
"--wzl-gray-300": "#9ea1a8",
|
|
599
|
+
"--wzl-gray-400": "#6f737b",
|
|
600
|
+
"--wzl-gray-500": "#4d5058",
|
|
601
|
+
"--wzl-gray-600": "#383b42",
|
|
602
|
+
"--wzl-gray-700": "#25272c",
|
|
603
|
+
"--wzl-gray-800": "#181a1e",
|
|
604
|
+
"--wzl-gray-900": "#0e0f12",
|
|
605
|
+
"--wzl-accent-soft": "#1d1454",
|
|
606
|
+
"--wzl-accent-base": "#2e1f7a",
|
|
607
|
+
"--wzl-accent-strong": "#5841b8",
|
|
608
|
+
"--wzl-swatch-fuchsia": "#f641f7",
|
|
609
|
+
"--wzl-swatch-green": "#48e628",
|
|
610
|
+
"--wzl-swatch-sky": "#36bff2",
|
|
611
|
+
"--wzl-swatch-amber": "#e69628",
|
|
612
|
+
"--wzl-swatch-teal": "#3ee1cb",
|
|
613
|
+
"--wzl-swatch-red": "#f75034",
|
|
614
|
+
"--wzl-swatch-blue": "#407ef7",
|
|
615
|
+
"--wzl-swatch-citron": "#d5d23a",
|
|
616
|
+
"--wzl-swatch-rose": "#fa4590",
|
|
617
|
+
"--wzl-swatch-violet": "#955cf9",
|
|
618
|
+
"--wzl-font-size-2xs": "10px",
|
|
619
|
+
"--wzl-font-size-xs": "12px",
|
|
620
|
+
"--wzl-font-size-sm": "13px",
|
|
621
|
+
"--wzl-font-size-md": "15px",
|
|
622
|
+
"--wzl-font-size-lg": "18px",
|
|
623
|
+
"--wzl-font-size-xl": "23px",
|
|
624
|
+
"--wzl-space-1": "2px",
|
|
625
|
+
"--wzl-space-2": "4px",
|
|
626
|
+
"--wzl-space-3": "6px",
|
|
627
|
+
"--wzl-space-4": "8px",
|
|
628
|
+
"--wzl-space-5": "10px",
|
|
629
|
+
"--wzl-space-6": "12px",
|
|
630
|
+
"--wzl-space-7": "14px",
|
|
631
|
+
"--wzl-space-8": "16px",
|
|
632
|
+
"--wzl-surface": "#f5f5f6",
|
|
633
|
+
"--wzl-surface-raised": "#e6e7e9",
|
|
634
|
+
"--wzl-surface-sunken": "#c9cbcf",
|
|
635
|
+
"--wzl-fg": "#0e0f12",
|
|
636
|
+
"--wzl-fg-muted": "#383b42",
|
|
637
|
+
"--wzl-fg-subtle": "#4d5058",
|
|
638
|
+
"--wzl-border": "#c9cbcf",
|
|
639
|
+
"--wzl-border-strong": "#4d5058",
|
|
640
|
+
"--wzl-accent-fg": "#2e1f7a",
|
|
641
|
+
"--wzl-fg-inverse": "#f5f5f6",
|
|
642
|
+
"--wzl-shadow": "rgba(0, 0, 0, 0.18)",
|
|
643
|
+
"--wzl-danger-base": "#d94a3f",
|
|
644
|
+
"--wzl-warning-base": "#d99a3f",
|
|
645
|
+
"--wzl-success-base": "#2ec27e",
|
|
646
|
+
"--wzl-fg-on-accent": "#f5f5f6",
|
|
647
|
+
"--wzl-line-subtle": "rgba(14, 15, 18, 0.1)",
|
|
648
|
+
"--wzl-line": "rgba(14, 15, 18, 0.2)",
|
|
649
|
+
"--wzl-line-strong": "rgba(14, 15, 18, 0.4)",
|
|
650
|
+
"--wzl-curve-color": "#5841b8",
|
|
651
|
+
"--wzl-accent": "#2e1f7a",
|
|
652
|
+
"--wzl-accent-hover": "#5841b8",
|
|
653
|
+
"--wzl-danger": "#d94a3f",
|
|
654
|
+
"--wzl-warning": "#d99a3f",
|
|
655
|
+
"--wzl-success": "#2ec27e",
|
|
656
|
+
"--wzl-focus-ring": "#5841b8",
|
|
657
|
+
"--wzl-glass-tint": "#2e1f7a",
|
|
658
|
+
"--wzl-surface-hover": "rgba(14, 15, 18, 0.1)",
|
|
659
|
+
"--wzl-surface-pressed": "rgba(14, 15, 18, 0.18)",
|
|
660
|
+
"--wzl-radius-sm": "3px",
|
|
661
|
+
"--wzl-radius-md": "5px",
|
|
662
|
+
"--wzl-radius-lg": "14px",
|
|
663
|
+
"--wzl-radius-pill": "999px",
|
|
664
|
+
"--wzl-border-w": "1px",
|
|
665
|
+
"--wzl-line-width": "2px",
|
|
666
|
+
"--wzl-curve-width": "3px",
|
|
667
|
+
"--wzl-tb-height": "32px",
|
|
668
|
+
"--wzl-control-h-xs": "22px",
|
|
669
|
+
"--wzl-control-h-sm": "24px",
|
|
670
|
+
"--wzl-control-h": "28px",
|
|
671
|
+
"--wzl-icon-button-size": "26px",
|
|
672
|
+
"--wzl-slider-track-h": "4px",
|
|
673
|
+
"--wzl-slider-thumb-size": "8px",
|
|
674
|
+
"--wzl-slider-track-mix": "18%",
|
|
675
|
+
"--wzl-slider-thumb-mix": "70%",
|
|
676
|
+
"--wzl-handle-size": "9px",
|
|
677
|
+
"--wzl-handle-size-sm": "7px",
|
|
678
|
+
"--wzl-handle-size-lg": "10px",
|
|
679
|
+
"--wzl-field-pad-x": "8px",
|
|
680
|
+
"--wzl-glass-blur": "3px",
|
|
681
|
+
"--wzl-font-size": "15px",
|
|
682
|
+
"--wzl-tracking-none": "0",
|
|
683
|
+
"--wzl-tracking-wide": "0.06em",
|
|
684
|
+
"--wzl-tracking-wider": "0.08em",
|
|
685
|
+
"--wzl-z-toolbar": "10",
|
|
686
|
+
"--wzl-z-overlay": "20",
|
|
687
|
+
"--wzl-z-modal": "30",
|
|
688
|
+
"--wzl-leading-tight": "1",
|
|
689
|
+
"--wzl-leading-snug": "1.2",
|
|
690
|
+
"--wzl-leading": "1.4",
|
|
691
|
+
"--wzl-backdrop": "none",
|
|
692
|
+
"--wzl-motion-fast": "120ms",
|
|
693
|
+
"--wzl-motion-medium": "240ms",
|
|
694
|
+
"--wzl-ease-in-cubic": "cubic-bezier(0.32, 0, 0.67, 0)",
|
|
695
|
+
"--wzl-ease-out-cubic": "cubic-bezier(0.33, 1, 0.68, 1)",
|
|
696
|
+
"--wzl-ease-in-out-cubic": "cubic-bezier(0.65, 0, 0.35, 1)",
|
|
697
|
+
"--wzl-ease-out-back": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
698
|
+
"--wzl-font-ui": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
699
|
+
"--wzl-font-display": "Oswald, 'Helvetica Neue Condensed', 'Arial Narrow', system-ui, sans-serif",
|
|
700
|
+
"--wzl-font-body": "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
701
|
+
"--wzl-font-mono": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
702
|
+
"--wzl-font-weight-light": "200",
|
|
703
|
+
"--wzl-font-weight-normal": "300",
|
|
704
|
+
"--wzl-font-weight-medium": "350",
|
|
705
|
+
"--wzl-font-weight-bold": "400",
|
|
706
|
+
"--wzl-space-xs": "4px",
|
|
707
|
+
"--wzl-space-sm": "8px",
|
|
708
|
+
"--wzl-space-md": "12px",
|
|
709
|
+
"--wzl-space-lg": "16px"
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
var THEME_SOURCES = {
|
|
715
|
+
"weasel": {
|
|
716
|
+
"name": "weasel",
|
|
717
|
+
"axes": {
|
|
718
|
+
"mode": {
|
|
719
|
+
"default": "dark",
|
|
720
|
+
"values": {
|
|
721
|
+
"dark": {
|
|
722
|
+
"scheme": "dark"
|
|
723
|
+
},
|
|
724
|
+
"light": {
|
|
725
|
+
"scheme": "light"
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
"density": {
|
|
730
|
+
"default": "comfortable",
|
|
731
|
+
"values": {
|
|
732
|
+
"compact": {},
|
|
733
|
+
"comfortable": {},
|
|
734
|
+
"roomy": {}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
"seeds": {
|
|
739
|
+
"ui-base": {
|
|
740
|
+
"by": "density",
|
|
741
|
+
"compact": 11,
|
|
742
|
+
"comfortable": 13,
|
|
743
|
+
"roomy": 15
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
"ramps": {
|
|
747
|
+
"gray": {
|
|
748
|
+
"kind": "lightness",
|
|
749
|
+
"steps": [
|
|
750
|
+
"50",
|
|
751
|
+
"100",
|
|
752
|
+
"200",
|
|
753
|
+
"300",
|
|
754
|
+
"400",
|
|
755
|
+
"500",
|
|
756
|
+
"600",
|
|
757
|
+
"700",
|
|
758
|
+
"800",
|
|
759
|
+
"900"
|
|
760
|
+
],
|
|
761
|
+
"lightness": [
|
|
762
|
+
0.973,
|
|
763
|
+
0.163
|
|
764
|
+
],
|
|
765
|
+
"curve": 0.41,
|
|
766
|
+
"hue": 266,
|
|
767
|
+
"chroma": {
|
|
768
|
+
"peak": 0.0116,
|
|
769
|
+
"darkBias": 0.84
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
"accent": {
|
|
773
|
+
"kind": "lightness",
|
|
774
|
+
"steps": [
|
|
775
|
+
"soft",
|
|
776
|
+
"base",
|
|
777
|
+
"strong"
|
|
778
|
+
],
|
|
779
|
+
"lightness": [
|
|
780
|
+
0.252,
|
|
781
|
+
0.471
|
|
782
|
+
],
|
|
783
|
+
"curve": 0,
|
|
784
|
+
"anchor": {
|
|
785
|
+
"base": "#2e1f7a"
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
"swatch": {
|
|
789
|
+
"kind": "categorical",
|
|
790
|
+
"steps": [
|
|
791
|
+
"fuchsia",
|
|
792
|
+
"green",
|
|
793
|
+
"sky",
|
|
794
|
+
"amber",
|
|
795
|
+
"teal",
|
|
796
|
+
"red",
|
|
797
|
+
"blue",
|
|
798
|
+
"citron",
|
|
799
|
+
"rose",
|
|
800
|
+
"violet"
|
|
801
|
+
],
|
|
802
|
+
"gates": {
|
|
803
|
+
"hueFloor": 0.9,
|
|
804
|
+
"minContrast": 4,
|
|
805
|
+
"surface": "#181a1e",
|
|
806
|
+
"lightnessTarget": 0.72,
|
|
807
|
+
"lightnessPull": 0.4,
|
|
808
|
+
"chromaFraction": 0.95,
|
|
809
|
+
"equalize": 0,
|
|
810
|
+
"minSurfaceDistance": 0.25,
|
|
811
|
+
"minDistance": 0.22,
|
|
812
|
+
"order": "farthest"
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
"scales": {
|
|
817
|
+
"font-size": {
|
|
818
|
+
"steps": [
|
|
819
|
+
"2xs",
|
|
820
|
+
"xs",
|
|
821
|
+
"sm",
|
|
822
|
+
"md",
|
|
823
|
+
"lg",
|
|
824
|
+
"xl"
|
|
825
|
+
],
|
|
826
|
+
"base": "{seeds.ui-base}",
|
|
827
|
+
"factors": [
|
|
828
|
+
0.66,
|
|
829
|
+
0.77,
|
|
830
|
+
0.85,
|
|
831
|
+
1,
|
|
832
|
+
1.23,
|
|
833
|
+
1.54
|
|
834
|
+
],
|
|
835
|
+
"description": "Chrome type ramp. Hand-tuned factors rather than a ratio: the small end is compressed because chrome text stops being legible before a geometric ramp stops shrinking.",
|
|
836
|
+
"describe": {
|
|
837
|
+
"2xs": "Shortcut keys and index badges. The floor for chrome text.",
|
|
838
|
+
"xs": "Tool-button labels under an icon.",
|
|
839
|
+
"sm": "Chrome labels, status readouts, section headings.",
|
|
840
|
+
"md": "Controls and body text.",
|
|
841
|
+
"lg": "Panel and dialog titles.",
|
|
842
|
+
"xl": "The largest chrome text \u2014 a lab or app title."
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"space": {
|
|
846
|
+
"steps": [
|
|
847
|
+
"1",
|
|
848
|
+
"2",
|
|
849
|
+
"3",
|
|
850
|
+
"4",
|
|
851
|
+
"5",
|
|
852
|
+
"6",
|
|
853
|
+
"7",
|
|
854
|
+
"8"
|
|
855
|
+
],
|
|
856
|
+
"base": 2,
|
|
857
|
+
"step": 2,
|
|
858
|
+
"description": "Spacing ladder, 2px rungs. Invariant across density: the rungs are finer than any density factor could resolve without rounding two of them onto the same pixel."
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
"semantics": {
|
|
862
|
+
"surface": {
|
|
863
|
+
"by": "mode",
|
|
864
|
+
"dark": {
|
|
865
|
+
"ref": "gray-800",
|
|
866
|
+
"type": "color"
|
|
867
|
+
},
|
|
868
|
+
"light": {
|
|
869
|
+
"ref": "gray-50",
|
|
870
|
+
"type": "color"
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"surface-raised": {
|
|
874
|
+
"by": "mode",
|
|
875
|
+
"dark": {
|
|
876
|
+
"ref": "gray-700",
|
|
877
|
+
"type": "color"
|
|
878
|
+
},
|
|
879
|
+
"light": {
|
|
880
|
+
"ref": "gray-100",
|
|
881
|
+
"type": "color"
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"surface-sunken": {
|
|
885
|
+
"by": "mode",
|
|
886
|
+
"dark": {
|
|
887
|
+
"ref": "gray-900",
|
|
888
|
+
"type": "color"
|
|
889
|
+
},
|
|
890
|
+
"light": {
|
|
891
|
+
"ref": "gray-200",
|
|
892
|
+
"type": "color"
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
"fg": {
|
|
896
|
+
"by": "mode",
|
|
897
|
+
"dark": {
|
|
898
|
+
"ref": "gray-100",
|
|
899
|
+
"type": "color"
|
|
900
|
+
},
|
|
901
|
+
"light": {
|
|
902
|
+
"ref": "gray-900",
|
|
903
|
+
"type": "color"
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
"fg-muted": {
|
|
907
|
+
"by": "mode",
|
|
908
|
+
"dark": {
|
|
909
|
+
"ref": "gray-300",
|
|
910
|
+
"type": "color"
|
|
911
|
+
},
|
|
912
|
+
"light": {
|
|
913
|
+
"ref": "gray-600",
|
|
914
|
+
"type": "color"
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
"fg-subtle": {
|
|
918
|
+
"by": "mode",
|
|
919
|
+
"dark": {
|
|
920
|
+
"ref": "gray-400",
|
|
921
|
+
"type": "color"
|
|
922
|
+
},
|
|
923
|
+
"light": {
|
|
924
|
+
"ref": "gray-500",
|
|
925
|
+
"type": "color"
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
"border": {
|
|
929
|
+
"by": "mode",
|
|
930
|
+
"dark": {
|
|
931
|
+
"ref": "gray-700",
|
|
932
|
+
"type": "color"
|
|
933
|
+
},
|
|
934
|
+
"light": {
|
|
935
|
+
"ref": "gray-200",
|
|
936
|
+
"type": "color"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
"border-strong": {
|
|
940
|
+
"by": "mode",
|
|
941
|
+
"dark": {
|
|
942
|
+
"ref": "gray-400",
|
|
943
|
+
"type": "color",
|
|
944
|
+
"description": "The line that has to be seen: a control's edge, a raised surface's outline. Clears WCAG 1.4.11's 3:1 against every surface in both modes."
|
|
945
|
+
},
|
|
946
|
+
"light": {
|
|
947
|
+
"ref": "gray-500",
|
|
948
|
+
"type": "color"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"accent-fg": {
|
|
952
|
+
"by": "mode",
|
|
953
|
+
"dark": {
|
|
954
|
+
"ref": "accent-strong",
|
|
955
|
+
"type": "color",
|
|
956
|
+
"description": "Accent for foreground use \u2014 text, icons, selected labels drawn on a surface. accent is a fill; the midnight base is too dim to read as text on dark surfaces."
|
|
957
|
+
},
|
|
958
|
+
"light": {
|
|
959
|
+
"ref": "accent-base",
|
|
960
|
+
"type": "color",
|
|
961
|
+
"description": "Flips to the deep base in light mode, where it is the legible one."
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
"fg-inverse": {
|
|
965
|
+
"by": "mode",
|
|
966
|
+
"dark": {
|
|
967
|
+
"ref": "gray-900",
|
|
968
|
+
"type": "color",
|
|
969
|
+
"description": "Text drawn on a filled foreground-colored element (e.g. a slider thumb). Flips with the mode, so it is a semantic, not an alias to a primitive."
|
|
970
|
+
},
|
|
971
|
+
"light": {
|
|
972
|
+
"ref": "gray-50",
|
|
973
|
+
"type": "color",
|
|
974
|
+
"description": "Flips with the mode \u2014 see the dark layer."
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
"shadow": {
|
|
978
|
+
"by": "mode",
|
|
979
|
+
"dark": {
|
|
980
|
+
"value": "rgba(0, 0, 0, 0.6)",
|
|
981
|
+
"type": "color",
|
|
982
|
+
"description": "Elevation. Always darker than any surface \u2014 never derived from fg, which is near-white on dark."
|
|
983
|
+
},
|
|
984
|
+
"light": {
|
|
985
|
+
"value": "rgba(0, 0, 0, 0.18)",
|
|
986
|
+
"type": "color"
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
"pins": {
|
|
991
|
+
"gray-50": {
|
|
992
|
+
"value": "#f5f5f6",
|
|
993
|
+
"type": "color"
|
|
994
|
+
},
|
|
995
|
+
"gray-100": {
|
|
996
|
+
"value": "#e6e7e9",
|
|
997
|
+
"type": "color"
|
|
998
|
+
},
|
|
999
|
+
"gray-200": {
|
|
1000
|
+
"value": "#c9cbcf",
|
|
1001
|
+
"type": "color"
|
|
1002
|
+
},
|
|
1003
|
+
"gray-300": {
|
|
1004
|
+
"value": "#9ea1a8",
|
|
1005
|
+
"type": "color"
|
|
1006
|
+
},
|
|
1007
|
+
"gray-400": {
|
|
1008
|
+
"value": "#6f737b",
|
|
1009
|
+
"type": "color"
|
|
1010
|
+
},
|
|
1011
|
+
"gray-500": {
|
|
1012
|
+
"value": "#4d5058",
|
|
1013
|
+
"type": "color"
|
|
1014
|
+
},
|
|
1015
|
+
"gray-600": {
|
|
1016
|
+
"value": "#383b42",
|
|
1017
|
+
"type": "color"
|
|
1018
|
+
},
|
|
1019
|
+
"gray-700": {
|
|
1020
|
+
"value": "#25272c",
|
|
1021
|
+
"type": "color"
|
|
1022
|
+
},
|
|
1023
|
+
"gray-800": {
|
|
1024
|
+
"value": "#181a1e",
|
|
1025
|
+
"type": "color"
|
|
1026
|
+
},
|
|
1027
|
+
"gray-900": {
|
|
1028
|
+
"value": "#0e0f12",
|
|
1029
|
+
"type": "color"
|
|
1030
|
+
},
|
|
1031
|
+
"accent-soft": {
|
|
1032
|
+
"value": "#1d1454",
|
|
1033
|
+
"type": "color"
|
|
1034
|
+
},
|
|
1035
|
+
"accent-base": {
|
|
1036
|
+
"value": "#2e1f7a",
|
|
1037
|
+
"type": "color",
|
|
1038
|
+
"description": "Midnight blue-violet. Deep and saturated; anchors primary actions on light and dark surfaces alike."
|
|
1039
|
+
},
|
|
1040
|
+
"accent-strong": {
|
|
1041
|
+
"value": "#5841b8",
|
|
1042
|
+
"type": "color"
|
|
1043
|
+
},
|
|
1044
|
+
"danger-base": {
|
|
1045
|
+
"value": "#d94a3f",
|
|
1046
|
+
"type": "color"
|
|
1047
|
+
},
|
|
1048
|
+
"warning-base": {
|
|
1049
|
+
"value": "#d99a3f",
|
|
1050
|
+
"type": "color"
|
|
1051
|
+
},
|
|
1052
|
+
"success-base": {
|
|
1053
|
+
"value": "#2ec27e",
|
|
1054
|
+
"type": "color"
|
|
1055
|
+
},
|
|
1056
|
+
"fg-on-accent": {
|
|
1057
|
+
"value": "{gray-50}",
|
|
1058
|
+
"type": "color"
|
|
1059
|
+
},
|
|
1060
|
+
"line-subtle": {
|
|
1061
|
+
"value": "{fg}",
|
|
1062
|
+
"type": "color",
|
|
1063
|
+
"alpha": 0.1,
|
|
1064
|
+
"description": "Barely-there separators (table rows)."
|
|
1065
|
+
},
|
|
1066
|
+
"line": {
|
|
1067
|
+
"value": "{fg}",
|
|
1068
|
+
"type": "color",
|
|
1069
|
+
"alpha": 0.2,
|
|
1070
|
+
"description": "Primary gridlines on sunken surfaces."
|
|
1071
|
+
},
|
|
1072
|
+
"line-strong": {
|
|
1073
|
+
"value": "{fg}",
|
|
1074
|
+
"type": "color",
|
|
1075
|
+
"alpha": 0.4,
|
|
1076
|
+
"description": "Axes and emphasized dividers."
|
|
1077
|
+
},
|
|
1078
|
+
"curve-color": {
|
|
1079
|
+
"value": "{accent-strong}",
|
|
1080
|
+
"type": "color",
|
|
1081
|
+
"description": "Drawn data curves. Routes through the bright accent because accent-base is too dim on sunken surfaces."
|
|
1082
|
+
},
|
|
1083
|
+
"accent": {
|
|
1084
|
+
"value": "{accent-base}",
|
|
1085
|
+
"type": "color"
|
|
1086
|
+
},
|
|
1087
|
+
"accent-hover": {
|
|
1088
|
+
"value": "{accent-strong}",
|
|
1089
|
+
"type": "color"
|
|
1090
|
+
},
|
|
1091
|
+
"danger": {
|
|
1092
|
+
"value": "{danger-base}",
|
|
1093
|
+
"type": "color"
|
|
1094
|
+
},
|
|
1095
|
+
"warning": {
|
|
1096
|
+
"value": "{warning-base}",
|
|
1097
|
+
"type": "color"
|
|
1098
|
+
},
|
|
1099
|
+
"success": {
|
|
1100
|
+
"value": "{success-base}",
|
|
1101
|
+
"type": "color"
|
|
1102
|
+
},
|
|
1103
|
+
"focus-ring": {
|
|
1104
|
+
"value": "{accent-strong}",
|
|
1105
|
+
"type": "color"
|
|
1106
|
+
},
|
|
1107
|
+
"glass-tint": {
|
|
1108
|
+
"value": "{accent}",
|
|
1109
|
+
"type": "color",
|
|
1110
|
+
"description": "Frosted-glass tint. Components compose it as color-mix(in srgb, var(--wzl-glass-tint) 78%, transparent) with backdrop-filter: blur(3px)."
|
|
1111
|
+
},
|
|
1112
|
+
"surface-hover": {
|
|
1113
|
+
"value": "{fg}",
|
|
1114
|
+
"type": "color",
|
|
1115
|
+
"alpha": 0.1,
|
|
1116
|
+
"description": "Hover wash over a raised surface. Same formula as line-subtle, different job \u2014 do not collapse them."
|
|
1117
|
+
},
|
|
1118
|
+
"surface-pressed": {
|
|
1119
|
+
"value": "{fg}",
|
|
1120
|
+
"type": "color",
|
|
1121
|
+
"alpha": 0.18,
|
|
1122
|
+
"description": "Pressed wash over a raised surface."
|
|
1123
|
+
},
|
|
1124
|
+
"swatch-fuchsia": {
|
|
1125
|
+
"value": "#f641f7",
|
|
1126
|
+
"type": "color",
|
|
1127
|
+
"description": "First of ten categorical spot colors for plotting, status and data viz. Take them in sequence: the order is farthest-point over hue, so the first N are as separated as N colors can be (first three 87\xB0 apart, all ten 32\xB0). Mode-invariant on purpose \u2014 a series keeps its color when the mode flips, which is why they are tuned for a dark surface and clear only 1.5:1 on a light one."
|
|
1128
|
+
},
|
|
1129
|
+
"swatch-green": {
|
|
1130
|
+
"value": "#48e628",
|
|
1131
|
+
"type": "color"
|
|
1132
|
+
},
|
|
1133
|
+
"swatch-sky": {
|
|
1134
|
+
"value": "#36bff2",
|
|
1135
|
+
"type": "color"
|
|
1136
|
+
},
|
|
1137
|
+
"swatch-amber": {
|
|
1138
|
+
"value": "#e69628",
|
|
1139
|
+
"type": "color"
|
|
1140
|
+
},
|
|
1141
|
+
"swatch-teal": {
|
|
1142
|
+
"value": "#3ee1cb",
|
|
1143
|
+
"type": "color"
|
|
1144
|
+
},
|
|
1145
|
+
"swatch-red": {
|
|
1146
|
+
"value": "#f75034",
|
|
1147
|
+
"type": "color"
|
|
1148
|
+
},
|
|
1149
|
+
"swatch-blue": {
|
|
1150
|
+
"value": "#407ef7",
|
|
1151
|
+
"type": "color"
|
|
1152
|
+
},
|
|
1153
|
+
"swatch-citron": {
|
|
1154
|
+
"value": "#d5d23a",
|
|
1155
|
+
"type": "color"
|
|
1156
|
+
},
|
|
1157
|
+
"swatch-rose": {
|
|
1158
|
+
"value": "#fa4590",
|
|
1159
|
+
"type": "color"
|
|
1160
|
+
},
|
|
1161
|
+
"swatch-violet": {
|
|
1162
|
+
"value": "#955cf9",
|
|
1163
|
+
"type": "color"
|
|
1164
|
+
},
|
|
1165
|
+
"radius-sm": {
|
|
1166
|
+
"value": "3px",
|
|
1167
|
+
"type": "dimension"
|
|
1168
|
+
},
|
|
1169
|
+
"radius-md": {
|
|
1170
|
+
"value": "5px",
|
|
1171
|
+
"type": "dimension"
|
|
1172
|
+
},
|
|
1173
|
+
"radius-lg": {
|
|
1174
|
+
"value": "14px",
|
|
1175
|
+
"type": "dimension"
|
|
1176
|
+
},
|
|
1177
|
+
"radius-pill": {
|
|
1178
|
+
"value": "999px",
|
|
1179
|
+
"type": "dimension",
|
|
1180
|
+
"description": "Fully rounded ends \u2014 segmented controls, progress tracks."
|
|
1181
|
+
},
|
|
1182
|
+
"border-w": {
|
|
1183
|
+
"value": "1px",
|
|
1184
|
+
"type": "dimension"
|
|
1185
|
+
},
|
|
1186
|
+
"line-width": {
|
|
1187
|
+
"value": "2px",
|
|
1188
|
+
"type": "dimension",
|
|
1189
|
+
"description": "Structural lines \u2014 gridlines, dividers, axes."
|
|
1190
|
+
},
|
|
1191
|
+
"curve-width": {
|
|
1192
|
+
"value": "3px",
|
|
1193
|
+
"type": "dimension",
|
|
1194
|
+
"description": "Drawn data curves. Heavier than structural lines so data reads as primary content."
|
|
1195
|
+
},
|
|
1196
|
+
"tb-height": {
|
|
1197
|
+
"by": "density",
|
|
1198
|
+
"compact": {
|
|
1199
|
+
"value": "24px",
|
|
1200
|
+
"type": "dimension",
|
|
1201
|
+
"description": "Height of a horizontal toolbar strip (ActionsBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges."
|
|
1202
|
+
},
|
|
1203
|
+
"comfortable": {
|
|
1204
|
+
"value": "28px",
|
|
1205
|
+
"type": "dimension",
|
|
1206
|
+
"description": "Height of a horizontal toolbar strip (ActionsBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges."
|
|
1207
|
+
},
|
|
1208
|
+
"roomy": {
|
|
1209
|
+
"value": "32px",
|
|
1210
|
+
"type": "dimension",
|
|
1211
|
+
"description": "Height of a horizontal toolbar strip (ActionsBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges."
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
"control-h-xs": {
|
|
1215
|
+
"by": "density",
|
|
1216
|
+
"compact": {
|
|
1217
|
+
"value": "16px",
|
|
1218
|
+
"type": "dimension",
|
|
1219
|
+
"description": "Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm."
|
|
1220
|
+
},
|
|
1221
|
+
"comfortable": {
|
|
1222
|
+
"value": "18px",
|
|
1223
|
+
"type": "dimension",
|
|
1224
|
+
"description": "Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm."
|
|
1225
|
+
},
|
|
1226
|
+
"roomy": {
|
|
1227
|
+
"value": "22px",
|
|
1228
|
+
"type": "dimension",
|
|
1229
|
+
"description": "Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm."
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
"control-h-sm": {
|
|
1233
|
+
"by": "density",
|
|
1234
|
+
"compact": {
|
|
1235
|
+
"value": "18px",
|
|
1236
|
+
"type": "dimension",
|
|
1237
|
+
"description": "Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control."
|
|
1238
|
+
},
|
|
1239
|
+
"comfortable": {
|
|
1240
|
+
"value": "20px",
|
|
1241
|
+
"type": "dimension",
|
|
1242
|
+
"description": "Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control."
|
|
1243
|
+
},
|
|
1244
|
+
"roomy": {
|
|
1245
|
+
"value": "24px",
|
|
1246
|
+
"type": "dimension",
|
|
1247
|
+
"description": "Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control."
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
"control-h": {
|
|
1251
|
+
"by": "density",
|
|
1252
|
+
"compact": {
|
|
1253
|
+
"value": "20px",
|
|
1254
|
+
"type": "dimension",
|
|
1255
|
+
"description": "Height of an interactive control \u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in."
|
|
1256
|
+
},
|
|
1257
|
+
"comfortable": {
|
|
1258
|
+
"value": "24px",
|
|
1259
|
+
"type": "dimension",
|
|
1260
|
+
"description": "Height of an interactive control \u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in."
|
|
1261
|
+
},
|
|
1262
|
+
"roomy": {
|
|
1263
|
+
"value": "28px",
|
|
1264
|
+
"type": "dimension",
|
|
1265
|
+
"description": "Height of an interactive control \u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in."
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
"icon-button-size": {
|
|
1269
|
+
"by": "density",
|
|
1270
|
+
"compact": {
|
|
1271
|
+
"value": "20px",
|
|
1272
|
+
"type": "dimension",
|
|
1273
|
+
"description": "Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes."
|
|
1274
|
+
},
|
|
1275
|
+
"comfortable": {
|
|
1276
|
+
"value": "22px",
|
|
1277
|
+
"type": "dimension",
|
|
1278
|
+
"description": "Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes."
|
|
1279
|
+
},
|
|
1280
|
+
"roomy": {
|
|
1281
|
+
"value": "26px",
|
|
1282
|
+
"type": "dimension",
|
|
1283
|
+
"description": "Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes."
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
"slider-track-h": {
|
|
1287
|
+
"value": "4px",
|
|
1288
|
+
"type": "dimension",
|
|
1289
|
+
"description": "Height of a linear range track. The kit's single-thumb ranges all wear this; Slider's default 24px canvas track does not."
|
|
1290
|
+
},
|
|
1291
|
+
"slider-thumb-size": {
|
|
1292
|
+
"value": "8px",
|
|
1293
|
+
"type": "dimension",
|
|
1294
|
+
"description": "Diameter of a linear range thumb."
|
|
1295
|
+
},
|
|
1296
|
+
"slider-track-mix": {
|
|
1297
|
+
"value": "18%",
|
|
1298
|
+
"type": "dimension",
|
|
1299
|
+
"description": "Accent proportion in a range track, as a color-mix percentage \u2014 not a color. Mixed into a real property, never into another custom property."
|
|
1300
|
+
},
|
|
1301
|
+
"slider-thumb-mix": {
|
|
1302
|
+
"value": "70%",
|
|
1303
|
+
"type": "dimension",
|
|
1304
|
+
"description": "Accent proportion in a range thumb, as a color-mix percentage \u2014 not a color."
|
|
1305
|
+
},
|
|
1306
|
+
"handle-size": {
|
|
1307
|
+
"value": "9px",
|
|
1308
|
+
"type": "dimension",
|
|
1309
|
+
"description": "Edge of a draggable handle on a plot or timeline \u2014 a keyframe diamond, a timeline key, an event mark. The default rank; -sm and -lg are the two deliberate departures from it."
|
|
1310
|
+
},
|
|
1311
|
+
"handle-size-sm": {
|
|
1312
|
+
"value": "7px",
|
|
1313
|
+
"type": "dimension",
|
|
1314
|
+
"description": "A handle that is drawn but not draggable \u2014 a locked or pinned point. Smaller so it reads as inert next to a live one."
|
|
1315
|
+
},
|
|
1316
|
+
"handle-size-lg": {
|
|
1317
|
+
"value": "10px",
|
|
1318
|
+
"type": "dimension",
|
|
1319
|
+
"description": "A handle that is a category of its own rather than one of a row \u2014 a curve's endpoint. Larger so it separates from the handles it sits in line with."
|
|
1320
|
+
},
|
|
1321
|
+
"field-pad-x": {
|
|
1322
|
+
"value": "8px",
|
|
1323
|
+
"type": "dimension",
|
|
1324
|
+
"description": "Horizontal padding inside a boxed field. Pairs with --wzl-field-h, which is a container override and has no :root default."
|
|
1325
|
+
},
|
|
1326
|
+
"glass-blur": {
|
|
1327
|
+
"value": "3px",
|
|
1328
|
+
"type": "dimension",
|
|
1329
|
+
"description": "Backdrop blur radius for frosted surfaces. Pairs with glass-tint."
|
|
1330
|
+
},
|
|
1331
|
+
"font-size": {
|
|
1332
|
+
"value": "{font-size-md}",
|
|
1333
|
+
"type": "dimension",
|
|
1334
|
+
"description": "Controls and body text."
|
|
1335
|
+
},
|
|
1336
|
+
"tracking-none": {
|
|
1337
|
+
"value": "0",
|
|
1338
|
+
"type": "dimension"
|
|
1339
|
+
},
|
|
1340
|
+
"tracking-wide": {
|
|
1341
|
+
"value": "0.06em",
|
|
1342
|
+
"type": "dimension",
|
|
1343
|
+
"description": "Uppercase section headings."
|
|
1344
|
+
},
|
|
1345
|
+
"tracking-wider": {
|
|
1346
|
+
"value": "0.08em",
|
|
1347
|
+
"type": "dimension",
|
|
1348
|
+
"description": "Uppercase at 11px and below."
|
|
1349
|
+
},
|
|
1350
|
+
"z-toolbar": {
|
|
1351
|
+
"value": 10,
|
|
1352
|
+
"type": "number"
|
|
1353
|
+
},
|
|
1354
|
+
"z-overlay": {
|
|
1355
|
+
"value": 20,
|
|
1356
|
+
"type": "number"
|
|
1357
|
+
},
|
|
1358
|
+
"z-modal": {
|
|
1359
|
+
"value": 30,
|
|
1360
|
+
"type": "number"
|
|
1361
|
+
},
|
|
1362
|
+
"leading-tight": {
|
|
1363
|
+
"value": 1,
|
|
1364
|
+
"type": "number",
|
|
1365
|
+
"description": "Single-line controls; the box sets the height."
|
|
1366
|
+
},
|
|
1367
|
+
"leading-snug": {
|
|
1368
|
+
"value": 1.2,
|
|
1369
|
+
"type": "number",
|
|
1370
|
+
"description": "Headings and two-line labels."
|
|
1371
|
+
},
|
|
1372
|
+
"leading": {
|
|
1373
|
+
"value": 1.4,
|
|
1374
|
+
"type": "number",
|
|
1375
|
+
"description": "Body and anything that wraps."
|
|
1376
|
+
},
|
|
1377
|
+
"backdrop": {
|
|
1378
|
+
"value": "none",
|
|
1379
|
+
"type": "gradient",
|
|
1380
|
+
"description": "Layered backdrop fill for a page or lab root. `none` here; a theme with a signature background sets it."
|
|
1381
|
+
},
|
|
1382
|
+
"motion-fast": {
|
|
1383
|
+
"value": "120ms",
|
|
1384
|
+
"type": "duration",
|
|
1385
|
+
"description": "Micro-interactions \u2014 hover, focus, pressed."
|
|
1386
|
+
},
|
|
1387
|
+
"motion-medium": {
|
|
1388
|
+
"value": "240ms",
|
|
1389
|
+
"type": "duration",
|
|
1390
|
+
"description": "Entrances and exits \u2014 toasts, popovers, panels."
|
|
1391
|
+
},
|
|
1392
|
+
"ease-in-cubic": {
|
|
1393
|
+
"value": [
|
|
1394
|
+
0.32,
|
|
1395
|
+
0,
|
|
1396
|
+
0.67,
|
|
1397
|
+
0
|
|
1398
|
+
],
|
|
1399
|
+
"type": "cubicBezier"
|
|
1400
|
+
},
|
|
1401
|
+
"ease-out-cubic": {
|
|
1402
|
+
"value": [
|
|
1403
|
+
0.33,
|
|
1404
|
+
1,
|
|
1405
|
+
0.68,
|
|
1406
|
+
1
|
|
1407
|
+
],
|
|
1408
|
+
"type": "cubicBezier"
|
|
1409
|
+
},
|
|
1410
|
+
"ease-in-out-cubic": {
|
|
1411
|
+
"value": [
|
|
1412
|
+
0.65,
|
|
1413
|
+
0,
|
|
1414
|
+
0.35,
|
|
1415
|
+
1
|
|
1416
|
+
],
|
|
1417
|
+
"type": "cubicBezier"
|
|
1418
|
+
},
|
|
1419
|
+
"ease-out-back": {
|
|
1420
|
+
"value": [
|
|
1421
|
+
0.34,
|
|
1422
|
+
1.56,
|
|
1423
|
+
0.64,
|
|
1424
|
+
1
|
|
1425
|
+
],
|
|
1426
|
+
"type": "cubicBezier"
|
|
1427
|
+
},
|
|
1428
|
+
"font-ui": {
|
|
1429
|
+
"value": [
|
|
1430
|
+
"Oswald",
|
|
1431
|
+
"Helvetica Neue Condensed",
|
|
1432
|
+
"Arial Narrow",
|
|
1433
|
+
"system-ui",
|
|
1434
|
+
"sans-serif"
|
|
1435
|
+
],
|
|
1436
|
+
"type": "fontFamily",
|
|
1437
|
+
"description": "Condensed UI/display face. The heavier cuts get blocky at any size, so the weight tokens stay in the 200-400 range."
|
|
1438
|
+
},
|
|
1439
|
+
"font-display": {
|
|
1440
|
+
"value": [
|
|
1441
|
+
"Oswald",
|
|
1442
|
+
"Helvetica Neue Condensed",
|
|
1443
|
+
"Arial Narrow",
|
|
1444
|
+
"system-ui",
|
|
1445
|
+
"sans-serif"
|
|
1446
|
+
],
|
|
1447
|
+
"type": "fontFamily"
|
|
1448
|
+
},
|
|
1449
|
+
"font-body": {
|
|
1450
|
+
"value": [
|
|
1451
|
+
"Inter",
|
|
1452
|
+
"system-ui",
|
|
1453
|
+
"-apple-system",
|
|
1454
|
+
"Segoe UI",
|
|
1455
|
+
"sans-serif"
|
|
1456
|
+
],
|
|
1457
|
+
"type": "fontFamily"
|
|
1458
|
+
},
|
|
1459
|
+
"font-mono": {
|
|
1460
|
+
"value": [
|
|
1461
|
+
"ui-monospace",
|
|
1462
|
+
"SFMono-Regular",
|
|
1463
|
+
"Menlo",
|
|
1464
|
+
"Consolas",
|
|
1465
|
+
"monospace"
|
|
1466
|
+
],
|
|
1467
|
+
"type": "fontFamily"
|
|
1468
|
+
},
|
|
1469
|
+
"font-weight-light": {
|
|
1470
|
+
"value": 200,
|
|
1471
|
+
"type": "fontWeight"
|
|
1472
|
+
},
|
|
1473
|
+
"font-weight-normal": {
|
|
1474
|
+
"value": 300,
|
|
1475
|
+
"type": "fontWeight"
|
|
1476
|
+
},
|
|
1477
|
+
"font-weight-medium": {
|
|
1478
|
+
"value": 350,
|
|
1479
|
+
"type": "fontWeight"
|
|
1480
|
+
},
|
|
1481
|
+
"font-weight-bold": {
|
|
1482
|
+
"value": 400,
|
|
1483
|
+
"type": "fontWeight"
|
|
1484
|
+
},
|
|
1485
|
+
"space-xs": {
|
|
1486
|
+
"value": "{space-2}",
|
|
1487
|
+
"type": "dimension",
|
|
1488
|
+
"description": "Alias for space-2. The t-shirt names name every other rung of the ladder."
|
|
1489
|
+
},
|
|
1490
|
+
"space-sm": {
|
|
1491
|
+
"value": "{space-4}",
|
|
1492
|
+
"type": "dimension",
|
|
1493
|
+
"description": "Alias for space-4. The t-shirt names name every other rung of the ladder."
|
|
1494
|
+
},
|
|
1495
|
+
"space-md": {
|
|
1496
|
+
"value": "{space-6}",
|
|
1497
|
+
"type": "dimension",
|
|
1498
|
+
"description": "Alias for space-6. The t-shirt names name every other rung of the ladder."
|
|
1499
|
+
},
|
|
1500
|
+
"space-lg": {
|
|
1501
|
+
"value": "{space-8}",
|
|
1502
|
+
"type": "dimension",
|
|
1503
|
+
"description": "Alias for space-8. The t-shirt names name every other rung of the ladder."
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
};
|
|
1508
|
+
var BAKED_THEMES = {
|
|
1509
|
+
"weasel": {
|
|
1510
|
+
"name": "weasel",
|
|
1511
|
+
"extends": null,
|
|
1512
|
+
"axes": {
|
|
1513
|
+
"mode": {
|
|
1514
|
+
"default": "dark",
|
|
1515
|
+
"values": {
|
|
1516
|
+
"dark": {
|
|
1517
|
+
"scheme": "dark"
|
|
1518
|
+
},
|
|
1519
|
+
"light": {
|
|
1520
|
+
"scheme": "light"
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
"density": {
|
|
1525
|
+
"default": "comfortable",
|
|
1526
|
+
"values": {
|
|
1527
|
+
"compact": {},
|
|
1528
|
+
"comfortable": {},
|
|
1529
|
+
"roomy": {}
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"tokens": {
|
|
1534
|
+
"gray-50": {
|
|
1535
|
+
"type": "color",
|
|
1536
|
+
"value": "#f5f5f6"
|
|
1537
|
+
},
|
|
1538
|
+
"gray-100": {
|
|
1539
|
+
"type": "color",
|
|
1540
|
+
"value": "#e6e7e9"
|
|
1541
|
+
},
|
|
1542
|
+
"gray-200": {
|
|
1543
|
+
"type": "color",
|
|
1544
|
+
"value": "#c9cbcf"
|
|
1545
|
+
},
|
|
1546
|
+
"gray-300": {
|
|
1547
|
+
"type": "color",
|
|
1548
|
+
"value": "#9ea1a8"
|
|
1549
|
+
},
|
|
1550
|
+
"gray-400": {
|
|
1551
|
+
"type": "color",
|
|
1552
|
+
"value": "#6f737b"
|
|
1553
|
+
},
|
|
1554
|
+
"gray-500": {
|
|
1555
|
+
"type": "color",
|
|
1556
|
+
"value": "#4d5058"
|
|
1557
|
+
},
|
|
1558
|
+
"gray-600": {
|
|
1559
|
+
"type": "color",
|
|
1560
|
+
"value": "#383b42"
|
|
1561
|
+
},
|
|
1562
|
+
"gray-700": {
|
|
1563
|
+
"type": "color",
|
|
1564
|
+
"value": "#25272c"
|
|
1565
|
+
},
|
|
1566
|
+
"gray-800": {
|
|
1567
|
+
"type": "color",
|
|
1568
|
+
"value": "#181a1e"
|
|
1569
|
+
},
|
|
1570
|
+
"gray-900": {
|
|
1571
|
+
"type": "color",
|
|
1572
|
+
"value": "#0e0f12"
|
|
1573
|
+
},
|
|
1574
|
+
"accent-soft": {
|
|
1575
|
+
"type": "color",
|
|
1576
|
+
"value": "#1d1454"
|
|
1577
|
+
},
|
|
1578
|
+
"accent-base": {
|
|
1579
|
+
"type": "color",
|
|
1580
|
+
"value": "#2e1f7a",
|
|
1581
|
+
"description": "Midnight blue-violet. Deep and saturated; anchors primary actions on light and dark surfaces alike."
|
|
1582
|
+
},
|
|
1583
|
+
"accent-strong": {
|
|
1584
|
+
"type": "color",
|
|
1585
|
+
"value": "#5841b8"
|
|
1586
|
+
},
|
|
1587
|
+
"swatch-fuchsia": {
|
|
1588
|
+
"type": "color",
|
|
1589
|
+
"value": "#f641f7",
|
|
1590
|
+
"description": "First of ten categorical spot colors for plotting, status and data viz. Take them in sequence: the order is farthest-point over hue, so the first N are as separated as N colors can be (first three 87\xB0 apart, all ten 32\xB0). Mode-invariant on purpose \u2014 a series keeps its color when the mode flips, which is why they are tuned for a dark surface and clear only 1.5:1 on a light one."
|
|
1591
|
+
},
|
|
1592
|
+
"swatch-green": {
|
|
1593
|
+
"type": "color",
|
|
1594
|
+
"value": "#48e628"
|
|
1595
|
+
},
|
|
1596
|
+
"swatch-sky": {
|
|
1597
|
+
"type": "color",
|
|
1598
|
+
"value": "#36bff2"
|
|
1599
|
+
},
|
|
1600
|
+
"swatch-amber": {
|
|
1601
|
+
"type": "color",
|
|
1602
|
+
"value": "#e69628"
|
|
1603
|
+
},
|
|
1604
|
+
"swatch-teal": {
|
|
1605
|
+
"type": "color",
|
|
1606
|
+
"value": "#3ee1cb"
|
|
1607
|
+
},
|
|
1608
|
+
"swatch-red": {
|
|
1609
|
+
"type": "color",
|
|
1610
|
+
"value": "#f75034"
|
|
1611
|
+
},
|
|
1612
|
+
"swatch-blue": {
|
|
1613
|
+
"type": "color",
|
|
1614
|
+
"value": "#407ef7"
|
|
1615
|
+
},
|
|
1616
|
+
"swatch-citron": {
|
|
1617
|
+
"type": "color",
|
|
1618
|
+
"value": "#d5d23a"
|
|
1619
|
+
},
|
|
1620
|
+
"swatch-rose": {
|
|
1621
|
+
"type": "color",
|
|
1622
|
+
"value": "#fa4590"
|
|
1623
|
+
},
|
|
1624
|
+
"swatch-violet": {
|
|
1625
|
+
"type": "color",
|
|
1626
|
+
"value": "#955cf9"
|
|
1627
|
+
},
|
|
1628
|
+
"font-size-2xs": {
|
|
1629
|
+
"by": "density",
|
|
1630
|
+
"compact": {
|
|
1631
|
+
"type": "dimension",
|
|
1632
|
+
"value": "7px",
|
|
1633
|
+
"description": "Shortcut keys and index badges. The floor for chrome text."
|
|
1634
|
+
},
|
|
1635
|
+
"comfortable": {
|
|
1636
|
+
"type": "dimension",
|
|
1637
|
+
"value": "9px",
|
|
1638
|
+
"description": "Shortcut keys and index badges. The floor for chrome text."
|
|
1639
|
+
},
|
|
1640
|
+
"roomy": {
|
|
1641
|
+
"type": "dimension",
|
|
1642
|
+
"value": "10px",
|
|
1643
|
+
"description": "Shortcut keys and index badges. The floor for chrome text."
|
|
1644
|
+
}
|
|
1645
|
+
},
|
|
1646
|
+
"font-size-xs": {
|
|
1647
|
+
"by": "density",
|
|
1648
|
+
"compact": {
|
|
1649
|
+
"type": "dimension",
|
|
1650
|
+
"value": "8px",
|
|
1651
|
+
"description": "Tool-button labels under an icon."
|
|
1652
|
+
},
|
|
1653
|
+
"comfortable": {
|
|
1654
|
+
"type": "dimension",
|
|
1655
|
+
"value": "10px",
|
|
1656
|
+
"description": "Tool-button labels under an icon."
|
|
1657
|
+
},
|
|
1658
|
+
"roomy": {
|
|
1659
|
+
"type": "dimension",
|
|
1660
|
+
"value": "12px",
|
|
1661
|
+
"description": "Tool-button labels under an icon."
|
|
1662
|
+
}
|
|
1663
|
+
},
|
|
1664
|
+
"font-size-sm": {
|
|
1665
|
+
"by": "density",
|
|
1666
|
+
"compact": {
|
|
1667
|
+
"type": "dimension",
|
|
1668
|
+
"value": "9px",
|
|
1669
|
+
"description": "Chrome labels, status readouts, section headings."
|
|
1670
|
+
},
|
|
1671
|
+
"comfortable": {
|
|
1672
|
+
"type": "dimension",
|
|
1673
|
+
"value": "11px",
|
|
1674
|
+
"description": "Chrome labels, status readouts, section headings."
|
|
1675
|
+
},
|
|
1676
|
+
"roomy": {
|
|
1677
|
+
"type": "dimension",
|
|
1678
|
+
"value": "13px",
|
|
1679
|
+
"description": "Chrome labels, status readouts, section headings."
|
|
1680
|
+
}
|
|
1681
|
+
},
|
|
1682
|
+
"font-size-md": {
|
|
1683
|
+
"by": "density",
|
|
1684
|
+
"compact": {
|
|
1685
|
+
"type": "dimension",
|
|
1686
|
+
"value": "11px",
|
|
1687
|
+
"description": "Controls and body text."
|
|
1688
|
+
},
|
|
1689
|
+
"comfortable": {
|
|
1690
|
+
"type": "dimension",
|
|
1691
|
+
"value": "13px",
|
|
1692
|
+
"description": "Controls and body text."
|
|
1693
|
+
},
|
|
1694
|
+
"roomy": {
|
|
1695
|
+
"type": "dimension",
|
|
1696
|
+
"value": "15px",
|
|
1697
|
+
"description": "Controls and body text."
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
"font-size-lg": {
|
|
1701
|
+
"by": "density",
|
|
1702
|
+
"compact": {
|
|
1703
|
+
"type": "dimension",
|
|
1704
|
+
"value": "14px",
|
|
1705
|
+
"description": "Panel and dialog titles."
|
|
1706
|
+
},
|
|
1707
|
+
"comfortable": {
|
|
1708
|
+
"type": "dimension",
|
|
1709
|
+
"value": "16px",
|
|
1710
|
+
"description": "Panel and dialog titles."
|
|
1711
|
+
},
|
|
1712
|
+
"roomy": {
|
|
1713
|
+
"type": "dimension",
|
|
1714
|
+
"value": "18px",
|
|
1715
|
+
"description": "Panel and dialog titles."
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
"font-size-xl": {
|
|
1719
|
+
"by": "density",
|
|
1720
|
+
"compact": {
|
|
1721
|
+
"type": "dimension",
|
|
1722
|
+
"value": "17px",
|
|
1723
|
+
"description": "The largest chrome text \u2014 a lab or app title."
|
|
1724
|
+
},
|
|
1725
|
+
"comfortable": {
|
|
1726
|
+
"type": "dimension",
|
|
1727
|
+
"value": "20px",
|
|
1728
|
+
"description": "The largest chrome text \u2014 a lab or app title."
|
|
1729
|
+
},
|
|
1730
|
+
"roomy": {
|
|
1731
|
+
"type": "dimension",
|
|
1732
|
+
"value": "23px",
|
|
1733
|
+
"description": "The largest chrome text \u2014 a lab or app title."
|
|
1734
|
+
}
|
|
1735
|
+
},
|
|
1736
|
+
"space-1": {
|
|
1737
|
+
"type": "dimension",
|
|
1738
|
+
"value": "2px"
|
|
1739
|
+
},
|
|
1740
|
+
"space-2": {
|
|
1741
|
+
"type": "dimension",
|
|
1742
|
+
"value": "4px"
|
|
1743
|
+
},
|
|
1744
|
+
"space-3": {
|
|
1745
|
+
"type": "dimension",
|
|
1746
|
+
"value": "6px"
|
|
1747
|
+
},
|
|
1748
|
+
"space-4": {
|
|
1749
|
+
"type": "dimension",
|
|
1750
|
+
"value": "8px"
|
|
1751
|
+
},
|
|
1752
|
+
"space-5": {
|
|
1753
|
+
"type": "dimension",
|
|
1754
|
+
"value": "10px"
|
|
1755
|
+
},
|
|
1756
|
+
"space-6": {
|
|
1757
|
+
"type": "dimension",
|
|
1758
|
+
"value": "12px"
|
|
1759
|
+
},
|
|
1760
|
+
"space-7": {
|
|
1761
|
+
"type": "dimension",
|
|
1762
|
+
"value": "14px"
|
|
1763
|
+
},
|
|
1764
|
+
"space-8": {
|
|
1765
|
+
"type": "dimension",
|
|
1766
|
+
"value": "16px"
|
|
1767
|
+
},
|
|
1768
|
+
"surface": {
|
|
1769
|
+
"by": "mode",
|
|
1770
|
+
"dark": {
|
|
1771
|
+
"type": "color",
|
|
1772
|
+
"value": "{gray-800}"
|
|
1773
|
+
},
|
|
1774
|
+
"light": {
|
|
1775
|
+
"type": "color",
|
|
1776
|
+
"value": "{gray-50}"
|
|
1777
|
+
}
|
|
1778
|
+
},
|
|
1779
|
+
"surface-raised": {
|
|
1780
|
+
"by": "mode",
|
|
1781
|
+
"dark": {
|
|
1782
|
+
"type": "color",
|
|
1783
|
+
"value": "{gray-700}"
|
|
1784
|
+
},
|
|
1785
|
+
"light": {
|
|
1786
|
+
"type": "color",
|
|
1787
|
+
"value": "{gray-100}"
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
"surface-sunken": {
|
|
1791
|
+
"by": "mode",
|
|
1792
|
+
"dark": {
|
|
1793
|
+
"type": "color",
|
|
1794
|
+
"value": "{gray-900}"
|
|
1795
|
+
},
|
|
1796
|
+
"light": {
|
|
1797
|
+
"type": "color",
|
|
1798
|
+
"value": "{gray-200}"
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
"fg": {
|
|
1802
|
+
"by": "mode",
|
|
1803
|
+
"dark": {
|
|
1804
|
+
"type": "color",
|
|
1805
|
+
"value": "{gray-100}"
|
|
1806
|
+
},
|
|
1807
|
+
"light": {
|
|
1808
|
+
"type": "color",
|
|
1809
|
+
"value": "{gray-900}"
|
|
1810
|
+
}
|
|
1811
|
+
},
|
|
1812
|
+
"fg-muted": {
|
|
1813
|
+
"by": "mode",
|
|
1814
|
+
"dark": {
|
|
1815
|
+
"type": "color",
|
|
1816
|
+
"value": "{gray-300}"
|
|
1817
|
+
},
|
|
1818
|
+
"light": {
|
|
1819
|
+
"type": "color",
|
|
1820
|
+
"value": "{gray-600}"
|
|
1821
|
+
}
|
|
1822
|
+
},
|
|
1823
|
+
"fg-subtle": {
|
|
1824
|
+
"by": "mode",
|
|
1825
|
+
"dark": {
|
|
1826
|
+
"type": "color",
|
|
1827
|
+
"value": "{gray-400}"
|
|
1828
|
+
},
|
|
1829
|
+
"light": {
|
|
1830
|
+
"type": "color",
|
|
1831
|
+
"value": "{gray-500}"
|
|
1832
|
+
}
|
|
1833
|
+
},
|
|
1834
|
+
"border": {
|
|
1835
|
+
"by": "mode",
|
|
1836
|
+
"dark": {
|
|
1837
|
+
"type": "color",
|
|
1838
|
+
"value": "{gray-700}"
|
|
1839
|
+
},
|
|
1840
|
+
"light": {
|
|
1841
|
+
"type": "color",
|
|
1842
|
+
"value": "{gray-200}"
|
|
1843
|
+
}
|
|
1844
|
+
},
|
|
1845
|
+
"border-strong": {
|
|
1846
|
+
"by": "mode",
|
|
1847
|
+
"dark": {
|
|
1848
|
+
"type": "color",
|
|
1849
|
+
"value": "{gray-400}",
|
|
1850
|
+
"description": "The line that has to be seen: a control's edge, a raised surface's outline. Clears WCAG 1.4.11's 3:1 against every surface in both modes."
|
|
1851
|
+
},
|
|
1852
|
+
"light": {
|
|
1853
|
+
"type": "color",
|
|
1854
|
+
"value": "{gray-500}"
|
|
1855
|
+
}
|
|
1856
|
+
},
|
|
1857
|
+
"accent-fg": {
|
|
1858
|
+
"by": "mode",
|
|
1859
|
+
"dark": {
|
|
1860
|
+
"type": "color",
|
|
1861
|
+
"value": "{accent-strong}",
|
|
1862
|
+
"description": "Accent for foreground use \u2014 text, icons, selected labels drawn on a surface. accent is a fill; the midnight base is too dim to read as text on dark surfaces."
|
|
1863
|
+
},
|
|
1864
|
+
"light": {
|
|
1865
|
+
"type": "color",
|
|
1866
|
+
"value": "{accent-base}",
|
|
1867
|
+
"description": "Flips to the deep base in light mode, where it is the legible one."
|
|
1868
|
+
}
|
|
1869
|
+
},
|
|
1870
|
+
"fg-inverse": {
|
|
1871
|
+
"by": "mode",
|
|
1872
|
+
"dark": {
|
|
1873
|
+
"type": "color",
|
|
1874
|
+
"value": "{gray-900}",
|
|
1875
|
+
"description": "Text drawn on a filled foreground-colored element (e.g. a slider thumb). Flips with the mode, so it is a semantic, not an alias to a primitive."
|
|
1876
|
+
},
|
|
1877
|
+
"light": {
|
|
1878
|
+
"type": "color",
|
|
1879
|
+
"value": "{gray-50}",
|
|
1880
|
+
"description": "Flips with the mode \u2014 see the dark layer."
|
|
1881
|
+
}
|
|
1882
|
+
},
|
|
1883
|
+
"shadow": {
|
|
1884
|
+
"by": "mode",
|
|
1885
|
+
"dark": {
|
|
1886
|
+
"type": "color",
|
|
1887
|
+
"value": "rgba(0, 0, 0, 0.6)",
|
|
1888
|
+
"description": "Elevation. Always darker than any surface \u2014 never derived from fg, which is near-white on dark."
|
|
1889
|
+
},
|
|
1890
|
+
"light": {
|
|
1891
|
+
"type": "color",
|
|
1892
|
+
"value": "rgba(0, 0, 0, 0.18)"
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
"danger-base": {
|
|
1896
|
+
"type": "color",
|
|
1897
|
+
"value": "#d94a3f"
|
|
1898
|
+
},
|
|
1899
|
+
"warning-base": {
|
|
1900
|
+
"type": "color",
|
|
1901
|
+
"value": "#d99a3f"
|
|
1902
|
+
},
|
|
1903
|
+
"success-base": {
|
|
1904
|
+
"type": "color",
|
|
1905
|
+
"value": "#2ec27e"
|
|
1906
|
+
},
|
|
1907
|
+
"fg-on-accent": {
|
|
1908
|
+
"type": "color",
|
|
1909
|
+
"value": "{gray-50}"
|
|
1910
|
+
},
|
|
1911
|
+
"line-subtle": {
|
|
1912
|
+
"type": "color",
|
|
1913
|
+
"value": "{fg}",
|
|
1914
|
+
"alpha": 0.1,
|
|
1915
|
+
"description": "Barely-there separators (table rows)."
|
|
1916
|
+
},
|
|
1917
|
+
"line": {
|
|
1918
|
+
"type": "color",
|
|
1919
|
+
"value": "{fg}",
|
|
1920
|
+
"alpha": 0.2,
|
|
1921
|
+
"description": "Primary gridlines on sunken surfaces."
|
|
1922
|
+
},
|
|
1923
|
+
"line-strong": {
|
|
1924
|
+
"type": "color",
|
|
1925
|
+
"value": "{fg}",
|
|
1926
|
+
"alpha": 0.4,
|
|
1927
|
+
"description": "Axes and emphasized dividers."
|
|
1928
|
+
},
|
|
1929
|
+
"curve-color": {
|
|
1930
|
+
"type": "color",
|
|
1931
|
+
"value": "{accent-strong}",
|
|
1932
|
+
"description": "Drawn data curves. Routes through the bright accent because accent-base is too dim on sunken surfaces."
|
|
1933
|
+
},
|
|
1934
|
+
"accent": {
|
|
1935
|
+
"type": "color",
|
|
1936
|
+
"value": "{accent-base}"
|
|
1937
|
+
},
|
|
1938
|
+
"accent-hover": {
|
|
1939
|
+
"type": "color",
|
|
1940
|
+
"value": "{accent-strong}"
|
|
1941
|
+
},
|
|
1942
|
+
"danger": {
|
|
1943
|
+
"type": "color",
|
|
1944
|
+
"value": "{danger-base}"
|
|
1945
|
+
},
|
|
1946
|
+
"warning": {
|
|
1947
|
+
"type": "color",
|
|
1948
|
+
"value": "{warning-base}"
|
|
1949
|
+
},
|
|
1950
|
+
"success": {
|
|
1951
|
+
"type": "color",
|
|
1952
|
+
"value": "{success-base}"
|
|
1953
|
+
},
|
|
1954
|
+
"focus-ring": {
|
|
1955
|
+
"type": "color",
|
|
1956
|
+
"value": "{accent-strong}"
|
|
1957
|
+
},
|
|
1958
|
+
"glass-tint": {
|
|
1959
|
+
"type": "color",
|
|
1960
|
+
"value": "{accent}",
|
|
1961
|
+
"description": "Frosted-glass tint. Components compose it as color-mix(in srgb, var(--wzl-glass-tint) 78%, transparent) with backdrop-filter: blur(3px)."
|
|
1962
|
+
},
|
|
1963
|
+
"surface-hover": {
|
|
1964
|
+
"type": "color",
|
|
1965
|
+
"value": "{fg}",
|
|
1966
|
+
"alpha": 0.1,
|
|
1967
|
+
"description": "Hover wash over a raised surface. Same formula as line-subtle, different job \u2014 do not collapse them."
|
|
1968
|
+
},
|
|
1969
|
+
"surface-pressed": {
|
|
1970
|
+
"type": "color",
|
|
1971
|
+
"value": "{fg}",
|
|
1972
|
+
"alpha": 0.18,
|
|
1973
|
+
"description": "Pressed wash over a raised surface."
|
|
1974
|
+
},
|
|
1975
|
+
"radius-sm": {
|
|
1976
|
+
"type": "dimension",
|
|
1977
|
+
"value": "3px"
|
|
1978
|
+
},
|
|
1979
|
+
"radius-md": {
|
|
1980
|
+
"type": "dimension",
|
|
1981
|
+
"value": "5px"
|
|
1982
|
+
},
|
|
1983
|
+
"radius-lg": {
|
|
1984
|
+
"type": "dimension",
|
|
1985
|
+
"value": "14px"
|
|
1986
|
+
},
|
|
1987
|
+
"radius-pill": {
|
|
1988
|
+
"type": "dimension",
|
|
1989
|
+
"value": "999px",
|
|
1990
|
+
"description": "Fully rounded ends \u2014 segmented controls, progress tracks."
|
|
1991
|
+
},
|
|
1992
|
+
"border-w": {
|
|
1993
|
+
"type": "dimension",
|
|
1994
|
+
"value": "1px"
|
|
1995
|
+
},
|
|
1996
|
+
"line-width": {
|
|
1997
|
+
"type": "dimension",
|
|
1998
|
+
"value": "2px",
|
|
1999
|
+
"description": "Structural lines \u2014 gridlines, dividers, axes."
|
|
2000
|
+
},
|
|
2001
|
+
"curve-width": {
|
|
2002
|
+
"type": "dimension",
|
|
2003
|
+
"value": "3px",
|
|
2004
|
+
"description": "Drawn data curves. Heavier than structural lines so data reads as primary content."
|
|
2005
|
+
},
|
|
2006
|
+
"tb-height": {
|
|
2007
|
+
"by": "density",
|
|
2008
|
+
"compact": {
|
|
2009
|
+
"type": "dimension",
|
|
2010
|
+
"value": "24px",
|
|
2011
|
+
"description": "Height of a horizontal toolbar strip (ActionsBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges."
|
|
2012
|
+
},
|
|
2013
|
+
"comfortable": {
|
|
2014
|
+
"type": "dimension",
|
|
2015
|
+
"value": "28px",
|
|
2016
|
+
"description": "Height of a horizontal toolbar strip (ActionsBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges."
|
|
2017
|
+
},
|
|
2018
|
+
"roomy": {
|
|
2019
|
+
"type": "dimension",
|
|
2020
|
+
"value": "32px",
|
|
2021
|
+
"description": "Height of a horizontal toolbar strip (ActionsBar, OptionsBar, ToolOptionsBar). Taller than control-h so the controls inside a strip are not flush with its edges."
|
|
2022
|
+
}
|
|
2023
|
+
},
|
|
2024
|
+
"control-h-xs": {
|
|
2025
|
+
"by": "density",
|
|
2026
|
+
"compact": {
|
|
2027
|
+
"type": "dimension",
|
|
2028
|
+
"value": "16px",
|
|
2029
|
+
"description": "Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm."
|
|
2030
|
+
},
|
|
2031
|
+
"comfortable": {
|
|
2032
|
+
"type": "dimension",
|
|
2033
|
+
"value": "18px",
|
|
2034
|
+
"description": "Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm."
|
|
2035
|
+
},
|
|
2036
|
+
"roomy": {
|
|
2037
|
+
"type": "dimension",
|
|
2038
|
+
"value": "22px",
|
|
2039
|
+
"description": "Height of the smallest interactive control -- a stepper, a keycap, a swatch button in a dense row. The rank below control-h-sm."
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
"control-h-sm": {
|
|
2043
|
+
"by": "density",
|
|
2044
|
+
"compact": {
|
|
2045
|
+
"type": "dimension",
|
|
2046
|
+
"value": "18px",
|
|
2047
|
+
"description": "Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control."
|
|
2048
|
+
},
|
|
2049
|
+
"comfortable": {
|
|
2050
|
+
"type": "dimension",
|
|
2051
|
+
"value": "20px",
|
|
2052
|
+
"description": "Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control."
|
|
2053
|
+
},
|
|
2054
|
+
"roomy": {
|
|
2055
|
+
"type": "dimension",
|
|
2056
|
+
"value": "24px",
|
|
2057
|
+
"description": "Height of a control in a dense inspector -- a Properties field, a small Button. The rank below control-h, which sizes a standalone control."
|
|
2058
|
+
}
|
|
2059
|
+
},
|
|
2060
|
+
"control-h": {
|
|
2061
|
+
"by": "density",
|
|
2062
|
+
"compact": {
|
|
2063
|
+
"type": "dimension",
|
|
2064
|
+
"value": "20px",
|
|
2065
|
+
"description": "Height of an interactive control \u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in."
|
|
2066
|
+
},
|
|
2067
|
+
"comfortable": {
|
|
2068
|
+
"type": "dimension",
|
|
2069
|
+
"value": "24px",
|
|
2070
|
+
"description": "Height of an interactive control \u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in."
|
|
2071
|
+
},
|
|
2072
|
+
"roomy": {
|
|
2073
|
+
"type": "dimension",
|
|
2074
|
+
"value": "28px",
|
|
2075
|
+
"description": "Height of an interactive control \u2014 button, input, select, segmented control. Distinct from tb-height, which sizes the strip a row of them sits in."
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
"icon-button-size": {
|
|
2079
|
+
"by": "density",
|
|
2080
|
+
"compact": {
|
|
2081
|
+
"type": "dimension",
|
|
2082
|
+
"value": "20px",
|
|
2083
|
+
"description": "Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes."
|
|
2084
|
+
},
|
|
2085
|
+
"comfortable": {
|
|
2086
|
+
"type": "dimension",
|
|
2087
|
+
"value": "22px",
|
|
2088
|
+
"description": "Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes."
|
|
2089
|
+
},
|
|
2090
|
+
"roomy": {
|
|
2091
|
+
"type": "dimension",
|
|
2092
|
+
"value": "26px",
|
|
2093
|
+
"description": "Side of a square icon button -- a dialog close, a row remove, a field clear. Smaller than control-h because it carries a glyph rather than a label, and square, so it sizes both axes."
|
|
2094
|
+
}
|
|
2095
|
+
},
|
|
2096
|
+
"slider-track-h": {
|
|
2097
|
+
"type": "dimension",
|
|
2098
|
+
"value": "4px",
|
|
2099
|
+
"description": "Height of a linear range track. The kit's single-thumb ranges all wear this; Slider's default 24px canvas track does not."
|
|
2100
|
+
},
|
|
2101
|
+
"slider-thumb-size": {
|
|
2102
|
+
"type": "dimension",
|
|
2103
|
+
"value": "8px",
|
|
2104
|
+
"description": "Diameter of a linear range thumb."
|
|
2105
|
+
},
|
|
2106
|
+
"slider-track-mix": {
|
|
2107
|
+
"type": "dimension",
|
|
2108
|
+
"value": "18%",
|
|
2109
|
+
"description": "Accent proportion in a range track, as a color-mix percentage \u2014 not a color. Mixed into a real property, never into another custom property."
|
|
2110
|
+
},
|
|
2111
|
+
"slider-thumb-mix": {
|
|
2112
|
+
"type": "dimension",
|
|
2113
|
+
"value": "70%",
|
|
2114
|
+
"description": "Accent proportion in a range thumb, as a color-mix percentage \u2014 not a color."
|
|
2115
|
+
},
|
|
2116
|
+
"handle-size": {
|
|
2117
|
+
"type": "dimension",
|
|
2118
|
+
"value": "9px",
|
|
2119
|
+
"description": "Edge of a draggable handle on a plot or timeline \u2014 a keyframe diamond, a timeline key, an event mark. The default rank; -sm and -lg are the two deliberate departures from it."
|
|
2120
|
+
},
|
|
2121
|
+
"handle-size-sm": {
|
|
2122
|
+
"type": "dimension",
|
|
2123
|
+
"value": "7px",
|
|
2124
|
+
"description": "A handle that is drawn but not draggable \u2014 a locked or pinned point. Smaller so it reads as inert next to a live one."
|
|
2125
|
+
},
|
|
2126
|
+
"handle-size-lg": {
|
|
2127
|
+
"type": "dimension",
|
|
2128
|
+
"value": "10px",
|
|
2129
|
+
"description": "A handle that is a category of its own rather than one of a row \u2014 a curve's endpoint. Larger so it separates from the handles it sits in line with."
|
|
2130
|
+
},
|
|
2131
|
+
"field-pad-x": {
|
|
2132
|
+
"type": "dimension",
|
|
2133
|
+
"value": "8px",
|
|
2134
|
+
"description": "Horizontal padding inside a boxed field. Pairs with --wzl-field-h, which is a container override and has no :root default."
|
|
2135
|
+
},
|
|
2136
|
+
"glass-blur": {
|
|
2137
|
+
"type": "dimension",
|
|
2138
|
+
"value": "3px",
|
|
2139
|
+
"description": "Backdrop blur radius for frosted surfaces. Pairs with glass-tint."
|
|
2140
|
+
},
|
|
2141
|
+
"font-size": {
|
|
2142
|
+
"type": "dimension",
|
|
2143
|
+
"value": "{font-size-md}",
|
|
2144
|
+
"description": "Controls and body text."
|
|
2145
|
+
},
|
|
2146
|
+
"tracking-none": {
|
|
2147
|
+
"type": "dimension",
|
|
2148
|
+
"value": "0"
|
|
2149
|
+
},
|
|
2150
|
+
"tracking-wide": {
|
|
2151
|
+
"type": "dimension",
|
|
2152
|
+
"value": "0.06em",
|
|
2153
|
+
"description": "Uppercase section headings."
|
|
2154
|
+
},
|
|
2155
|
+
"tracking-wider": {
|
|
2156
|
+
"type": "dimension",
|
|
2157
|
+
"value": "0.08em",
|
|
2158
|
+
"description": "Uppercase at 11px and below."
|
|
2159
|
+
},
|
|
2160
|
+
"z-toolbar": {
|
|
2161
|
+
"type": "number",
|
|
2162
|
+
"value": 10
|
|
2163
|
+
},
|
|
2164
|
+
"z-overlay": {
|
|
2165
|
+
"type": "number",
|
|
2166
|
+
"value": 20
|
|
2167
|
+
},
|
|
2168
|
+
"z-modal": {
|
|
2169
|
+
"type": "number",
|
|
2170
|
+
"value": 30
|
|
2171
|
+
},
|
|
2172
|
+
"leading-tight": {
|
|
2173
|
+
"type": "number",
|
|
2174
|
+
"value": 1,
|
|
2175
|
+
"description": "Single-line controls; the box sets the height."
|
|
2176
|
+
},
|
|
2177
|
+
"leading-snug": {
|
|
2178
|
+
"type": "number",
|
|
2179
|
+
"value": 1.2,
|
|
2180
|
+
"description": "Headings and two-line labels."
|
|
2181
|
+
},
|
|
2182
|
+
"leading": {
|
|
2183
|
+
"type": "number",
|
|
2184
|
+
"value": 1.4,
|
|
2185
|
+
"description": "Body and anything that wraps."
|
|
2186
|
+
},
|
|
2187
|
+
"backdrop": {
|
|
2188
|
+
"type": "gradient",
|
|
2189
|
+
"value": "none",
|
|
2190
|
+
"description": "Layered backdrop fill for a page or lab root. `none` here; a theme with a signature background sets it."
|
|
2191
|
+
},
|
|
2192
|
+
"motion-fast": {
|
|
2193
|
+
"type": "duration",
|
|
2194
|
+
"value": "120ms",
|
|
2195
|
+
"description": "Micro-interactions \u2014 hover, focus, pressed."
|
|
2196
|
+
},
|
|
2197
|
+
"motion-medium": {
|
|
2198
|
+
"type": "duration",
|
|
2199
|
+
"value": "240ms",
|
|
2200
|
+
"description": "Entrances and exits \u2014 toasts, popovers, panels."
|
|
2201
|
+
},
|
|
2202
|
+
"ease-in-cubic": {
|
|
2203
|
+
"type": "cubicBezier",
|
|
2204
|
+
"value": [
|
|
2205
|
+
0.32,
|
|
2206
|
+
0,
|
|
2207
|
+
0.67,
|
|
2208
|
+
0
|
|
2209
|
+
]
|
|
2210
|
+
},
|
|
2211
|
+
"ease-out-cubic": {
|
|
2212
|
+
"type": "cubicBezier",
|
|
2213
|
+
"value": [
|
|
2214
|
+
0.33,
|
|
2215
|
+
1,
|
|
2216
|
+
0.68,
|
|
2217
|
+
1
|
|
2218
|
+
]
|
|
2219
|
+
},
|
|
2220
|
+
"ease-in-out-cubic": {
|
|
2221
|
+
"type": "cubicBezier",
|
|
2222
|
+
"value": [
|
|
2223
|
+
0.65,
|
|
2224
|
+
0,
|
|
2225
|
+
0.35,
|
|
2226
|
+
1
|
|
2227
|
+
]
|
|
2228
|
+
},
|
|
2229
|
+
"ease-out-back": {
|
|
2230
|
+
"type": "cubicBezier",
|
|
2231
|
+
"value": [
|
|
2232
|
+
0.34,
|
|
2233
|
+
1.56,
|
|
2234
|
+
0.64,
|
|
2235
|
+
1
|
|
2236
|
+
]
|
|
2237
|
+
},
|
|
2238
|
+
"font-ui": {
|
|
2239
|
+
"type": "fontFamily",
|
|
2240
|
+
"value": [
|
|
2241
|
+
"Oswald",
|
|
2242
|
+
"Helvetica Neue Condensed",
|
|
2243
|
+
"Arial Narrow",
|
|
2244
|
+
"system-ui",
|
|
2245
|
+
"sans-serif"
|
|
2246
|
+
],
|
|
2247
|
+
"description": "Condensed UI/display face. The heavier cuts get blocky at any size, so the weight tokens stay in the 200-400 range."
|
|
2248
|
+
},
|
|
2249
|
+
"font-display": {
|
|
2250
|
+
"type": "fontFamily",
|
|
2251
|
+
"value": [
|
|
2252
|
+
"Oswald",
|
|
2253
|
+
"Helvetica Neue Condensed",
|
|
2254
|
+
"Arial Narrow",
|
|
2255
|
+
"system-ui",
|
|
2256
|
+
"sans-serif"
|
|
2257
|
+
]
|
|
2258
|
+
},
|
|
2259
|
+
"font-body": {
|
|
2260
|
+
"type": "fontFamily",
|
|
2261
|
+
"value": [
|
|
2262
|
+
"Inter",
|
|
2263
|
+
"system-ui",
|
|
2264
|
+
"-apple-system",
|
|
2265
|
+
"Segoe UI",
|
|
2266
|
+
"sans-serif"
|
|
2267
|
+
]
|
|
2268
|
+
},
|
|
2269
|
+
"font-mono": {
|
|
2270
|
+
"type": "fontFamily",
|
|
2271
|
+
"value": [
|
|
2272
|
+
"ui-monospace",
|
|
2273
|
+
"SFMono-Regular",
|
|
2274
|
+
"Menlo",
|
|
2275
|
+
"Consolas",
|
|
2276
|
+
"monospace"
|
|
2277
|
+
]
|
|
2278
|
+
},
|
|
2279
|
+
"font-weight-light": {
|
|
2280
|
+
"type": "fontWeight",
|
|
2281
|
+
"value": 200
|
|
2282
|
+
},
|
|
2283
|
+
"font-weight-normal": {
|
|
2284
|
+
"type": "fontWeight",
|
|
2285
|
+
"value": 300
|
|
2286
|
+
},
|
|
2287
|
+
"font-weight-medium": {
|
|
2288
|
+
"type": "fontWeight",
|
|
2289
|
+
"value": 350
|
|
2290
|
+
},
|
|
2291
|
+
"font-weight-bold": {
|
|
2292
|
+
"type": "fontWeight",
|
|
2293
|
+
"value": 400
|
|
2294
|
+
},
|
|
2295
|
+
"space-xs": {
|
|
2296
|
+
"type": "dimension",
|
|
2297
|
+
"value": "{space-2}",
|
|
2298
|
+
"description": "Alias for space-2. The t-shirt names name every other rung of the ladder."
|
|
2299
|
+
},
|
|
2300
|
+
"space-sm": {
|
|
2301
|
+
"type": "dimension",
|
|
2302
|
+
"value": "{space-4}",
|
|
2303
|
+
"description": "Alias for space-4. The t-shirt names name every other rung of the ladder."
|
|
2304
|
+
},
|
|
2305
|
+
"space-md": {
|
|
2306
|
+
"type": "dimension",
|
|
2307
|
+
"value": "{space-6}",
|
|
2308
|
+
"description": "Alias for space-6. The t-shirt names name every other rung of the ladder."
|
|
2309
|
+
},
|
|
2310
|
+
"space-lg": {
|
|
2311
|
+
"type": "dimension",
|
|
2312
|
+
"value": "{space-8}",
|
|
2313
|
+
"description": "Alias for space-8. The t-shirt names name every other rung of the ladder."
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2319
|
+
// src/theme.ts
|
|
2320
|
+
var isPinObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v) && "value" in v;
|
|
2321
|
+
function toRaw(v) {
|
|
2322
|
+
if (isByAxis(v)) {
|
|
2323
|
+
const out = { by: v.by };
|
|
2324
|
+
for (const [k, x] of Object.entries(v)) if (k !== "by") out[k] = toRaw(x);
|
|
2325
|
+
return out;
|
|
2326
|
+
}
|
|
2327
|
+
const obj = isPinObject(v) ? v : { value: v };
|
|
2328
|
+
return { type: obj.type ?? "unknown", value: obj.value, alpha: obj.alpha, description: obj.description };
|
|
2329
|
+
}
|
|
2330
|
+
var weaselTheme = {
|
|
2331
|
+
name: "weasel",
|
|
2332
|
+
extends: null,
|
|
2333
|
+
axes: BAKED_THEMES.weasel.axes,
|
|
2334
|
+
tokens: BAKED_THEMES.weasel.tokens
|
|
2335
|
+
};
|
|
2336
|
+
function defineTheme(input) {
|
|
2337
|
+
if (typeof input.extends === "string") {
|
|
2338
|
+
throw new Error(
|
|
2339
|
+
`Theme "${input.name}" extends "${input.extends}" by name; defineTheme needs the Theme itself (e.g. weaselTheme), not a definition's name.`
|
|
2340
|
+
);
|
|
2341
|
+
}
|
|
2342
|
+
const rules = ["seeds", "ramps", "scales", "semantics"].filter((k) => Object.keys(input[k] ?? {}).length > 0);
|
|
2343
|
+
if (rules.length > 0) {
|
|
2344
|
+
throw new Error(
|
|
2345
|
+
`Theme "${input.name}" has ${rules.join(", ")}, which need deriving. Bake it with \`bake\` from @weasel-js/theme/engine.`
|
|
2346
|
+
);
|
|
2347
|
+
}
|
|
2348
|
+
const tokens = {};
|
|
2349
|
+
for (const [name, v] of Object.entries({ ...input.components, ...input.pins })) tokens[name] = toRaw(v);
|
|
2350
|
+
return {
|
|
2351
|
+
name: input.name,
|
|
2352
|
+
extends: input.extends === void 0 ? weaselTheme : input.extends,
|
|
2353
|
+
axes: input.axes ?? {},
|
|
2354
|
+
tokens
|
|
2355
|
+
};
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
// src/applyTheme.ts
|
|
2359
|
+
var STYLE_ID = "wzl-themes";
|
|
2360
|
+
var emitted = /* @__PURE__ */ new Map();
|
|
2361
|
+
var sheet = null;
|
|
2362
|
+
var styleEl = null;
|
|
2363
|
+
function canAdopt() {
|
|
2364
|
+
return typeof CSSStyleSheet !== "undefined" && "replaceSync" in CSSStyleSheet.prototype && Array.isArray(document.adoptedStyleSheets);
|
|
2365
|
+
}
|
|
2366
|
+
function flushRules() {
|
|
2367
|
+
const css = [...emitted.values()].join("\n");
|
|
2368
|
+
if (canAdopt()) {
|
|
2369
|
+
if (!sheet) {
|
|
2370
|
+
sheet = new CSSStyleSheet();
|
|
2371
|
+
document.adoptedStyleSheets = [...document.adoptedStyleSheets, sheet];
|
|
2372
|
+
}
|
|
2373
|
+
sheet.replaceSync(css);
|
|
2374
|
+
return;
|
|
2375
|
+
}
|
|
2376
|
+
if (!styleEl) {
|
|
2377
|
+
styleEl = document.createElement("style");
|
|
2378
|
+
styleEl.id = STYLE_ID;
|
|
2379
|
+
document.head.appendChild(styleEl);
|
|
2380
|
+
}
|
|
2381
|
+
styleEl.textContent = css;
|
|
2382
|
+
}
|
|
2383
|
+
function applyTheme(el, theme, selection = {}) {
|
|
2384
|
+
if (typeof document === "undefined") return;
|
|
2385
|
+
const axes = themeAxes(theme);
|
|
2386
|
+
const sel = fullSelection(axes, selection);
|
|
2387
|
+
const key = `${theme.name}::${selectionKey(axes, sel)}`;
|
|
2388
|
+
const body = Object.entries(resolveTheme(theme, sel)).map(([name, value]) => `${name}: ${value};`).join(" ");
|
|
2389
|
+
const attrs = Object.keys(axes).map((a) => `[data-wzl-${a}='${sel[a]}']`).join("");
|
|
2390
|
+
const rule = `[data-wzl-theme='${theme.name}']${attrs} { ${body} }`;
|
|
2391
|
+
if (emitted.get(key) !== rule) {
|
|
2392
|
+
emitted.set(key, rule);
|
|
2393
|
+
flushRules();
|
|
2394
|
+
}
|
|
2395
|
+
el.setAttribute("data-wzl-theme", theme.name);
|
|
2396
|
+
for (const a of Object.keys(axes)) el.setAttribute(`data-wzl-${a}`, sel[a]);
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
export { BAKED_THEMES, THEMES, THEME_SOURCES, applyTheme, defineTheme, weaselTheme };
|
|
2400
|
+
//# sourceMappingURL=chunk-XFCWYN2L.js.map
|
|
2401
|
+
//# sourceMappingURL=chunk-XFCWYN2L.js.map
|