@scattered-light/loomiere-mojave 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,3650 @@
1
+ /**
2
+ * Chakra UI v3 system for "mojave". Generated by loomiere build; do not edit.
3
+ * Load the theme's tokens.css as well: tokens and recipes read its --sl- variables, so
4
+ * Chakra's components match loomiere-base-ui in light and dark (data-theme="dark" on <html>).
5
+ *
6
+ * import './tokens.css';
7
+ * import { ChakraProvider } from '@chakra-ui/react';
8
+ * import { system } from './chakra.js';
9
+ * <ChakraProvider value={system}>…</ChakraProvider>
10
+ *
11
+ * Every palette, plus "accent" and "chrome", works as a colorPalette. Button variants are
12
+ * the brand's emphasis levels (solid = bold, outline = standard, subtle = subtle,
13
+ * ghost = quiet); each keeps its own color unless you pass colorPalette.
14
+ * To add your own config on top: createSystem(config, yours).
15
+ */
16
+ import { createSystem, defaultConfig, mergeConfigs } from '@chakra-ui/react';
17
+
18
+ /**
19
+ * Our recipe pieces merged into Chakra's own: a base style merges key by key into
20
+ * Chakra's (null removes a key), and a variant's style replaces Chakra's for that slot.
21
+ * Anything we leave out keeps Chakra's style.
22
+ */
23
+ const merge = (a = {}, b) => {
24
+ const out = { ...a, ...b };
25
+ for (const key of Object.keys(out)) if (out[key] === null) delete out[key];
26
+ return out;
27
+ };
28
+ function restyle(recipe, ours) {
29
+ const slotted = Boolean(recipe.slots);
30
+ const base = !ours.base ? recipe.base : slotted ? Object.fromEntries([...new Set([...Object.keys(recipe.base ?? {}), ...Object.keys(ours.base)])].map((slot) => [slot, merge(recipe.base?.[slot], ours.base[slot] ?? {})])) : merge(recipe.base, ours.base);
31
+ const variants = { ...recipe.variants };
32
+ for (const [group, values] of Object.entries(ours.variants ?? {})) {
33
+ variants[group] = { ...recipe.variants?.[group] };
34
+ for (const [value, style] of Object.entries(values)) variants[group][value] = slotted ? { ...recipe.variants?.[group]?.[value], ...style } : style;
35
+ }
36
+ return { ...recipe, base, variants, compoundVariants: ours.compoundVariants ?? recipe.compoundVariants ?? [], defaultVariants: { ...recipe.defaultVariants, ...ours.defaultVariants } };
37
+ }
38
+ const restyleAll = (defaults, ours) => ({ ...defaults, ...Object.fromEntries(Object.entries(ours).map(([name, r]) => [name, restyle(defaults[name], r)])) });
39
+
40
+ const recipes = {
41
+ button: {
42
+ base: {
43
+ fontFamily: "var(--sl-font-base-trigger-font-family)",
44
+ fontSize: "var(--sl-font-base-trigger-font-size)",
45
+ fontWeight: "var(--sl-font-base-trigger-font-weight)",
46
+ lineHeight: "var(--sl-font-base-trigger-line-height)",
47
+ letterSpacing: "var(--sl-font-base-trigger-letter-spacing)",
48
+ height: "var(--sl-control-height-md)",
49
+ paddingInline: "var(--sl-control-padding-inline)",
50
+ gap: "var(--sl-gap-control)",
51
+ textStyle: null,
52
+ minW: 0,
53
+ px: null,
54
+ h: null,
55
+ borderWidth: "var(--sl-stroke-default)",
56
+ borderStyle: "solid",
57
+ borderColor: "transparent",
58
+ borderRadius: "var(--sl-button-radius)",
59
+ transition: "var(--sl-transition-button)",
60
+ transitionProperty: null,
61
+ transitionDuration: null,
62
+ focusVisibleRing: null,
63
+ _disabled: null,
64
+ _icon: {
65
+ flexShrink: 0,
66
+ width: "var(--sl-icon-size-magnify)",
67
+ height: "var(--sl-icon-size-magnify)"
68
+ }
69
+ },
70
+ variants: {
71
+ variant: {
72
+ solid: {
73
+ colorPalette: "accent",
74
+ bg: "colorPalette.solid",
75
+ color: "colorPalette.on-solid",
76
+ borderColor: "colorPalette.solid",
77
+ _hover: {
78
+ bg: "colorPalette.solid-hover",
79
+ borderColor: "colorPalette.solid-hover"
80
+ },
81
+ _active: {
82
+ bg: "colorPalette.solid-active"
83
+ },
84
+ _focusVisible: {
85
+ outline: "var(--sl-a11y-focus-outline-width) solid var(--chakra-colors-color-palette-focus)",
86
+ outlineOffset: "var(--sl-a11y-focus-outline-offset)",
87
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--chakra-colors-color-palette-soft-hover)"
88
+ },
89
+ _disabled: {
90
+ bg: "colorPalette.solid",
91
+ color: "colorPalette.on-solid",
92
+ borderColor: "colorPalette.solid",
93
+ opacity: "var(--sl-button-opacity-disabled)",
94
+ cursor: "not-allowed"
95
+ }
96
+ },
97
+ outline: {
98
+ colorPalette: "accent",
99
+ bg: "transparent",
100
+ color: "colorPalette.fg",
101
+ borderColor: "colorPalette.border",
102
+ _hover: {
103
+ bg: "colorPalette.soft",
104
+ borderColor: "colorPalette.solid-hover"
105
+ },
106
+ _active: {
107
+ bg: "colorPalette.soft-hover"
108
+ },
109
+ _focusVisible: {
110
+ outline: "var(--sl-a11y-focus-outline-width) solid var(--chakra-colors-color-palette-focus)",
111
+ outlineOffset: "var(--sl-a11y-focus-outline-offset)",
112
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--chakra-colors-color-palette-soft-hover)"
113
+ },
114
+ _disabled: {
115
+ bg: "transparent",
116
+ color: "colorPalette.fg",
117
+ borderColor: "colorPalette.border",
118
+ opacity: "var(--sl-button-opacity-disabled)",
119
+ cursor: "not-allowed"
120
+ }
121
+ },
122
+ subtle: {
123
+ colorPalette: "chrome",
124
+ bg: "colorPalette.soft",
125
+ color: "colorPalette.on-soft",
126
+ borderColor: "colorPalette.soft",
127
+ _hover: {
128
+ bg: "colorPalette.soft-hover",
129
+ borderColor: "colorPalette.soft-hover"
130
+ },
131
+ _active: {
132
+ bg: "colorPalette.soft-active"
133
+ },
134
+ _focusVisible: {
135
+ outline: "var(--sl-a11y-focus-outline-width) solid var(--chakra-colors-color-palette-focus)",
136
+ outlineOffset: "var(--sl-a11y-focus-outline-offset)",
137
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--chakra-colors-color-palette-soft-hover)"
138
+ },
139
+ _disabled: {
140
+ bg: "colorPalette.soft",
141
+ color: "colorPalette.on-soft",
142
+ borderColor: "colorPalette.soft",
143
+ opacity: "var(--sl-button-opacity-disabled)",
144
+ cursor: "not-allowed"
145
+ }
146
+ },
147
+ surface: {
148
+ colorPalette: "chrome",
149
+ bg: "colorPalette.soft",
150
+ color: "colorPalette.on-soft",
151
+ borderColor: "colorPalette.soft",
152
+ _hover: {
153
+ bg: "colorPalette.soft-hover",
154
+ borderColor: "colorPalette.soft-hover"
155
+ },
156
+ _active: {
157
+ bg: "colorPalette.soft-active"
158
+ },
159
+ _focusVisible: {
160
+ outline: "var(--sl-a11y-focus-outline-width) solid var(--chakra-colors-color-palette-focus)",
161
+ outlineOffset: "var(--sl-a11y-focus-outline-offset)",
162
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--chakra-colors-color-palette-soft-hover)"
163
+ },
164
+ _disabled: {
165
+ bg: "colorPalette.soft",
166
+ color: "colorPalette.on-soft",
167
+ borderColor: "colorPalette.soft",
168
+ opacity: "var(--sl-button-opacity-disabled)",
169
+ cursor: "not-allowed"
170
+ }
171
+ },
172
+ ghost: {
173
+ colorPalette: "chrome",
174
+ bg: "transparent",
175
+ color: "colorPalette.fg",
176
+ borderColor: "colorPalette.border",
177
+ _hover: {
178
+ bg: "colorPalette.soft",
179
+ borderColor: "colorPalette.solid-hover"
180
+ },
181
+ _active: {
182
+ bg: "colorPalette.soft-hover"
183
+ },
184
+ _focusVisible: {
185
+ outline: "var(--sl-a11y-focus-outline-width) solid var(--chakra-colors-color-palette-focus)",
186
+ outlineOffset: "var(--sl-a11y-focus-outline-offset)",
187
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--chakra-colors-color-palette-soft-hover)"
188
+ },
189
+ _disabled: {
190
+ bg: "transparent",
191
+ color: "colorPalette.fg",
192
+ borderColor: "colorPalette.border",
193
+ opacity: "var(--sl-button-opacity-disabled)",
194
+ cursor: "not-allowed"
195
+ }
196
+ },
197
+ plain: {
198
+ colorPalette: "chrome",
199
+ bg: "transparent",
200
+ color: "colorPalette.fg",
201
+ borderColor: "colorPalette.border",
202
+ _hover: {
203
+ bg: "colorPalette.soft",
204
+ borderColor: "colorPalette.solid-hover"
205
+ },
206
+ _active: {
207
+ bg: "colorPalette.soft-hover"
208
+ },
209
+ _focusVisible: {
210
+ outline: "var(--sl-a11y-focus-outline-width) solid var(--chakra-colors-color-palette-focus)",
211
+ outlineOffset: "var(--sl-a11y-focus-outline-offset)",
212
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--chakra-colors-color-palette-soft-hover)"
213
+ },
214
+ _disabled: {
215
+ bg: "transparent",
216
+ color: "colorPalette.fg",
217
+ borderColor: "colorPalette.border",
218
+ opacity: "var(--sl-button-opacity-disabled)",
219
+ cursor: "not-allowed"
220
+ }
221
+ }
222
+ },
223
+ size: {
224
+ "2xs": {
225
+ fontFamily: "var(--sl-font-minimize-trigger-font-family)",
226
+ fontSize: "var(--sl-font-minimize-trigger-font-size)",
227
+ fontWeight: "var(--sl-font-minimize-trigger-font-weight)",
228
+ lineHeight: "var(--sl-font-minimize-trigger-line-height)",
229
+ letterSpacing: "var(--sl-font-minimize-trigger-letter-spacing)",
230
+ height: "var(--sl-control-height-xs)",
231
+ paddingInline: "var(--sl-control-padding-inline-xs)",
232
+ gap: "var(--sl-gap-control-xs)",
233
+ textStyle: null,
234
+ minW: 0,
235
+ px: null,
236
+ h: null,
237
+ _icon: {
238
+ width: "var(--sl-icon-size-condense)",
239
+ height: "var(--sl-icon-size-condense)"
240
+ }
241
+ },
242
+ xs: {
243
+ fontFamily: "var(--sl-font-minimize-trigger-font-family)",
244
+ fontSize: "var(--sl-font-minimize-trigger-font-size)",
245
+ fontWeight: "var(--sl-font-minimize-trigger-font-weight)",
246
+ lineHeight: "var(--sl-font-minimize-trigger-line-height)",
247
+ letterSpacing: "var(--sl-font-minimize-trigger-letter-spacing)",
248
+ height: "var(--sl-control-height-xs)",
249
+ paddingInline: "var(--sl-control-padding-inline-xs)",
250
+ gap: "var(--sl-gap-control-xs)",
251
+ textStyle: null,
252
+ minW: 0,
253
+ px: null,
254
+ h: null,
255
+ _icon: {
256
+ width: "var(--sl-icon-size-condense)",
257
+ height: "var(--sl-icon-size-condense)"
258
+ }
259
+ },
260
+ sm: {
261
+ fontFamily: "var(--sl-font-condense-trigger-font-family)",
262
+ fontSize: "var(--sl-font-condense-trigger-font-size)",
263
+ fontWeight: "var(--sl-font-condense-trigger-font-weight)",
264
+ lineHeight: "var(--sl-font-condense-trigger-line-height)",
265
+ letterSpacing: "var(--sl-font-condense-trigger-letter-spacing)",
266
+ height: "var(--sl-control-height-sm)",
267
+ paddingInline: "var(--sl-control-padding-inline-sm)",
268
+ gap: "var(--sl-gap-control-sm)",
269
+ textStyle: null,
270
+ minW: 0,
271
+ px: null,
272
+ h: null,
273
+ _icon: {
274
+ width: "var(--sl-icon-size-base)",
275
+ height: "var(--sl-icon-size-base)"
276
+ }
277
+ },
278
+ md: {
279
+ fontFamily: "var(--sl-font-base-trigger-font-family)",
280
+ fontSize: "var(--sl-font-base-trigger-font-size)",
281
+ fontWeight: "var(--sl-font-base-trigger-font-weight)",
282
+ lineHeight: "var(--sl-font-base-trigger-line-height)",
283
+ letterSpacing: "var(--sl-font-base-trigger-letter-spacing)",
284
+ height: "var(--sl-control-height-md)",
285
+ paddingInline: "var(--sl-control-padding-inline)",
286
+ gap: "var(--sl-gap-control)",
287
+ textStyle: null,
288
+ minW: 0,
289
+ px: null,
290
+ h: null,
291
+ _icon: {
292
+ width: "var(--sl-icon-size-magnify)",
293
+ height: "var(--sl-icon-size-magnify)"
294
+ }
295
+ },
296
+ lg: {
297
+ fontFamily: "var(--sl-font-magnify-trigger-font-family)",
298
+ fontSize: "var(--sl-font-magnify-trigger-font-size)",
299
+ fontWeight: "var(--sl-font-magnify-trigger-font-weight)",
300
+ lineHeight: "var(--sl-font-magnify-trigger-line-height)",
301
+ letterSpacing: "var(--sl-font-magnify-trigger-letter-spacing)",
302
+ height: "var(--sl-control-height-lg)",
303
+ paddingInline: "var(--sl-control-padding-inline-lg)",
304
+ gap: "var(--sl-gap-control)",
305
+ textStyle: null,
306
+ minW: 0,
307
+ px: null,
308
+ h: null,
309
+ _icon: {
310
+ width: "var(--sl-icon-size-maximize)",
311
+ height: "var(--sl-icon-size-maximize)"
312
+ }
313
+ },
314
+ xl: {
315
+ fontFamily: "var(--sl-font-magnify-trigger-font-family)",
316
+ fontSize: "var(--sl-font-magnify-trigger-font-size)",
317
+ fontWeight: "var(--sl-font-magnify-trigger-font-weight)",
318
+ lineHeight: "var(--sl-font-magnify-trigger-line-height)",
319
+ letterSpacing: "var(--sl-font-magnify-trigger-letter-spacing)",
320
+ height: "var(--sl-control-height-lg)",
321
+ paddingInline: "var(--sl-control-padding-inline-lg)",
322
+ gap: "var(--sl-gap-control)",
323
+ textStyle: null,
324
+ minW: 0,
325
+ px: null,
326
+ h: null,
327
+ _icon: {
328
+ width: "var(--sl-icon-size-maximize)",
329
+ height: "var(--sl-icon-size-maximize)"
330
+ }
331
+ },
332
+ "2xl": {
333
+ fontFamily: "var(--sl-font-magnify-trigger-font-family)",
334
+ fontSize: "var(--sl-font-magnify-trigger-font-size)",
335
+ fontWeight: "var(--sl-font-magnify-trigger-font-weight)",
336
+ lineHeight: "var(--sl-font-magnify-trigger-line-height)",
337
+ letterSpacing: "var(--sl-font-magnify-trigger-letter-spacing)",
338
+ height: "var(--sl-control-height-lg)",
339
+ paddingInline: "var(--sl-control-padding-inline-lg)",
340
+ gap: "var(--sl-gap-control)",
341
+ textStyle: null,
342
+ minW: 0,
343
+ px: null,
344
+ h: null,
345
+ _icon: {
346
+ width: "var(--sl-icon-size-maximize)",
347
+ height: "var(--sl-icon-size-maximize)"
348
+ }
349
+ }
350
+ }
351
+ }
352
+ },
353
+ input: {
354
+ base: {
355
+ boxSizing: "border-box",
356
+ color: "var(--sl-field-color)",
357
+ background: "var(--sl-field-background)",
358
+ border: "var(--sl-field-border-width) solid var(--sl-field-border-color)",
359
+ borderRadius: "var(--sl-field-radius)",
360
+ transition: "var(--sl-field-transition)",
361
+ outline: "none",
362
+ fontFamily: "var(--sl-font-base-font-family)",
363
+ fontSize: "var(--sl-font-base-font-size)",
364
+ fontWeight: "var(--sl-font-base-font-weight)",
365
+ lineHeight: "var(--sl-font-base-line-height)",
366
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
367
+ focusVisibleRing: null,
368
+ focusRingColor: null,
369
+ _hover: {
370
+ borderColor: "var(--sl-field-border-color-hover)"
371
+ },
372
+ _focus: {
373
+ borderColor: "var(--sl-field-border-color-focus)",
374
+ boxShadow: "var(--sl-field-shadow-focus)"
375
+ },
376
+ _invalid: {
377
+ borderColor: "var(--sl-field-border-color-error)",
378
+ _focus: {
379
+ borderColor: "var(--sl-field-border-color-error)",
380
+ boxShadow: "var(--sl-field-shadow-focus-error)"
381
+ }
382
+ },
383
+ _disabled: {
384
+ background: "var(--sl-field-background-disabled)",
385
+ color: "var(--sl-field-color-disabled)",
386
+ cursor: "not-allowed",
387
+ layerStyle: null
388
+ },
389
+ _placeholder: {
390
+ color: "var(--sl-field-placeholder-color)",
391
+ opacity: 1
392
+ },
393
+ height: "var(--sl-control-height-md)",
394
+ minW: 0
395
+ },
396
+ variants: {
397
+ size: {
398
+ "2xs": {
399
+ fontFamily: "var(--sl-font-condense-font-family)",
400
+ fontSize: "var(--sl-font-condense-font-size)",
401
+ fontWeight: "var(--sl-font-condense-font-weight)",
402
+ lineHeight: "var(--sl-font-condense-line-height)",
403
+ letterSpacing: "var(--sl-font-condense-letter-spacing)",
404
+ textStyle: null,
405
+ "--input-height": "var(--sl-control-height-xs)",
406
+ height: "var(--sl-control-height-xs)",
407
+ px: "var(--sl-control-padding-inline-xs)"
408
+ },
409
+ xs: {
410
+ fontFamily: "var(--sl-font-condense-font-family)",
411
+ fontSize: "var(--sl-font-condense-font-size)",
412
+ fontWeight: "var(--sl-font-condense-font-weight)",
413
+ lineHeight: "var(--sl-font-condense-line-height)",
414
+ letterSpacing: "var(--sl-font-condense-letter-spacing)",
415
+ textStyle: null,
416
+ "--input-height": "var(--sl-control-height-xs)",
417
+ height: "var(--sl-control-height-xs)",
418
+ px: "var(--sl-control-padding-inline-xs)"
419
+ },
420
+ sm: {
421
+ fontFamily: "var(--sl-font-condense-font-family)",
422
+ fontSize: "var(--sl-font-condense-font-size)",
423
+ fontWeight: "var(--sl-font-condense-font-weight)",
424
+ lineHeight: "var(--sl-font-condense-line-height)",
425
+ letterSpacing: "var(--sl-font-condense-letter-spacing)",
426
+ textStyle: null,
427
+ "--input-height": "var(--sl-control-height-sm)",
428
+ height: "var(--sl-control-height-sm)",
429
+ px: "var(--sl-control-padding-inline-sm)"
430
+ },
431
+ md: {
432
+ fontFamily: "var(--sl-font-base-font-family)",
433
+ fontSize: "var(--sl-font-base-font-size)",
434
+ fontWeight: "var(--sl-font-base-font-weight)",
435
+ lineHeight: "var(--sl-font-base-line-height)",
436
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
437
+ textStyle: null,
438
+ "--input-height": "var(--sl-control-height-md)",
439
+ height: "var(--sl-control-height-md)",
440
+ px: "var(--sl-control-padding-inline)"
441
+ },
442
+ lg: {
443
+ fontFamily: "var(--sl-font-magnify-font-family)",
444
+ fontSize: "var(--sl-font-magnify-font-size)",
445
+ fontWeight: "var(--sl-font-magnify-font-weight)",
446
+ lineHeight: "var(--sl-font-magnify-line-height)",
447
+ letterSpacing: "var(--sl-font-magnify-letter-spacing)",
448
+ textStyle: null,
449
+ "--input-height": "var(--sl-control-height-lg)",
450
+ height: "var(--sl-control-height-lg)",
451
+ px: "var(--sl-control-padding-inline-lg)"
452
+ },
453
+ xl: {
454
+ fontFamily: "var(--sl-font-magnify-font-family)",
455
+ fontSize: "var(--sl-font-magnify-font-size)",
456
+ fontWeight: "var(--sl-font-magnify-font-weight)",
457
+ lineHeight: "var(--sl-font-magnify-line-height)",
458
+ letterSpacing: "var(--sl-font-magnify-letter-spacing)",
459
+ textStyle: null,
460
+ "--input-height": "var(--sl-control-height-lg)",
461
+ height: "var(--sl-control-height-lg)",
462
+ px: "var(--sl-control-padding-inline-lg)"
463
+ },
464
+ "2xl": {
465
+ fontFamily: "var(--sl-font-magnify-font-family)",
466
+ fontSize: "var(--sl-font-magnify-font-size)",
467
+ fontWeight: "var(--sl-font-magnify-font-weight)",
468
+ lineHeight: "var(--sl-font-magnify-line-height)",
469
+ letterSpacing: "var(--sl-font-magnify-letter-spacing)",
470
+ textStyle: null,
471
+ "--input-height": "var(--sl-control-height-lg)",
472
+ height: "var(--sl-control-height-lg)",
473
+ px: "var(--sl-control-padding-inline-lg)"
474
+ }
475
+ },
476
+ variant: {
477
+ outline: {}
478
+ }
479
+ }
480
+ },
481
+ textarea: {
482
+ base: {
483
+ boxSizing: "border-box",
484
+ color: "var(--sl-field-color)",
485
+ background: "var(--sl-field-background)",
486
+ border: "var(--sl-field-border-width) solid var(--sl-field-border-color)",
487
+ borderRadius: "var(--sl-field-radius)",
488
+ transition: "var(--sl-field-transition)",
489
+ outline: "none",
490
+ fontFamily: "var(--sl-font-base-font-family)",
491
+ fontSize: "var(--sl-font-base-font-size)",
492
+ fontWeight: "var(--sl-font-base-font-weight)",
493
+ lineHeight: "var(--sl-font-base-line-height)",
494
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
495
+ focusVisibleRing: null,
496
+ focusRingColor: null,
497
+ _hover: {
498
+ borderColor: "var(--sl-field-border-color-hover)"
499
+ },
500
+ _focus: {
501
+ borderColor: "var(--sl-field-border-color-focus)",
502
+ boxShadow: "var(--sl-field-shadow-focus)"
503
+ },
504
+ _invalid: {
505
+ borderColor: "var(--sl-field-border-color-error)",
506
+ _focus: {
507
+ borderColor: "var(--sl-field-border-color-error)",
508
+ boxShadow: "var(--sl-field-shadow-focus-error)"
509
+ }
510
+ },
511
+ _disabled: {
512
+ background: "var(--sl-field-background-disabled)",
513
+ color: "var(--sl-field-color-disabled)",
514
+ cursor: "not-allowed",
515
+ layerStyle: null
516
+ },
517
+ _placeholder: {
518
+ color: "var(--sl-field-placeholder-color)",
519
+ opacity: 1
520
+ },
521
+ minHeight: "80px",
522
+ paddingBlock: "var(--sl-control-padding-block)",
523
+ px: "var(--sl-control-padding-inline)"
524
+ },
525
+ variants: {
526
+ size: {
527
+ xs: {},
528
+ sm: {},
529
+ md: {},
530
+ lg: {},
531
+ xl: {}
532
+ },
533
+ variant: {
534
+ outline: {}
535
+ }
536
+ }
537
+ }
538
+ };
539
+
540
+ const slotRecipes = {
541
+ field: {
542
+ base: {
543
+ root: {
544
+ gap: "var(--sl-field-gap)"
545
+ },
546
+ label: {
547
+ fontFamily: "var(--sl-font-base-label-font-family)",
548
+ fontSize: "var(--sl-font-base-label-font-size)",
549
+ fontWeight: "var(--sl-font-base-label-font-weight)",
550
+ lineHeight: "var(--sl-font-base-label-line-height)",
551
+ letterSpacing: "var(--sl-font-base-label-letter-spacing)",
552
+ textStyle: null,
553
+ gap: "var(--sl-space-1)",
554
+ marginBottom: "var(--sl-field-label-spacing)",
555
+ color: "var(--sl-text-primary)",
556
+ _disabled: {
557
+ opacity: "var(--sl-field-opacity-disabled)"
558
+ }
559
+ },
560
+ helperText: {
561
+ fontFamily: "var(--sl-font-condense-font-family)",
562
+ fontSize: "var(--sl-font-condense-font-size)",
563
+ fontWeight: "var(--sl-font-condense-font-weight)",
564
+ lineHeight: "var(--sl-font-condense-line-height)",
565
+ letterSpacing: "var(--sl-font-condense-letter-spacing)",
566
+ textStyle: null,
567
+ margin: "var(--sl-field-message-spacing) 0 0",
568
+ color: "var(--sl-text-secondary)",
569
+ _disabled: {
570
+ opacity: "var(--sl-field-opacity-disabled)"
571
+ }
572
+ },
573
+ errorText: {
574
+ fontFamily: "var(--sl-font-base-label-font-family)",
575
+ fontSize: "var(--sl-font-base-label-font-size)",
576
+ fontWeight: "var(--sl-font-base-label-font-weight)",
577
+ lineHeight: "var(--sl-font-base-label-line-height)",
578
+ letterSpacing: "var(--sl-font-base-label-letter-spacing)",
579
+ textStyle: null,
580
+ margin: "var(--sl-field-message-spacing) 0 0",
581
+ color: "var(--sl-status-error)"
582
+ },
583
+ requiredIndicator: {
584
+ color: "var(--sl-status-error)"
585
+ }
586
+ }
587
+ },
588
+ checkbox: {
589
+ base: {
590
+ root: {
591
+ gap: "var(--sl-gap-control)",
592
+ color: "var(--sl-text-primary)"
593
+ },
594
+ control: {
595
+ boxSizing: "border-box",
596
+ display: "inline-flex",
597
+ alignItems: "center",
598
+ justifyContent: "center",
599
+ flexShrink: 0,
600
+ border: "var(--sl-check-border-width) solid var(--sl-check-border-color)",
601
+ background: "var(--sl-check-background)",
602
+ color: "var(--sl-check-mark-color)",
603
+ transition: "var(--sl-check-transition)",
604
+ boxSize: "var(--sl-icon-size-magnify)",
605
+ "& svg": {
606
+ width: "var(--sl-icon-size-condense)",
607
+ height: "var(--sl-icon-size-condense)"
608
+ },
609
+ borderRadius: "var(--sl-check-radius)",
610
+ p: 0,
611
+ focusVisibleRing: null,
612
+ _hover: {
613
+ borderColor: "var(--sl-check-border-color-hover)"
614
+ },
615
+ "&:is([data-state=checked], [data-state=indeterminate])": {
616
+ background: "var(--sl-check-background-checked)",
617
+ borderColor: "var(--sl-check-border-color-checked)"
618
+ },
619
+ _focusVisible: {
620
+ outline: "var(--sl-focus-outline)",
621
+ outlineOffset: "var(--sl-focus-outline-offset)",
622
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--sl-focus-halo-color)"
623
+ },
624
+ _invalid: {
625
+ borderColor: "var(--sl-field-border-color-error)",
626
+ colorPalette: null
627
+ },
628
+ _disabled: {
629
+ opacity: "var(--sl-check-opacity-disabled)",
630
+ cursor: "not-allowed"
631
+ }
632
+ },
633
+ label: {
634
+ fontFamily: "var(--sl-font-base-font-family)",
635
+ fontSize: "var(--sl-font-base-font-size)",
636
+ fontWeight: "var(--sl-font-base-font-weight)",
637
+ lineHeight: "var(--sl-font-base-line-height)",
638
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
639
+ textStyle: null,
640
+ _disabled: {
641
+ color: "var(--sl-text-disabled)",
642
+ opacity: null
643
+ }
644
+ }
645
+ },
646
+ variants: {
647
+ variant: {
648
+ solid: {
649
+ control: {}
650
+ },
651
+ outline: {
652
+ control: {}
653
+ },
654
+ subtle: {
655
+ control: {}
656
+ }
657
+ },
658
+ size: {
659
+ xs: {
660
+ root: {
661
+ gap: "var(--sl-gap-control-xs)"
662
+ },
663
+ label: {},
664
+ control: {
665
+ boxSize: "var(--sl-icon-size-condense)",
666
+ "& svg": {
667
+ width: "var(--sl-icon-size-minimize)",
668
+ height: "var(--sl-icon-size-minimize)"
669
+ }
670
+ }
671
+ },
672
+ sm: {
673
+ root: {
674
+ gap: "var(--sl-gap-control-sm)"
675
+ },
676
+ label: {},
677
+ control: {
678
+ boxSize: "var(--sl-icon-size-base)",
679
+ "& svg": {
680
+ width: "var(--sl-icon-size-minimize)",
681
+ height: "var(--sl-icon-size-minimize)"
682
+ }
683
+ }
684
+ },
685
+ md: {
686
+ root: {
687
+ gap: "var(--sl-gap-control)"
688
+ },
689
+ label: {},
690
+ control: {
691
+ boxSize: "var(--sl-icon-size-magnify)",
692
+ "& svg": {
693
+ width: "var(--sl-icon-size-condense)",
694
+ height: "var(--sl-icon-size-condense)"
695
+ }
696
+ }
697
+ },
698
+ lg: {
699
+ root: {
700
+ gap: "var(--sl-gap-control)"
701
+ },
702
+ label: {},
703
+ control: {
704
+ boxSize: "var(--sl-icon-size-maximize)",
705
+ "& svg": {
706
+ width: "var(--sl-icon-size-base)",
707
+ height: "var(--sl-icon-size-base)"
708
+ }
709
+ }
710
+ }
711
+ }
712
+ }
713
+ },
714
+ radioGroup: {
715
+ base: {
716
+ root: {
717
+ display: "flex",
718
+ gap: "var(--sl-gap-stack-sm)"
719
+ },
720
+ item: {
721
+ gap: "var(--sl-gap-control)",
722
+ color: "var(--sl-text-primary)",
723
+ fontWeight: null
724
+ },
725
+ itemText: {
726
+ fontFamily: "var(--sl-font-base-font-family)",
727
+ fontSize: "var(--sl-font-base-font-size)",
728
+ fontWeight: "var(--sl-font-base-font-weight)",
729
+ lineHeight: "var(--sl-font-base-line-height)",
730
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
731
+ textStyle: null,
732
+ _disabled: {
733
+ color: "var(--sl-text-disabled)",
734
+ opacity: null
735
+ }
736
+ },
737
+ label: {
738
+ fontFamily: "var(--sl-font-base-font-family)",
739
+ fontSize: "var(--sl-font-base-font-size)",
740
+ fontWeight: "var(--sl-font-base-font-weight)",
741
+ lineHeight: "var(--sl-font-base-line-height)",
742
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
743
+ textStyle: null,
744
+ _disabled: {
745
+ color: "var(--sl-text-disabled)",
746
+ opacity: null
747
+ }
748
+ },
749
+ itemControl: {
750
+ boxSizing: "border-box",
751
+ display: "inline-flex",
752
+ alignItems: "center",
753
+ justifyContent: "center",
754
+ flexShrink: 0,
755
+ border: "var(--sl-check-border-width) solid var(--sl-check-border-color)",
756
+ background: "var(--sl-check-background)",
757
+ color: "var(--sl-check-mark-color)",
758
+ transition: "var(--sl-check-transition)",
759
+ boxSize: "var(--sl-icon-size-magnify)",
760
+ borderRadius: "var(--sl-radius-pill)",
761
+ _focusVisible: {
762
+ outline: "var(--sl-focus-outline)",
763
+ outlineOffset: "var(--sl-focus-outline-offset)",
764
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--sl-focus-halo-color)"
765
+ },
766
+ _hover: {
767
+ borderColor: "var(--sl-check-border-color-hover)"
768
+ },
769
+ _checked: {
770
+ background: "var(--sl-check-background-checked)",
771
+ borderColor: "var(--sl-check-border-color-checked)"
772
+ },
773
+ _invalid: {
774
+ borderColor: "var(--sl-field-border-color-error)",
775
+ colorPalette: null
776
+ },
777
+ _disabled: {
778
+ opacity: "var(--sl-check-opacity-disabled)",
779
+ cursor: "not-allowed"
780
+ },
781
+ "& .dot": {
782
+ width: "round(100% * var(--sl-check-dot-scale), 1px)",
783
+ height: "round(100% * var(--sl-check-dot-scale), 1px)",
784
+ scale: null,
785
+ borderRadius: "var(--sl-radius-pill)",
786
+ bg: "var(--sl-check-mark-color)"
787
+ },
788
+ "&:not([data-state=checked]) .dot": {
789
+ display: "none"
790
+ }
791
+ }
792
+ },
793
+ variants: {
794
+ variant: {
795
+ solid: {
796
+ itemControl: {}
797
+ },
798
+ outline: {
799
+ itemControl: {}
800
+ },
801
+ subtle: {
802
+ itemControl: {}
803
+ }
804
+ },
805
+ size: {
806
+ xs: {
807
+ item: {
808
+ gap: "var(--sl-gap-control-xs)"
809
+ },
810
+ itemControl: {
811
+ boxSize: "var(--sl-icon-size-condense)"
812
+ }
813
+ },
814
+ sm: {
815
+ item: {
816
+ gap: "var(--sl-gap-control-sm)"
817
+ },
818
+ itemControl: {
819
+ boxSize: "var(--sl-icon-size-base)"
820
+ }
821
+ },
822
+ md: {
823
+ item: {
824
+ gap: "var(--sl-gap-control)"
825
+ },
826
+ itemControl: {
827
+ boxSize: "var(--sl-icon-size-magnify)"
828
+ }
829
+ },
830
+ lg: {
831
+ item: {
832
+ gap: "var(--sl-gap-control)"
833
+ },
834
+ itemControl: {
835
+ boxSize: "var(--sl-icon-size-maximize)"
836
+ }
837
+ }
838
+ }
839
+ }
840
+ },
841
+ switch: {
842
+ base: {
843
+ root: {
844
+ gap: "var(--sl-gap-control)",
845
+ "--switch-diff": "calc(var(--switch-width) - var(--switch-height))"
846
+ },
847
+ label: {
848
+ fontFamily: "var(--sl-font-base-label-font-family)",
849
+ fontSize: "var(--sl-font-base-label-font-size)",
850
+ fontWeight: "var(--sl-font-base-label-font-weight)",
851
+ lineHeight: "var(--sl-font-base-label-line-height)",
852
+ letterSpacing: "var(--sl-font-base-label-letter-spacing)",
853
+ color: "var(--sl-text-primary)",
854
+ _disabled: {
855
+ color: "var(--sl-text-disabled)",
856
+ opacity: null
857
+ }
858
+ },
859
+ control: {
860
+ boxSizing: "border-box",
861
+ alignItems: "center",
862
+ padding: "var(--sl-switch-track-padding)",
863
+ border: "var(--sl-check-border-width) solid var(--sl-check-border-color)",
864
+ borderRadius: "var(--sl-radius-pill)",
865
+ bg: "var(--sl-fill-default)",
866
+ transition: "background-color var(--sl-duration-normal) var(--sl-easing-in-out)",
867
+ focusVisibleRing: null,
868
+ _before: {
869
+ fontFamily: "var(--sl-font-condense-subtitle-label-font-family)",
870
+ fontSize: "var(--switch-indicator-font-size)",
871
+ fontWeight: "var(--sl-font-condense-subtitle-label-font-weight)",
872
+ lineHeight: 1,
873
+ letterSpacing: "var(--sl-font-condense-subtitle-label-letter-spacing)",
874
+ textTransform: "var(--sl-font-condense-subtitle-label-text-transform)",
875
+ content: "\"off\"",
876
+ position: "absolute",
877
+ insetBlock: 0,
878
+ right: "var(--sl-switch-track-padding)",
879
+ width: "var(--switch-diff)",
880
+ display: "flex",
881
+ alignItems: "center",
882
+ justifyContent: "center",
883
+ color: "var(--sl-text-secondary)",
884
+ pointerEvents: "none"
885
+ },
886
+ _hover: {
887
+ bg: "var(--sl-fill-strong)"
888
+ },
889
+ _checked: {
890
+ bg: "var(--sl-check-background-checked)",
891
+ borderColor: "var(--sl-check-border-color-checked)",
892
+ _hover: {
893
+ bg: "var(--sl-interactive-hover)"
894
+ },
895
+ _before: {
896
+ content: "\"on\"",
897
+ right: "auto",
898
+ left: "var(--sl-switch-track-padding)",
899
+ color: "var(--sl-check-mark-color)"
900
+ }
901
+ },
902
+ _focusVisible: {
903
+ outline: "var(--sl-focus-outline)",
904
+ outlineOffset: "var(--sl-focus-outline-offset)",
905
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--sl-focus-halo-color)"
906
+ },
907
+ _disabled: {
908
+ opacity: "var(--sl-check-opacity-disabled)",
909
+ cursor: "not-allowed",
910
+ _hover: {
911
+ bg: "var(--sl-fill-default)"
912
+ }
913
+ }
914
+ },
915
+ thumb: {
916
+ "--thumb-size": "calc(var(--switch-height) - 2 * (var(--sl-switch-track-padding) + var(--sl-check-border-width)))",
917
+ width: "var(--thumb-size)",
918
+ height: "var(--thumb-size)",
919
+ position: "relative",
920
+ zIndex: 1,
921
+ transitionDuration: "var(--sl-duration-normal)",
922
+ bg: "var(--sl-check-background)",
923
+ boxShadow: "var(--sl-elevation-sm)"
924
+ }
925
+ },
926
+ variants: {
927
+ variant: {
928
+ solid: {
929
+ control: {},
930
+ thumb: {}
931
+ },
932
+ raised: {
933
+ control: {},
934
+ thumb: {}
935
+ }
936
+ },
937
+ size: {
938
+ xs: {
939
+ root: {
940
+ "--switch-width": "var(--sl-switch-track-width-sm)",
941
+ "--switch-height": "var(--sl-switch-track-height-sm)",
942
+ "--switch-indicator-font-size": "var(--sl-switch-track-text-font-size-sm)"
943
+ }
944
+ },
945
+ sm: {
946
+ root: {
947
+ "--switch-width": "var(--sl-switch-track-width-sm)",
948
+ "--switch-height": "var(--sl-switch-track-height-sm)",
949
+ "--switch-indicator-font-size": "var(--sl-switch-track-text-font-size-sm)"
950
+ }
951
+ },
952
+ md: {
953
+ root: {
954
+ "--switch-width": "var(--sl-switch-track-width)",
955
+ "--switch-height": "var(--sl-switch-track-height)",
956
+ "--switch-indicator-font-size": "var(--sl-switch-track-text-font-size)"
957
+ }
958
+ },
959
+ lg: {
960
+ root: {
961
+ "--switch-width": "var(--sl-switch-track-width-lg)",
962
+ "--switch-height": "var(--sl-switch-track-height-lg)",
963
+ "--switch-indicator-font-size": "var(--sl-switch-track-text-font-size-lg)"
964
+ }
965
+ }
966
+ }
967
+ }
968
+ },
969
+ slider: {
970
+ base: {
971
+ root: {
972
+ fontFamily: "var(--sl-font-base-font-family)",
973
+ fontSize: "var(--sl-font-base-font-size)",
974
+ fontWeight: "var(--sl-font-base-font-weight)",
975
+ lineHeight: "var(--sl-font-base-line-height)",
976
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
977
+ textStyle: null,
978
+ gap: "var(--sl-gauge-gap)",
979
+ _disabled: {
980
+ opacity: "var(--sl-check-opacity-disabled)"
981
+ }
982
+ },
983
+ label: {
984
+ fontFamily: "var(--sl-font-base-label-font-family)",
985
+ fontSize: "var(--sl-font-base-label-font-size)",
986
+ fontWeight: "var(--sl-font-base-label-font-weight)",
987
+ lineHeight: "var(--sl-font-base-label-line-height)",
988
+ letterSpacing: "var(--sl-font-base-label-letter-spacing)",
989
+ textStyle: null,
990
+ color: "var(--sl-gauge-label-color)"
991
+ },
992
+ valueText: {
993
+ fontFamily: "var(--sl-font-base-font-family)",
994
+ fontSize: "var(--sl-font-base-font-size)",
995
+ fontWeight: "var(--sl-font-base-font-weight)",
996
+ lineHeight: "var(--sl-font-base-line-height)",
997
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
998
+ color: "var(--sl-gauge-value-color)"
999
+ },
1000
+ track: {
1001
+ bg: "var(--sl-gauge-track-color)",
1002
+ borderRadius: "var(--sl-gauge-radius)",
1003
+ boxShadow: "none"
1004
+ },
1005
+ range: {
1006
+ bg: "colorPalette.solid",
1007
+ borderRadius: "var(--sl-gauge-radius)"
1008
+ },
1009
+ thumb: {
1010
+ boxSizing: "border-box",
1011
+ bg: "var(--sl-field-background)",
1012
+ border: "var(--sl-stroke-emphasis) solid var(--chakra-colors-color-palette-solid)",
1013
+ transition: "box-shadow var(--sl-duration-normal) var(--sl-easing-default)",
1014
+ _hover: {
1015
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--chakra-colors-color-palette-soft-hover)"
1016
+ },
1017
+ _dragging: {
1018
+ boxShadow: "0 0 0 calc(var(--sl-focus-halo-spread) * 1.5) var(--chakra-colors-color-palette-soft-active)"
1019
+ },
1020
+ _focusVisible: {
1021
+ outline: "var(--sl-focus-outline)",
1022
+ outlineOffset: "var(--sl-focus-outline-offset)",
1023
+ boxShadow: "0 0 0 var(--sl-focus-halo-spread) var(--sl-focus-halo-color)",
1024
+ ring: null,
1025
+ ringColor: null
1026
+ }
1027
+ }
1028
+ },
1029
+ variants: {
1030
+ variant: {
1031
+ outline: {
1032
+ track: {},
1033
+ range: {},
1034
+ thumb: {}
1035
+ },
1036
+ solid: {
1037
+ track: {},
1038
+ range: {},
1039
+ thumb: {}
1040
+ }
1041
+ },
1042
+ size: {
1043
+ sm: {
1044
+ root: {
1045
+ "--slider-thumb-size": "var(--sl-slider-thumb-size)",
1046
+ "--slider-track-size": "var(--sl-gauge-height-sm)",
1047
+ "--slider-marker-size": "var(--sl-stroke-emphasis)"
1048
+ }
1049
+ },
1050
+ md: {
1051
+ root: {
1052
+ "--slider-thumb-size": "var(--sl-slider-thumb-size)",
1053
+ "--slider-track-size": "var(--sl-gauge-height-sm)",
1054
+ "--slider-marker-size": "var(--sl-stroke-emphasis)"
1055
+ }
1056
+ },
1057
+ lg: {
1058
+ root: {
1059
+ "--slider-thumb-size": "var(--sl-slider-thumb-size)",
1060
+ "--slider-track-size": "var(--sl-gauge-height)",
1061
+ "--slider-marker-size": "var(--sl-stroke-emphasis)"
1062
+ }
1063
+ }
1064
+ }
1065
+ }
1066
+ },
1067
+ tabs: {
1068
+ base: {
1069
+ list: {
1070
+ borderColor: "var(--sl-disclosure-divider-color)"
1071
+ },
1072
+ trigger: {
1073
+ fontFamily: "var(--sl-font-base-font-family)",
1074
+ fontSize: "var(--sl-font-base-font-size)",
1075
+ fontWeight: "var(--sl-font-base-font-weight)",
1076
+ lineHeight: "var(--sl-font-base-line-height)",
1077
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1078
+ height: "auto",
1079
+ minW: 0,
1080
+ padding: "var(--sl-space-2) var(--sl-space-4)",
1081
+ color: "var(--sl-text-secondary)",
1082
+ transition: "var(--sl-transition-button)",
1083
+ _hover: {
1084
+ color: "var(--sl-text-primary)",
1085
+ bg: "var(--sl-disclosure-trigger-background-hover)"
1086
+ },
1087
+ _focusVisible: {
1088
+ outline: "var(--sl-focus-outline)",
1089
+ outlineOffset: "var(--sl-focus-outline-offset-inset)",
1090
+ zIndex: 1,
1091
+ outlineColor: null
1092
+ },
1093
+ _disabled: {
1094
+ color: "var(--sl-text-disabled)",
1095
+ opacity: "var(--sl-disclosure-opacity-disabled)",
1096
+ cursor: "not-allowed"
1097
+ }
1098
+ }
1099
+ },
1100
+ variants: {
1101
+ size: {
1102
+ sm: {
1103
+ trigger: {}
1104
+ },
1105
+ md: {
1106
+ trigger: {}
1107
+ },
1108
+ lg: {
1109
+ trigger: {}
1110
+ }
1111
+ },
1112
+ variant: {
1113
+ line: {
1114
+ list: {
1115
+ display: "flex",
1116
+ borderColor: "var(--sl-disclosure-divider-color)",
1117
+ _horizontal: {
1118
+ borderBottomWidth: "var(--sl-stroke-default)"
1119
+ },
1120
+ _vertical: {
1121
+ borderEndWidth: "var(--sl-stroke-default)"
1122
+ }
1123
+ },
1124
+ trigger: {
1125
+ _selected: {
1126
+ fontFamily: "var(--sl-font-base-selected-font-family)",
1127
+ fontSize: "var(--sl-font-base-selected-font-size)",
1128
+ fontWeight: "var(--sl-font-base-selected-font-weight)",
1129
+ lineHeight: "var(--sl-font-base-selected-line-height)",
1130
+ letterSpacing: "var(--sl-font-base-selected-letter-spacing)",
1131
+ color: "var(--sl-disclosure-selected-color)",
1132
+ _horizontal: {
1133
+ layerStyle: "indicator.bottom",
1134
+ "--indicator-offset-y": "calc(var(--sl-stroke-default) * -1)",
1135
+ "--indicator-color": "var(--sl-disclosure-indicator-color)",
1136
+ "--indicator-thickness": "var(--sl-disclosure-indicator-width)"
1137
+ },
1138
+ _vertical: {
1139
+ layerStyle: "indicator.end",
1140
+ "--indicator-offset-x": "calc(var(--sl-stroke-default) * -1)",
1141
+ "--indicator-color": "var(--sl-disclosure-indicator-color)",
1142
+ "--indicator-thickness": "var(--sl-disclosure-indicator-width)"
1143
+ }
1144
+ }
1145
+ }
1146
+ }
1147
+ }
1148
+ }
1149
+ },
1150
+ accordion: {
1151
+ base: {
1152
+ root: {
1153
+ color: "var(--sl-text-primary)"
1154
+ },
1155
+ item: {
1156
+ borderBottom: "var(--sl-stroke-default) solid var(--sl-disclosure-divider-color)",
1157
+ _last: {
1158
+ borderBottom: "none"
1159
+ }
1160
+ },
1161
+ itemTrigger: {
1162
+ fontFamily: "var(--sl-font-maximize-md-font-family)",
1163
+ fontSize: "var(--sl-font-maximize-md-font-size)",
1164
+ fontWeight: "var(--sl-font-maximize-md-font-weight)",
1165
+ lineHeight: "var(--sl-font-maximize-md-line-height)",
1166
+ letterSpacing: "var(--sl-font-maximize-md-letter-spacing)",
1167
+ justifyContent: "space-between",
1168
+ gap: "var(--sl-space-4)",
1169
+ padding: "var(--sl-space-4) var(--sl-space-6)",
1170
+ borderRadius: 0,
1171
+ transition: "background-color var(--sl-disclosure-animation-duration) var(--sl-disclosure-animation-easing)",
1172
+ _hover: {
1173
+ bg: "var(--sl-disclosure-trigger-background-hover)"
1174
+ },
1175
+ _active: {
1176
+ bg: "var(--sl-disclosure-trigger-background-active)"
1177
+ },
1178
+ _focusVisible: {
1179
+ outline: "var(--sl-focus-outline)",
1180
+ outlineOffset: "var(--sl-focus-outline-offset-inset)",
1181
+ outlineColor: null,
1182
+ borderRadius: "var(--sl-radius-item)"
1183
+ },
1184
+ _disabled: {
1185
+ opacity: "var(--sl-disclosure-opacity-disabled)",
1186
+ layerStyle: null
1187
+ }
1188
+ },
1189
+ itemIndicator: {
1190
+ color: "var(--sl-disclosure-icon-color)"
1191
+ },
1192
+ itemBody: {
1193
+ fontFamily: "var(--sl-font-base-font-family)",
1194
+ fontSize: "var(--sl-font-base-font-size)",
1195
+ fontWeight: "var(--sl-font-base-font-weight)",
1196
+ lineHeight: "var(--sl-font-base-line-height)",
1197
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1198
+ padding: "0 var(--sl-space-6) var(--sl-space-4)",
1199
+ color: "var(--sl-disclosure-content-color)"
1200
+ }
1201
+ },
1202
+ variants: {
1203
+ variant: {
1204
+ outline: {
1205
+ item: {}
1206
+ }
1207
+ },
1208
+ size: {
1209
+ sm: {
1210
+ itemTrigger: {}
1211
+ },
1212
+ md: {
1213
+ itemTrigger: {}
1214
+ },
1215
+ lg: {
1216
+ itemTrigger: {}
1217
+ }
1218
+ }
1219
+ }
1220
+ },
1221
+ menu: {
1222
+ base: {
1223
+ content: {
1224
+ boxSizing: "border-box",
1225
+ background: "var(--sl-popup-background)",
1226
+ border: "var(--sl-popup-border-width) solid var(--sl-popup-border-color)",
1227
+ borderRadius: "var(--sl-popup-radius)",
1228
+ boxShadow: "var(--sl-popup-shadow)",
1229
+ backgroundImage: "none",
1230
+ color: "var(--sl-text-primary)",
1231
+ bg: null,
1232
+ "--menu-bg": "var(--sl-popup-background)",
1233
+ minW: "var(--sl-popup-min-width)",
1234
+ padding: "var(--sl-popup-padding)",
1235
+ overflow: null
1236
+ },
1237
+ item: {
1238
+ fontFamily: "var(--sl-font-base-font-family)",
1239
+ fontSize: "var(--sl-font-base-font-size)",
1240
+ fontWeight: "var(--sl-font-base-font-weight)",
1241
+ lineHeight: "var(--sl-font-base-line-height)",
1242
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1243
+ display: "flex",
1244
+ alignItems: "center",
1245
+ gap: "var(--sl-item-gap)",
1246
+ minHeight: 0,
1247
+ paddingBlock: "var(--sl-item-padding-block-dense)",
1248
+ paddingInline: "var(--sl-item-padding-inline)",
1249
+ borderRadius: "var(--sl-item-radius)",
1250
+ color: "var(--sl-item-color)",
1251
+ transition: "var(--sl-item-transition)",
1252
+ textStyle: null,
1253
+ cursor: "default",
1254
+ _highlighted: {
1255
+ background: "var(--sl-item-background-hover)",
1256
+ color: "var(--sl-item-color-hover)"
1257
+ },
1258
+ _disabled: {
1259
+ color: "var(--sl-item-color-disabled)",
1260
+ opacity: "var(--sl-item-opacity-disabled)",
1261
+ layerStyle: null
1262
+ },
1263
+ "&[data-type]": {
1264
+ ps: null
1265
+ }
1266
+ },
1267
+ itemGroupLabel: {
1268
+ fontFamily: "var(--sl-font-condense-subtitle-label-font-family)",
1269
+ fontSize: "var(--sl-font-condense-subtitle-label-font-size)",
1270
+ fontWeight: "var(--sl-font-condense-subtitle-label-font-weight)",
1271
+ lineHeight: "var(--sl-font-condense-subtitle-label-line-height)",
1272
+ letterSpacing: "var(--sl-font-condense-subtitle-label-letter-spacing)",
1273
+ textTransform: "var(--sl-font-condense-subtitle-label-text-transform)",
1274
+ paddingBlock: "var(--sl-popup-group-label-padding-top) var(--sl-popup-group-label-padding-bottom)",
1275
+ paddingInline: "var(--sl-item-padding-inline)",
1276
+ color: "var(--sl-text-secondary)",
1277
+ background: "transparent",
1278
+ textStyle: null
1279
+ },
1280
+ itemCommand: {
1281
+ fontFamily: "var(--sl-font-condense-font-family)",
1282
+ fontSize: "var(--sl-font-condense-font-size)",
1283
+ fontWeight: "var(--sl-font-condense-font-weight)",
1284
+ lineHeight: "var(--sl-font-condense-line-height)",
1285
+ letterSpacing: null,
1286
+ color: "var(--sl-text-tertiary)",
1287
+ opacity: null
1288
+ },
1289
+ itemIndicator: {
1290
+ color: "var(--sl-item-indicator-color)"
1291
+ },
1292
+ separator: {
1293
+ height: "var(--sl-stroke-default)",
1294
+ marginBlock: "var(--sl-popup-separator-spacing)",
1295
+ border: "none",
1296
+ background: "var(--sl-popup-separator-color)",
1297
+ mx: 0,
1298
+ my: null
1299
+ },
1300
+ arrow: {
1301
+ "--arrow-background": "var(--sl-popup-background)"
1302
+ }
1303
+ },
1304
+ variants: {
1305
+ variant: {
1306
+ subtle: {
1307
+ item: {}
1308
+ },
1309
+ solid: {
1310
+ item: {
1311
+ _highlighted: {
1312
+ bg: "colorPalette.solid",
1313
+ color: "colorPalette.on-solid"
1314
+ }
1315
+ }
1316
+ }
1317
+ },
1318
+ size: {
1319
+ sm: {
1320
+ content: {},
1321
+ item: {}
1322
+ },
1323
+ md: {
1324
+ content: {},
1325
+ item: {}
1326
+ }
1327
+ }
1328
+ }
1329
+ },
1330
+ select: {
1331
+ base: {
1332
+ trigger: {
1333
+ boxSizing: "border-box",
1334
+ color: "var(--sl-field-color)",
1335
+ background: "var(--sl-field-background)",
1336
+ border: "var(--sl-field-border-width) solid var(--sl-field-border-color)",
1337
+ borderRadius: "var(--sl-field-radius)",
1338
+ transition: "var(--sl-field-transition)",
1339
+ outline: "none",
1340
+ fontFamily: "var(--sl-font-base-font-family)",
1341
+ fontSize: "var(--sl-font-base-font-size)",
1342
+ fontWeight: "var(--sl-font-base-font-weight)",
1343
+ lineHeight: "var(--sl-font-base-line-height)",
1344
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1345
+ focusVisibleRing: null,
1346
+ focusRingColor: null,
1347
+ _hover: {
1348
+ borderColor: "var(--sl-field-border-color-hover)"
1349
+ },
1350
+ _focus: null,
1351
+ _invalid: {
1352
+ borderColor: "var(--sl-field-border-color-error)",
1353
+ _focus: {
1354
+ borderColor: "var(--sl-field-border-color-error)",
1355
+ boxShadow: "var(--sl-field-shadow-focus-error)"
1356
+ }
1357
+ },
1358
+ _disabled: {
1359
+ background: "var(--sl-field-background-disabled)",
1360
+ color: "var(--sl-field-color-disabled)",
1361
+ cursor: "not-allowed",
1362
+ layerStyle: null
1363
+ },
1364
+ _placeholder: {
1365
+ color: "var(--sl-field-placeholder-color)",
1366
+ opacity: 1
1367
+ },
1368
+ gap: "var(--sl-gap-control)",
1369
+ minH: null,
1370
+ height: "var(--select-trigger-height)",
1371
+ cursor: "pointer",
1372
+ _focusVisible: {
1373
+ borderColor: "var(--sl-field-border-color-focus)",
1374
+ boxShadow: "var(--sl-field-shadow-focus)"
1375
+ },
1376
+ _placeholderShown: {
1377
+ color: "var(--sl-field-placeholder-color)"
1378
+ }
1379
+ },
1380
+ indicator: {
1381
+ color: "var(--sl-text-tertiary)"
1382
+ },
1383
+ label: {
1384
+ fontFamily: "var(--sl-font-base-label-font-family)",
1385
+ fontSize: "var(--sl-font-base-label-font-size)",
1386
+ fontWeight: "var(--sl-font-base-label-font-weight)",
1387
+ lineHeight: "var(--sl-font-base-label-line-height)",
1388
+ letterSpacing: "var(--sl-font-base-label-letter-spacing)",
1389
+ textStyle: null,
1390
+ color: "var(--sl-text-primary)"
1391
+ },
1392
+ content: {
1393
+ boxSizing: "border-box",
1394
+ background: "var(--sl-popup-background)",
1395
+ border: "var(--sl-popup-border-width) solid var(--sl-popup-border-color)",
1396
+ borderRadius: "var(--sl-popup-radius-field)",
1397
+ boxShadow: "var(--sl-popup-shadow)",
1398
+ backgroundImage: "none",
1399
+ color: "var(--sl-text-primary)",
1400
+ bg: null,
1401
+ "--menu-bg": "var(--sl-popup-background)",
1402
+ padding: "var(--sl-popup-padding)"
1403
+ },
1404
+ item: {
1405
+ fontFamily: "var(--sl-font-base-font-family)",
1406
+ fontSize: "var(--sl-font-base-font-size)",
1407
+ fontWeight: "var(--sl-font-base-font-weight)",
1408
+ lineHeight: "var(--sl-font-base-line-height)",
1409
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1410
+ display: "flex",
1411
+ alignItems: "center",
1412
+ gap: "var(--sl-item-gap)",
1413
+ minHeight: 0,
1414
+ paddingBlock: "var(--sl-item-padding-block)",
1415
+ paddingInline: "var(--sl-item-padding-inline)",
1416
+ borderRadius: "var(--sl-item-radius)",
1417
+ color: "var(--sl-item-color)",
1418
+ transition: "var(--sl-item-transition)",
1419
+ textStyle: null,
1420
+ cursor: "default",
1421
+ _highlighted: {
1422
+ background: "var(--sl-item-background-hover)",
1423
+ color: "var(--sl-item-color-hover)"
1424
+ },
1425
+ _disabled: {
1426
+ color: "var(--sl-item-color-disabled)",
1427
+ opacity: "var(--sl-item-opacity-disabled)",
1428
+ layerStyle: null
1429
+ },
1430
+ "&[data-state=checked]": {
1431
+ fontFamily: "var(--sl-font-base-selected-font-family)",
1432
+ fontSize: "var(--sl-font-base-selected-font-size)",
1433
+ fontWeight: "var(--sl-font-base-selected-font-weight)",
1434
+ lineHeight: "var(--sl-font-base-selected-line-height)",
1435
+ letterSpacing: "var(--sl-font-base-selected-letter-spacing)",
1436
+ background: "var(--sl-item-background-selected)",
1437
+ color: "var(--sl-item-color-selected)"
1438
+ }
1439
+ },
1440
+ itemGroupLabel: {
1441
+ fontFamily: "var(--sl-font-condense-subtitle-label-font-family)",
1442
+ fontSize: "var(--sl-font-condense-subtitle-label-font-size)",
1443
+ fontWeight: "var(--sl-font-condense-subtitle-label-font-weight)",
1444
+ lineHeight: "var(--sl-font-condense-subtitle-label-line-height)",
1445
+ letterSpacing: "var(--sl-font-condense-subtitle-label-letter-spacing)",
1446
+ textTransform: "var(--sl-font-condense-subtitle-label-text-transform)",
1447
+ paddingBlock: "var(--sl-popup-group-label-padding-top) var(--sl-popup-group-label-padding-bottom)",
1448
+ paddingInline: "var(--sl-item-padding-inline)",
1449
+ color: "var(--sl-text-secondary)",
1450
+ background: "transparent",
1451
+ textStyle: null
1452
+ },
1453
+ itemIndicator: {
1454
+ color: "var(--sl-item-indicator-color)"
1455
+ }
1456
+ },
1457
+ variants: {
1458
+ variant: {
1459
+ outline: {
1460
+ trigger: {}
1461
+ }
1462
+ },
1463
+ size: {
1464
+ xs: {
1465
+ content: {},
1466
+ item: {},
1467
+ itemGroupLabel: {},
1468
+ root: {
1469
+ "--select-trigger-height": "var(--sl-control-height-xs)",
1470
+ "--select-trigger-padding-x": "var(--sl-control-padding-inline-xs)"
1471
+ },
1472
+ trigger: {}
1473
+ },
1474
+ sm: {
1475
+ content: {},
1476
+ item: {},
1477
+ itemGroupLabel: {},
1478
+ root: {
1479
+ "--select-trigger-height": "var(--sl-control-height-sm)",
1480
+ "--select-trigger-padding-x": "var(--sl-control-padding-inline-sm)"
1481
+ },
1482
+ trigger: {}
1483
+ },
1484
+ md: {
1485
+ content: {},
1486
+ item: {},
1487
+ itemGroupLabel: {},
1488
+ root: {
1489
+ "--select-trigger-height": "var(--sl-control-height-md)",
1490
+ "--select-trigger-padding-x": "var(--sl-control-padding-inline)"
1491
+ },
1492
+ trigger: {}
1493
+ },
1494
+ lg: {
1495
+ content: {},
1496
+ item: {},
1497
+ itemGroupLabel: {},
1498
+ root: {
1499
+ "--select-trigger-height": "var(--sl-control-height-lg)",
1500
+ "--select-trigger-padding-x": "var(--sl-control-padding-inline-lg)"
1501
+ },
1502
+ trigger: {}
1503
+ }
1504
+ }
1505
+ }
1506
+ },
1507
+ combobox: {
1508
+ base: {
1509
+ input: {
1510
+ boxSizing: "border-box",
1511
+ color: "var(--sl-field-color)",
1512
+ background: "var(--sl-field-background)",
1513
+ border: "var(--sl-field-border-width) solid var(--sl-field-border-color)",
1514
+ borderRadius: "var(--sl-field-radius)",
1515
+ transition: "var(--sl-field-transition)",
1516
+ outline: "none",
1517
+ fontFamily: "var(--sl-font-base-font-family)",
1518
+ fontSize: "var(--sl-font-base-font-size)",
1519
+ fontWeight: "var(--sl-font-base-font-weight)",
1520
+ lineHeight: "var(--sl-font-base-line-height)",
1521
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1522
+ focusVisibleRing: null,
1523
+ focusRingColor: null,
1524
+ _hover: {
1525
+ borderColor: "var(--sl-field-border-color-hover)"
1526
+ },
1527
+ _focus: {
1528
+ borderColor: "var(--sl-field-border-color-focus)",
1529
+ boxShadow: "var(--sl-field-shadow-focus)"
1530
+ },
1531
+ _invalid: {
1532
+ borderColor: "var(--sl-field-border-color-error)",
1533
+ _focus: {
1534
+ borderColor: "var(--sl-field-border-color-error)",
1535
+ boxShadow: "var(--sl-field-shadow-focus-error)"
1536
+ }
1537
+ },
1538
+ _disabled: {
1539
+ background: "var(--sl-field-background-disabled)",
1540
+ color: "var(--sl-field-color-disabled)",
1541
+ cursor: "not-allowed",
1542
+ layerStyle: null
1543
+ },
1544
+ _placeholder: {
1545
+ color: "var(--sl-field-placeholder-color)",
1546
+ opacity: 1
1547
+ }
1548
+ },
1549
+ label: {
1550
+ fontFamily: "var(--sl-font-base-label-font-family)",
1551
+ fontSize: "var(--sl-font-base-label-font-size)",
1552
+ fontWeight: "var(--sl-font-base-label-font-weight)",
1553
+ lineHeight: "var(--sl-font-base-label-line-height)",
1554
+ letterSpacing: "var(--sl-font-base-label-letter-spacing)",
1555
+ textStyle: null,
1556
+ color: "var(--sl-text-primary)"
1557
+ },
1558
+ trigger: {
1559
+ color: "var(--sl-text-tertiary)"
1560
+ },
1561
+ empty: {
1562
+ fontFamily: "var(--sl-font-condense-font-family)",
1563
+ fontSize: "var(--sl-font-condense-font-size)",
1564
+ fontWeight: "var(--sl-font-condense-font-weight)",
1565
+ lineHeight: "var(--sl-font-condense-line-height)",
1566
+ letterSpacing: "var(--sl-font-condense-letter-spacing)",
1567
+ color: "var(--sl-text-tertiary)",
1568
+ justifyContent: "center",
1569
+ paddingBlock: "var(--sl-popup-empty-padding-block)"
1570
+ },
1571
+ content: {
1572
+ boxSizing: "border-box",
1573
+ background: "var(--sl-popup-background)",
1574
+ border: "var(--sl-popup-border-width) solid var(--sl-popup-border-color)",
1575
+ borderRadius: "var(--sl-popup-radius-field)",
1576
+ boxShadow: "var(--sl-popup-shadow)",
1577
+ backgroundImage: "none",
1578
+ color: "var(--sl-text-primary)",
1579
+ bg: null,
1580
+ "--menu-bg": "var(--sl-popup-background)",
1581
+ padding: "var(--sl-popup-padding)"
1582
+ },
1583
+ item: {
1584
+ fontFamily: "var(--sl-font-base-font-family)",
1585
+ fontSize: "var(--sl-font-base-font-size)",
1586
+ fontWeight: "var(--sl-font-base-font-weight)",
1587
+ lineHeight: "var(--sl-font-base-line-height)",
1588
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1589
+ display: "flex",
1590
+ alignItems: "center",
1591
+ gap: "var(--sl-item-gap)",
1592
+ minHeight: 0,
1593
+ paddingBlock: "var(--sl-item-padding-block)",
1594
+ paddingInline: "var(--sl-item-padding-inline)",
1595
+ borderRadius: "var(--sl-item-radius)",
1596
+ color: "var(--sl-item-color)",
1597
+ transition: "var(--sl-item-transition)",
1598
+ textStyle: null,
1599
+ cursor: "default",
1600
+ _highlighted: {
1601
+ background: "var(--sl-item-background-hover)",
1602
+ color: "var(--sl-item-color-hover)"
1603
+ },
1604
+ _disabled: {
1605
+ color: "var(--sl-item-color-disabled)",
1606
+ opacity: "var(--sl-item-opacity-disabled)",
1607
+ layerStyle: null
1608
+ },
1609
+ "&[data-state=checked]": {
1610
+ fontFamily: "var(--sl-font-base-selected-font-family)",
1611
+ fontSize: "var(--sl-font-base-selected-font-size)",
1612
+ fontWeight: "var(--sl-font-base-selected-font-weight)",
1613
+ lineHeight: "var(--sl-font-base-selected-line-height)",
1614
+ letterSpacing: "var(--sl-font-base-selected-letter-spacing)",
1615
+ background: "var(--sl-item-background-selected)",
1616
+ color: "var(--sl-item-color-selected)"
1617
+ }
1618
+ },
1619
+ itemGroupLabel: {
1620
+ fontFamily: "var(--sl-font-condense-subtitle-label-font-family)",
1621
+ fontSize: "var(--sl-font-condense-subtitle-label-font-size)",
1622
+ fontWeight: "var(--sl-font-condense-subtitle-label-font-weight)",
1623
+ lineHeight: "var(--sl-font-condense-subtitle-label-line-height)",
1624
+ letterSpacing: "var(--sl-font-condense-subtitle-label-letter-spacing)",
1625
+ textTransform: "var(--sl-font-condense-subtitle-label-text-transform)",
1626
+ paddingBlock: "var(--sl-popup-group-label-padding-top) var(--sl-popup-group-label-padding-bottom)",
1627
+ paddingInline: "var(--sl-item-padding-inline)",
1628
+ color: "var(--sl-text-secondary)",
1629
+ background: "transparent",
1630
+ textStyle: null
1631
+ },
1632
+ itemIndicator: {
1633
+ color: "var(--sl-item-indicator-color)"
1634
+ }
1635
+ },
1636
+ variants: {
1637
+ variant: {
1638
+ outline: {
1639
+ input: {}
1640
+ }
1641
+ },
1642
+ size: {
1643
+ xs: {
1644
+ content: {},
1645
+ item: {},
1646
+ itemGroupLabel: {},
1647
+ input: {
1648
+ fontFamily: "var(--sl-font-condense-font-family)",
1649
+ fontSize: "var(--sl-font-condense-font-size)",
1650
+ fontWeight: "var(--sl-font-condense-font-weight)",
1651
+ lineHeight: "var(--sl-font-condense-line-height)",
1652
+ letterSpacing: "var(--sl-font-condense-letter-spacing)",
1653
+ textStyle: null,
1654
+ "--input-height": "var(--sl-control-height-xs)",
1655
+ height: "var(--sl-control-height-xs)",
1656
+ px: "var(--sl-control-padding-inline-xs)"
1657
+ }
1658
+ },
1659
+ sm: {
1660
+ content: {},
1661
+ item: {},
1662
+ itemGroupLabel: {},
1663
+ input: {
1664
+ fontFamily: "var(--sl-font-condense-font-family)",
1665
+ fontSize: "var(--sl-font-condense-font-size)",
1666
+ fontWeight: "var(--sl-font-condense-font-weight)",
1667
+ lineHeight: "var(--sl-font-condense-line-height)",
1668
+ letterSpacing: "var(--sl-font-condense-letter-spacing)",
1669
+ textStyle: null,
1670
+ "--input-height": "var(--sl-control-height-sm)",
1671
+ height: "var(--sl-control-height-sm)",
1672
+ px: "var(--sl-control-padding-inline-sm)"
1673
+ }
1674
+ },
1675
+ md: {
1676
+ content: {},
1677
+ item: {},
1678
+ itemGroupLabel: {},
1679
+ input: {
1680
+ fontFamily: "var(--sl-font-base-font-family)",
1681
+ fontSize: "var(--sl-font-base-font-size)",
1682
+ fontWeight: "var(--sl-font-base-font-weight)",
1683
+ lineHeight: "var(--sl-font-base-line-height)",
1684
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1685
+ textStyle: null,
1686
+ "--input-height": "var(--sl-control-height-md)",
1687
+ height: "var(--sl-control-height-md)",
1688
+ px: "var(--sl-control-padding-inline)"
1689
+ }
1690
+ },
1691
+ lg: {
1692
+ content: {},
1693
+ item: {},
1694
+ itemGroupLabel: {},
1695
+ input: {
1696
+ fontFamily: "var(--sl-font-magnify-font-family)",
1697
+ fontSize: "var(--sl-font-magnify-font-size)",
1698
+ fontWeight: "var(--sl-font-magnify-font-weight)",
1699
+ lineHeight: "var(--sl-font-magnify-line-height)",
1700
+ letterSpacing: "var(--sl-font-magnify-letter-spacing)",
1701
+ textStyle: null,
1702
+ "--input-height": "var(--sl-control-height-lg)",
1703
+ height: "var(--sl-control-height-lg)",
1704
+ px: "var(--sl-control-padding-inline-lg)"
1705
+ }
1706
+ }
1707
+ }
1708
+ }
1709
+ },
1710
+ popover: {
1711
+ base: {
1712
+ content: {
1713
+ boxSizing: "border-box",
1714
+ background: "var(--sl-popup-background)",
1715
+ border: "var(--sl-popup-border-width) solid var(--sl-popup-border-color)",
1716
+ borderRadius: "var(--sl-popup-radius)",
1717
+ boxShadow: "var(--sl-popup-shadow)",
1718
+ backgroundImage: "none",
1719
+ color: "var(--sl-text-primary)",
1720
+ bg: null,
1721
+ "--menu-bg": "var(--sl-popup-background)",
1722
+ "--popover-bg": "var(--sl-popup-background)",
1723
+ textStyle: null,
1724
+ fontFamily: "var(--sl-font-base-font-family)",
1725
+ fontSize: "var(--sl-font-base-font-size)",
1726
+ fontWeight: "var(--sl-font-base-font-weight)",
1727
+ lineHeight: "var(--sl-font-base-line-height)",
1728
+ letterSpacing: "var(--sl-font-base-letter-spacing)"
1729
+ },
1730
+ title: {
1731
+ fontFamily: "var(--sl-font-maximize-md-font-family)",
1732
+ fontSize: "var(--sl-font-maximize-md-font-size)",
1733
+ fontWeight: "var(--sl-font-maximize-md-font-weight)",
1734
+ lineHeight: "var(--sl-font-maximize-md-line-height)",
1735
+ letterSpacing: "var(--sl-font-maximize-md-letter-spacing)"
1736
+ },
1737
+ description: {
1738
+ fontFamily: "var(--sl-font-base-font-family)",
1739
+ fontSize: "var(--sl-font-base-font-size)",
1740
+ fontWeight: "var(--sl-font-base-font-weight)",
1741
+ lineHeight: "var(--sl-font-base-line-height)",
1742
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1743
+ color: "var(--sl-text-secondary)"
1744
+ },
1745
+ arrow: {
1746
+ "--arrow-background": "var(--sl-popup-background)"
1747
+ }
1748
+ }
1749
+ },
1750
+ tooltip: {
1751
+ base: {
1752
+ content: {
1753
+ fontFamily: "var(--sl-font-condense-font-family)",
1754
+ fontSize: "var(--sl-font-condense-font-size)",
1755
+ fontWeight: "var(--sl-font-condense-font-weight)",
1756
+ lineHeight: "var(--sl-font-condense-line-height)",
1757
+ letterSpacing: "var(--sl-font-condense-letter-spacing)",
1758
+ textStyle: null,
1759
+ maxW: "var(--sl-tooltip-max-width)",
1760
+ padding: "var(--sl-space-1-5) var(--sl-space-2-5)",
1761
+ borderRadius: "var(--sl-radius-chrome)",
1762
+ bg: "var(--sl-surface-inverse)",
1763
+ color: "var(--sl-text-on-inverse-surface)",
1764
+ boxShadow: "var(--sl-popup-shadow)",
1765
+ "--tooltip-bg": "var(--sl-surface-inverse)"
1766
+ },
1767
+ arrow: {
1768
+ "--arrow-background": "var(--sl-surface-inverse)"
1769
+ }
1770
+ }
1771
+ },
1772
+ dialog: {
1773
+ base: {
1774
+ backdrop: {
1775
+ bg: "var(--sl-modal-backdrop)"
1776
+ },
1777
+ content: {
1778
+ boxSizing: "border-box",
1779
+ gap: "var(--sl-modal-gap)",
1780
+ padding: "var(--sl-modal-padding)",
1781
+ background: "var(--sl-modal-background)",
1782
+ border: "var(--sl-modal-border-width) solid var(--sl-modal-border-color)",
1783
+ borderRadius: "var(--sl-modal-radius)",
1784
+ boxShadow: "var(--sl-modal-shadow)",
1785
+ backgroundImage: "none",
1786
+ color: "var(--sl-text-primary)",
1787
+ bg: null,
1788
+ textStyle: null,
1789
+ fontFamily: "var(--sl-font-base-font-family)",
1790
+ fontSize: "var(--sl-font-base-font-size)",
1791
+ fontWeight: "var(--sl-font-base-font-weight)",
1792
+ lineHeight: "var(--sl-font-base-line-height)",
1793
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1794
+ width: "var(--sl-modal-width)",
1795
+ maxH: "var(--sl-modal-max-height)"
1796
+ },
1797
+ header: {
1798
+ padding: 0,
1799
+ gap: "var(--sl-space-2)"
1800
+ },
1801
+ body: {
1802
+ padding: 0
1803
+ },
1804
+ footer: {
1805
+ padding: 0,
1806
+ gap: "var(--sl-modal-actions-gap)",
1807
+ marginTop: "var(--sl-modal-actions-spacing)"
1808
+ },
1809
+ title: {
1810
+ fontFamily: "var(--sl-font-maximize-xl-font-family)",
1811
+ fontSize: "var(--sl-font-maximize-xl-font-size)",
1812
+ fontWeight: "var(--sl-font-maximize-xl-font-weight)",
1813
+ lineHeight: "var(--sl-font-maximize-xl-line-height)",
1814
+ letterSpacing: "var(--sl-font-maximize-xl-letter-spacing)",
1815
+ textStyle: null,
1816
+ color: "var(--sl-modal-title-color)"
1817
+ },
1818
+ description: {
1819
+ fontFamily: "var(--sl-font-base-font-family)",
1820
+ fontSize: "var(--sl-font-base-font-size)",
1821
+ fontWeight: "var(--sl-font-base-font-weight)",
1822
+ lineHeight: "var(--sl-font-base-line-height)",
1823
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1824
+ color: "var(--sl-modal-description-color)"
1825
+ },
1826
+ closeTrigger: {
1827
+ top: "var(--sl-space-3)",
1828
+ insetEnd: "var(--sl-space-3)"
1829
+ }
1830
+ },
1831
+ variants: {
1832
+ size: {
1833
+ md: {
1834
+ content: {
1835
+ maxW: "var(--sl-modal-max-width)"
1836
+ }
1837
+ }
1838
+ }
1839
+ }
1840
+ },
1841
+ drawer: {
1842
+ base: {
1843
+ backdrop: {
1844
+ bg: "var(--sl-modal-backdrop)"
1845
+ },
1846
+ content: {
1847
+ bg: "var(--sl-modal-background)",
1848
+ color: "var(--sl-text-primary)",
1849
+ boxShadow: "var(--sl-modal-shadow)",
1850
+ textStyle: null,
1851
+ fontFamily: "var(--sl-font-base-font-family)",
1852
+ fontSize: "var(--sl-font-base-font-size)",
1853
+ fontWeight: "var(--sl-font-base-font-weight)",
1854
+ lineHeight: "var(--sl-font-base-line-height)",
1855
+ letterSpacing: "var(--sl-font-base-letter-spacing)"
1856
+ },
1857
+ title: {
1858
+ fontFamily: "var(--sl-font-maximize-xl-font-family)",
1859
+ fontSize: "var(--sl-font-maximize-xl-font-size)",
1860
+ fontWeight: "var(--sl-font-maximize-xl-font-weight)",
1861
+ lineHeight: "var(--sl-font-maximize-xl-line-height)",
1862
+ letterSpacing: "var(--sl-font-maximize-xl-letter-spacing)",
1863
+ textStyle: null,
1864
+ color: "var(--sl-modal-title-color)"
1865
+ },
1866
+ description: {
1867
+ fontFamily: "var(--sl-font-base-font-family)",
1868
+ fontSize: "var(--sl-font-base-font-size)",
1869
+ fontWeight: "var(--sl-font-base-font-weight)",
1870
+ lineHeight: "var(--sl-font-base-line-height)",
1871
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1872
+ color: "var(--sl-modal-description-color)"
1873
+ },
1874
+ footer: {
1875
+ gap: "var(--sl-modal-actions-gap)"
1876
+ }
1877
+ }
1878
+ },
1879
+ toast: {
1880
+ base: {
1881
+ root: {
1882
+ boxSizing: "border-box",
1883
+ background: "var(--sl-popup-background)",
1884
+ border: "var(--sl-popup-border-width) solid var(--sl-popup-border-color)",
1885
+ borderRadius: "var(--sl-popup-radius)",
1886
+ boxShadow: "var(--sl-popup-shadow)",
1887
+ backgroundImage: "none",
1888
+ color: "var(--sl-text-primary)",
1889
+ fontFamily: "var(--sl-font-base-font-family)",
1890
+ fontSize: "var(--sl-font-base-font-size)",
1891
+ fontWeight: "var(--sl-font-base-font-weight)",
1892
+ lineHeight: "var(--sl-font-base-line-height)",
1893
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1894
+ padding: "var(--sl-notice-padding)",
1895
+ gap: "var(--sl-notice-gap)",
1896
+ "--toast-trigger-bg": "var(--sl-surface-raised)",
1897
+ "&[data-type=info]": {
1898
+ colorPalette: "info",
1899
+ bg: "colorPalette.soft",
1900
+ borderColor: "colorPalette.border",
1901
+ color: "colorPalette.on-soft"
1902
+ },
1903
+ "&[data-type=warning]": {
1904
+ colorPalette: "warning",
1905
+ bg: "colorPalette.soft",
1906
+ borderColor: "colorPalette.border",
1907
+ color: "colorPalette.on-soft"
1908
+ },
1909
+ "&[data-type=success]": {
1910
+ colorPalette: "success",
1911
+ bg: "colorPalette.soft",
1912
+ borderColor: "colorPalette.border",
1913
+ color: "colorPalette.on-soft"
1914
+ },
1915
+ "&[data-type=error]": {
1916
+ colorPalette: "error",
1917
+ bg: "colorPalette.soft",
1918
+ borderColor: "colorPalette.border",
1919
+ color: "colorPalette.on-soft"
1920
+ }
1921
+ },
1922
+ title: {
1923
+ fontFamily: "var(--sl-font-maximize-md-font-family)",
1924
+ fontSize: "var(--sl-font-maximize-md-font-size)",
1925
+ fontWeight: "var(--sl-font-maximize-md-font-weight)",
1926
+ lineHeight: "var(--sl-font-maximize-md-line-height)",
1927
+ letterSpacing: "var(--sl-font-maximize-md-letter-spacing)",
1928
+ textStyle: null
1929
+ },
1930
+ description: {
1931
+ fontFamily: "var(--sl-font-base-font-family)",
1932
+ fontSize: "var(--sl-font-base-font-size)",
1933
+ fontWeight: "var(--sl-font-base-font-weight)",
1934
+ lineHeight: "var(--sl-font-base-line-height)",
1935
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1936
+ textStyle: null,
1937
+ marginTop: "var(--sl-notice-text-gap)",
1938
+ color: "var(--sl-notice-description-color)",
1939
+ "[data-type] &": {
1940
+ color: "inherit"
1941
+ }
1942
+ },
1943
+ closeTrigger: {
1944
+ width: "var(--sl-icon-button-size)",
1945
+ height: "var(--sl-icon-button-size)",
1946
+ padding: 0,
1947
+ borderRadius: "var(--sl-icon-button-radius)",
1948
+ color: "var(--sl-icon-button-color)",
1949
+ transition: "var(--sl-icon-button-transition)"
1950
+ }
1951
+ }
1952
+ },
1953
+ alert: {
1954
+ base: {
1955
+ root: {
1956
+ fontFamily: "var(--sl-font-base-font-family)",
1957
+ fontSize: "var(--sl-font-base-font-size)",
1958
+ fontWeight: "var(--sl-font-base-font-weight)",
1959
+ lineHeight: "var(--sl-font-base-line-height)",
1960
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1961
+ textStyle: null,
1962
+ padding: "var(--sl-notice-padding)",
1963
+ gap: "var(--sl-notice-gap)",
1964
+ borderRadius: "var(--sl-popup-radius)",
1965
+ borderWidth: "var(--sl-popup-border-width)",
1966
+ borderStyle: "solid",
1967
+ borderColor: "transparent"
1968
+ },
1969
+ title: {
1970
+ fontFamily: "var(--sl-font-maximize-md-font-family)",
1971
+ fontSize: "var(--sl-font-maximize-md-font-size)",
1972
+ fontWeight: "var(--sl-font-maximize-md-font-weight)",
1973
+ lineHeight: "var(--sl-font-maximize-md-line-height)",
1974
+ letterSpacing: "var(--sl-font-maximize-md-letter-spacing)"
1975
+ },
1976
+ description: {
1977
+ fontFamily: "var(--sl-font-base-font-family)",
1978
+ fontSize: "var(--sl-font-base-font-size)",
1979
+ fontWeight: "var(--sl-font-base-font-weight)",
1980
+ lineHeight: "var(--sl-font-base-line-height)",
1981
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
1982
+ marginTop: "var(--sl-notice-text-gap)"
1983
+ },
1984
+ indicator: {
1985
+ color: "inherit"
1986
+ }
1987
+ },
1988
+ variants: {
1989
+ status: {
1990
+ info: {
1991
+ root: {
1992
+ colorPalette: "info"
1993
+ }
1994
+ },
1995
+ warning: {
1996
+ root: {
1997
+ colorPalette: "warning"
1998
+ }
1999
+ },
2000
+ success: {
2001
+ root: {
2002
+ colorPalette: "success"
2003
+ }
2004
+ },
2005
+ error: {
2006
+ root: {
2007
+ colorPalette: "error"
2008
+ }
2009
+ },
2010
+ neutral: {
2011
+ root: {
2012
+ colorPalette: "chrome"
2013
+ }
2014
+ }
2015
+ },
2016
+ variant: {
2017
+ subtle: {
2018
+ root: {
2019
+ bg: "colorPalette.soft",
2020
+ borderColor: "colorPalette.border",
2021
+ color: "colorPalette.on-soft"
2022
+ }
2023
+ },
2024
+ surface: {
2025
+ root: {
2026
+ bg: "colorPalette.soft",
2027
+ borderColor: "colorPalette.border",
2028
+ color: "colorPalette.on-soft"
2029
+ }
2030
+ },
2031
+ outline: {
2032
+ root: {
2033
+ bg: "transparent",
2034
+ borderColor: "colorPalette.border",
2035
+ color: "colorPalette.fg"
2036
+ }
2037
+ },
2038
+ solid: {
2039
+ root: {
2040
+ bg: "colorPalette.solid",
2041
+ borderColor: "colorPalette.solid",
2042
+ color: "colorPalette.on-solid"
2043
+ }
2044
+ }
2045
+ },
2046
+ size: {
2047
+ sm: {
2048
+ root: {}
2049
+ },
2050
+ md: {
2051
+ root: {}
2052
+ },
2053
+ lg: {
2054
+ root: {}
2055
+ }
2056
+ }
2057
+ }
2058
+ },
2059
+ progress: {
2060
+ base: {
2061
+ root: {
2062
+ gap: "var(--sl-gauge-gap)"
2063
+ },
2064
+ label: {
2065
+ fontFamily: "var(--sl-font-base-label-font-family)",
2066
+ fontSize: "var(--sl-font-base-label-font-size)",
2067
+ fontWeight: "var(--sl-font-base-label-font-weight)",
2068
+ lineHeight: "var(--sl-font-base-label-line-height)",
2069
+ letterSpacing: "var(--sl-font-base-label-letter-spacing)",
2070
+ textStyle: null,
2071
+ color: "var(--sl-gauge-label-color)"
2072
+ },
2073
+ valueText: {
2074
+ fontFamily: "var(--sl-font-base-font-family)",
2075
+ fontSize: "var(--sl-font-base-font-size)",
2076
+ fontWeight: "var(--sl-font-base-font-weight)",
2077
+ lineHeight: "var(--sl-font-base-line-height)",
2078
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
2079
+ textStyle: null,
2080
+ color: "var(--sl-gauge-value-color)"
2081
+ },
2082
+ track: {
2083
+ bg: "var(--sl-gauge-track-color)",
2084
+ borderRadius: "var(--sl-gauge-radius)"
2085
+ },
2086
+ range: {
2087
+ bg: "colorPalette.solid",
2088
+ borderRadius: "var(--sl-gauge-radius)",
2089
+ transition: "var(--sl-gauge-transition)"
2090
+ }
2091
+ },
2092
+ variants: {
2093
+ variant: {
2094
+ outline: {
2095
+ track: {},
2096
+ range: {}
2097
+ },
2098
+ subtle: {
2099
+ track: {},
2100
+ range: {}
2101
+ }
2102
+ },
2103
+ size: {
2104
+ xs: {
2105
+ track: {
2106
+ height: "var(--sl-gauge-height-sm)"
2107
+ }
2108
+ },
2109
+ sm: {
2110
+ track: {
2111
+ height: "var(--sl-gauge-height-sm)"
2112
+ }
2113
+ },
2114
+ md: {
2115
+ track: {
2116
+ height: "var(--sl-gauge-height)"
2117
+ }
2118
+ },
2119
+ lg: {
2120
+ track: {
2121
+ height: "var(--sl-gauge-height)"
2122
+ }
2123
+ },
2124
+ xl: {
2125
+ track: {
2126
+ height: "var(--sl-gauge-height-lg)"
2127
+ }
2128
+ }
2129
+ }
2130
+ }
2131
+ },
2132
+ avatar: {
2133
+ base: {
2134
+ root: {
2135
+ fontFamily: "var(--sl-font-maximize-md-font-family)",
2136
+ fontSize: "var(--sl-font-maximize-md-font-size)",
2137
+ fontWeight: "var(--sl-font-maximize-md-font-weight)",
2138
+ lineHeight: "var(--sl-font-maximize-md-line-height)",
2139
+ letterSpacing: "var(--sl-font-maximize-md-letter-spacing)",
2140
+ boxSizing: "border-box",
2141
+ border: "var(--sl-stroke-emphasis) solid var(--sl-surface-canvas)",
2142
+ boxShadow: "var(--sl-elevation-sm)",
2143
+ textTransform: "uppercase"
2144
+ }
2145
+ },
2146
+ variants: {
2147
+ variant: {
2148
+ solid: {
2149
+ root: {
2150
+ bg: "colorPalette.solid",
2151
+ color: "colorPalette.on-solid"
2152
+ }
2153
+ },
2154
+ subtle: {
2155
+ root: {
2156
+ bg: "colorPalette.solid",
2157
+ color: "colorPalette.on-solid"
2158
+ }
2159
+ },
2160
+ outline: {
2161
+ root: {
2162
+ bg: "colorPalette.solid",
2163
+ color: "colorPalette.on-solid"
2164
+ }
2165
+ }
2166
+ },
2167
+ size: {
2168
+ "2xs": {
2169
+ root: {
2170
+ "--avatar-size": "var(--sl-avatar-size-xs)",
2171
+ "--avatar-font-size": null
2172
+ }
2173
+ },
2174
+ xs: {
2175
+ root: {
2176
+ "--avatar-size": "var(--sl-avatar-size-xs)",
2177
+ "--avatar-font-size": null
2178
+ }
2179
+ },
2180
+ sm: {
2181
+ root: {
2182
+ "--avatar-size": "var(--sl-avatar-size-sm)",
2183
+ "--avatar-font-size": null
2184
+ }
2185
+ },
2186
+ md: {
2187
+ root: {
2188
+ "--avatar-size": "var(--sl-avatar-size-md)",
2189
+ "--avatar-font-size": null
2190
+ }
2191
+ },
2192
+ lg: {
2193
+ root: {
2194
+ "--avatar-size": "var(--sl-avatar-size-lg)",
2195
+ "--avatar-font-size": null
2196
+ }
2197
+ },
2198
+ xl: {
2199
+ root: {
2200
+ "--avatar-size": "var(--sl-avatar-size-xl)",
2201
+ "--avatar-font-size": null
2202
+ }
2203
+ },
2204
+ "2xl": {
2205
+ root: {
2206
+ "--avatar-size": "var(--sl-avatar-size-xl)",
2207
+ "--avatar-font-size": null
2208
+ }
2209
+ }
2210
+ }
2211
+ }
2212
+ },
2213
+ table: {
2214
+ base: {
2215
+ root: {
2216
+ fontFamily: "var(--sl-font-condense-font-family)",
2217
+ fontSize: "var(--sl-font-condense-font-size)",
2218
+ fontWeight: "var(--sl-font-condense-font-weight)",
2219
+ lineHeight: "var(--sl-font-condense-line-height)",
2220
+ letterSpacing: "var(--sl-font-condense-letter-spacing)",
2221
+ textStyle: null,
2222
+ color: "var(--sl-table-color)"
2223
+ },
2224
+ columnHeader: {
2225
+ fontFamily: "var(--sl-font-base-label-font-family)",
2226
+ fontSize: "var(--sl-font-base-label-font-size)",
2227
+ fontWeight: "var(--sl-font-base-label-font-weight)",
2228
+ lineHeight: "var(--sl-font-base-label-line-height)",
2229
+ letterSpacing: "var(--sl-font-base-label-letter-spacing)",
2230
+ bg: "var(--sl-table-header-background)",
2231
+ color: "var(--sl-table-header-color)",
2232
+ borderColor: "var(--sl-table-row-border-color)"
2233
+ },
2234
+ cell: {
2235
+ borderColor: "var(--sl-table-row-border-color)",
2236
+ paddingInline: "var(--sl-table-cell-padding-inline)"
2237
+ },
2238
+ row: {
2239
+ "&[data-selected]": {
2240
+ bg: "var(--sl-table-row-selected)"
2241
+ }
2242
+ }
2243
+ }
2244
+ },
2245
+ numberInput: {
2246
+ base: {
2247
+ input: {
2248
+ boxSizing: "border-box",
2249
+ color: "var(--sl-field-color)",
2250
+ background: "var(--sl-field-background)",
2251
+ border: "var(--sl-field-border-width) solid var(--sl-field-border-color)",
2252
+ borderRadius: "var(--sl-field-radius)",
2253
+ transition: "var(--sl-field-transition)",
2254
+ outline: "none",
2255
+ fontFamily: "var(--sl-font-base-font-family)",
2256
+ fontSize: "var(--sl-font-base-font-size)",
2257
+ fontWeight: "var(--sl-font-base-font-weight)",
2258
+ lineHeight: "var(--sl-font-base-line-height)",
2259
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
2260
+ focusVisibleRing: null,
2261
+ focusRingColor: null,
2262
+ _hover: {
2263
+ borderColor: "var(--sl-field-border-color-hover)"
2264
+ },
2265
+ _focus: {
2266
+ borderColor: "var(--sl-field-border-color-focus)",
2267
+ boxShadow: "var(--sl-field-shadow-focus)"
2268
+ },
2269
+ _invalid: {
2270
+ borderColor: "var(--sl-field-border-color-error)",
2271
+ _focus: {
2272
+ borderColor: "var(--sl-field-border-color-error)",
2273
+ boxShadow: "var(--sl-field-shadow-focus-error)"
2274
+ }
2275
+ },
2276
+ _disabled: {
2277
+ background: "var(--sl-field-background-disabled)",
2278
+ color: "var(--sl-field-color-disabled)",
2279
+ cursor: "not-allowed",
2280
+ layerStyle: null
2281
+ },
2282
+ _placeholder: {
2283
+ color: "var(--sl-field-placeholder-color)",
2284
+ opacity: 1
2285
+ }
2286
+ }
2287
+ }
2288
+ },
2289
+ pinInput: {
2290
+ base: {
2291
+ input: {
2292
+ boxSizing: "border-box",
2293
+ color: "var(--sl-field-color)",
2294
+ background: "var(--sl-field-background)",
2295
+ border: "var(--sl-field-border-width) solid var(--sl-field-border-color)",
2296
+ borderRadius: "var(--sl-field-radius)",
2297
+ transition: "var(--sl-field-transition)",
2298
+ outline: "none",
2299
+ fontFamily: "var(--sl-font-base-font-family)",
2300
+ fontSize: "var(--sl-font-base-font-size)",
2301
+ fontWeight: "var(--sl-font-base-font-weight)",
2302
+ lineHeight: "var(--sl-font-base-line-height)",
2303
+ letterSpacing: "var(--sl-font-base-letter-spacing)",
2304
+ focusVisibleRing: null,
2305
+ focusRingColor: null,
2306
+ _hover: {
2307
+ borderColor: "var(--sl-field-border-color-hover)"
2308
+ },
2309
+ _focus: {
2310
+ borderColor: "var(--sl-field-border-color-focus)",
2311
+ boxShadow: "var(--sl-field-shadow-focus)"
2312
+ },
2313
+ _invalid: {
2314
+ borderColor: "var(--sl-field-border-color-error)",
2315
+ _focus: {
2316
+ borderColor: "var(--sl-field-border-color-error)",
2317
+ boxShadow: "var(--sl-field-shadow-focus-error)"
2318
+ }
2319
+ },
2320
+ _disabled: {
2321
+ background: "var(--sl-field-background-disabled)",
2322
+ color: "var(--sl-field-color-disabled)",
2323
+ cursor: "not-allowed",
2324
+ layerStyle: null
2325
+ },
2326
+ _placeholder: {
2327
+ color: "var(--sl-field-placeholder-color)",
2328
+ opacity: 1
2329
+ },
2330
+ textAlign: "center",
2331
+ boxSize: "var(--sl-control-height-md)",
2332
+ paddingInline: 0
2333
+ }
2334
+ }
2335
+ }
2336
+ };
2337
+
2338
+ const merged = mergeConfigs(defaultConfig, {
2339
+ conditions: {
2340
+ light: ":root &, .light &, [data-theme=light] &",
2341
+ dark: ".dark &, [data-theme=dark] &"
2342
+ },
2343
+ globalCss: {
2344
+ html: {
2345
+ colorPalette: "accent"
2346
+ }
2347
+ },
2348
+ theme: {
2349
+ tokens: {
2350
+ colors: {
2351
+ neutral: {
2352
+ "50": {
2353
+ value: "#f8fbf9"
2354
+ },
2355
+ "100": {
2356
+ value: "#f6f9f6"
2357
+ },
2358
+ "200": {
2359
+ value: "#eff3ee"
2360
+ },
2361
+ "300": {
2362
+ value: "#e7ece4"
2363
+ },
2364
+ "400": {
2365
+ value: "#d1dbd1"
2366
+ },
2367
+ "500": {
2368
+ value: "#bcccc1"
2369
+ },
2370
+ "600": {
2371
+ value: "#a5b4aa"
2372
+ },
2373
+ "700": {
2374
+ value: "#919f96"
2375
+ },
2376
+ "800": {
2377
+ value: "#7c8980"
2378
+ },
2379
+ "900": {
2380
+ value: "#667169"
2381
+ },
2382
+ "1000": {
2383
+ value: "#4f5852"
2384
+ },
2385
+ "1100": {
2386
+ value: "#353d38"
2387
+ },
2388
+ "1200": {
2389
+ value: "#181e1a"
2390
+ }
2391
+ },
2392
+ primary: {
2393
+ "50": {
2394
+ value: "#fdfaff"
2395
+ },
2396
+ "75": {
2397
+ value: "#f9f2ff"
2398
+ },
2399
+ "100": {
2400
+ value: "#f4e7ff"
2401
+ },
2402
+ "200": {
2403
+ value: "#e6c6ff"
2404
+ },
2405
+ "300": {
2406
+ value: "#d4a2fc"
2407
+ },
2408
+ "400": {
2409
+ value: "#b978ed"
2410
+ },
2411
+ "500": {
2412
+ value: "#a04edf"
2413
+ },
2414
+ "600": {
2415
+ value: "#8838c4"
2416
+ },
2417
+ "700": {
2418
+ value: "#7131a0"
2419
+ },
2420
+ "800": {
2421
+ value: "#542775"
2422
+ },
2423
+ "900": {
2424
+ value: "#371e4a"
2425
+ },
2426
+ "1000": {
2427
+ value: "#221928"
2428
+ }
2429
+ },
2430
+ secondary: {
2431
+ "50": {
2432
+ value: "#fffaf9"
2433
+ },
2434
+ "75": {
2435
+ value: "#fff2ef"
2436
+ },
2437
+ "100": {
2438
+ value: "#ffe7e1"
2439
+ },
2440
+ "200": {
2441
+ value: "#fdc5b7"
2442
+ },
2443
+ "300": {
2444
+ value: "#f8a08b"
2445
+ },
2446
+ "400": {
2447
+ value: "#ed6f52"
2448
+ },
2449
+ "500": {
2450
+ value: "#b95b45"
2451
+ },
2452
+ "600": {
2453
+ value: "#964d3c"
2454
+ },
2455
+ "700": {
2456
+ value: "#794234"
2457
+ },
2458
+ "800": {
2459
+ value: "#57342b"
2460
+ },
2461
+ "900": {
2462
+ value: "#3d231c"
2463
+ },
2464
+ "1000": {
2465
+ value: "#24120e"
2466
+ }
2467
+ },
2468
+ tertiary: {
2469
+ "50": {
2470
+ value: "#fcfbf8"
2471
+ },
2472
+ "75": {
2473
+ value: "#f7f5ed"
2474
+ },
2475
+ "100": {
2476
+ value: "#efecdd"
2477
+ },
2478
+ "200": {
2479
+ value: "#dad3ad"
2480
+ },
2481
+ "300": {
2482
+ value: "#c3b67a"
2483
+ },
2484
+ "400": {
2485
+ value: "#9f9568"
2486
+ },
2487
+ "500": {
2488
+ value: "#7d7658"
2489
+ },
2490
+ "600": {
2491
+ value: "#686248"
2492
+ },
2493
+ "700": {
2494
+ value: "#56513b"
2495
+ },
2496
+ "800": {
2497
+ value: "#413d2c"
2498
+ },
2499
+ "900": {
2500
+ value: "#2c2a1d"
2501
+ },
2502
+ "1000": {
2503
+ value: "#19170f"
2504
+ }
2505
+ },
2506
+ quaternary: {
2507
+ "50": {
2508
+ value: "#fdfbfc"
2509
+ },
2510
+ "75": {
2511
+ value: "#f8f4f5"
2512
+ },
2513
+ "100": {
2514
+ value: "#f3eaec"
2515
+ },
2516
+ "200": {
2517
+ value: "#e1cdd2"
2518
+ },
2519
+ "300": {
2520
+ value: "#ceaeb6"
2521
+ },
2522
+ "400": {
2523
+ value: "#b58994"
2524
+ },
2525
+ "500": {
2526
+ value: "#996976"
2527
+ },
2528
+ "600": {
2529
+ value: "#855462"
2530
+ },
2531
+ "700": {
2532
+ value: "#754251"
2533
+ },
2534
+ "800": {
2535
+ value: "#602c3d"
2536
+ },
2537
+ "900": {
2538
+ value: "#441d2a"
2539
+ },
2540
+ "1000": {
2541
+ value: "#290e17"
2542
+ }
2543
+ },
2544
+ success: {
2545
+ "50": {
2546
+ value: "#f7fdf8"
2547
+ },
2548
+ "75": {
2549
+ value: "#eaf9ec"
2550
+ },
2551
+ "100": {
2552
+ value: "#d8f3dc"
2553
+ },
2554
+ "200": {
2555
+ value: "#9de1aa"
2556
+ },
2557
+ "300": {
2558
+ value: "#54cd75"
2559
+ },
2560
+ "400": {
2561
+ value: "#1cab51"
2562
+ },
2563
+ "500": {
2564
+ value: "#14883f"
2565
+ },
2566
+ "600": {
2567
+ value: "#0f7133"
2568
+ },
2569
+ "700": {
2570
+ value: "#0b5e29"
2571
+ },
2572
+ "800": {
2573
+ value: "#06471e"
2574
+ },
2575
+ "900": {
2576
+ value: "#033112"
2577
+ },
2578
+ "1000": {
2579
+ value: "#011c08"
2580
+ }
2581
+ },
2582
+ warning: {
2583
+ "50": {
2584
+ value: "#fffbf6"
2585
+ },
2586
+ "75": {
2587
+ value: "#fff3e7"
2588
+ },
2589
+ "100": {
2590
+ value: "#fee9d1"
2591
+ },
2592
+ "200": {
2593
+ value: "#fcc98f"
2594
+ },
2595
+ "300": {
2596
+ value: "#f6a535"
2597
+ },
2598
+ "400": {
2599
+ value: "#ce8407"
2600
+ },
2601
+ "500": {
2602
+ value: "#a66905"
2603
+ },
2604
+ "600": {
2605
+ value: "#895703"
2606
+ },
2607
+ "700": {
2608
+ value: "#734702"
2609
+ },
2610
+ "800": {
2611
+ value: "#583501"
2612
+ },
2613
+ "900": {
2614
+ value: "#3e2401"
2615
+ },
2616
+ "1000": {
2617
+ value: "#241300"
2618
+ }
2619
+ },
2620
+ error: {
2621
+ "50": {
2622
+ value: "#fffafa"
2623
+ },
2624
+ "75": {
2625
+ value: "#fff2f1"
2626
+ },
2627
+ "100": {
2628
+ value: "#ffe6e4"
2629
+ },
2630
+ "200": {
2631
+ value: "#ffc4be"
2632
+ },
2633
+ "300": {
2634
+ value: "#fe9c93"
2635
+ },
2636
+ "400": {
2637
+ value: "#f66660"
2638
+ },
2639
+ "500": {
2640
+ value: "#d83d3d"
2641
+ },
2642
+ "600": {
2643
+ value: "#b43131"
2644
+ },
2645
+ "700": {
2646
+ value: "#972828"
2647
+ },
2648
+ "800": {
2649
+ value: "#741c1c"
2650
+ },
2651
+ "900": {
2652
+ value: "#531111"
2653
+ },
2654
+ "1000": {
2655
+ value: "#320707"
2656
+ }
2657
+ },
2658
+ info: {
2659
+ "50": {
2660
+ value: "#f9fbff"
2661
+ },
2662
+ "75": {
2663
+ value: "#eff5ff"
2664
+ },
2665
+ "100": {
2666
+ value: "#e2edff"
2667
+ },
2668
+ "200": {
2669
+ value: "#b8d4ff"
2670
+ },
2671
+ "300": {
2672
+ value: "#8cb7fe"
2673
+ },
2674
+ "400": {
2675
+ value: "#5694f9"
2676
+ },
2677
+ "500": {
2678
+ value: "#3473dc"
2679
+ },
2680
+ "600": {
2681
+ value: "#295fb8"
2682
+ },
2683
+ "700": {
2684
+ value: "#214f9a"
2685
+ },
2686
+ "800": {
2687
+ value: "#173b76"
2688
+ },
2689
+ "900": {
2690
+ value: "#0e2854"
2691
+ },
2692
+ "1000": {
2693
+ value: "#051634"
2694
+ }
2695
+ },
2696
+ data: {
2697
+ "1": {
2698
+ value: "#a04fdf"
2699
+ },
2700
+ "2": {
2701
+ value: "#ef7053"
2702
+ },
2703
+ "3": {
2704
+ value: "#c4b679"
2705
+ },
2706
+ "4": {
2707
+ value: "#612c3d"
2708
+ },
2709
+ "5": {
2710
+ value: "#86e6ca"
2711
+ },
2712
+ "6": {
2713
+ value: "#154975"
2714
+ },
2715
+ "7": {
2716
+ value: "#bbc3fe"
2717
+ },
2718
+ "8": {
2719
+ value: "#0b5313"
2720
+ },
2721
+ "9": {
2722
+ value: "#74ce4b"
2723
+ },
2724
+ "10": {
2725
+ value: "#dac925"
2726
+ },
2727
+ "11": {
2728
+ value: "#b4a1e2"
2729
+ },
2730
+ "12": {
2731
+ value: "#ffc3b5"
2732
+ },
2733
+ "13": {
2734
+ value: "#f1e5af"
2735
+ },
2736
+ "14": {
2737
+ value: "#a6838e"
2738
+ },
2739
+ "15": {
2740
+ value: "#bfecdf"
2741
+ },
2742
+ "16": {
2743
+ value: "#7fa8cb"
2744
+ },
2745
+ "17": {
2746
+ value: "#e5e8ff"
2747
+ },
2748
+ "18": {
2749
+ value: "#b1d0b5"
2750
+ },
2751
+ "19": {
2752
+ value: "#d0fabd"
2753
+ },
2754
+ "20": {
2755
+ value: "#fffce1"
2756
+ }
2757
+ }
2758
+ },
2759
+ fonts: {
2760
+ heading: {
2761
+ value: "var(--sl-font-family-display)"
2762
+ },
2763
+ body: {
2764
+ value: "var(--sl-font-family-body)"
2765
+ },
2766
+ mono: {
2767
+ value: "var(--sl-font-family-mono)"
2768
+ }
2769
+ },
2770
+ radii: {
2771
+ l1: {
2772
+ value: "var(--sl-radius-item)"
2773
+ },
2774
+ l2: {
2775
+ value: "var(--sl-radius-chrome)"
2776
+ },
2777
+ l3: {
2778
+ value: "var(--sl-radius-surface)"
2779
+ }
2780
+ }
2781
+ },
2782
+ semanticTokens: {
2783
+ colors: {
2784
+ neutral: {
2785
+ solid: {
2786
+ value: "var(--sl-scope-neutral-solid)"
2787
+ },
2788
+ "solid-hover": {
2789
+ value: "var(--sl-scope-neutral-solid-hover)"
2790
+ },
2791
+ "solid-active": {
2792
+ value: "var(--sl-scope-neutral-solid-active)"
2793
+ },
2794
+ "on-solid": {
2795
+ value: "var(--sl-scope-neutral-on-solid)"
2796
+ },
2797
+ soft: {
2798
+ value: "var(--sl-scope-neutral-soft)"
2799
+ },
2800
+ "soft-hover": {
2801
+ value: "var(--sl-scope-neutral-soft-hover)"
2802
+ },
2803
+ "soft-active": {
2804
+ value: "var(--sl-scope-neutral-soft-active)"
2805
+ },
2806
+ "soft-strong": {
2807
+ value: "var(--sl-scope-neutral-soft-strong)"
2808
+ },
2809
+ "on-soft": {
2810
+ value: "var(--sl-scope-neutral-on-soft)"
2811
+ },
2812
+ border: {
2813
+ value: "var(--sl-scope-neutral-border)"
2814
+ },
2815
+ "border-subtle": {
2816
+ value: "var(--sl-scope-neutral-border-subtle)"
2817
+ },
2818
+ fg: {
2819
+ value: "var(--sl-scope-neutral-fg)"
2820
+ },
2821
+ focus: {
2822
+ value: "var(--sl-scope-neutral-focus)"
2823
+ },
2824
+ contrast: {
2825
+ value: "var(--sl-scope-neutral-on-solid)"
2826
+ },
2827
+ subtle: {
2828
+ value: "var(--sl-scope-neutral-soft)"
2829
+ },
2830
+ muted: {
2831
+ value: "var(--sl-scope-neutral-soft-hover)"
2832
+ },
2833
+ emphasized: {
2834
+ value: "var(--sl-scope-neutral-soft-active)"
2835
+ },
2836
+ focusRing: {
2837
+ value: "var(--sl-scope-neutral-focus)"
2838
+ }
2839
+ },
2840
+ primary: {
2841
+ solid: {
2842
+ value: "var(--sl-scope-primary-solid)"
2843
+ },
2844
+ "solid-hover": {
2845
+ value: "var(--sl-scope-primary-solid-hover)"
2846
+ },
2847
+ "solid-active": {
2848
+ value: "var(--sl-scope-primary-solid-active)"
2849
+ },
2850
+ "on-solid": {
2851
+ value: "var(--sl-scope-primary-on-solid)"
2852
+ },
2853
+ soft: {
2854
+ value: "var(--sl-scope-primary-soft)"
2855
+ },
2856
+ "soft-hover": {
2857
+ value: "var(--sl-scope-primary-soft-hover)"
2858
+ },
2859
+ "soft-active": {
2860
+ value: "var(--sl-scope-primary-soft-active)"
2861
+ },
2862
+ "soft-strong": {
2863
+ value: "var(--sl-scope-primary-soft-strong)"
2864
+ },
2865
+ "on-soft": {
2866
+ value: "var(--sl-scope-primary-on-soft)"
2867
+ },
2868
+ border: {
2869
+ value: "var(--sl-scope-primary-border)"
2870
+ },
2871
+ "border-subtle": {
2872
+ value: "var(--sl-scope-primary-border-subtle)"
2873
+ },
2874
+ fg: {
2875
+ value: "var(--sl-scope-primary-fg)"
2876
+ },
2877
+ focus: {
2878
+ value: "var(--sl-scope-primary-focus)"
2879
+ },
2880
+ contrast: {
2881
+ value: "var(--sl-scope-primary-on-solid)"
2882
+ },
2883
+ subtle: {
2884
+ value: "var(--sl-scope-primary-soft)"
2885
+ },
2886
+ muted: {
2887
+ value: "var(--sl-scope-primary-soft-hover)"
2888
+ },
2889
+ emphasized: {
2890
+ value: "var(--sl-scope-primary-soft-active)"
2891
+ },
2892
+ focusRing: {
2893
+ value: "var(--sl-scope-primary-focus)"
2894
+ }
2895
+ },
2896
+ secondary: {
2897
+ solid: {
2898
+ value: "var(--sl-scope-secondary-solid)"
2899
+ },
2900
+ "solid-hover": {
2901
+ value: "var(--sl-scope-secondary-solid-hover)"
2902
+ },
2903
+ "solid-active": {
2904
+ value: "var(--sl-scope-secondary-solid-active)"
2905
+ },
2906
+ "on-solid": {
2907
+ value: "var(--sl-scope-secondary-on-solid)"
2908
+ },
2909
+ soft: {
2910
+ value: "var(--sl-scope-secondary-soft)"
2911
+ },
2912
+ "soft-hover": {
2913
+ value: "var(--sl-scope-secondary-soft-hover)"
2914
+ },
2915
+ "soft-active": {
2916
+ value: "var(--sl-scope-secondary-soft-active)"
2917
+ },
2918
+ "soft-strong": {
2919
+ value: "var(--sl-scope-secondary-soft-strong)"
2920
+ },
2921
+ "on-soft": {
2922
+ value: "var(--sl-scope-secondary-on-soft)"
2923
+ },
2924
+ border: {
2925
+ value: "var(--sl-scope-secondary-border)"
2926
+ },
2927
+ "border-subtle": {
2928
+ value: "var(--sl-scope-secondary-border-subtle)"
2929
+ },
2930
+ fg: {
2931
+ value: "var(--sl-scope-secondary-fg)"
2932
+ },
2933
+ focus: {
2934
+ value: "var(--sl-scope-secondary-focus)"
2935
+ },
2936
+ contrast: {
2937
+ value: "var(--sl-scope-secondary-on-solid)"
2938
+ },
2939
+ subtle: {
2940
+ value: "var(--sl-scope-secondary-soft)"
2941
+ },
2942
+ muted: {
2943
+ value: "var(--sl-scope-secondary-soft-hover)"
2944
+ },
2945
+ emphasized: {
2946
+ value: "var(--sl-scope-secondary-soft-active)"
2947
+ },
2948
+ focusRing: {
2949
+ value: "var(--sl-scope-secondary-focus)"
2950
+ }
2951
+ },
2952
+ tertiary: {
2953
+ solid: {
2954
+ value: "var(--sl-scope-tertiary-solid)"
2955
+ },
2956
+ "solid-hover": {
2957
+ value: "var(--sl-scope-tertiary-solid-hover)"
2958
+ },
2959
+ "solid-active": {
2960
+ value: "var(--sl-scope-tertiary-solid-active)"
2961
+ },
2962
+ "on-solid": {
2963
+ value: "var(--sl-scope-tertiary-on-solid)"
2964
+ },
2965
+ soft: {
2966
+ value: "var(--sl-scope-tertiary-soft)"
2967
+ },
2968
+ "soft-hover": {
2969
+ value: "var(--sl-scope-tertiary-soft-hover)"
2970
+ },
2971
+ "soft-active": {
2972
+ value: "var(--sl-scope-tertiary-soft-active)"
2973
+ },
2974
+ "soft-strong": {
2975
+ value: "var(--sl-scope-tertiary-soft-strong)"
2976
+ },
2977
+ "on-soft": {
2978
+ value: "var(--sl-scope-tertiary-on-soft)"
2979
+ },
2980
+ border: {
2981
+ value: "var(--sl-scope-tertiary-border)"
2982
+ },
2983
+ "border-subtle": {
2984
+ value: "var(--sl-scope-tertiary-border-subtle)"
2985
+ },
2986
+ fg: {
2987
+ value: "var(--sl-scope-tertiary-fg)"
2988
+ },
2989
+ focus: {
2990
+ value: "var(--sl-scope-tertiary-focus)"
2991
+ },
2992
+ contrast: {
2993
+ value: "var(--sl-scope-tertiary-on-solid)"
2994
+ },
2995
+ subtle: {
2996
+ value: "var(--sl-scope-tertiary-soft)"
2997
+ },
2998
+ muted: {
2999
+ value: "var(--sl-scope-tertiary-soft-hover)"
3000
+ },
3001
+ emphasized: {
3002
+ value: "var(--sl-scope-tertiary-soft-active)"
3003
+ },
3004
+ focusRing: {
3005
+ value: "var(--sl-scope-tertiary-focus)"
3006
+ }
3007
+ },
3008
+ quaternary: {
3009
+ solid: {
3010
+ value: "var(--sl-scope-quaternary-solid)"
3011
+ },
3012
+ "solid-hover": {
3013
+ value: "var(--sl-scope-quaternary-solid-hover)"
3014
+ },
3015
+ "solid-active": {
3016
+ value: "var(--sl-scope-quaternary-solid-active)"
3017
+ },
3018
+ "on-solid": {
3019
+ value: "var(--sl-scope-quaternary-on-solid)"
3020
+ },
3021
+ soft: {
3022
+ value: "var(--sl-scope-quaternary-soft)"
3023
+ },
3024
+ "soft-hover": {
3025
+ value: "var(--sl-scope-quaternary-soft-hover)"
3026
+ },
3027
+ "soft-active": {
3028
+ value: "var(--sl-scope-quaternary-soft-active)"
3029
+ },
3030
+ "soft-strong": {
3031
+ value: "var(--sl-scope-quaternary-soft-strong)"
3032
+ },
3033
+ "on-soft": {
3034
+ value: "var(--sl-scope-quaternary-on-soft)"
3035
+ },
3036
+ border: {
3037
+ value: "var(--sl-scope-quaternary-border)"
3038
+ },
3039
+ "border-subtle": {
3040
+ value: "var(--sl-scope-quaternary-border-subtle)"
3041
+ },
3042
+ fg: {
3043
+ value: "var(--sl-scope-quaternary-fg)"
3044
+ },
3045
+ focus: {
3046
+ value: "var(--sl-scope-quaternary-focus)"
3047
+ },
3048
+ contrast: {
3049
+ value: "var(--sl-scope-quaternary-on-solid)"
3050
+ },
3051
+ subtle: {
3052
+ value: "var(--sl-scope-quaternary-soft)"
3053
+ },
3054
+ muted: {
3055
+ value: "var(--sl-scope-quaternary-soft-hover)"
3056
+ },
3057
+ emphasized: {
3058
+ value: "var(--sl-scope-quaternary-soft-active)"
3059
+ },
3060
+ focusRing: {
3061
+ value: "var(--sl-scope-quaternary-focus)"
3062
+ }
3063
+ },
3064
+ success: {
3065
+ solid: {
3066
+ value: "var(--sl-scope-success-solid)"
3067
+ },
3068
+ "solid-hover": {
3069
+ value: "var(--sl-scope-success-solid-hover)"
3070
+ },
3071
+ "solid-active": {
3072
+ value: "var(--sl-scope-success-solid-active)"
3073
+ },
3074
+ "on-solid": {
3075
+ value: "var(--sl-scope-success-on-solid)"
3076
+ },
3077
+ soft: {
3078
+ value: "var(--sl-scope-success-soft)"
3079
+ },
3080
+ "soft-hover": {
3081
+ value: "var(--sl-scope-success-soft-hover)"
3082
+ },
3083
+ "soft-active": {
3084
+ value: "var(--sl-scope-success-soft-active)"
3085
+ },
3086
+ "soft-strong": {
3087
+ value: "var(--sl-scope-success-soft-strong)"
3088
+ },
3089
+ "on-soft": {
3090
+ value: "var(--sl-scope-success-on-soft)"
3091
+ },
3092
+ border: {
3093
+ value: "var(--sl-scope-success-border)"
3094
+ },
3095
+ "border-subtle": {
3096
+ value: "var(--sl-scope-success-border-subtle)"
3097
+ },
3098
+ fg: {
3099
+ value: "var(--sl-scope-success-fg)"
3100
+ },
3101
+ focus: {
3102
+ value: "var(--sl-scope-success-focus)"
3103
+ },
3104
+ contrast: {
3105
+ value: "var(--sl-scope-success-on-solid)"
3106
+ },
3107
+ subtle: {
3108
+ value: "var(--sl-scope-success-soft)"
3109
+ },
3110
+ muted: {
3111
+ value: "var(--sl-scope-success-soft-hover)"
3112
+ },
3113
+ emphasized: {
3114
+ value: "var(--sl-scope-success-soft-active)"
3115
+ },
3116
+ focusRing: {
3117
+ value: "var(--sl-scope-success-focus)"
3118
+ }
3119
+ },
3120
+ warning: {
3121
+ solid: {
3122
+ value: "var(--sl-scope-warning-solid)"
3123
+ },
3124
+ "solid-hover": {
3125
+ value: "var(--sl-scope-warning-solid-hover)"
3126
+ },
3127
+ "solid-active": {
3128
+ value: "var(--sl-scope-warning-solid-active)"
3129
+ },
3130
+ "on-solid": {
3131
+ value: "var(--sl-scope-warning-on-solid)"
3132
+ },
3133
+ soft: {
3134
+ value: "var(--sl-scope-warning-soft)"
3135
+ },
3136
+ "soft-hover": {
3137
+ value: "var(--sl-scope-warning-soft-hover)"
3138
+ },
3139
+ "soft-active": {
3140
+ value: "var(--sl-scope-warning-soft-active)"
3141
+ },
3142
+ "soft-strong": {
3143
+ value: "var(--sl-scope-warning-soft-strong)"
3144
+ },
3145
+ "on-soft": {
3146
+ value: "var(--sl-scope-warning-on-soft)"
3147
+ },
3148
+ border: {
3149
+ value: "var(--sl-scope-warning-border)"
3150
+ },
3151
+ "border-subtle": {
3152
+ value: "var(--sl-scope-warning-border-subtle)"
3153
+ },
3154
+ fg: {
3155
+ value: "var(--sl-scope-warning-fg)"
3156
+ },
3157
+ focus: {
3158
+ value: "var(--sl-scope-warning-focus)"
3159
+ },
3160
+ contrast: {
3161
+ value: "var(--sl-scope-warning-on-solid)"
3162
+ },
3163
+ subtle: {
3164
+ value: "var(--sl-scope-warning-soft)"
3165
+ },
3166
+ muted: {
3167
+ value: "var(--sl-scope-warning-soft-hover)"
3168
+ },
3169
+ emphasized: {
3170
+ value: "var(--sl-scope-warning-soft-active)"
3171
+ },
3172
+ focusRing: {
3173
+ value: "var(--sl-scope-warning-focus)"
3174
+ }
3175
+ },
3176
+ error: {
3177
+ solid: {
3178
+ value: "var(--sl-scope-error-solid)"
3179
+ },
3180
+ "solid-hover": {
3181
+ value: "var(--sl-scope-error-solid-hover)"
3182
+ },
3183
+ "solid-active": {
3184
+ value: "var(--sl-scope-error-solid-active)"
3185
+ },
3186
+ "on-solid": {
3187
+ value: "var(--sl-scope-error-on-solid)"
3188
+ },
3189
+ soft: {
3190
+ value: "var(--sl-scope-error-soft)"
3191
+ },
3192
+ "soft-hover": {
3193
+ value: "var(--sl-scope-error-soft-hover)"
3194
+ },
3195
+ "soft-active": {
3196
+ value: "var(--sl-scope-error-soft-active)"
3197
+ },
3198
+ "soft-strong": {
3199
+ value: "var(--sl-scope-error-soft-strong)"
3200
+ },
3201
+ "on-soft": {
3202
+ value: "var(--sl-scope-error-on-soft)"
3203
+ },
3204
+ border: {
3205
+ value: "var(--sl-scope-error-border)"
3206
+ },
3207
+ "border-subtle": {
3208
+ value: "var(--sl-scope-error-border-subtle)"
3209
+ },
3210
+ fg: {
3211
+ value: "var(--sl-scope-error-fg)"
3212
+ },
3213
+ focus: {
3214
+ value: "var(--sl-scope-error-focus)"
3215
+ },
3216
+ contrast: {
3217
+ value: "var(--sl-scope-error-on-solid)"
3218
+ },
3219
+ subtle: {
3220
+ value: "var(--sl-scope-error-soft)"
3221
+ },
3222
+ muted: {
3223
+ value: "var(--sl-scope-error-soft-hover)"
3224
+ },
3225
+ emphasized: {
3226
+ value: "var(--sl-scope-error-soft-active)"
3227
+ },
3228
+ focusRing: {
3229
+ value: "var(--sl-scope-error-focus)"
3230
+ }
3231
+ },
3232
+ info: {
3233
+ solid: {
3234
+ value: "var(--sl-scope-info-solid)"
3235
+ },
3236
+ "solid-hover": {
3237
+ value: "var(--sl-scope-info-solid-hover)"
3238
+ },
3239
+ "solid-active": {
3240
+ value: "var(--sl-scope-info-solid-active)"
3241
+ },
3242
+ "on-solid": {
3243
+ value: "var(--sl-scope-info-on-solid)"
3244
+ },
3245
+ soft: {
3246
+ value: "var(--sl-scope-info-soft)"
3247
+ },
3248
+ "soft-hover": {
3249
+ value: "var(--sl-scope-info-soft-hover)"
3250
+ },
3251
+ "soft-active": {
3252
+ value: "var(--sl-scope-info-soft-active)"
3253
+ },
3254
+ "soft-strong": {
3255
+ value: "var(--sl-scope-info-soft-strong)"
3256
+ },
3257
+ "on-soft": {
3258
+ value: "var(--sl-scope-info-on-soft)"
3259
+ },
3260
+ border: {
3261
+ value: "var(--sl-scope-info-border)"
3262
+ },
3263
+ "border-subtle": {
3264
+ value: "var(--sl-scope-info-border-subtle)"
3265
+ },
3266
+ fg: {
3267
+ value: "var(--sl-scope-info-fg)"
3268
+ },
3269
+ focus: {
3270
+ value: "var(--sl-scope-info-focus)"
3271
+ },
3272
+ contrast: {
3273
+ value: "var(--sl-scope-info-on-solid)"
3274
+ },
3275
+ subtle: {
3276
+ value: "var(--sl-scope-info-soft)"
3277
+ },
3278
+ muted: {
3279
+ value: "var(--sl-scope-info-soft-hover)"
3280
+ },
3281
+ emphasized: {
3282
+ value: "var(--sl-scope-info-soft-active)"
3283
+ },
3284
+ focusRing: {
3285
+ value: "var(--sl-scope-info-focus)"
3286
+ }
3287
+ },
3288
+ accent: {
3289
+ solid: {
3290
+ value: "var(--sl-scope-accent-solid)"
3291
+ },
3292
+ "solid-hover": {
3293
+ value: "var(--sl-scope-accent-solid-hover)"
3294
+ },
3295
+ "solid-active": {
3296
+ value: "var(--sl-scope-accent-solid-active)"
3297
+ },
3298
+ "on-solid": {
3299
+ value: "var(--sl-scope-accent-on-solid)"
3300
+ },
3301
+ soft: {
3302
+ value: "var(--sl-scope-accent-soft)"
3303
+ },
3304
+ "soft-hover": {
3305
+ value: "var(--sl-scope-accent-soft-hover)"
3306
+ },
3307
+ "soft-active": {
3308
+ value: "var(--sl-scope-accent-soft-active)"
3309
+ },
3310
+ "soft-strong": {
3311
+ value: "var(--sl-scope-accent-soft-strong)"
3312
+ },
3313
+ "on-soft": {
3314
+ value: "var(--sl-scope-accent-on-soft)"
3315
+ },
3316
+ border: {
3317
+ value: "var(--sl-scope-accent-border)"
3318
+ },
3319
+ "border-subtle": {
3320
+ value: "var(--sl-scope-accent-border-subtle)"
3321
+ },
3322
+ fg: {
3323
+ value: "var(--sl-scope-accent-fg)"
3324
+ },
3325
+ focus: {
3326
+ value: "var(--sl-scope-accent-focus)"
3327
+ },
3328
+ contrast: {
3329
+ value: "var(--sl-scope-accent-on-solid)"
3330
+ },
3331
+ subtle: {
3332
+ value: "var(--sl-scope-accent-soft)"
3333
+ },
3334
+ muted: {
3335
+ value: "var(--sl-scope-accent-soft-hover)"
3336
+ },
3337
+ emphasized: {
3338
+ value: "var(--sl-scope-accent-soft-active)"
3339
+ },
3340
+ focusRing: {
3341
+ value: "var(--sl-scope-accent-focus)"
3342
+ }
3343
+ },
3344
+ chrome: {
3345
+ solid: {
3346
+ value: "var(--sl-scope-chrome-solid)"
3347
+ },
3348
+ "solid-hover": {
3349
+ value: "var(--sl-scope-chrome-solid-hover)"
3350
+ },
3351
+ "solid-active": {
3352
+ value: "var(--sl-scope-chrome-solid-active)"
3353
+ },
3354
+ "on-solid": {
3355
+ value: "var(--sl-scope-chrome-on-solid)"
3356
+ },
3357
+ soft: {
3358
+ value: "var(--sl-scope-chrome-soft)"
3359
+ },
3360
+ "soft-hover": {
3361
+ value: "var(--sl-scope-chrome-soft-hover)"
3362
+ },
3363
+ "soft-active": {
3364
+ value: "var(--sl-scope-chrome-soft-active)"
3365
+ },
3366
+ "soft-strong": {
3367
+ value: "var(--sl-scope-chrome-soft-strong)"
3368
+ },
3369
+ "on-soft": {
3370
+ value: "var(--sl-scope-chrome-on-soft)"
3371
+ },
3372
+ border: {
3373
+ value: "var(--sl-scope-chrome-border)"
3374
+ },
3375
+ "border-subtle": {
3376
+ value: "var(--sl-scope-chrome-border-subtle)"
3377
+ },
3378
+ fg: {
3379
+ value: "var(--sl-scope-chrome-fg)"
3380
+ },
3381
+ focus: {
3382
+ value: "var(--sl-scope-chrome-focus)"
3383
+ },
3384
+ contrast: {
3385
+ value: "var(--sl-scope-chrome-on-solid)"
3386
+ },
3387
+ subtle: {
3388
+ value: "var(--sl-scope-chrome-soft)"
3389
+ },
3390
+ muted: {
3391
+ value: "var(--sl-scope-chrome-soft-hover)"
3392
+ },
3393
+ emphasized: {
3394
+ value: "var(--sl-scope-chrome-soft-active)"
3395
+ },
3396
+ focusRing: {
3397
+ value: "var(--sl-scope-chrome-focus)"
3398
+ }
3399
+ },
3400
+ bg: {
3401
+ DEFAULT: {
3402
+ value: "var(--sl-surface-canvas)"
3403
+ },
3404
+ subtle: {
3405
+ value: "var(--sl-surface-raised)"
3406
+ },
3407
+ muted: {
3408
+ value: "var(--sl-surface-overlay)"
3409
+ },
3410
+ emphasized: {
3411
+ value: "var(--sl-fill-default)"
3412
+ },
3413
+ panel: {
3414
+ value: "var(--sl-popup-background)"
3415
+ },
3416
+ inverted: {
3417
+ value: "var(--sl-surface-inverse)"
3418
+ },
3419
+ info: {
3420
+ value: "var(--sl-scope-info-soft)"
3421
+ },
3422
+ warning: {
3423
+ value: "var(--sl-scope-warning-soft)"
3424
+ },
3425
+ success: {
3426
+ value: "var(--sl-scope-success-soft)"
3427
+ },
3428
+ error: {
3429
+ value: "var(--sl-scope-error-soft)"
3430
+ }
3431
+ },
3432
+ fg: {
3433
+ DEFAULT: {
3434
+ value: "var(--sl-text-primary)"
3435
+ },
3436
+ muted: {
3437
+ value: "var(--sl-text-secondary)"
3438
+ },
3439
+ subtle: {
3440
+ value: "var(--sl-text-tertiary)"
3441
+ },
3442
+ inverted: {
3443
+ value: "var(--sl-text-on-inverse-surface)"
3444
+ },
3445
+ info: {
3446
+ value: "var(--sl-scope-info-fg)"
3447
+ },
3448
+ warning: {
3449
+ value: "var(--sl-scope-warning-fg)"
3450
+ },
3451
+ success: {
3452
+ value: "var(--sl-scope-success-fg)"
3453
+ },
3454
+ error: {
3455
+ value: "var(--sl-scope-error-fg)"
3456
+ }
3457
+ },
3458
+ border: {
3459
+ DEFAULT: {
3460
+ value: "var(--sl-border-default)"
3461
+ },
3462
+ muted: {
3463
+ value: "var(--sl-border-subtle)"
3464
+ },
3465
+ subtle: {
3466
+ value: "var(--sl-border-subtle)"
3467
+ },
3468
+ emphasized: {
3469
+ value: "var(--sl-border-strong)"
3470
+ },
3471
+ inverted: {
3472
+ value: "var(--sl-surface-canvas)"
3473
+ },
3474
+ info: {
3475
+ value: "var(--sl-scope-info-border)"
3476
+ },
3477
+ warning: {
3478
+ value: "var(--sl-scope-warning-border)"
3479
+ },
3480
+ success: {
3481
+ value: "var(--sl-scope-success-border)"
3482
+ },
3483
+ error: {
3484
+ value: "var(--sl-scope-error-border)"
3485
+ }
3486
+ }
3487
+ }
3488
+ },
3489
+ textStyles: {
3490
+ minimize: {
3491
+ value: {
3492
+ fontFamily: "var(--sl-font-minimize-font-family)",
3493
+ fontSize: "var(--sl-font-minimize-font-size)",
3494
+ fontWeight: "var(--sl-font-minimize-font-weight)",
3495
+ lineHeight: "var(--sl-font-minimize-line-height)",
3496
+ letterSpacing: "var(--sl-font-minimize-letter-spacing)"
3497
+ }
3498
+ },
3499
+ condense: {
3500
+ value: {
3501
+ fontFamily: "var(--sl-font-condense-font-family)",
3502
+ fontSize: "var(--sl-font-condense-font-size)",
3503
+ fontWeight: "var(--sl-font-condense-font-weight)",
3504
+ lineHeight: "var(--sl-font-condense-line-height)",
3505
+ letterSpacing: "var(--sl-font-condense-letter-spacing)"
3506
+ }
3507
+ },
3508
+ base: {
3509
+ value: {
3510
+ fontFamily: "var(--sl-font-base-font-family)",
3511
+ fontSize: "var(--sl-font-base-font-size)",
3512
+ fontWeight: "var(--sl-font-base-font-weight)",
3513
+ lineHeight: "var(--sl-font-base-line-height)",
3514
+ letterSpacing: "var(--sl-font-base-letter-spacing)"
3515
+ }
3516
+ },
3517
+ magnify: {
3518
+ value: {
3519
+ fontFamily: "var(--sl-font-magnify-font-family)",
3520
+ fontSize: "var(--sl-font-magnify-font-size)",
3521
+ fontWeight: "var(--sl-font-magnify-font-weight)",
3522
+ lineHeight: "var(--sl-font-magnify-line-height)",
3523
+ letterSpacing: "var(--sl-font-magnify-letter-spacing)"
3524
+ }
3525
+ },
3526
+ "base-label": {
3527
+ value: {
3528
+ fontFamily: "var(--sl-font-base-label-font-family)",
3529
+ fontSize: "var(--sl-font-base-label-font-size)",
3530
+ fontWeight: "var(--sl-font-base-label-font-weight)",
3531
+ lineHeight: "var(--sl-font-base-label-line-height)",
3532
+ letterSpacing: "var(--sl-font-base-label-letter-spacing)"
3533
+ }
3534
+ },
3535
+ "base-selected": {
3536
+ value: {
3537
+ fontFamily: "var(--sl-font-base-selected-font-family)",
3538
+ fontSize: "var(--sl-font-base-selected-font-size)",
3539
+ fontWeight: "var(--sl-font-base-selected-font-weight)",
3540
+ lineHeight: "var(--sl-font-base-selected-line-height)",
3541
+ letterSpacing: "var(--sl-font-base-selected-letter-spacing)"
3542
+ }
3543
+ },
3544
+ "condense-subtitle-label": {
3545
+ value: {
3546
+ fontFamily: "var(--sl-font-condense-subtitle-label-font-family)",
3547
+ fontSize: "var(--sl-font-condense-subtitle-label-font-size)",
3548
+ fontWeight: "var(--sl-font-condense-subtitle-label-font-weight)",
3549
+ lineHeight: "var(--sl-font-condense-subtitle-label-line-height)",
3550
+ letterSpacing: "var(--sl-font-condense-subtitle-label-letter-spacing)",
3551
+ textTransform: "var(--sl-font-condense-subtitle-label-text-transform)"
3552
+ }
3553
+ },
3554
+ "condense-trigger": {
3555
+ value: {
3556
+ fontFamily: "var(--sl-font-condense-trigger-font-family)",
3557
+ fontSize: "var(--sl-font-condense-trigger-font-size)",
3558
+ fontWeight: "var(--sl-font-condense-trigger-font-weight)",
3559
+ lineHeight: "var(--sl-font-condense-trigger-line-height)",
3560
+ letterSpacing: "var(--sl-font-condense-trigger-letter-spacing)"
3561
+ }
3562
+ },
3563
+ "base-trigger": {
3564
+ value: {
3565
+ fontFamily: "var(--sl-font-base-trigger-font-family)",
3566
+ fontSize: "var(--sl-font-base-trigger-font-size)",
3567
+ fontWeight: "var(--sl-font-base-trigger-font-weight)",
3568
+ lineHeight: "var(--sl-font-base-trigger-line-height)",
3569
+ letterSpacing: "var(--sl-font-base-trigger-letter-spacing)"
3570
+ }
3571
+ },
3572
+ "magnify-trigger": {
3573
+ value: {
3574
+ fontFamily: "var(--sl-font-magnify-trigger-font-family)",
3575
+ fontSize: "var(--sl-font-magnify-trigger-font-size)",
3576
+ fontWeight: "var(--sl-font-magnify-trigger-font-weight)",
3577
+ lineHeight: "var(--sl-font-magnify-trigger-line-height)",
3578
+ letterSpacing: "var(--sl-font-magnify-trigger-letter-spacing)"
3579
+ }
3580
+ },
3581
+ "maximize-md": {
3582
+ value: {
3583
+ fontFamily: "var(--sl-font-maximize-md-font-family)",
3584
+ fontSize: "var(--sl-font-maximize-md-font-size)",
3585
+ fontWeight: "var(--sl-font-maximize-md-font-weight)",
3586
+ lineHeight: "var(--sl-font-maximize-md-line-height)",
3587
+ letterSpacing: "var(--sl-font-maximize-md-letter-spacing)"
3588
+ }
3589
+ },
3590
+ "maximize-lg": {
3591
+ value: {
3592
+ fontFamily: "var(--sl-font-maximize-lg-font-family)",
3593
+ fontSize: "var(--sl-font-maximize-lg-font-size)",
3594
+ fontWeight: "var(--sl-font-maximize-lg-font-weight)",
3595
+ lineHeight: "var(--sl-font-maximize-lg-line-height)",
3596
+ letterSpacing: "var(--sl-font-maximize-lg-letter-spacing)"
3597
+ }
3598
+ },
3599
+ "maximize-xl": {
3600
+ value: {
3601
+ fontFamily: "var(--sl-font-maximize-xl-font-family)",
3602
+ fontSize: "var(--sl-font-maximize-xl-font-size)",
3603
+ fontWeight: "var(--sl-font-maximize-xl-font-weight)",
3604
+ lineHeight: "var(--sl-font-maximize-xl-line-height)",
3605
+ letterSpacing: "var(--sl-font-maximize-xl-letter-spacing)"
3606
+ }
3607
+ },
3608
+ "maximize-2xl": {
3609
+ value: {
3610
+ fontFamily: "var(--sl-font-maximize-2xl-font-family)",
3611
+ fontSize: "var(--sl-font-maximize-2xl-font-size)",
3612
+ fontWeight: "var(--sl-font-maximize-2xl-font-weight)",
3613
+ lineHeight: "var(--sl-font-maximize-2xl-line-height)",
3614
+ letterSpacing: "var(--sl-font-maximize-2xl-letter-spacing)"
3615
+ }
3616
+ },
3617
+ "maximize-3xl": {
3618
+ value: {
3619
+ fontFamily: "var(--sl-font-maximize-3xl-font-family)",
3620
+ fontSize: "var(--sl-font-maximize-3xl-font-size)",
3621
+ fontWeight: "var(--sl-font-maximize-3xl-font-weight)",
3622
+ lineHeight: "var(--sl-font-maximize-3xl-line-height)",
3623
+ letterSpacing: "var(--sl-font-maximize-3xl-letter-spacing)"
3624
+ }
3625
+ },
3626
+ "maximize-4xl": {
3627
+ value: {
3628
+ fontFamily: "var(--sl-font-maximize-4xl-font-family)",
3629
+ fontSize: "var(--sl-font-maximize-4xl-font-size)",
3630
+ fontWeight: "var(--sl-font-maximize-4xl-font-weight)",
3631
+ lineHeight: "var(--sl-font-maximize-4xl-line-height)",
3632
+ letterSpacing: "var(--sl-font-maximize-4xl-letter-spacing)"
3633
+ }
3634
+ }
3635
+ }
3636
+ }
3637
+ });
3638
+
3639
+ export const config = {
3640
+ ...merged,
3641
+ theme: {
3642
+ ...merged.theme,
3643
+ recipes: restyleAll(merged.theme.recipes, recipes),
3644
+ slotRecipes: restyleAll(merged.theme.slotRecipes, slotRecipes),
3645
+ },
3646
+ };
3647
+
3648
+ export const system = createSystem(config);
3649
+
3650
+ export default system;