@rowkit/tokens 1.0.0-beta.0 → 1.0.0-beta.1
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 +68 -10
- package/dist/color.d.ts +119 -2
- package/dist/css.d.ts +16 -2
- package/dist/index.d.ts +241 -0
- package/dist/index.js +95 -257
- package/dist/index.js.map +1 -1
- package/dist/radius.d.ts +6 -0
- package/dist/reference.d.ts +20 -0
- package/dist/reference.data.d.ts +2 -0
- package/dist/reference.js +403 -0
- package/dist/reference.js.map +1 -0
- package/dist/shadow.d.ts +34 -0
- package/dist/size.d.ts +194 -0
- package/dist/style.d.ts +129 -0
- package/dist/themes/index.d.ts +69 -0
- package/dist/themes/modern.d.ts +139 -0
- package/dist/themes-B0J8E0xq.js +1022 -0
- package/dist/themes-B0J8E0xq.js.map +1 -0
- package/dist/tokens.css +1169 -12
- package/dist/typography.d.ts +6 -0
- package/package.json +7 -2
|
@@ -0,0 +1,1022 @@
|
|
|
1
|
+
//#region src/color.ts
|
|
2
|
+
var e = {
|
|
3
|
+
black: "#000000",
|
|
4
|
+
white: "#ffffff",
|
|
5
|
+
silver: "#c0c0c0",
|
|
6
|
+
gray: "#808080",
|
|
7
|
+
navy: "#000080",
|
|
8
|
+
blue: "#0000ff",
|
|
9
|
+
teal: "#008080",
|
|
10
|
+
green: "#008000",
|
|
11
|
+
olive: "#808000",
|
|
12
|
+
yellow: "#ffff00",
|
|
13
|
+
maroon: "#800000",
|
|
14
|
+
red: "#ff0000"
|
|
15
|
+
}, t = {
|
|
16
|
+
light: "#dfdfdf",
|
|
17
|
+
"dark-gray": "#404040",
|
|
18
|
+
"title-blue": "#1084d0",
|
|
19
|
+
"title-gray": "#b5b5b5",
|
|
20
|
+
info: "#ffffe1"
|
|
21
|
+
}, n = {
|
|
22
|
+
...r("vga", e),
|
|
23
|
+
...r("win98", t)
|
|
24
|
+
};
|
|
25
|
+
function r(e, t) {
|
|
26
|
+
let n = {};
|
|
27
|
+
for (let [r, i] of Object.entries(t)) n[`${e}-${r}`] = i;
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
var i = (e) => `var(--color-${e})`, a = {
|
|
31
|
+
background: i("vga-silver"),
|
|
32
|
+
desktop: i("vga-teal"),
|
|
33
|
+
card: i("vga-silver"),
|
|
34
|
+
muted: i("vga-silver"),
|
|
35
|
+
accent: i("vga-silver"),
|
|
36
|
+
"surface-active": i("vga-silver"),
|
|
37
|
+
"surface-selected": i("vga-navy"),
|
|
38
|
+
"surface-disabled": i("vga-silver"),
|
|
39
|
+
skeleton: i("vga-gray"),
|
|
40
|
+
input: i("vga-white"),
|
|
41
|
+
"tooltip-bg": i("win98-info"),
|
|
42
|
+
foreground: i("vga-black"),
|
|
43
|
+
"muted-foreground": i("vga-black"),
|
|
44
|
+
"text-subtle": i("win98-dark-gray"),
|
|
45
|
+
"text-disabled": i("vga-gray"),
|
|
46
|
+
"text-disabled-emboss": i("vga-white"),
|
|
47
|
+
"on-selected": i("vga-white"),
|
|
48
|
+
link: i("vga-blue"),
|
|
49
|
+
border: i("vga-gray"),
|
|
50
|
+
"border-strong": i("vga-black"),
|
|
51
|
+
"border-subtle": i("win98-light"),
|
|
52
|
+
ring: i("vga-black"),
|
|
53
|
+
shadow: i("vga-black"),
|
|
54
|
+
"bevel-highlight": i("vga-white"),
|
|
55
|
+
"bevel-light": i("win98-light"),
|
|
56
|
+
"bevel-shadow": i("vga-gray"),
|
|
57
|
+
"bevel-dark": i("vga-black"),
|
|
58
|
+
"titlebar-from": i("vga-navy"),
|
|
59
|
+
"titlebar-to": i("win98-title-blue"),
|
|
60
|
+
"titlebar-inactive-from": i("vga-gray"),
|
|
61
|
+
"titlebar-inactive-to": i("win98-title-gray"),
|
|
62
|
+
"titlebar-foreground": i("vga-white"),
|
|
63
|
+
"titlebar-inactive-foreground": i("vga-black"),
|
|
64
|
+
"neutral-solid": i("vga-black"),
|
|
65
|
+
"neutral-solid-hover": i("vga-black"),
|
|
66
|
+
"neutral-on-solid": i("vga-white"),
|
|
67
|
+
"neutral-subtle": i("vga-white"),
|
|
68
|
+
"neutral-on-subtle": i("vga-black"),
|
|
69
|
+
"neutral-border": i("vga-gray"),
|
|
70
|
+
"primary-solid": i("vga-navy"),
|
|
71
|
+
"primary-solid-hover": i("vga-navy"),
|
|
72
|
+
"primary-on-solid": i("vga-white"),
|
|
73
|
+
"primary-subtle": i("vga-white"),
|
|
74
|
+
"primary-on-subtle": i("vga-navy"),
|
|
75
|
+
"primary-border": i("vga-navy"),
|
|
76
|
+
"success-solid": i("vga-green"),
|
|
77
|
+
"success-solid-hover": i("vga-green"),
|
|
78
|
+
"success-on-solid": i("vga-white"),
|
|
79
|
+
"success-subtle": i("vga-white"),
|
|
80
|
+
"success-on-subtle": i("vga-green"),
|
|
81
|
+
"success-border": i("vga-green"),
|
|
82
|
+
"warning-solid": i("vga-yellow"),
|
|
83
|
+
"warning-solid-hover": i("vga-yellow"),
|
|
84
|
+
"warning-on-solid": i("vga-black"),
|
|
85
|
+
"warning-subtle": i("vga-white"),
|
|
86
|
+
"warning-on-subtle": i("vga-black"),
|
|
87
|
+
"warning-border": i("vga-olive"),
|
|
88
|
+
"danger-solid": i("vga-maroon"),
|
|
89
|
+
"danger-solid-hover": i("vga-maroon"),
|
|
90
|
+
"danger-on-solid": i("vga-white"),
|
|
91
|
+
"danger-subtle": i("vga-white"),
|
|
92
|
+
"danger-on-subtle": i("vga-maroon"),
|
|
93
|
+
"danger-border": i("vga-maroon"),
|
|
94
|
+
control: i("vga-silver"),
|
|
95
|
+
"control-foreground": i("vga-black"),
|
|
96
|
+
"control-hover": i("vga-silver"),
|
|
97
|
+
"control-active": i("vga-silver"),
|
|
98
|
+
"control-primary": i("vga-silver"),
|
|
99
|
+
"control-primary-foreground": i("vga-black"),
|
|
100
|
+
"control-primary-hover": i("vga-silver"),
|
|
101
|
+
"control-primary-active": i("vga-silver"),
|
|
102
|
+
"control-ghost-hover": i("vga-silver"),
|
|
103
|
+
"control-ghost-active": i("vga-silver"),
|
|
104
|
+
"control-latched": i("vga-silver"),
|
|
105
|
+
"control-primary-latched": i("vga-silver"),
|
|
106
|
+
checked: i("vga-white"),
|
|
107
|
+
"on-checked": i("vga-black"),
|
|
108
|
+
popover: i("vga-white"),
|
|
109
|
+
"popover-border": i("vga-black"),
|
|
110
|
+
"focus-ring": i("vga-black"),
|
|
111
|
+
caption: i("vga-silver"),
|
|
112
|
+
"caption-foreground": i("vga-black"),
|
|
113
|
+
"caption-close": i("vga-silver"),
|
|
114
|
+
"caption-minimize": i("vga-silver"),
|
|
115
|
+
"caption-maximize": i("vga-silver"),
|
|
116
|
+
"caption-inactive": i("vga-silver"),
|
|
117
|
+
"table-header": i("vga-silver"),
|
|
118
|
+
"table-header-foreground": i("vga-black"),
|
|
119
|
+
"table-stripe": i("vga-white"),
|
|
120
|
+
"table-row-hover": i("vga-white"),
|
|
121
|
+
track: i("vga-silver"),
|
|
122
|
+
progress: i("vga-navy"),
|
|
123
|
+
"scroll-thumb": i("vga-silver"),
|
|
124
|
+
"scroll-track": i("vga-silver"),
|
|
125
|
+
"tooltip-border": i("vga-black"),
|
|
126
|
+
groupbox: i("vga-silver"),
|
|
127
|
+
"groupbox-face": i("vga-silver"),
|
|
128
|
+
"toast-close": i("vga-silver"),
|
|
129
|
+
"toast-close-foreground": i("vga-black"),
|
|
130
|
+
"loading-foreground": i("vga-black"),
|
|
131
|
+
"select-search": i("vga-silver"),
|
|
132
|
+
pager: i("vga-silver"),
|
|
133
|
+
"pager-hover": i("vga-silver"),
|
|
134
|
+
"pager-active": i("vga-silver"),
|
|
135
|
+
"filter-bar": i("vga-silver"),
|
|
136
|
+
chip: i("vga-white"),
|
|
137
|
+
"chip-border": i("vga-gray"),
|
|
138
|
+
"chip-foreground": i("vga-black"),
|
|
139
|
+
"chip-remove": i("vga-white"),
|
|
140
|
+
"field-highlight": i("vga-navy"),
|
|
141
|
+
"on-field-highlight": i("vga-white"),
|
|
142
|
+
"field-caret": i("vga-black"),
|
|
143
|
+
"field-button": i("vga-silver")
|
|
144
|
+
}, o = "0rem", s = {
|
|
145
|
+
none: 0,
|
|
146
|
+
xs: .4,
|
|
147
|
+
sm: .6,
|
|
148
|
+
md: .8,
|
|
149
|
+
lg: 1,
|
|
150
|
+
xl: 1.4
|
|
151
|
+
}, c = "9999px", l = {
|
|
152
|
+
...Object.fromEntries(Object.entries(s).map(([e, t]) => [e, d(t)])),
|
|
153
|
+
full: c,
|
|
154
|
+
pill: "0rem"
|
|
155
|
+
}, u = {
|
|
156
|
+
...Object.fromEntries(Object.entries(s).map(([e, t]) => [e, f(t)])),
|
|
157
|
+
full: c,
|
|
158
|
+
pill: "0rem"
|
|
159
|
+
};
|
|
160
|
+
function d(e) {
|
|
161
|
+
return e === 0 ? "0rem" : `${Number((Number.parseFloat(o) * e).toFixed(6))}rem`;
|
|
162
|
+
}
|
|
163
|
+
function f(e) {
|
|
164
|
+
return e === 0 ? "0rem" : e === 1 ? "var(--radius)" : `calc(var(--radius) * ${e})`;
|
|
165
|
+
}
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region src/shadow.ts
|
|
168
|
+
var p = "var(--color-bevel-highlight)", m = "var(--color-bevel-light)", h = "var(--color-bevel-shadow)", g = "var(--color-bevel-dark)";
|
|
169
|
+
function _(e, t) {
|
|
170
|
+
let [n, r] = e, i = [`inset -1px -1px ${r}`, `inset 1px 1px ${n}`];
|
|
171
|
+
if (t) {
|
|
172
|
+
let [e, n] = t;
|
|
173
|
+
i.push(`inset -2px -2px ${n}`, `inset 2px 2px ${e}`);
|
|
174
|
+
}
|
|
175
|
+
return i.join(", ");
|
|
176
|
+
}
|
|
177
|
+
var v = {
|
|
178
|
+
none: "none",
|
|
179
|
+
raised: _([p, g], [m, h]),
|
|
180
|
+
window: _([m, g], [p, h]),
|
|
181
|
+
"raised-default": [
|
|
182
|
+
`inset -1px -1px ${g}`,
|
|
183
|
+
`inset 1px 1px ${g}`,
|
|
184
|
+
`inset -2px -2px ${g}`,
|
|
185
|
+
`inset 2px 2px ${p}`,
|
|
186
|
+
`inset -3px -3px ${h}`,
|
|
187
|
+
`inset 3px 3px ${m}`
|
|
188
|
+
].join(", "),
|
|
189
|
+
pressed: _([g, p], [h, m]),
|
|
190
|
+
sunken: _([h, p], [g, m]),
|
|
191
|
+
status: _([h, p]),
|
|
192
|
+
etched: _([h, p], [p, h]),
|
|
193
|
+
"raised-thin": _([p, h]),
|
|
194
|
+
popover: "none",
|
|
195
|
+
table: _([h, p], [g, m]),
|
|
196
|
+
header: _([p, g], [m, h]),
|
|
197
|
+
caption: _([p, g], [m, h]),
|
|
198
|
+
statusbar: "none",
|
|
199
|
+
titlebar: "none",
|
|
200
|
+
checked: _([h, p], [g, m]),
|
|
201
|
+
"field-button-pressed": _([g, p], [h, m]),
|
|
202
|
+
"latched-ghost": _([g, p], [h, m]),
|
|
203
|
+
"checked-selected": _([h, p], [g, m]),
|
|
204
|
+
"toast-close": _([p, g], [m, h]),
|
|
205
|
+
pager: _([p, g], [m, h]),
|
|
206
|
+
"pager-focus": [
|
|
207
|
+
`inset -1px -1px ${g}`,
|
|
208
|
+
`inset 1px 1px ${g}`,
|
|
209
|
+
`inset -2px -2px ${g}`,
|
|
210
|
+
`inset 2px 2px ${p}`,
|
|
211
|
+
`inset -3px -3px ${h}`,
|
|
212
|
+
`inset 3px 3px ${m}`
|
|
213
|
+
].join(", "),
|
|
214
|
+
"pager-pressed": _([g, p], [h, m]),
|
|
215
|
+
"field-button": _([p, g], [m, h]),
|
|
216
|
+
"scroll-thumb": _([p, g], [m, h]),
|
|
217
|
+
"scroll-x": `inset -1px 0 ${h}`,
|
|
218
|
+
"sticky-header": "inset 0 -1px 0 var(--color-border)"
|
|
219
|
+
}, y = { disabled: "1px 1px 0 var(--color-text-disabled-emboss)" }, b = {
|
|
220
|
+
"control-xs": "21px",
|
|
221
|
+
"control-sm": "26px",
|
|
222
|
+
"control-md": "28px",
|
|
223
|
+
"control-lg": "33px",
|
|
224
|
+
"icon-xs": "25px",
|
|
225
|
+
"icon-sm": "27px",
|
|
226
|
+
"icon-md": "30px",
|
|
227
|
+
"icon-lg": "34px",
|
|
228
|
+
"button-min-xs": "3rem",
|
|
229
|
+
"button-min-sm": "4rem",
|
|
230
|
+
"button-min-md": "92px",
|
|
231
|
+
"button-min-lg": "108px",
|
|
232
|
+
"button-px-xs": "0.375rem",
|
|
233
|
+
"button-px-sm": "0.5rem",
|
|
234
|
+
"button-px-md": "0.75rem",
|
|
235
|
+
"button-px-lg": "1rem",
|
|
236
|
+
"field-px": "0.25rem",
|
|
237
|
+
"field-px-lg": "0.375rem",
|
|
238
|
+
"field-gap-sm": "0.25rem",
|
|
239
|
+
"field-gap-md": "0.375rem",
|
|
240
|
+
"field-gap-lg": "0.5rem",
|
|
241
|
+
"field-left-gap": "0.5rem",
|
|
242
|
+
"field-error-gap": "0.25rem",
|
|
243
|
+
check: "13px",
|
|
244
|
+
radio: "12px",
|
|
245
|
+
"check-gap": "4px",
|
|
246
|
+
"check-label-px": "1px",
|
|
247
|
+
titlebar: "22px",
|
|
248
|
+
"caption-w": "20px",
|
|
249
|
+
"caption-h": "18px",
|
|
250
|
+
"caption-gap": "0px",
|
|
251
|
+
"caption-close-gap": "2px",
|
|
252
|
+
"titlebar-px": "2px",
|
|
253
|
+
"title-inset-start": "4px",
|
|
254
|
+
"title-inset-end": "28px",
|
|
255
|
+
frame: "2px",
|
|
256
|
+
"dialog-px": "0.75rem",
|
|
257
|
+
"dialog-pt": "0.75rem",
|
|
258
|
+
"dialog-footer-pt": "0.5rem",
|
|
259
|
+
"dialog-footer-pb": "0.75rem",
|
|
260
|
+
item: "22px",
|
|
261
|
+
"item-pl": "2px",
|
|
262
|
+
"item-pr": "0.25rem",
|
|
263
|
+
"item-check": "12px",
|
|
264
|
+
"item-gap": "2px",
|
|
265
|
+
"item-check-glyph": "7px",
|
|
266
|
+
"popover-inset": "1px",
|
|
267
|
+
"table-header-px": "0.25rem",
|
|
268
|
+
"table-cell-px": "0.375rem",
|
|
269
|
+
"row-sm": "22px",
|
|
270
|
+
"row-md": "27px",
|
|
271
|
+
"select-arrow": "8px",
|
|
272
|
+
"select-arrow-overlap": "0px",
|
|
273
|
+
"select-message-px": "6px",
|
|
274
|
+
"select-message-py": "6px",
|
|
275
|
+
"select-message-gap": "6px",
|
|
276
|
+
"select-search-p": "2px",
|
|
277
|
+
"select-search-gap": "0px",
|
|
278
|
+
"field-button-h-sm": "17px",
|
|
279
|
+
"field-button-h": "19px",
|
|
280
|
+
"field-button-h-lg": "23px",
|
|
281
|
+
"field-button-pr": "2px",
|
|
282
|
+
"field-drop-icon": "8px",
|
|
283
|
+
"select-pr": "2px",
|
|
284
|
+
"filter-bar-p": "0.25rem",
|
|
285
|
+
"filter-bar-gap": "0.25rem",
|
|
286
|
+
"chip-px": "0.375rem",
|
|
287
|
+
"chip-pr-remove": "0.125rem",
|
|
288
|
+
"toast-py": "0.5rem",
|
|
289
|
+
"toast-pl": "0.5rem",
|
|
290
|
+
"toast-pr": "0.25rem",
|
|
291
|
+
"toast-gap": "0.5rem",
|
|
292
|
+
"toast-body-gap": "0.25rem",
|
|
293
|
+
"toast-icon": "16px",
|
|
294
|
+
"toast-close-w": "20px",
|
|
295
|
+
"toast-close-h": "18px",
|
|
296
|
+
"pager-px": "0.25rem",
|
|
297
|
+
"pager-arrow": "8px",
|
|
298
|
+
"pager-focus-px": "1px",
|
|
299
|
+
"pager-min-sm": "0px",
|
|
300
|
+
"chip-sm": "23px",
|
|
301
|
+
"chip-md": "26px",
|
|
302
|
+
"badge-px-sm": "0.25rem",
|
|
303
|
+
"badge-px-md": "0.375rem",
|
|
304
|
+
"badge-dot": "5px",
|
|
305
|
+
"empty-p-sm": "0.75rem",
|
|
306
|
+
"empty-p-md": "1.5rem",
|
|
307
|
+
"empty-p-lg": "1.5rem",
|
|
308
|
+
"empty-gap": "1rem",
|
|
309
|
+
"tooltip-px": "0.25rem",
|
|
310
|
+
"tooltip-py": "1px",
|
|
311
|
+
statusbar: "27px",
|
|
312
|
+
"statusbar-px": "2px",
|
|
313
|
+
"statusbar-py": "2px",
|
|
314
|
+
"statusbar-gap": "2px",
|
|
315
|
+
"statusbar-section-px": "0.25rem",
|
|
316
|
+
"statusbar-section-gap": "0.25rem",
|
|
317
|
+
progress: "18px",
|
|
318
|
+
"progress-inset": "2px",
|
|
319
|
+
"progress-fill": "12px",
|
|
320
|
+
"progress-block": "8px",
|
|
321
|
+
"progress-period": "10px",
|
|
322
|
+
"progress-segment": "38px",
|
|
323
|
+
scrollbar: "16px",
|
|
324
|
+
"scroll-button": "16px",
|
|
325
|
+
"scroll-inset": "0px",
|
|
326
|
+
"groupbox-top": "6px",
|
|
327
|
+
"groupbox-pt": "1rem",
|
|
328
|
+
"groupbox-legend-x": "0.5rem",
|
|
329
|
+
"groupbox-legend-px": "2px"
|
|
330
|
+
}, x = [
|
|
331
|
+
"conic-gradient(",
|
|
332
|
+
"var(--color-card) 0 25%, var(--color-bevel-highlight) 0 50%, ",
|
|
333
|
+
"var(--color-card) 0 75%, var(--color-bevel-highlight) 0)"
|
|
334
|
+
].join(""), S = {
|
|
335
|
+
"focus-label-width": "1px",
|
|
336
|
+
"focus-ring-width": "1px",
|
|
337
|
+
"focus-ring-style": "dotted",
|
|
338
|
+
"focus-outer-width": "0px",
|
|
339
|
+
"focus-outer-offset": "0px",
|
|
340
|
+
"press-shift": "1px",
|
|
341
|
+
"press-brightness": "1",
|
|
342
|
+
"dither-image": x,
|
|
343
|
+
"loading-image": x,
|
|
344
|
+
"animate-loading": "rk-dither 800ms steps(1) infinite",
|
|
345
|
+
"animate-busy": "none",
|
|
346
|
+
"animate-progress": "rk-progress-march calc(var(--rk-progress-steps, 18) * 100ms) steps(var(--rk-progress-steps, 18)) infinite",
|
|
347
|
+
"duration-control": "0ms",
|
|
348
|
+
"animate-overlay-in": "none",
|
|
349
|
+
"etch-width": "1px",
|
|
350
|
+
"caption-order": "0",
|
|
351
|
+
"close-order": "0",
|
|
352
|
+
"titlebar-icon": "flex",
|
|
353
|
+
"titlebar-align": "start",
|
|
354
|
+
"titlebar-balance": "0px",
|
|
355
|
+
"caption-glyph-opacity": "1",
|
|
356
|
+
"legend-weight": "400",
|
|
357
|
+
"link-decoration": "underline",
|
|
358
|
+
"invalid-width": "0px",
|
|
359
|
+
"field-error-align": "center",
|
|
360
|
+
"select-up": "none",
|
|
361
|
+
"footer-direction": "row",
|
|
362
|
+
"empty-direction": "row",
|
|
363
|
+
"empty-align": "start",
|
|
364
|
+
"overlay-bg": "transparent",
|
|
365
|
+
"popover-backdrop": "none",
|
|
366
|
+
"popover-border-width": "1px",
|
|
367
|
+
"scrollbar-buttons": "block",
|
|
368
|
+
"glyph-scale": "1",
|
|
369
|
+
"radio-fill": "0%",
|
|
370
|
+
"radio-dot-r": "0px",
|
|
371
|
+
"radio-edge": "0px",
|
|
372
|
+
"icon-pixels": "inline",
|
|
373
|
+
"icon-glyphs": "initial",
|
|
374
|
+
"icon-fill": "transparent",
|
|
375
|
+
"icon-tone-danger": "transparent",
|
|
376
|
+
"icon-tone-warning": "transparent",
|
|
377
|
+
"icon-tone-info": "transparent",
|
|
378
|
+
"icon-tone-success": "transparent",
|
|
379
|
+
"icon-tone-folder": "transparent"
|
|
380
|
+
}, C = {
|
|
381
|
+
sans: [
|
|
382
|
+
"\"PT Sans\"",
|
|
383
|
+
"Tahoma",
|
|
384
|
+
"\"Microsoft Sans Serif\"",
|
|
385
|
+
"\"MS Sans Serif\"",
|
|
386
|
+
"Verdana",
|
|
387
|
+
"Arial",
|
|
388
|
+
"sans-serif"
|
|
389
|
+
].join(", "),
|
|
390
|
+
mono: [
|
|
391
|
+
"VT323",
|
|
392
|
+
"\"Lucida Console\"",
|
|
393
|
+
"\"Courier New\"",
|
|
394
|
+
"ui-monospace",
|
|
395
|
+
"monospace"
|
|
396
|
+
].join(", ")
|
|
397
|
+
}, w = {
|
|
398
|
+
ui: {
|
|
399
|
+
size: "0.8125rem",
|
|
400
|
+
lineHeight: "1rem"
|
|
401
|
+
},
|
|
402
|
+
heading: {
|
|
403
|
+
size: "1rem",
|
|
404
|
+
lineHeight: "1.25rem"
|
|
405
|
+
},
|
|
406
|
+
mono: {
|
|
407
|
+
size: "1rem",
|
|
408
|
+
lineHeight: "1rem"
|
|
409
|
+
},
|
|
410
|
+
doc: {
|
|
411
|
+
size: "1rem",
|
|
412
|
+
lineHeight: "1.625rem"
|
|
413
|
+
},
|
|
414
|
+
"doc-mono": {
|
|
415
|
+
size: "1.25rem",
|
|
416
|
+
lineHeight: "1.25rem"
|
|
417
|
+
},
|
|
418
|
+
"doc-h1": {
|
|
419
|
+
size: "1.625rem",
|
|
420
|
+
lineHeight: "1.875rem"
|
|
421
|
+
},
|
|
422
|
+
"doc-h2": {
|
|
423
|
+
size: "1.1875rem",
|
|
424
|
+
lineHeight: "1.5rem"
|
|
425
|
+
},
|
|
426
|
+
"doc-h3": {
|
|
427
|
+
size: "0.9375rem",
|
|
428
|
+
lineHeight: "1.25rem"
|
|
429
|
+
}
|
|
430
|
+
}, T = {
|
|
431
|
+
normal: "400",
|
|
432
|
+
bold: "700",
|
|
433
|
+
strong: "700"
|
|
434
|
+
}, E = { normal: "0em" }, D = {
|
|
435
|
+
none: "1",
|
|
436
|
+
tight: "1.25",
|
|
437
|
+
snug: "1.375",
|
|
438
|
+
normal: "1.5",
|
|
439
|
+
relaxed: "1.625"
|
|
440
|
+
}, O = {
|
|
441
|
+
white: "#ffffff",
|
|
442
|
+
black: "#000000",
|
|
443
|
+
transparent: "#00000000",
|
|
444
|
+
"gray-50": "#f9f9fb",
|
|
445
|
+
"gray-100": "#f5f5f7",
|
|
446
|
+
"gray-150": "#efeff2",
|
|
447
|
+
"gray-200": "#e8e8ed",
|
|
448
|
+
"gray-250": "#e0e0e5",
|
|
449
|
+
"gray-300": "#d2d2d7",
|
|
450
|
+
"gray-400": "#aeaeb2",
|
|
451
|
+
"gray-500": "#86868b",
|
|
452
|
+
"gray-600": "#6e6e73",
|
|
453
|
+
"gray-700": "#515154",
|
|
454
|
+
"gray-750": "#48484a",
|
|
455
|
+
"gray-800": "#3a3a3c",
|
|
456
|
+
"gray-850": "#2c2c2e",
|
|
457
|
+
"gray-900": "#1d1d1f",
|
|
458
|
+
"gray-925": "#1c1c1e",
|
|
459
|
+
"gray-950": "#161617",
|
|
460
|
+
blue: "#0071e3",
|
|
461
|
+
"blue-hover": "#0068d6",
|
|
462
|
+
"blue-active": "#0062c4",
|
|
463
|
+
"blue-link": "#0066cc",
|
|
464
|
+
"blue-link-dark": "#2997ff",
|
|
465
|
+
"blue-subtle": "#e8f1fc",
|
|
466
|
+
"blue-subtle-dark": "#0f2a47",
|
|
467
|
+
"blue-text": "#0058b0",
|
|
468
|
+
"blue-text-dark": "#6cb4ff",
|
|
469
|
+
"blue-border": "#b3d1f5",
|
|
470
|
+
"blue-border-dark": "#1f4b7a",
|
|
471
|
+
"blue-ring": "#0071e3cc",
|
|
472
|
+
"blue-ring-dark": "#2997ffcc",
|
|
473
|
+
green: "#1f7a35",
|
|
474
|
+
"green-hover": "#1a6a2e",
|
|
475
|
+
"green-subtle": "#e7f6eb",
|
|
476
|
+
"green-subtle-dark": "#12301b",
|
|
477
|
+
"green-text": "#1b6e31",
|
|
478
|
+
"green-text-dark": "#5fd47e",
|
|
479
|
+
"green-border": "#b4e2c0",
|
|
480
|
+
"green-border-dark": "#245c33",
|
|
481
|
+
orange: "#ff9f0a",
|
|
482
|
+
"orange-hover": "#f59300",
|
|
483
|
+
"orange-subtle": "#fff4e0",
|
|
484
|
+
"orange-subtle-dark": "#3a2a0c",
|
|
485
|
+
"orange-text": "#8a4b00",
|
|
486
|
+
"orange-text-dark": "#ffbe5c",
|
|
487
|
+
"orange-border": "#ffd59a",
|
|
488
|
+
"orange-border-dark": "#6b4a12",
|
|
489
|
+
red: "#d70015",
|
|
490
|
+
"red-hover": "#c00013",
|
|
491
|
+
"red-subtle": "#fdeaea",
|
|
492
|
+
"red-subtle-dark": "#3d1416",
|
|
493
|
+
"red-text": "#b0000f",
|
|
494
|
+
"red-text-dark": "#ffa0a4",
|
|
495
|
+
"red-border": "#f5b5b9",
|
|
496
|
+
"red-border-dark": "#7a2329",
|
|
497
|
+
"traffic-red": "#ff5f57",
|
|
498
|
+
"traffic-yellow": "#febc2e",
|
|
499
|
+
"traffic-green": "#28c840",
|
|
500
|
+
"ink-4": "#0000000a",
|
|
501
|
+
"ink-6": "#0000000f",
|
|
502
|
+
"ink-8": "#00000014",
|
|
503
|
+
"ink-10": "#0000001a",
|
|
504
|
+
"ink-12": "#0000001f",
|
|
505
|
+
"ink-15": "#00000026",
|
|
506
|
+
"ink-25": "#00000040",
|
|
507
|
+
"ink-50": "#00000080",
|
|
508
|
+
"light-4": "#ffffff0a",
|
|
509
|
+
"light-8": "#ffffff14",
|
|
510
|
+
"light-12": "#ffffff1f",
|
|
511
|
+
"light-16": "#ffffff29",
|
|
512
|
+
"light-25": "#ffffff40",
|
|
513
|
+
"light-50": "#ffffff80",
|
|
514
|
+
"glass-light": "#ffffffd9",
|
|
515
|
+
"glass-dark": "#323234e0",
|
|
516
|
+
"desktop-light": "#c7d3e6",
|
|
517
|
+
"desktop-dark": "#101014"
|
|
518
|
+
}, k = (e) => `var(--color-modern-${e})`, A = {
|
|
519
|
+
background: k("gray-100"),
|
|
520
|
+
desktop: k("desktop-light"),
|
|
521
|
+
card: k("white"),
|
|
522
|
+
muted: k("gray-100"),
|
|
523
|
+
accent: k("ink-4"),
|
|
524
|
+
"surface-active": k("gray-200"),
|
|
525
|
+
"surface-selected": k("blue"),
|
|
526
|
+
"surface-disabled": k("gray-100"),
|
|
527
|
+
skeleton: k("gray-200"),
|
|
528
|
+
input: k("white"),
|
|
529
|
+
"tooltip-bg": k("gray-100"),
|
|
530
|
+
foreground: k("gray-900"),
|
|
531
|
+
"muted-foreground": k("gray-700"),
|
|
532
|
+
"text-subtle": k("gray-600"),
|
|
533
|
+
"text-disabled": k("gray-400"),
|
|
534
|
+
"text-disabled-emboss": k("transparent"),
|
|
535
|
+
"on-selected": k("white"),
|
|
536
|
+
link: k("blue-link"),
|
|
537
|
+
border: k("gray-300"),
|
|
538
|
+
"border-strong": k("gray-500"),
|
|
539
|
+
"border-subtle": k("gray-200"),
|
|
540
|
+
ring: k("blue"),
|
|
541
|
+
shadow: k("black"),
|
|
542
|
+
"bevel-highlight": k("transparent"),
|
|
543
|
+
"bevel-light": k("gray-300"),
|
|
544
|
+
"bevel-shadow": k("gray-300"),
|
|
545
|
+
"bevel-dark": k("gray-500"),
|
|
546
|
+
"titlebar-from": k("gray-50"),
|
|
547
|
+
"titlebar-to": k("gray-50"),
|
|
548
|
+
"titlebar-inactive-from": k("gray-100"),
|
|
549
|
+
"titlebar-inactive-to": k("gray-100"),
|
|
550
|
+
"titlebar-foreground": k("gray-900"),
|
|
551
|
+
"titlebar-inactive-foreground": k("gray-600"),
|
|
552
|
+
"neutral-solid": k("gray-600"),
|
|
553
|
+
"neutral-solid-hover": k("gray-700"),
|
|
554
|
+
"neutral-on-solid": k("white"),
|
|
555
|
+
"neutral-subtle": k("gray-100"),
|
|
556
|
+
"neutral-on-subtle": k("gray-800"),
|
|
557
|
+
"neutral-border": k("gray-300"),
|
|
558
|
+
"primary-solid": k("blue"),
|
|
559
|
+
"primary-solid-hover": k("blue-active"),
|
|
560
|
+
"primary-on-solid": k("white"),
|
|
561
|
+
"primary-subtle": k("blue-subtle"),
|
|
562
|
+
"primary-on-subtle": k("blue-text"),
|
|
563
|
+
"primary-border": k("blue-border"),
|
|
564
|
+
"success-solid": k("green"),
|
|
565
|
+
"success-solid-hover": k("green-hover"),
|
|
566
|
+
"success-on-solid": k("white"),
|
|
567
|
+
"success-subtle": k("green-subtle"),
|
|
568
|
+
"success-on-subtle": k("green-text"),
|
|
569
|
+
"success-border": k("green-border"),
|
|
570
|
+
"warning-solid": k("orange"),
|
|
571
|
+
"warning-solid-hover": k("orange-hover"),
|
|
572
|
+
"warning-on-solid": k("gray-900"),
|
|
573
|
+
"warning-subtle": k("orange-subtle"),
|
|
574
|
+
"warning-on-subtle": k("orange-text"),
|
|
575
|
+
"warning-border": k("orange-border"),
|
|
576
|
+
"danger-solid": k("red"),
|
|
577
|
+
"danger-solid-hover": k("red-hover"),
|
|
578
|
+
"danger-on-solid": k("white"),
|
|
579
|
+
"danger-subtle": k("red-subtle"),
|
|
580
|
+
"danger-on-subtle": k("red-text"),
|
|
581
|
+
"danger-border": k("red-border"),
|
|
582
|
+
control: k("white"),
|
|
583
|
+
"control-foreground": k("gray-900"),
|
|
584
|
+
"control-hover": k("gray-50"),
|
|
585
|
+
"control-active": k("gray-200"),
|
|
586
|
+
"control-primary": k("blue"),
|
|
587
|
+
"control-primary-foreground": k("white"),
|
|
588
|
+
"control-primary-hover": k("blue-hover"),
|
|
589
|
+
"control-primary-active": k("blue-active"),
|
|
590
|
+
"control-ghost-hover": k("ink-6"),
|
|
591
|
+
"control-ghost-active": k("ink-10"),
|
|
592
|
+
"control-latched": k("gray-200"),
|
|
593
|
+
"control-primary-latched": k("blue-active"),
|
|
594
|
+
checked: k("blue"),
|
|
595
|
+
"on-checked": k("white"),
|
|
596
|
+
popover: k("glass-light"),
|
|
597
|
+
"popover-border": k("ink-10"),
|
|
598
|
+
"focus-ring": k("blue-ring"),
|
|
599
|
+
caption: k("gray-300"),
|
|
600
|
+
"caption-foreground": k("ink-50"),
|
|
601
|
+
"caption-close": k("traffic-red"),
|
|
602
|
+
"caption-minimize": k("traffic-yellow"),
|
|
603
|
+
"caption-maximize": k("traffic-green"),
|
|
604
|
+
"caption-inactive": k("gray-300"),
|
|
605
|
+
"table-header": k("white"),
|
|
606
|
+
"table-header-foreground": k("gray-600"),
|
|
607
|
+
"table-stripe": k("gray-50"),
|
|
608
|
+
"table-row-hover": k("ink-4"),
|
|
609
|
+
track: k("gray-200"),
|
|
610
|
+
progress: k("blue"),
|
|
611
|
+
"scroll-thumb": k("ink-25"),
|
|
612
|
+
"scroll-track": k("transparent"),
|
|
613
|
+
"tooltip-border": k("ink-15"),
|
|
614
|
+
groupbox: k("ink-4"),
|
|
615
|
+
"groupbox-face": k("transparent"),
|
|
616
|
+
"field-button": k("transparent"),
|
|
617
|
+
"field-caret": k("blue"),
|
|
618
|
+
"field-highlight": k("transparent"),
|
|
619
|
+
"on-field-highlight": k("gray-900"),
|
|
620
|
+
pager: k("transparent"),
|
|
621
|
+
"toast-close": k("ink-6"),
|
|
622
|
+
"toast-close-foreground": k("gray-700"),
|
|
623
|
+
"loading-foreground": k("gray-600"),
|
|
624
|
+
"select-search": k("transparent"),
|
|
625
|
+
"pager-hover": k("ink-6"),
|
|
626
|
+
"pager-active": k("ink-10"),
|
|
627
|
+
"filter-bar": k("transparent"),
|
|
628
|
+
chip: k("blue-subtle"),
|
|
629
|
+
"chip-border": k("blue-border"),
|
|
630
|
+
"chip-foreground": k("blue-text"),
|
|
631
|
+
"chip-remove": k("ink-6")
|
|
632
|
+
}, j = {
|
|
633
|
+
...A,
|
|
634
|
+
background: k("gray-925"),
|
|
635
|
+
desktop: k("desktop-dark"),
|
|
636
|
+
card: k("gray-850"),
|
|
637
|
+
muted: k("gray-850"),
|
|
638
|
+
accent: k("light-4"),
|
|
639
|
+
"surface-active": k("gray-800"),
|
|
640
|
+
"surface-disabled": k("gray-850"),
|
|
641
|
+
skeleton: k("gray-800"),
|
|
642
|
+
input: k("gray-925"),
|
|
643
|
+
"tooltip-bg": k("gray-800"),
|
|
644
|
+
foreground: k("gray-100"),
|
|
645
|
+
"muted-foreground": k("gray-250"),
|
|
646
|
+
"text-subtle": k("gray-400"),
|
|
647
|
+
"text-disabled": k("gray-500"),
|
|
648
|
+
link: k("blue-link-dark"),
|
|
649
|
+
border: k("gray-750"),
|
|
650
|
+
"border-strong": k("gray-500"),
|
|
651
|
+
"border-subtle": k("gray-850"),
|
|
652
|
+
ring: k("blue-link-dark"),
|
|
653
|
+
"bevel-light": k("gray-750"),
|
|
654
|
+
"bevel-shadow": k("gray-750"),
|
|
655
|
+
"bevel-dark": k("gray-600"),
|
|
656
|
+
"titlebar-from": k("gray-850"),
|
|
657
|
+
"titlebar-to": k("gray-850"),
|
|
658
|
+
"titlebar-inactive-from": k("gray-925"),
|
|
659
|
+
"titlebar-inactive-to": k("gray-925"),
|
|
660
|
+
"titlebar-foreground": k("gray-100"),
|
|
661
|
+
"titlebar-inactive-foreground": k("gray-500"),
|
|
662
|
+
"neutral-solid": k("gray-600"),
|
|
663
|
+
"neutral-solid-hover": k("gray-700"),
|
|
664
|
+
"neutral-subtle": k("gray-800"),
|
|
665
|
+
"neutral-on-subtle": k("gray-150"),
|
|
666
|
+
"neutral-border": k("gray-750"),
|
|
667
|
+
"primary-subtle": k("blue-subtle-dark"),
|
|
668
|
+
"primary-on-subtle": k("blue-text-dark"),
|
|
669
|
+
"primary-border": k("blue-border-dark"),
|
|
670
|
+
chip: k("blue-subtle-dark"),
|
|
671
|
+
"chip-border": k("blue-border-dark"),
|
|
672
|
+
"chip-foreground": k("blue-text-dark"),
|
|
673
|
+
"chip-remove": k("light-8"),
|
|
674
|
+
"pager-hover": k("light-8"),
|
|
675
|
+
"toast-close": k("light-8"),
|
|
676
|
+
"toast-close-foreground": k("gray-250"),
|
|
677
|
+
"loading-foreground": k("gray-400"),
|
|
678
|
+
"select-search": k("transparent"),
|
|
679
|
+
"on-field-highlight": k("gray-100"),
|
|
680
|
+
"pager-active": k("light-12"),
|
|
681
|
+
"success-subtle": k("green-subtle-dark"),
|
|
682
|
+
"success-on-subtle": k("green-text-dark"),
|
|
683
|
+
"success-border": k("green-border-dark"),
|
|
684
|
+
"warning-subtle": k("orange-subtle-dark"),
|
|
685
|
+
"warning-on-subtle": k("orange-text-dark"),
|
|
686
|
+
"warning-border": k("orange-border-dark"),
|
|
687
|
+
"danger-subtle": k("red-subtle-dark"),
|
|
688
|
+
"danger-on-subtle": k("red-text-dark"),
|
|
689
|
+
"danger-border": k("red-border-dark"),
|
|
690
|
+
control: k("gray-750"),
|
|
691
|
+
"control-foreground": k("gray-100"),
|
|
692
|
+
"control-hover": k("gray-700"),
|
|
693
|
+
"control-active": k("gray-600"),
|
|
694
|
+
"control-ghost-hover": k("light-8"),
|
|
695
|
+
"control-ghost-active": k("light-12"),
|
|
696
|
+
"control-latched": k("gray-700"),
|
|
697
|
+
"control-primary-latched": k("blue-active"),
|
|
698
|
+
popover: k("glass-dark"),
|
|
699
|
+
"popover-border": k("light-12"),
|
|
700
|
+
"focus-ring": k("blue-ring-dark"),
|
|
701
|
+
caption: k("gray-700"),
|
|
702
|
+
"caption-inactive": k("gray-700"),
|
|
703
|
+
"table-header": k("gray-925"),
|
|
704
|
+
"table-header-foreground": k("gray-500"),
|
|
705
|
+
"table-stripe": k("light-4"),
|
|
706
|
+
"table-row-hover": k("light-4"),
|
|
707
|
+
track: k("gray-800"),
|
|
708
|
+
progress: k("blue-link-dark"),
|
|
709
|
+
"scroll-thumb": k("light-25"),
|
|
710
|
+
"tooltip-border": k("light-12"),
|
|
711
|
+
groupbox: k("light-4")
|
|
712
|
+
}, M = {
|
|
713
|
+
none: "none",
|
|
714
|
+
raised: `0 0 0 1px ${k("ink-12")}, 0 1px 2px ${k("ink-10")}`,
|
|
715
|
+
window: `0 0 0 1px ${k("ink-12")}, 0 2px 6px ${k("ink-10")}, 0 16px 40px ${k("ink-25")}`,
|
|
716
|
+
"raised-default": `0 0 0 1px ${k("ink-10")}, 0 1px 2px ${k("ink-15")}`,
|
|
717
|
+
pressed: `0 0 0 1px ${k("ink-15")}`,
|
|
718
|
+
sunken: `inset 0 0 0 1px ${k("gray-500")}, inset 0 1px 1px ${k("ink-4")}`,
|
|
719
|
+
status: "none",
|
|
720
|
+
etched: `inset 0 0 0 1px ${k("ink-8")}`,
|
|
721
|
+
"raised-thin": "none",
|
|
722
|
+
popover: `0 0 0 1px ${k("ink-10")}, 0 10px 30px ${k("ink-15")}`,
|
|
723
|
+
table: `inset 0 0 0 1px ${k("gray-300")}`,
|
|
724
|
+
header: `inset 0 -1px 0 ${k("gray-300")}`,
|
|
725
|
+
caption: `inset 0 0 0 0.5px ${k("ink-15")}`,
|
|
726
|
+
statusbar: `inset 0 1px 0 ${k("gray-300")}`,
|
|
727
|
+
titlebar: `inset 0 -1px 0 ${k("gray-250")}`,
|
|
728
|
+
"scroll-thumb": "none",
|
|
729
|
+
"field-button": "none",
|
|
730
|
+
"latched-ghost": "none",
|
|
731
|
+
"field-button-pressed": "none",
|
|
732
|
+
pager: "none",
|
|
733
|
+
"toast-close": "none",
|
|
734
|
+
"checked-selected": `inset 0 0 0 1.5px ${k("white")}`,
|
|
735
|
+
"pager-focus": "none",
|
|
736
|
+
"pager-pressed": "none",
|
|
737
|
+
checked: `inset 0 0 0 1px ${k("ink-10")}`,
|
|
738
|
+
"scroll-x": `inset -1px 0 ${k("gray-300")}`,
|
|
739
|
+
"sticky-header": `inset 0 -1px 0 ${k("gray-300")}`
|
|
740
|
+
}, N = {
|
|
741
|
+
...M,
|
|
742
|
+
raised: `0 0 0 1px ${k("ink-50")}, inset 0 1px 0 ${k("light-12")}`,
|
|
743
|
+
window: `0 0 0 1px ${k("light-12")}, 0 16px 40px ${k("ink-50")}`,
|
|
744
|
+
"raised-default": `0 0 0 1px ${k("ink-50")}, inset 0 1px 0 ${k("light-16")}`,
|
|
745
|
+
pressed: `0 0 0 1px ${k("ink-50")}`,
|
|
746
|
+
sunken: `inset 0 0 0 1px ${k("gray-500")}`,
|
|
747
|
+
etched: `inset 0 0 0 1px ${k("light-8")}`,
|
|
748
|
+
popover: `0 0 0 1px ${k("light-12")}, 0 10px 30px ${k("ink-50")}`,
|
|
749
|
+
table: `inset 0 0 0 1px ${k("gray-750")}`,
|
|
750
|
+
header: `inset 0 -1px 0 ${k("gray-750")}`,
|
|
751
|
+
caption: `inset 0 0 0 0.5px ${k("ink-25")}`,
|
|
752
|
+
statusbar: `inset 0 1px 0 ${k("gray-750")}`,
|
|
753
|
+
titlebar: `inset 0 -1px 0 ${k("ink-50")}`,
|
|
754
|
+
"scroll-x": `inset -1px 0 ${k("gray-750")}`,
|
|
755
|
+
"sticky-header": `inset 0 -1px 0 ${k("gray-750")}`
|
|
756
|
+
}, P = {
|
|
757
|
+
"control-xs": "24px",
|
|
758
|
+
"control-sm": "28px",
|
|
759
|
+
"control-md": "32px",
|
|
760
|
+
"control-lg": "40px",
|
|
761
|
+
"icon-xs": "24px",
|
|
762
|
+
"icon-sm": "28px",
|
|
763
|
+
"icon-md": "32px",
|
|
764
|
+
"icon-lg": "40px",
|
|
765
|
+
"button-min-xs": "0px",
|
|
766
|
+
"button-min-sm": "0px",
|
|
767
|
+
"button-min-md": "72px",
|
|
768
|
+
"button-min-lg": "88px",
|
|
769
|
+
"button-px-xs": "0.5rem",
|
|
770
|
+
"button-px-sm": "0.625rem",
|
|
771
|
+
"button-px-md": "0.875rem",
|
|
772
|
+
"button-px-lg": "1.125rem",
|
|
773
|
+
"field-px": "0.5rem",
|
|
774
|
+
"field-px-lg": "0.75rem",
|
|
775
|
+
"field-gap-sm": "6px",
|
|
776
|
+
"field-gap-md": "6px",
|
|
777
|
+
"field-gap-lg": "6px",
|
|
778
|
+
"field-left-gap": "12px",
|
|
779
|
+
"field-error-gap": "6px",
|
|
780
|
+
check: "16px",
|
|
781
|
+
radio: "16px",
|
|
782
|
+
"check-gap": "8px",
|
|
783
|
+
"check-label-px": "0px",
|
|
784
|
+
titlebar: "38px",
|
|
785
|
+
"caption-w": "12px",
|
|
786
|
+
"caption-h": "12px",
|
|
787
|
+
"caption-gap": "8px",
|
|
788
|
+
"caption-close-gap": "0px",
|
|
789
|
+
"titlebar-px": "12px",
|
|
790
|
+
"title-inset-start": "72px",
|
|
791
|
+
"title-inset-end": "72px",
|
|
792
|
+
frame: "0px",
|
|
793
|
+
"dialog-px": "20px",
|
|
794
|
+
"dialog-pt": "16px",
|
|
795
|
+
"dialog-footer-pt": "14px",
|
|
796
|
+
"dialog-footer-pb": "20px",
|
|
797
|
+
item: "28px",
|
|
798
|
+
"item-pl": "6px",
|
|
799
|
+
"item-pr": "8px",
|
|
800
|
+
"item-check": "16px",
|
|
801
|
+
"item-gap": "4px",
|
|
802
|
+
"item-check-glyph": "12px",
|
|
803
|
+
"popover-inset": "5px",
|
|
804
|
+
"table-header-px": "7px",
|
|
805
|
+
"table-cell-px": "8px",
|
|
806
|
+
"row-sm": "30px",
|
|
807
|
+
"row-md": "36px",
|
|
808
|
+
"select-arrow": "9px",
|
|
809
|
+
"select-arrow-overlap": "2px",
|
|
810
|
+
"select-message-px": "8px",
|
|
811
|
+
"select-message-py": "5px",
|
|
812
|
+
"select-message-gap": "8px",
|
|
813
|
+
"select-search-p": "3px 3px 2px",
|
|
814
|
+
"select-search-gap": "4px",
|
|
815
|
+
"field-button-h-sm": "17px",
|
|
816
|
+
"field-button-h": "19px",
|
|
817
|
+
"field-button-h-lg": "23px",
|
|
818
|
+
"field-button-pr": "4px",
|
|
819
|
+
"select-pr": "6px",
|
|
820
|
+
"field-drop-icon": "16px",
|
|
821
|
+
"filter-bar-p": "0px",
|
|
822
|
+
"filter-bar-gap": "8px",
|
|
823
|
+
"chip-px": "10px",
|
|
824
|
+
"chip-pr-remove": "4px",
|
|
825
|
+
"pager-px": "6px",
|
|
826
|
+
"pager-arrow": "10px",
|
|
827
|
+
"pager-focus-px": "0px",
|
|
828
|
+
"pager-min-sm": "24px",
|
|
829
|
+
"toast-py": "12px",
|
|
830
|
+
"toast-pl": "12px",
|
|
831
|
+
"toast-pr": "10px",
|
|
832
|
+
"toast-gap": "10px",
|
|
833
|
+
"toast-body-gap": "2px",
|
|
834
|
+
"toast-icon": "18px",
|
|
835
|
+
"toast-close-w": "18px",
|
|
836
|
+
"toast-close-h": "18px",
|
|
837
|
+
"chip-sm": "24px",
|
|
838
|
+
"chip-md": "28px",
|
|
839
|
+
"badge-px-sm": "7px",
|
|
840
|
+
"badge-px-md": "8px",
|
|
841
|
+
"badge-dot": "6px",
|
|
842
|
+
"empty-p-sm": "16px",
|
|
843
|
+
"empty-p-md": "32px",
|
|
844
|
+
"empty-p-lg": "48px",
|
|
845
|
+
"empty-gap": "12px",
|
|
846
|
+
"tooltip-px": "0.5rem",
|
|
847
|
+
"tooltip-py": "3px",
|
|
848
|
+
statusbar: "28px",
|
|
849
|
+
"statusbar-px": "12px",
|
|
850
|
+
"statusbar-py": "3px",
|
|
851
|
+
"statusbar-gap": "16px",
|
|
852
|
+
"statusbar-section-px": "0px",
|
|
853
|
+
"statusbar-section-gap": "6px",
|
|
854
|
+
progress: "6px",
|
|
855
|
+
"progress-inset": "0px",
|
|
856
|
+
"progress-fill": "6px",
|
|
857
|
+
"progress-block": "1px",
|
|
858
|
+
"progress-period": "1px",
|
|
859
|
+
"progress-segment": "30%",
|
|
860
|
+
scrollbar: "10px",
|
|
861
|
+
"scroll-button": "0px",
|
|
862
|
+
"scroll-inset": "2px",
|
|
863
|
+
"groupbox-top": "22px",
|
|
864
|
+
"groupbox-pt": "2.25rem",
|
|
865
|
+
"groupbox-legend-x": "0px",
|
|
866
|
+
"groupbox-legend-px": "0px"
|
|
867
|
+
}, F = {
|
|
868
|
+
none: "0px",
|
|
869
|
+
xs: "4px",
|
|
870
|
+
sm: "5px",
|
|
871
|
+
md: "7px",
|
|
872
|
+
lg: "10px",
|
|
873
|
+
xl: "12px",
|
|
874
|
+
pill: "9999px"
|
|
875
|
+
}, I = {
|
|
876
|
+
"focus-label-width": "0px",
|
|
877
|
+
"focus-ring-width": "2px",
|
|
878
|
+
"focus-ring-style": "solid",
|
|
879
|
+
"focus-outer-width": "3px",
|
|
880
|
+
"focus-outer-offset": "0px",
|
|
881
|
+
"press-shift": "0px",
|
|
882
|
+
"press-brightness": "0.85",
|
|
883
|
+
"dither-image": "none",
|
|
884
|
+
"loading-image": "none",
|
|
885
|
+
"animate-loading": "rk-pulse 1.6s ease-in-out infinite",
|
|
886
|
+
"animate-busy": "rk-spin 0.8s linear infinite",
|
|
887
|
+
"animate-progress": "rk-progress-slide 1.2s ease-in-out infinite",
|
|
888
|
+
"duration-control": "120ms",
|
|
889
|
+
"animate-overlay-in": "rk-overlay-in 160ms cubic-bezier(0, 0, 0.2, 1)",
|
|
890
|
+
"etch-width": "0px",
|
|
891
|
+
"caption-order": "-1",
|
|
892
|
+
"close-order": "-1",
|
|
893
|
+
"overlay-bg": "var(--color-modern-ink-15)",
|
|
894
|
+
"legend-weight": "600",
|
|
895
|
+
"link-decoration": "none",
|
|
896
|
+
"invalid-width": "1px",
|
|
897
|
+
"field-error-align": "start",
|
|
898
|
+
"select-up": "block",
|
|
899
|
+
"footer-direction": "row-reverse",
|
|
900
|
+
"empty-direction": "column",
|
|
901
|
+
"empty-align": "center",
|
|
902
|
+
"titlebar-icon": "none",
|
|
903
|
+
"titlebar-align": "center",
|
|
904
|
+
"titlebar-balance": "60px",
|
|
905
|
+
"caption-glyph-opacity": "0",
|
|
906
|
+
"popover-backdrop": "blur(24px) saturate(180%)",
|
|
907
|
+
"popover-border-width": "0px",
|
|
908
|
+
"scrollbar-buttons": "none",
|
|
909
|
+
"glyph-scale": "1.4",
|
|
910
|
+
"radio-fill": "100%",
|
|
911
|
+
"radio-dot-r": "3px",
|
|
912
|
+
"radio-edge": "1px",
|
|
913
|
+
"icon-pixels": "none",
|
|
914
|
+
"icon-glyphs": " ",
|
|
915
|
+
"icon-fill": "currentColor",
|
|
916
|
+
"icon-tone-danger": "var(--color-danger-solid)",
|
|
917
|
+
"icon-tone-warning": "var(--color-warning-solid)",
|
|
918
|
+
"icon-tone-info": "var(--color-primary-solid)",
|
|
919
|
+
"icon-tone-success": "var(--color-success-solid)",
|
|
920
|
+
"icon-tone-folder": "var(--color-primary-solid)"
|
|
921
|
+
}, L = {
|
|
922
|
+
sans: [
|
|
923
|
+
"-apple-system",
|
|
924
|
+
"BlinkMacSystemFont",
|
|
925
|
+
"\"SF Pro Text\"",
|
|
926
|
+
"\"Inter\"",
|
|
927
|
+
"\"Segoe UI\"",
|
|
928
|
+
"system-ui",
|
|
929
|
+
"sans-serif"
|
|
930
|
+
].join(", "),
|
|
931
|
+
mono: [
|
|
932
|
+
"ui-monospace",
|
|
933
|
+
"\"SF Mono\"",
|
|
934
|
+
"Menlo",
|
|
935
|
+
"Consolas",
|
|
936
|
+
"monospace"
|
|
937
|
+
].join(", ")
|
|
938
|
+
}, R = {
|
|
939
|
+
ui: {
|
|
940
|
+
size: "0.8125rem",
|
|
941
|
+
lineHeight: "1.125rem"
|
|
942
|
+
},
|
|
943
|
+
heading: {
|
|
944
|
+
size: "0.9375rem",
|
|
945
|
+
lineHeight: "1.25rem"
|
|
946
|
+
},
|
|
947
|
+
mono: {
|
|
948
|
+
size: "0.75rem",
|
|
949
|
+
lineHeight: "1.125rem"
|
|
950
|
+
},
|
|
951
|
+
"doc-mono": {
|
|
952
|
+
size: "0.875rem",
|
|
953
|
+
lineHeight: "1.375rem"
|
|
954
|
+
}
|
|
955
|
+
}, z = { strong: "600" }, B = ["win98", "modern"];
|
|
956
|
+
function V(e, t) {
|
|
957
|
+
let n = {};
|
|
958
|
+
for (let [r, i] of Object.entries(e)) n[`${t}${r}`] = i;
|
|
959
|
+
return n;
|
|
960
|
+
}
|
|
961
|
+
function H(e) {
|
|
962
|
+
let t = {};
|
|
963
|
+
for (let [n, r] of Object.entries(e)) t[`--text-${n}`] = r.size, t[`--text-${n}--line-height`] = r.lineHeight;
|
|
964
|
+
return t;
|
|
965
|
+
}
|
|
966
|
+
var { full: U, ...W } = u, G = {
|
|
967
|
+
...V(a, "--color-"),
|
|
968
|
+
...V(v, "--rk-shadow-"),
|
|
969
|
+
...V(b, "--spacing-"),
|
|
970
|
+
...V(W, "--radius-"),
|
|
971
|
+
...V(S, "--rk-"),
|
|
972
|
+
"--font-sans": C.sans,
|
|
973
|
+
"--font-mono": C.mono,
|
|
974
|
+
...H(Object.fromEntries(Object.keys(R).map((e) => [e, w[e]]))),
|
|
975
|
+
"--font-weight-strong": T.strong
|
|
976
|
+
}, K = {
|
|
977
|
+
...V(A, "--color-"),
|
|
978
|
+
...V(M, "--rk-shadow-"),
|
|
979
|
+
...V(P, "--spacing-"),
|
|
980
|
+
...V(F, "--radius-"),
|
|
981
|
+
...V(I, "--rk-"),
|
|
982
|
+
"--font-sans": L.sans,
|
|
983
|
+
"--font-mono": L.mono,
|
|
984
|
+
...H(R),
|
|
985
|
+
"--font-weight-strong": z.strong
|
|
986
|
+
}, q = Object.fromEntries(Object.entries({
|
|
987
|
+
...V(j, "--color-"),
|
|
988
|
+
...V(N, "--rk-shadow-")
|
|
989
|
+
}).filter(([e, t]) => K[e] !== t));
|
|
990
|
+
function J(e, t, n) {
|
|
991
|
+
return [
|
|
992
|
+
`${e} {`,
|
|
993
|
+
` color-scheme: ${t};`,
|
|
994
|
+
...Object.entries(n).map(([e, t]) => ` ${e}: ${t};`),
|
|
995
|
+
"}"
|
|
996
|
+
].join("\n");
|
|
997
|
+
}
|
|
998
|
+
function Y(e) {
|
|
999
|
+
if (!/^[a-z][a-z0-9-]*$/.test(e.name)) throw Error(`defineTheme: "${e.name}" is not a theme name (lowercase, digits, dashes)`);
|
|
1000
|
+
let t = e.extends ?? "modern", n = [...Object.keys(e.light ?? {}), ...Object.keys(e.dark || {})].filter((e) => !(e in G));
|
|
1001
|
+
if (n.length > 0) throw Error(`defineTheme: no rowkit token is called ${n.join(", ")}`);
|
|
1002
|
+
let r = `[data-theme="${e.name}"]`, i = [J(r, "light", {
|
|
1003
|
+
...t === "modern" ? K : G,
|
|
1004
|
+
...e.light
|
|
1005
|
+
})];
|
|
1006
|
+
if (e.dark !== !1 && (t === "modern" || e.dark !== void 0)) {
|
|
1007
|
+
let n = {
|
|
1008
|
+
...t === "modern" ? q : {},
|
|
1009
|
+
...e.dark
|
|
1010
|
+
};
|
|
1011
|
+
i.push([
|
|
1012
|
+
"@media (prefers-color-scheme: dark) {",
|
|
1013
|
+
J(`${r}:not([data-color-scheme="light"])`, "dark", n).split("\n").map((e) => ` ${e}`).join("\n"),
|
|
1014
|
+
"}"
|
|
1015
|
+
].join("\n"), J(`${r}[data-color-scheme="dark"]`, "dark", n));
|
|
1016
|
+
}
|
|
1017
|
+
return `${i.join("\n\n")}\n`;
|
|
1018
|
+
}
|
|
1019
|
+
//#endregion
|
|
1020
|
+
export { n as A, S as C, l as D, y as E, e as M, t as N, o as O, D as S, v as T, I as _, J as a, T as b, N as c, z as d, A as f, P as g, F as h, B as i, a as j, u as k, L as l, O as m, q as n, G as o, M as p, K as r, j as s, Y as t, R as u, C as v, b as w, E as x, w as y };
|
|
1021
|
+
|
|
1022
|
+
//# sourceMappingURL=themes-B0J8E0xq.js.map
|