@sanity/ui 3.0.0-static.10 → 3.0.0-static.3

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.
Files changed (106) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +105 -143
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-cjs/buildCommand.js +1 -1
  4. package/dist/_chunks-cjs/buildCommand.js.map +1 -1
  5. package/dist/_chunks-cjs/v3_v2.js +251 -0
  6. package/dist/_chunks-cjs/v3_v2.js.map +1 -0
  7. package/dist/_chunks-es/_visual-editing.mjs +106 -144
  8. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  9. package/dist/_chunks-es/v3_v2.mjs +252 -0
  10. package/dist/_chunks-es/v3_v2.mjs.map +1 -0
  11. package/dist/_visual-editing.d.mts +11 -14
  12. package/dist/_visual-editing.d.ts +11 -14
  13. package/dist/cli.js +1 -1
  14. package/dist/css.d.mts +1006 -282
  15. package/dist/css.d.ts +1006 -282
  16. package/dist/css.js +743 -852
  17. package/dist/css.js.map +1 -1
  18. package/dist/css.mjs +743 -852
  19. package/dist/css.mjs.map +1 -1
  20. package/dist/index.d.mts +11 -14
  21. package/dist/index.d.ts +11 -14
  22. package/dist/index.js +31 -17
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +33 -19
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/sanity-palette.css +9 -1
  27. package/dist/sanity-theme.css +1 -1
  28. package/dist/system.css +1023 -1448
  29. package/dist/theme.d.mts +119 -85
  30. package/dist/theme.d.ts +119 -85
  31. package/dist/theme.js +219 -432
  32. package/dist/theme.js.map +1 -1
  33. package/dist/theme.mjs +202 -413
  34. package/dist/theme.mjs.map +1 -1
  35. package/package.json +2 -2
  36. package/src/cli/buildCommand.ts +2 -2
  37. package/src/css/_comp.ts +0 -1
  38. package/src/css/aspects/flex/flexJustify.style.ts +3 -3
  39. package/src/css/aspects/grid/types.ts +2 -2
  40. package/src/css/aspects/index.ts +0 -1
  41. package/src/css/aspects/textOverflow/textOverflow.ts +2 -2
  42. package/src/css/compile/compilePalette.ts +41 -8
  43. package/src/css/compile/compileRule.ts +0 -1
  44. package/src/css/compile/compileStyle.ts +1 -1
  45. package/src/css/compile/compileTheme_v3.ts +55 -46
  46. package/src/css/index.ts +2 -2
  47. package/src/css/primitives/_input/__workshop__/index.ts +1 -1
  48. package/src/css/primitives/_selectable/_contants.ts +1 -1
  49. package/src/css/primitives/badge/badge.style.ts +1 -1
  50. package/src/css/primitives/box/box.style.ts +1 -1
  51. package/src/css/primitives/box/box.ts +0 -2
  52. package/src/css/primitives/box/types.ts +0 -2
  53. package/src/css/primitives/button/_constants.ts +1 -1
  54. package/src/css/primitives/button/button.style.ts +13 -32
  55. package/src/css/primitives/card/_constants.ts +2 -2
  56. package/src/css/primitives/card/card.style.ts +44 -116
  57. package/src/css/primitives/card/card.ts +1 -1
  58. package/src/css/primitives/card/rules.ts +473 -0
  59. package/src/css/primitives/card/types.ts +1 -0
  60. package/src/css/primitives/kbd/kbd.style.ts +1 -1
  61. package/src/css/primitives/popover/popover.ts +0 -4
  62. package/src/css/primitives/switch/switch.style.ts +83 -8
  63. package/src/css/primitives/text/text.style.ts +3 -11
  64. package/src/css/system.style.ts +0 -4
  65. package/src/css/types.ts +188 -202
  66. package/src/css/varNames.ts +76 -110
  67. package/src/css/vars.ts +76 -109
  68. package/src/theme/defaults/config.ts +2 -2
  69. package/src/theme/defaults/fonts.ts +4 -4
  70. package/src/theme/palette/constants.ts +3 -1
  71. package/src/theme/palette/types.ts +12 -0
  72. package/src/theme/v3/buildTheme_v3.ts +2 -1
  73. package/src/theme/v3/color/buildColor_v3.ts +38 -43
  74. package/src/theme/v3/color/card.ts +38 -43
  75. package/src/theme/v3/color/color.ts +38 -42
  76. package/src/theme/v3/defaults.ts +72 -69
  77. package/src/theme/v3/resolveTokens.ts +38 -43
  78. package/src/theme/v3/types.ts +3 -0
  79. package/src/theme/versioning/themeColor_v3_v2.ts +1 -1
  80. package/src/ui/StyleTags.tsx +1 -1
  81. package/src/ui/components/autocomplete/__workshop__/async.tsx +1 -0
  82. package/src/ui/components/autocomplete/__workshop__/index.ts +1 -1
  83. package/src/ui/components/autocomplete/autocomplete.tsx +11 -2
  84. package/src/ui/components/dialog/dialog.tsx +4 -3
  85. package/src/ui/constants.ts +0 -6
  86. package/src/ui/hooks/useMediaIndex/useMediaIndex.ts +2 -0
  87. package/src/ui/primitives/box/box.tsx +2 -9
  88. package/src/ui/primitives/button/button.tsx +11 -12
  89. package/src/ui/primitives/card/card.tsx +5 -4
  90. package/src/ui/primitives/code/code.tsx +1 -1
  91. package/src/ui/primitives/heading/heading.tsx +1 -1
  92. package/src/ui/primitives/kbd/kbd.tsx +2 -2
  93. package/src/ui/primitives/popover/popover.tsx +75 -5
  94. package/src/ui/primitives/popover/popoverCard.tsx +39 -45
  95. package/src/ui/primitives/select/select.tsx +3 -3
  96. package/src/ui/primitives/stack/stack.tsx +5 -10
  97. package/src/ui/primitives/text/text.tsx +1 -1
  98. package/src/ui/primitives/textInput/textInput.tsx +1 -1
  99. package/src/ui/primitives/tooltip/tooltip.tsx +3 -2
  100. package/src/css/aspects/minWidth/index.ts +0 -2
  101. package/src/css/aspects/minWidth/minWidth.style.ts +0 -13
  102. package/src/css/aspects/minWidth/minWidth.ts +0 -6
  103. package/src/css/aspects/minWidth/types.ts +0 -7
  104. package/src/css/primitives/stack/index.ts +0 -1
  105. package/src/css/primitives/stack/stack.style.ts +0 -9
  106. package/src/css/primitives/stack/stack.ts +0 -6
package/dist/css.mjs CHANGED
@@ -1,93 +1,6 @@
1
- import { color } from "@sanity/color";
1
+ import { v3_v2 } from "./_chunks-es/v3_v2.mjs";
2
2
  import { HUES, TINTS, SPACE, RADIUS, FONT_TEXT_SIZE, FONT_LABEL_SIZE, FONT_HEADING_SIZE, FONT_CODE_SIZE, AVATAR_SIZE, THEME_COLOR_STATE_TONES, THEME_COLOR_CARD_TONES, THEME_COLOR_AVATAR_COLORS, THEME_COLOR_SCHEMES as THEME_COLOR_SCHEMES$1, renderColor } from "@sanity/ui/theme";
3
- function _resp(prefix, prop) {
4
- if (!(prop === void 0 || prop === !1))
5
- return Array.isArray(prop) ? prop.map((value, index) => {
6
- if (value === void 0 || typeof prop == "boolean" && prop === !1) return;
7
- const className = (typeof value == "boolean" ? [prefix] : [prefix, value]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
8
- return index === 0 ? className : `${index}:${className}`;
9
- }).filter(Boolean).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
10
- }
11
- function getClassNames(...classNames) {
12
- return classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean).join(" ").split(" ");
13
- }
14
- function composeClassNames(...classNames) {
15
- return unique(getClassNames(...classNames)).join(" ") || void 0;
16
- }
17
- function unique(array) {
18
- return Array.from(new Set(array));
19
- }
20
- function border(props) {
21
- return composeClassNames(_resp("border", props.border), _resp("border-t", props.borderTop), _resp("border-r", props.borderRight), _resp("border-b", props.borderBottom), _resp("border-l", props.borderLeft));
22
- }
23
- function display(props) {
24
- return composeClassNames(_resp(void 0, props.display));
25
- }
26
- function flex(props) {
27
- return composeClassNames(_resp("flex-align", props.align), _resp("f", props.direction), _resp("flex-justify", props.justify), _resp("flex", props.wrap));
28
- }
29
- function flexItem(props) {
30
- return composeClassNames(_resp("f", props.flex));
31
- }
32
- function font(props) {
33
- return composeClassNames("font", props.weight && `font-${props.weight}`, _resp("text-align", props.align));
34
- }
35
- function gap(props) {
36
- return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
37
- }
38
- function grid(props) {
39
- return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-flow", props.autoFlow), _resp("auto-rows", props.autoRows), _resp("cols", props.columns), _resp("rows", props.rows));
40
- }
41
- function gridItem(props) {
42
- return composeClassNames(_resp("col", props.column), _resp("col-start", props.columnStart), _resp("col-end", props.columnEnd), _resp("row", props.row), _resp("row-start", props.rowStart), _resp("row-end", props.rowEnd));
43
- }
44
- function height(props) {
45
- return composeClassNames(_resp("h", props.height));
46
- }
47
- function inset(props) {
48
- return composeClassNames(_resp("inset", props.inset), _resp("top", props.insetTop), _resp("right", props.insetRight), _resp("bottom", props.insetBottom), _resp("left", props.insetLeft));
49
- }
50
- function margin(props) {
51
- return composeClassNames(_resp("m", props.margin), _resp("mx", props.marginX), _resp("my", props.marginY), _resp("mt", props.marginTop), _resp("mr", props.marginRight), _resp("mb", props.marginBottom), _resp("ml", props.marginLeft));
52
- }
53
- function maxWidth(props) {
54
- return _resp("max-w", props.maxWidth) ?? "";
55
- }
56
- function minWidth(props) {
57
- return _resp("min-w", props.minWidth) ?? "";
58
- }
59
- function overflow(props) {
60
- return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
61
- }
62
- function padding(props) {
63
- return composeClassNames(_resp("p", props.padding), _resp("px", props.paddingX), _resp("py", props.paddingY), _resp("pt", props.paddingTop), _resp("pr", props.paddingRight), _resp("pb", props.paddingBottom), _resp("pl", props.paddingLeft));
64
- }
65
- function pointerEvents(props) {
66
- return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
67
- }
68
- function position(props) {
69
- return composeClassNames(_resp("position", props.position));
70
- }
71
- function radius(props) {
72
- return composeClassNames(_resp("r", props.radius));
73
- }
74
- function shadow(props) {
75
- return composeClassNames(_resp("shadow", props.shadow));
76
- }
77
3
  const PREFIX = "s-";
78
- function scopeClassName(className) {
79
- if (className !== void 0)
80
- return `${PREFIX}${className.trim()}`;
81
- }
82
- function _comp(...classNames) {
83
- return getClassNames(...classNames).filter(Boolean).map(scopeClassName).join(" ") || void 0;
84
- }
85
- function textOverflow(props) {
86
- return _comp(props.textOverflow && `text-overflow-${props.textOverflow}`);
87
- }
88
- function width(props) {
89
- return _resp("w", props.width) ?? "";
90
- }
91
4
  function compileRule(selector, props, context) {
92
5
  let css = compileProperties$1(selector, props);
93
6
  if (props["@nest"] && (css += compileNestedRules(selector, props["@nest"], context)), props["@keyframes"])
@@ -119,22 +32,44 @@ function compileNestedRules(selector, props, context) {
119
32
  function toSnakeCase$1(value) {
120
33
  return value.replace(/[A-Z]/g, (match) => "-" + match.toLowerCase());
121
34
  }
122
- function compilePalette() {
35
+ function compilePalette(config) {
123
36
  const props = {
124
- ...compileHues(),
125
- "--black": color.black.hex,
126
- "--white": color.white.hex
37
+ "--l-min": `${config.luminosity.min * 100}%`,
38
+ "--l-max": `${config.luminosity.max * 100}%`,
39
+ "--l-range": "calc(var(--l-max) - var(--l-min))",
40
+ "--c-min": `${config.chroma.min}`,
41
+ "--c-max": `${config.chroma.max}`,
42
+ "--c-range": "calc(var(--c-max) - var(--c-min))",
43
+ ...compileHues(config.hues),
44
+ "--black": `oklch(
45
+ calc(var(--l-min) + 0.0 * var(--l-range))
46
+ calc(var(--c-min) + 0.0 * var(--gray-c-range))
47
+ var(--gray-h)
48
+ )`,
49
+ "--white": `oklch(
50
+ calc(var(--l-min) + 1.0 * var(--l-range))
51
+ calc(var(--c-min) + 0.0 * var(--gray-c-range))
52
+ var(--gray-h)
53
+ )`
127
54
  };
128
55
  return compileRule(":root", props, {
129
56
  keyframes: {},
130
57
  media: {}
131
58
  });
132
59
  }
133
- function compileHues() {
60
+ function compileHues(hues) {
134
61
  const rules2 = {};
135
- for (const hue of HUES)
136
- for (const tint of TINTS)
137
- rules2[`--${hue}-${tint}`] = color[hue][tint].hex;
62
+ for (const hue of HUES) {
63
+ const {
64
+ c,
65
+ h
66
+ } = hues[hue];
67
+ rules2[`--${hue}-h`] = `${h}`, rules2[`--${hue}-c`] = `${c}`, rules2[`--${hue}-c-max`] = `min(var(--c-max), var(--${hue}-c))`, rules2[`--${hue}-c-range`] = `calc(var(--${hue}-c-max) - var(--c-min))`;
68
+ for (const tint of TINTS) {
69
+ const l_offset = parseFloat((1 - tint / 1e3).toFixed(2)), c_offset_tmp = tint / 500, c_offset = parseFloat((c_offset_tmp < 1 ? c_offset_tmp : 2 - c_offset_tmp).toFixed(1));
70
+ rules2[`--${hue}-${tint}`] = ["oklch(", `calc(var(--l-min) + ${l_offset} * var(--l-range)) `, `calc(var(--c-min) + ${c_offset} * var(--${hue}-c-range)) `, `var(--${hue}-h)`, ")"].join("");
71
+ }
72
+ }
138
73
  return rules2;
139
74
  }
140
75
  function _mergeStyles(styles) {
@@ -244,48 +179,6 @@ const varNames = {
244
179
  backdrop: "--color-backdrop",
245
180
  bg: "--color-bg",
246
181
  border: "--color-border",
247
- code: {
248
- bg: "--color-code-bg",
249
- fg: "--color-code-fg",
250
- token: {
251
- atrule: "--color-code-token-atrule",
252
- attrName: "--color-code-token-attr-name",
253
- attrValue: "--color-code-token-attr-value",
254
- attribute: "--color-code-token-attribute",
255
- boolean: "--color-code-token-boolean",
256
- builtin: "--color-code-token-builtin",
257
- cdata: "--color-code-token-cdata",
258
- char: "--color-code-token-char",
259
- class: "--color-code-token-class",
260
- className: "--color-code-token-class-name",
261
- comment: "--color-code-token-comment",
262
- constant: "--color-code-token-constant",
263
- deleted: "--color-code-token-deleted",
264
- doctype: "--color-code-token-doctype",
265
- entity: "--color-code-token-entity",
266
- function: "--color-code-token-function",
267
- hexcode: "--color-code-token-hexcode",
268
- id: "--color-code-token-id",
269
- important: "--color-code-token-important",
270
- inserted: "--color-code-token-inserted",
271
- keyword: "--color-code-token-keyword",
272
- number: "--color-code-token-number",
273
- operator: "--color-code-token-operator",
274
- prolog: "--color-code-token-prolog",
275
- property: "--color-code-token-property",
276
- pseudoClass: "--color-code-token-pseudo-class",
277
- pseudoElement: "--color-code-token-pseudo-element",
278
- punctuation: "--color-code-token-punctuation",
279
- regex: "--color-code-token-regex",
280
- selector: "--color-code-token-selector",
281
- string: "--color-code-token-string",
282
- symbol: "--color-code-token-symbol",
283
- tag: "--color-code-token-tag",
284
- unit: "--color-code-token-unit",
285
- url: "--color-code-token-url",
286
- variable: "--color-code-token-variable"
287
- }
288
- },
289
182
  fg: "--color-fg",
290
183
  focusRing: "--color-focus-ring",
291
184
  input: {
@@ -311,6 +204,44 @@ const varNames = {
311
204
  from: "--color-skeleton-from",
312
205
  to: "--color-skeleton-to"
313
206
  },
207
+ token: {
208
+ atrule: "--color-token-atrule",
209
+ attrName: "--color-token-attr-name",
210
+ attrValue: "--color-token-attr-value",
211
+ attribute: "--color-token-attribute",
212
+ boolean: "--color-token-boolean",
213
+ builtin: "--color-token-builtin",
214
+ cdata: "--color-token-cdata",
215
+ char: "--color-token-char",
216
+ class: "--color-token-class",
217
+ className: "--color-token-class-name",
218
+ comment: "--color-token-comment",
219
+ constant: "--color-token-constant",
220
+ deleted: "--color-token-deleted",
221
+ doctype: "--color-token-doctype",
222
+ entity: "--color-token-entity",
223
+ function: "--color-token-function",
224
+ hexcode: "--color-token-hexcode",
225
+ id: "--color-token-id",
226
+ important: "--color-token-important",
227
+ inserted: "--color-token-inserted",
228
+ keyword: "--color-token-keyword",
229
+ number: "--color-token-number",
230
+ operator: "--color-token-operator",
231
+ prolog: "--color-token-prolog",
232
+ property: "--color-token-property",
233
+ pseudoClass: "--color-token-pseudo-class",
234
+ pseudoElement: "--color-token-pseudo-element",
235
+ punctuation: "--color-token-punctuation",
236
+ regex: "--color-token-regex",
237
+ selector: "--color-token-selector",
238
+ string: "--color-token-string",
239
+ symbol: "--color-token-symbol",
240
+ tag: "--color-token-tag",
241
+ unit: "--color-token-unit",
242
+ url: "--color-token-url",
243
+ variable: "--color-token-variable"
244
+ },
314
245
  solid: buildColorVariantVarNames({
315
246
  variant: "solid"
316
247
  }),
@@ -433,13 +364,7 @@ const varNames = {
433
364
  letterSpacing: `--font-code-${size}-letter-spacing`,
434
365
  iconSize: `--font-code-${size}-icon-size`
435
366
  }
436
- }), {}),
437
- weight: {
438
- regular: "--font-code-weight-regular",
439
- medium: "--font-code-weight-medium",
440
- semibold: "--font-code-weight-semibold",
441
- bold: "--font-code-weight-bold"
442
- }
367
+ }), {})
443
368
  },
444
369
  heading: {
445
370
  family: "--font-heading-family",
@@ -453,13 +378,7 @@ const varNames = {
453
378
  letterSpacing: `--font-heading-${size}-letter-spacing`,
454
379
  iconSize: `--font-heading-${size}-icon-size`
455
380
  }
456
- }), {}),
457
- weight: {
458
- regular: "--font-heading-weight-regular",
459
- medium: "--font-heading-weight-medium",
460
- semibold: "--font-heading-weight-semibold",
461
- bold: "--font-heading-weight-bold"
462
- }
381
+ }), {})
463
382
  },
464
383
  label: {
465
384
  family: "--font-label-family",
@@ -473,13 +392,7 @@ const varNames = {
473
392
  letterSpacing: `--font-label-${size}-letter-spacing`,
474
393
  iconSize: `--font-label-${size}-icon-size`
475
394
  }
476
- }), {}),
477
- weight: {
478
- regular: "--font-label-weight-regular",
479
- medium: "--font-label-weight-medium",
480
- semibold: "--font-label-weight-semibold",
481
- bold: "--font-label-weight-bold"
482
- }
395
+ }), {})
483
396
  },
484
397
  text: {
485
398
  family: "--font-text-family",
@@ -493,13 +406,7 @@ const varNames = {
493
406
  letterSpacing: `--font-text-${size}-letter-spacing`,
494
407
  iconSize: `--font-text-${size}-icon-size`
495
408
  }
496
- }), {}),
497
- weight: {
498
- regular: "--font-text-weight-regular",
499
- medium: "--font-text-weight-medium",
500
- semibold: "--font-text-weight-semibold",
501
- bold: "--font-text-weight-bold"
502
- }
409
+ }), {})
503
410
  }
504
411
  },
505
412
  input: {
@@ -563,48 +470,6 @@ function buildColorCardVarNames(props) {
563
470
  }
564
471
  },
565
472
  backdrop: `${sourcePrefix}-backdrop`,
566
- code: {
567
- bg: `${sourcePrefix}-code-bg`,
568
- fg: `${sourcePrefix}-code-fg`,
569
- token: {
570
- atrule: `${sourcePrefix}-code-token-atrule`,
571
- attrName: `${sourcePrefix}-code-token-attr-name`,
572
- attrValue: `${sourcePrefix}-code-token-attr-value`,
573
- attribute: `${sourcePrefix}-code-token-attribute`,
574
- boolean: `${sourcePrefix}-code-token-boolean`,
575
- builtin: `${sourcePrefix}-code-token-builtin`,
576
- cdata: `${sourcePrefix}-code-token-cdata`,
577
- char: `${sourcePrefix}-code-token-char`,
578
- class: `${sourcePrefix}-code-token-class`,
579
- className: `${sourcePrefix}-code-token-class-name`,
580
- comment: `${sourcePrefix}-code-token-comment`,
581
- constant: `${sourcePrefix}-code-token-constant`,
582
- deleted: `${sourcePrefix}-code-token-deleted`,
583
- doctype: `${sourcePrefix}-code-token-doctype`,
584
- entity: `${sourcePrefix}-code-token-entity`,
585
- function: `${sourcePrefix}-code-token-function`,
586
- hexcode: `${sourcePrefix}-code-token-hexcode`,
587
- id: `${sourcePrefix}-code-token-id`,
588
- important: `${sourcePrefix}-code-token-important`,
589
- inserted: `${sourcePrefix}-code-token-inserted`,
590
- keyword: `${sourcePrefix}-code-token-keyword`,
591
- number: `${sourcePrefix}-code-token-number`,
592
- operator: `${sourcePrefix}-code-token-operator`,
593
- prolog: `${sourcePrefix}-code-token-prolog`,
594
- property: `${sourcePrefix}-code-token-property`,
595
- pseudoClass: `${sourcePrefix}-code-token-pseudo-class`,
596
- pseudoElement: `${sourcePrefix}-code-token-pseudo-element`,
597
- punctuation: `${sourcePrefix}-code-token-punctuation`,
598
- regex: `${sourcePrefix}-code-token-regex`,
599
- selector: `${sourcePrefix}-code-token-selector`,
600
- string: `${sourcePrefix}-code-token-string`,
601
- symbol: `${sourcePrefix}-code-token-symbol`,
602
- tag: `${sourcePrefix}-code-token-tag`,
603
- unit: `${sourcePrefix}-code-token-unit`,
604
- url: `${sourcePrefix}-code-token-url`,
605
- variable: `${sourcePrefix}-code-token-variable`
606
- }
607
- },
608
473
  focusRing: `${sourcePrefix}-focus-ring`,
609
474
  link: {
610
475
  fg: `${sourcePrefix}-link-fg`
@@ -623,6 +488,44 @@ function buildColorCardVarNames(props) {
623
488
  from: `${sourcePrefix}-skeleton-from`,
624
489
  to: `${sourcePrefix}-skeleton-to`
625
490
  },
491
+ token: {
492
+ atrule: `${sourcePrefix}-token-atrule`,
493
+ attrName: `${sourcePrefix}-token-attr-name`,
494
+ attrValue: `${sourcePrefix}-token-attr-value`,
495
+ attribute: `${sourcePrefix}-token-attribute`,
496
+ boolean: `${sourcePrefix}-token-boolean`,
497
+ builtin: `${sourcePrefix}-token-builtin`,
498
+ cdata: `${sourcePrefix}-token-cdata`,
499
+ char: `${sourcePrefix}-token-char`,
500
+ class: `${sourcePrefix}-token-class`,
501
+ className: `${sourcePrefix}-token-class-name`,
502
+ comment: `${sourcePrefix}-token-comment`,
503
+ constant: `${sourcePrefix}-token-constant`,
504
+ deleted: `${sourcePrefix}-token-deleted`,
505
+ doctype: `${sourcePrefix}-token-doctype`,
506
+ entity: `${sourcePrefix}-token-entity`,
507
+ function: `${sourcePrefix}-token-function`,
508
+ hexcode: `${sourcePrefix}-token-hexcode`,
509
+ id: `${sourcePrefix}-token-id`,
510
+ important: `${sourcePrefix}-token-important`,
511
+ inserted: `${sourcePrefix}-token-inserted`,
512
+ keyword: `${sourcePrefix}-token-keyword`,
513
+ number: `${sourcePrefix}-token-number`,
514
+ operator: `${sourcePrefix}-token-operator`,
515
+ prolog: `${sourcePrefix}-token-prolog`,
516
+ property: `${sourcePrefix}-token-property`,
517
+ pseudoClass: `${sourcePrefix}-token-pseudo-class`,
518
+ pseudoElement: `${sourcePrefix}-token-pseudo-element`,
519
+ punctuation: `${sourcePrefix}-token-punctuation`,
520
+ regex: `${sourcePrefix}-token-regex`,
521
+ selector: `${sourcePrefix}-token-selector`,
522
+ string: `${sourcePrefix}-token-string`,
523
+ symbol: `${sourcePrefix}-token-symbol`,
524
+ tag: `${sourcePrefix}-token-tag`,
525
+ unit: `${sourcePrefix}-token-unit`,
526
+ url: `${sourcePrefix}-token-url`,
527
+ variable: `${sourcePrefix}-token-variable`
528
+ },
626
529
  solid: buildColorVariantVarNames({
627
530
  scheme,
628
531
  tone,
@@ -750,48 +653,6 @@ const colorVars = {
750
653
  backdrop: `var(${varNames.color.backdrop})`,
751
654
  bg: `var(${varNames.color.bg})`,
752
655
  border: `var(${varNames.color.border})`,
753
- code: {
754
- bg: `var(${varNames.color.code.bg})`,
755
- fg: `var(${varNames.color.code.fg})`,
756
- token: {
757
- atrule: `var(${varNames.color.code.token.atrule})`,
758
- attrName: `var(${varNames.color.code.token.attrName})`,
759
- attrValue: `var(${varNames.color.code.token.attrValue})`,
760
- attribute: `var(${varNames.color.code.token.attribute})`,
761
- boolean: `var(${varNames.color.code.token.boolean})`,
762
- builtin: `var(${varNames.color.code.token.builtin})`,
763
- cdata: `var(${varNames.color.code.token.cdata})`,
764
- char: `var(${varNames.color.code.token.char})`,
765
- class: `var(${varNames.color.code.token.class})`,
766
- className: `var(${varNames.color.code.token.className})`,
767
- comment: `var(${varNames.color.code.token.comment})`,
768
- constant: `var(${varNames.color.code.token.constant})`,
769
- deleted: `var(${varNames.color.code.token.deleted})`,
770
- doctype: `var(${varNames.color.code.token.doctype})`,
771
- entity: `var(${varNames.color.code.token.entity})`,
772
- function: `var(${varNames.color.code.token.function})`,
773
- hexcode: `var(${varNames.color.code.token.hexcode})`,
774
- id: `var(${varNames.color.code.token.id})`,
775
- important: `var(${varNames.color.code.token.important})`,
776
- inserted: `var(${varNames.color.code.token.inserted})`,
777
- keyword: `var(${varNames.color.code.token.keyword})`,
778
- number: `var(${varNames.color.code.token.number})`,
779
- operator: `var(${varNames.color.code.token.operator})`,
780
- prolog: `var(${varNames.color.code.token.prolog})`,
781
- property: `var(${varNames.color.code.token.property})`,
782
- pseudoClass: `var(${varNames.color.code.token.pseudoClass})`,
783
- pseudoElement: `var(${varNames.color.code.token.pseudoElement})`,
784
- punctuation: `var(${varNames.color.code.token.punctuation})`,
785
- regex: `var(${varNames.color.code.token.regex})`,
786
- selector: `var(${varNames.color.code.token.selector})`,
787
- string: `var(${varNames.color.code.token.string})`,
788
- symbol: `var(${varNames.color.code.token.symbol})`,
789
- tag: `var(${varNames.color.code.token.tag})`,
790
- unit: `var(${varNames.color.code.token.unit})`,
791
- url: `var(${varNames.color.code.token.url})`,
792
- variable: `var(${varNames.color.code.token.variable})`
793
- }
794
- },
795
656
  fg: `var(${varNames.color.fg})`,
796
657
  focusRing: `var(${varNames.color.focusRing})`,
797
658
  input: {
@@ -817,6 +678,44 @@ const colorVars = {
817
678
  from: `var(${varNames.color.skeleton.from})`,
818
679
  to: `var(${varNames.color.skeleton.to})`
819
680
  },
681
+ token: {
682
+ atrule: `var(${varNames.color.token.atrule})`,
683
+ attrName: `var(${varNames.color.token.attrName})`,
684
+ attrValue: `var(${varNames.color.token.attrValue})`,
685
+ attribute: `var(${varNames.color.token.attribute})`,
686
+ boolean: `var(${varNames.color.token.boolean})`,
687
+ builtin: `var(${varNames.color.token.builtin})`,
688
+ cdata: `var(${varNames.color.token.cdata})`,
689
+ char: `var(${varNames.color.token.char})`,
690
+ class: `var(${varNames.color.token.class})`,
691
+ className: `var(${varNames.color.token.className})`,
692
+ comment: `var(${varNames.color.token.comment})`,
693
+ constant: `var(${varNames.color.token.constant})`,
694
+ deleted: `var(${varNames.color.token.deleted})`,
695
+ doctype: `var(${varNames.color.token.doctype})`,
696
+ entity: `var(${varNames.color.token.entity})`,
697
+ function: `var(${varNames.color.token.function})`,
698
+ hexcode: `var(${varNames.color.token.hexcode})`,
699
+ id: `var(${varNames.color.token.id})`,
700
+ important: `var(${varNames.color.token.important})`,
701
+ inserted: `var(${varNames.color.token.inserted})`,
702
+ keyword: `var(${varNames.color.token.keyword})`,
703
+ number: `var(${varNames.color.token.number})`,
704
+ operator: `var(${varNames.color.token.operator})`,
705
+ prolog: `var(${varNames.color.token.prolog})`,
706
+ property: `var(${varNames.color.token.property})`,
707
+ pseudoClass: `var(${varNames.color.token.pseudoClass})`,
708
+ pseudoElement: `var(${varNames.color.token.pseudoElement})`,
709
+ punctuation: `var(${varNames.color.token.punctuation})`,
710
+ regex: `var(${varNames.color.token.regex})`,
711
+ selector: `var(${varNames.color.token.selector})`,
712
+ string: `var(${varNames.color.token.string})`,
713
+ symbol: `var(${varNames.color.token.symbol})`,
714
+ tag: `var(${varNames.color.token.tag})`,
715
+ unit: `var(${varNames.color.token.unit})`,
716
+ url: `var(${varNames.color.token.url})`,
717
+ variable: `var(${varNames.color.token.variable})`
718
+ },
820
719
  solid: buildColorVariantVars({
821
720
  variant: "solid"
822
721
  }),
@@ -865,13 +764,7 @@ const colorVars = {
865
764
  letterSpacing: `var(${varNames.font.code.sizes[size].letterSpacing})`,
866
765
  iconSize: `var(${varNames.font.code.sizes[size].iconSize})`
867
766
  }
868
- }), {}),
869
- weight: {
870
- regular: `var(${varNames.font.code.weight.regular})`,
871
- medium: `var(${varNames.font.code.weight.medium})`,
872
- semibold: `var(${varNames.font.code.weight.semibold})`,
873
- bold: `var(${varNames.font.code.weight.bold})`
874
- }
767
+ }), {})
875
768
  },
876
769
  heading: {
877
770
  family: `var(${varNames.font.heading.family})`,
@@ -885,13 +778,7 @@ const colorVars = {
885
778
  letterSpacing: `var(${varNames.font.heading.sizes[size].letterSpacing})`,
886
779
  iconSize: `var(${varNames.font.heading.sizes[size].iconSize})`
887
780
  }
888
- }), {}),
889
- weight: {
890
- regular: `var(${varNames.font.heading.weight.regular})`,
891
- medium: `var(${varNames.font.heading.weight.medium})`,
892
- semibold: `var(${varNames.font.heading.weight.semibold})`,
893
- bold: `var(${varNames.font.heading.weight.bold})`
894
- }
781
+ }), {})
895
782
  },
896
783
  label: {
897
784
  family: `var(${varNames.font.label.family})`,
@@ -905,13 +792,7 @@ const colorVars = {
905
792
  letterSpacing: `var(${varNames.font.label.sizes[size].letterSpacing})`,
906
793
  iconSize: `var(${varNames.font.label.sizes[size].iconSize})`
907
794
  }
908
- }), {}),
909
- weight: {
910
- regular: `var(${varNames.font.label.weight.regular})`,
911
- medium: `var(${varNames.font.label.weight.medium})`,
912
- semibold: `var(${varNames.font.label.weight.semibold})`,
913
- bold: `var(${varNames.font.label.weight.bold})`
914
- }
795
+ }), {})
915
796
  },
916
797
  text: {
917
798
  family: `var(${varNames.font.text.family})`,
@@ -925,13 +806,7 @@ const colorVars = {
925
806
  letterSpacing: `var(${varNames.font.text.sizes[size].letterSpacing})`,
926
807
  iconSize: `var(${varNames.font.text.sizes[size].iconSize})`
927
808
  }
928
- }), {}),
929
- weight: {
930
- regular: `var(${varNames.font.text.weight.regular})`,
931
- medium: `var(${varNames.font.text.weight.medium})`,
932
- semibold: `var(${varNames.font.text.weight.semibold})`,
933
- bold: `var(${varNames.font.text.weight.bold})`
934
- }
809
+ }), {})
935
810
  }
936
811
  },
937
812
  input: {
@@ -963,57 +838,15 @@ function buildColorCardVars(props) {
963
838
  fg: `var(${prefix.accent.fg})`
964
839
  },
965
840
  avatar: {
966
- ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
841
+ ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color) => ({
967
842
  ...acc,
968
- [color2]: {
969
- bg: `var(${prefix.avatar[color2].bg})`,
970
- fg: `var(${prefix.avatar[color2].fg})`
843
+ [color]: {
844
+ bg: `var(${prefix.avatar[color].bg})`,
845
+ fg: `var(${prefix.avatar[color].fg})`
971
846
  }
972
847
  }), {})
973
848
  },
974
849
  backdrop: `var(${prefix.backdrop})`,
975
- code: {
976
- bg: `var(${prefix.code.bg})`,
977
- fg: `var(${prefix.code.fg})`,
978
- token: {
979
- atrule: `var(${prefix.code.token.atrule})`,
980
- attrName: `var(${prefix.code.token.attrName})`,
981
- attrValue: `var(${prefix.code.token.attrValue})`,
982
- attribute: `var(${prefix.code.token.attribute})`,
983
- boolean: `var(${prefix.code.token.boolean})`,
984
- builtin: `var(${prefix.code.token.builtin})`,
985
- cdata: `var(${prefix.code.token.cdata})`,
986
- char: `var(${prefix.code.token.char})`,
987
- class: `var(${prefix.code.token.class})`,
988
- className: `var(${prefix.code.token.className})`,
989
- comment: `var(${prefix.code.token.comment})`,
990
- constant: `var(${prefix.code.token.constant})`,
991
- deleted: `var(${prefix.code.token.deleted})`,
992
- doctype: `var(${prefix.code.token.doctype})`,
993
- entity: `var(${prefix.code.token.entity})`,
994
- function: `var(${prefix.code.token.function})`,
995
- hexcode: `var(${prefix.code.token.hexcode})`,
996
- id: `var(${prefix.code.token.id})`,
997
- important: `var(${prefix.code.token.important})`,
998
- inserted: `var(${prefix.code.token.inserted})`,
999
- keyword: `var(${prefix.code.token.keyword})`,
1000
- number: `var(${prefix.code.token.number})`,
1001
- operator: `var(${prefix.code.token.operator})`,
1002
- prolog: `var(${prefix.code.token.prolog})`,
1003
- property: `var(${prefix.code.token.property})`,
1004
- pseudoClass: `var(${prefix.code.token.pseudoClass})`,
1005
- pseudoElement: `var(${prefix.code.token.pseudoElement})`,
1006
- punctuation: `var(${prefix.code.token.punctuation})`,
1007
- regex: `var(${prefix.code.token.regex})`,
1008
- selector: `var(${prefix.code.token.selector})`,
1009
- string: `var(${prefix.code.token.string})`,
1010
- symbol: `var(${prefix.code.token.symbol})`,
1011
- tag: `var(${prefix.code.token.tag})`,
1012
- unit: `var(${prefix.code.token.unit})`,
1013
- url: `var(${prefix.code.token.url})`,
1014
- variable: `var(${prefix.code.token.variable})`
1015
- }
1016
- },
1017
850
  focusRing: `var(${prefix.focusRing})`,
1018
851
  link: {
1019
852
  fg: `var(${prefix.link.fg})`
@@ -1032,6 +865,44 @@ function buildColorCardVars(props) {
1032
865
  from: `var(${prefix.skeleton.from})`,
1033
866
  to: `var(${prefix.skeleton.to})`
1034
867
  },
868
+ token: {
869
+ atrule: `var(${prefix.token.atrule})`,
870
+ attrName: `var(${prefix.token.attrName})`,
871
+ attrValue: `var(${prefix.token.attrValue})`,
872
+ attribute: `var(${prefix.token.attribute})`,
873
+ boolean: `var(${prefix.token.boolean})`,
874
+ builtin: `var(${prefix.token.builtin})`,
875
+ cdata: `var(${prefix.token.cdata})`,
876
+ char: `var(${prefix.token.char})`,
877
+ class: `var(${prefix.token.class})`,
878
+ className: `var(${prefix.token.className})`,
879
+ comment: `var(${prefix.token.comment})`,
880
+ constant: `var(${prefix.token.constant})`,
881
+ deleted: `var(${prefix.token.deleted})`,
882
+ doctype: `var(${prefix.token.doctype})`,
883
+ entity: `var(${prefix.token.entity})`,
884
+ function: `var(${prefix.token.function})`,
885
+ hexcode: `var(${prefix.token.hexcode})`,
886
+ id: `var(${prefix.token.id})`,
887
+ important: `var(${prefix.token.important})`,
888
+ inserted: `var(${prefix.token.inserted})`,
889
+ keyword: `var(${prefix.token.keyword})`,
890
+ number: `var(${prefix.token.number})`,
891
+ operator: `var(${prefix.token.operator})`,
892
+ prolog: `var(${prefix.token.prolog})`,
893
+ property: `var(${prefix.token.property})`,
894
+ pseudoClass: `var(${prefix.token.pseudoClass})`,
895
+ pseudoElement: `var(${prefix.token.pseudoElement})`,
896
+ punctuation: `var(${prefix.token.punctuation})`,
897
+ regex: `var(${prefix.token.regex})`,
898
+ selector: `var(${prefix.token.selector})`,
899
+ string: `var(${prefix.token.string})`,
900
+ symbol: `var(${prefix.token.symbol})`,
901
+ tag: `var(${prefix.token.tag})`,
902
+ unit: `var(${prefix.token.unit})`,
903
+ url: `var(${prefix.token.url})`,
904
+ variable: `var(${prefix.token.variable})`
905
+ },
1035
906
  solid: buildColorVariantVars({
1036
907
  scheme,
1037
908
  tone,
@@ -1100,70 +971,70 @@ function buildColorVariantVars(options) {
1100
971
  }
1101
972
  return vars2;
1102
973
  }
1103
- const util$t = {};
1104
- _responsiveRule(util$t, "border", {
974
+ const util$s = {};
975
+ _responsiveRule(util$s, "border", {
1105
976
  border: `1px solid ${vars.color.border}`
1106
977
  });
1107
- _responsiveRule(util$t, "border-t", {
978
+ _responsiveRule(util$s, "border-t", {
1108
979
  borderTop: `1px solid ${vars.color.border}`
1109
980
  });
1110
- _responsiveRule(util$t, "border-r", {
981
+ _responsiveRule(util$s, "border-r", {
1111
982
  borderRight: `1px solid ${vars.color.border}`
1112
983
  });
1113
- _responsiveRule(util$t, "border-b", {
984
+ _responsiveRule(util$s, "border-b", {
1114
985
  borderBottom: `1px solid ${vars.color.border}`
1115
986
  });
1116
- _responsiveRule(util$t, "border-l", {
987
+ _responsiveRule(util$s, "border-l", {
1117
988
  borderLeft: `1px solid ${vars.color.border}`
1118
989
  });
1119
990
  const borderStyle = {
1120
991
  layers: {
1121
- util: util$t
992
+ util: util$s
1122
993
  }
1123
- }, util$s = {};
1124
- _responsiveRule(util$s, "block", {
994
+ }, util$r = {};
995
+ _responsiveRule(util$r, "block", {
1125
996
  "@nest": {
1126
997
  "&:not([hidden])": {
1127
998
  display: "block"
1128
999
  }
1129
1000
  }
1130
1001
  });
1131
- _responsiveRule(util$s, "flex", {
1002
+ _responsiveRule(util$r, "flex", {
1132
1003
  "@nest": {
1133
1004
  "&:not([hidden])": {
1134
1005
  display: "flex"
1135
1006
  }
1136
1007
  }
1137
1008
  });
1138
- _responsiveRule(util$s, "grid", {
1009
+ _responsiveRule(util$r, "grid", {
1139
1010
  "@nest": {
1140
1011
  "&:not([hidden])": {
1141
1012
  display: "grid"
1142
1013
  }
1143
1014
  }
1144
1015
  });
1145
- _responsiveRule(util$s, "inline-block", {
1016
+ _responsiveRule(util$r, "inline-block", {
1146
1017
  "@nest": {
1147
1018
  "&:not([hidden])": {
1148
1019
  display: "inline-block"
1149
1020
  }
1150
1021
  }
1151
1022
  });
1152
- _responsiveRule(util$s, "inline-flex", {
1023
+ _responsiveRule(util$r, "inline-flex", {
1153
1024
  "@nest": {
1154
1025
  "&:not([hidden])": {
1155
1026
  display: "inline-flex"
1156
1027
  }
1157
1028
  }
1158
1029
  });
1159
- _responsiveRule(util$s, "inline-grid", {
1030
+ _responsiveRule(util$r, "inline-grid", {
1160
1031
  "@nest": {
1161
1032
  "&:not([hidden])": {
1162
1033
  display: "inline-grid"
1163
1034
  }
1164
1035
  }
1165
1036
  });
1166
- _responsiveRule(util$s, "none", {
1037
+ _responsiveRule(util$r, "none", {
1167
1038
  "@nest": {
1168
1039
  "&:not([hidden])": {
1169
1040
  display: "none"
@@ -1172,125 +1043,125 @@ _responsiveRule(util$s, "none", {
1172
1043
  });
1173
1044
  const displayStyle = {
1174
1045
  layers: {
1175
- util: util$s
1046
+ util: util$r
1176
1047
  }
1177
- }, util$r = {};
1178
- _responsiveRule(util$r, "flex-align-flex-start", {
1048
+ }, util$q = {};
1049
+ _responsiveRule(util$q, "flex-align-flex-start", {
1179
1050
  alignItems: "flex-start"
1180
1051
  });
1181
- _responsiveRule(util$r, "flex-align-flex-end", {
1052
+ _responsiveRule(util$q, "flex-align-flex-end", {
1182
1053
  alignItems: "flex-end"
1183
1054
  });
1184
- _responsiveRule(util$r, "flex-align-center", {
1055
+ _responsiveRule(util$q, "flex-align-center", {
1185
1056
  alignItems: "center"
1186
1057
  });
1187
- _responsiveRule(util$r, "flex-align-stretch", {
1058
+ _responsiveRule(util$q, "flex-align-stretch", {
1188
1059
  alignItems: "stretch"
1189
1060
  });
1190
- _responsiveRule(util$r, "flex-align-baseline", {
1061
+ _responsiveRule(util$q, "flex-align-baseline", {
1191
1062
  alignItems: "baseline"
1192
1063
  });
1193
1064
  const flexAlignStyle = {
1194
1065
  layers: {
1195
- util: util$r
1066
+ util: util$q
1196
1067
  }
1197
- }, util$q = {};
1198
- _responsiveRule(util$q, "f-row", {
1068
+ }, util$p = {};
1069
+ _responsiveRule(util$p, "f-row", {
1199
1070
  flexDirection: "row"
1200
1071
  });
1201
- _responsiveRule(util$q, "f-column", {
1072
+ _responsiveRule(util$p, "f-column", {
1202
1073
  flexDirection: "column"
1203
1074
  });
1204
1075
  const flexDirectionStyle = {
1205
1076
  layers: {
1206
- util: util$q
1077
+ util: util$p
1207
1078
  }
1208
- }, util$p = {};
1209
- _responsiveRule(util$p, "flex-justify-flex-start", {
1079
+ }, util$o = {};
1080
+ _responsiveRule(util$o, "flex-justify-flex-start", {
1210
1081
  justifyContent: "flex-start"
1211
1082
  });
1212
- _responsiveRule(util$p, "flex-justify-flex-end", {
1083
+ _responsiveRule(util$o, "flex-justify-flex-end", {
1213
1084
  justifyContent: "flex-end"
1214
1085
  });
1215
- _responsiveRule(util$p, "flex-justify-center", {
1086
+ _responsiveRule(util$o, "flex-justify-center", {
1216
1087
  justifyContent: "center"
1217
1088
  });
1218
- _responsiveRule(util$p, "flex-justify-space-between", {
1089
+ _responsiveRule(util$o, "flex-justify-between", {
1219
1090
  justifyContent: "space-between"
1220
1091
  });
1221
- _responsiveRule(util$p, "flex-justify-space-around", {
1092
+ _responsiveRule(util$o, "flex-justify-around", {
1222
1093
  justifyContent: "space-around"
1223
1094
  });
1224
- _responsiveRule(util$p, "flex-justify-space-evenly", {
1095
+ _responsiveRule(util$o, "flex-justify-evenly", {
1225
1096
  justifyContent: "space-evenly"
1226
1097
  });
1227
1098
  const flexJustifyStyle = {
1228
1099
  layers: {
1229
- util: util$p
1100
+ util: util$o
1230
1101
  }
1231
- }, util$o = {};
1232
- _responsiveRule(util$o, "flex-nowrap", {
1102
+ }, util$n = {};
1103
+ _responsiveRule(util$n, "flex-nowrap", {
1233
1104
  flexWrap: "nowrap"
1234
1105
  });
1235
- _responsiveRule(util$o, "flex-wrap", {
1106
+ _responsiveRule(util$n, "flex-wrap", {
1236
1107
  flexWrap: "wrap"
1237
1108
  });
1238
- _responsiveRule(util$o, "flex-wrap-reverse", {
1109
+ _responsiveRule(util$n, "flex-wrap-reverse", {
1239
1110
  flexWrap: "wrap-reverse"
1240
1111
  });
1241
1112
  const flexWrapStyle = {
1242
1113
  layers: {
1243
- util: util$o
1114
+ util: util$n
1244
1115
  }
1245
- }, util$n = {};
1246
- _responsiveRule(util$n, "f-none", {
1116
+ }, util$m = {};
1117
+ _responsiveRule(util$m, "f-none", {
1247
1118
  flex: "none"
1248
1119
  });
1249
- _responsiveRule(util$n, "f-auto", {
1120
+ _responsiveRule(util$m, "f-auto", {
1250
1121
  flex: "auto"
1251
1122
  });
1252
- _responsiveRule(util$n, "f-initial", {
1123
+ _responsiveRule(util$m, "f-initial", {
1253
1124
  flex: "initial"
1254
1125
  });
1255
- _responsiveRule(util$n, "f-1", {
1126
+ _responsiveRule(util$m, "f-1", {
1256
1127
  flex: 1
1257
1128
  });
1258
- _responsiveRule(util$n, "f-2", {
1129
+ _responsiveRule(util$m, "f-2", {
1259
1130
  flex: 2
1260
1131
  });
1261
- _responsiveRule(util$n, "f-3", {
1132
+ _responsiveRule(util$m, "f-3", {
1262
1133
  flex: 3
1263
1134
  });
1264
- _responsiveRule(util$n, "f-4", {
1135
+ _responsiveRule(util$m, "f-4", {
1265
1136
  flex: 4
1266
1137
  });
1267
- _responsiveRule(util$n, "f-5", {
1138
+ _responsiveRule(util$m, "f-5", {
1268
1139
  flex: 5
1269
1140
  });
1270
- _responsiveRule(util$n, "f-6", {
1141
+ _responsiveRule(util$m, "f-6", {
1271
1142
  flex: 6
1272
1143
  });
1273
- _responsiveRule(util$n, "f-7", {
1144
+ _responsiveRule(util$m, "f-7", {
1274
1145
  flex: 7
1275
1146
  });
1276
- _responsiveRule(util$n, "f-8", {
1147
+ _responsiveRule(util$m, "f-8", {
1277
1148
  flex: 8
1278
1149
  });
1279
- _responsiveRule(util$n, "f-9", {
1150
+ _responsiveRule(util$m, "f-9", {
1280
1151
  flex: 9
1281
1152
  });
1282
- _responsiveRule(util$n, "f-10", {
1153
+ _responsiveRule(util$m, "f-10", {
1283
1154
  flex: 10
1284
1155
  });
1285
- _responsiveRule(util$n, "f-11", {
1156
+ _responsiveRule(util$m, "f-11", {
1286
1157
  flex: 11
1287
1158
  });
1288
- _responsiveRule(util$n, "f-12", {
1159
+ _responsiveRule(util$m, "f-12", {
1289
1160
  flex: 12
1290
1161
  });
1291
1162
  const flexStyle = {
1292
1163
  layers: {
1293
- util: util$n
1164
+ util: util$m
1294
1165
  }
1295
1166
  }, rules$3 = {
1296
1167
  ".font": {
@@ -1368,532 +1239,509 @@ const fontStyle = {
1368
1239
  layers: {
1369
1240
  primitive: rules$3
1370
1241
  }
1371
- }, util$m = {};
1242
+ }, util$l = {};
1372
1243
  for (const space of SPACE)
1373
- _responsiveRule(util$m, `g-${space}`, {
1244
+ _responsiveRule(util$l, `g-${space}`, {
1374
1245
  gap: vars.space[space]
1375
1246
  });
1376
1247
  for (const space of SPACE)
1377
- _responsiveRule(util$m, `gx-${space}`, {
1248
+ _responsiveRule(util$l, `gx-${space}`, {
1378
1249
  columnGap: vars.space[space]
1379
1250
  });
1380
1251
  for (const space of SPACE)
1381
- _responsiveRule(util$m, `gy-${space}`, {
1252
+ _responsiveRule(util$l, `gy-${space}`, {
1382
1253
  rowGap: vars.space[space]
1383
1254
  });
1384
1255
  const gapStyle = {
1385
1256
  layers: {
1386
- util: util$m
1257
+ util: util$l
1387
1258
  }
1388
- }, util$l = {};
1389
- _responsiveRule(util$l, "auto-cols-auto", {
1259
+ }, util$k = {};
1260
+ _responsiveRule(util$k, "auto-cols-auto", {
1390
1261
  gridAutoColumns: "auto"
1391
1262
  });
1392
- _responsiveRule(util$l, "auto-cols-min", {
1263
+ _responsiveRule(util$k, "auto-cols-min", {
1393
1264
  gridAutoColumns: "min-content"
1394
1265
  });
1395
- _responsiveRule(util$l, "auto-cols-max", {
1266
+ _responsiveRule(util$k, "auto-cols-max", {
1396
1267
  gridAutoColumns: "max-content"
1397
1268
  });
1398
- _responsiveRule(util$l, "auto-cols-fr", {
1269
+ _responsiveRule(util$k, "auto-cols-fr", {
1399
1270
  gridAutoColumns: "minmax(0, 1fr)"
1400
1271
  });
1401
1272
  const gridAutoColumnsStyle = {
1402
1273
  layers: {
1403
- util: util$l
1274
+ util: util$k
1404
1275
  }
1405
- }, util$k = {};
1406
- _responsiveRule(util$k, "auto-flow-row", {
1276
+ }, util$j = {};
1277
+ _responsiveRule(util$j, "auto-flow-row", {
1407
1278
  gridAutoFlow: "row"
1408
1279
  });
1409
- _responsiveRule(util$k, "auto-flow-column", {
1280
+ _responsiveRule(util$j, "auto-flow-column", {
1410
1281
  gridAutoFlow: "column"
1411
1282
  });
1412
- _responsiveRule(util$k, "auto-flow-row-dense", {
1283
+ _responsiveRule(util$j, "auto-flow-row-dense", {
1413
1284
  gridAutoFlow: "row dense"
1414
1285
  });
1415
- _responsiveRule(util$k, "auto-flow-column-dense", {
1286
+ _responsiveRule(util$j, "auto-flow-column-dense", {
1416
1287
  gridAutoFlow: "column dense"
1417
1288
  });
1418
1289
  const gridAutoFlowStyle = {
1419
1290
  layers: {
1420
- util: util$k
1291
+ util: util$j
1421
1292
  }
1422
- }, util$j = {};
1423
- _responsiveRule(util$j, "auto-rows-auto", {
1293
+ }, util$i = {};
1294
+ _responsiveRule(util$i, "auto-rows-auto", {
1424
1295
  gridAutoRows: "auto"
1425
1296
  });
1426
- _responsiveRule(util$j, "auto-rows-min", {
1297
+ _responsiveRule(util$i, "auto-rows-min", {
1427
1298
  gridAutoRows: "min-content"
1428
1299
  });
1429
- _responsiveRule(util$j, "auto-rows-max", {
1300
+ _responsiveRule(util$i, "auto-rows-max", {
1430
1301
  gridAutoRows: "max-content"
1431
1302
  });
1432
- _responsiveRule(util$j, "auto-rows-fr", {
1303
+ _responsiveRule(util$i, "auto-rows-fr", {
1433
1304
  gridAutoRows: "minmax(0, 1fr)"
1434
1305
  });
1435
1306
  const gridAutoRowsStyle = {
1436
1307
  layers: {
1437
- util: util$j
1308
+ util: util$i
1438
1309
  }
1439
- }, util$i = {};
1440
- _responsiveRule(util$i, "cols-1", {
1310
+ }, util$h = {};
1311
+ _responsiveRule(util$h, "cols-1", {
1441
1312
  gridTemplateColumns: "repeat(1, 1fr)"
1442
1313
  });
1443
- _responsiveRule(util$i, "cols-2", {
1314
+ _responsiveRule(util$h, "cols-2", {
1444
1315
  gridTemplateColumns: "repeat(2, 1fr)"
1445
1316
  });
1446
- _responsiveRule(util$i, "cols-3", {
1317
+ _responsiveRule(util$h, "cols-3", {
1447
1318
  gridTemplateColumns: "repeat(3, 1fr)"
1448
1319
  });
1449
- _responsiveRule(util$i, "cols-4", {
1320
+ _responsiveRule(util$h, "cols-4", {
1450
1321
  gridTemplateColumns: "repeat(4, 1fr)"
1451
1322
  });
1452
- _responsiveRule(util$i, "cols-5", {
1323
+ _responsiveRule(util$h, "cols-5", {
1453
1324
  gridTemplateColumns: "repeat(5, 1fr)"
1454
1325
  });
1455
- _responsiveRule(util$i, "cols-6", {
1326
+ _responsiveRule(util$h, "cols-6", {
1456
1327
  gridTemplateColumns: "repeat(6, 1fr)"
1457
1328
  });
1458
- _responsiveRule(util$i, "cols-7", {
1329
+ _responsiveRule(util$h, "cols-7", {
1459
1330
  gridTemplateColumns: "repeat(7, 1fr)"
1460
1331
  });
1461
- _responsiveRule(util$i, "cols-8", {
1332
+ _responsiveRule(util$h, "cols-8", {
1462
1333
  gridTemplateColumns: "repeat(8, 1fr)"
1463
1334
  });
1464
- _responsiveRule(util$i, "cols-9", {
1335
+ _responsiveRule(util$h, "cols-9", {
1465
1336
  gridTemplateColumns: "repeat(9, 1fr)"
1466
1337
  });
1467
- _responsiveRule(util$i, "cols-10", {
1338
+ _responsiveRule(util$h, "cols-10", {
1468
1339
  gridTemplateColumns: "repeat(10, 1fr)"
1469
1340
  });
1470
- _responsiveRule(util$i, "cols-12", {
1341
+ _responsiveRule(util$h, "cols-12", {
1471
1342
  gridTemplateColumns: "repeat(12, 1fr)"
1472
1343
  });
1473
1344
  const gridColumnsStyle = {
1474
1345
  layers: {
1475
- util: util$i
1346
+ util: util$h
1476
1347
  }
1477
- }, util$h = {};
1478
- _responsiveRule(util$h, "rows-1", {
1348
+ }, util$g = {};
1349
+ _responsiveRule(util$g, "rows-1", {
1479
1350
  gridTemplateRows: "repeat(1, 1fr)"
1480
1351
  });
1481
- _responsiveRule(util$h, "rows-2", {
1352
+ _responsiveRule(util$g, "rows-2", {
1482
1353
  gridTemplateRows: "repeat(2, 1fr)"
1483
1354
  });
1484
- _responsiveRule(util$h, "rows-3", {
1355
+ _responsiveRule(util$g, "rows-3", {
1485
1356
  gridTemplateRows: "repeat(3, 1fr)"
1486
1357
  });
1487
- _responsiveRule(util$h, "rows-4", {
1358
+ _responsiveRule(util$g, "rows-4", {
1488
1359
  gridTemplateRows: "repeat(4, 1fr)"
1489
1360
  });
1490
- _responsiveRule(util$h, "rows-5", {
1361
+ _responsiveRule(util$g, "rows-5", {
1491
1362
  gridTemplateRows: "repeat(5, 1fr)"
1492
1363
  });
1493
- _responsiveRule(util$h, "rows-6", {
1364
+ _responsiveRule(util$g, "rows-6", {
1494
1365
  gridTemplateRows: "repeat(6, 1fr)"
1495
1366
  });
1496
- _responsiveRule(util$h, "rows-7", {
1367
+ _responsiveRule(util$g, "rows-7", {
1497
1368
  gridTemplateRows: "repeat(7, 1fr)"
1498
1369
  });
1499
- _responsiveRule(util$h, "rows-8", {
1370
+ _responsiveRule(util$g, "rows-8", {
1500
1371
  gridTemplateRows: "repeat(8, 1fr)"
1501
1372
  });
1502
- _responsiveRule(util$h, "rows-9", {
1373
+ _responsiveRule(util$g, "rows-9", {
1503
1374
  gridTemplateRows: "repeat(9, 1fr)"
1504
1375
  });
1505
- _responsiveRule(util$h, "rows-10", {
1376
+ _responsiveRule(util$g, "rows-10", {
1506
1377
  gridTemplateRows: "repeat(10, 1fr)"
1507
1378
  });
1508
- _responsiveRule(util$h, "rows-12", {
1379
+ _responsiveRule(util$g, "rows-12", {
1509
1380
  gridTemplateRows: "repeat(12, 1fr)"
1510
1381
  });
1511
1382
  const gridRowsStyle = {
1512
1383
  layers: {
1513
- util: util$h
1384
+ util: util$g
1514
1385
  }
1515
- }, util$g = {};
1516
- _responsiveRule(util$g, "col-auto", {
1386
+ }, util$f = {};
1387
+ _responsiveRule(util$f, "col-auto", {
1517
1388
  gridColumn: "auto"
1518
1389
  });
1519
- _responsiveRule(util$g, "col-full", {
1390
+ _responsiveRule(util$f, "col-full", {
1520
1391
  gridColumn: "1 / -1"
1521
1392
  });
1522
- _responsiveRule(util$g, "col-1", {
1393
+ _responsiveRule(util$f, "col-1", {
1523
1394
  gridColumn: "span 1 / span 1"
1524
1395
  });
1525
- _responsiveRule(util$g, "col-2", {
1396
+ _responsiveRule(util$f, "col-2", {
1526
1397
  gridColumn: "span 2 / span 2"
1527
1398
  });
1528
- _responsiveRule(util$g, "col-3", {
1399
+ _responsiveRule(util$f, "col-3", {
1529
1400
  gridColumn: "span 3 / span 3"
1530
1401
  });
1531
- _responsiveRule(util$g, "col-4", {
1402
+ _responsiveRule(util$f, "col-4", {
1532
1403
  gridColumn: "span 4 / span 4"
1533
1404
  });
1534
- _responsiveRule(util$g, "col-5", {
1405
+ _responsiveRule(util$f, "col-5", {
1535
1406
  gridColumn: "span 5 / span 5"
1536
1407
  });
1537
- _responsiveRule(util$g, "col-6", {
1408
+ _responsiveRule(util$f, "col-6", {
1538
1409
  gridColumn: "span 6 / span 6"
1539
1410
  });
1540
- _responsiveRule(util$g, "col-7", {
1411
+ _responsiveRule(util$f, "col-7", {
1541
1412
  gridColumn: "span 7 / span 7"
1542
1413
  });
1543
- _responsiveRule(util$g, "col-8", {
1414
+ _responsiveRule(util$f, "col-8", {
1544
1415
  gridColumn: "span 8 / span 8"
1545
1416
  });
1546
- _responsiveRule(util$g, "col-9", {
1417
+ _responsiveRule(util$f, "col-9", {
1547
1418
  gridColumn: "span 9 / span 9"
1548
1419
  });
1549
- _responsiveRule(util$g, "col-10", {
1420
+ _responsiveRule(util$f, "col-10", {
1550
1421
  gridColumn: "span 10 / span 10"
1551
1422
  });
1552
- _responsiveRule(util$g, "col-12", {
1423
+ _responsiveRule(util$f, "col-12", {
1553
1424
  gridColumn: "span 12 / span 12"
1554
1425
  });
1555
1426
  const gridColumnStyle = {
1556
1427
  layers: {
1557
- util: util$g
1428
+ util: util$f
1558
1429
  }
1559
- }, util$f = {};
1560
- _responsiveRule(util$f, "col-end-auto", {
1430
+ }, util$e = {};
1431
+ _responsiveRule(util$e, "col-end-auto", {
1561
1432
  gridColumnEnd: "auto"
1562
1433
  });
1563
- _responsiveRule(util$f, "col-end-1", {
1434
+ _responsiveRule(util$e, "col-end-1", {
1564
1435
  gridColumnEnd: "1"
1565
1436
  });
1566
- _responsiveRule(util$f, "col-end-2", {
1437
+ _responsiveRule(util$e, "col-end-2", {
1567
1438
  gridColumnEnd: "2"
1568
1439
  });
1569
- _responsiveRule(util$f, "col-end-3", {
1440
+ _responsiveRule(util$e, "col-end-3", {
1570
1441
  gridColumnEnd: "3"
1571
1442
  });
1572
- _responsiveRule(util$f, "col-end-4", {
1443
+ _responsiveRule(util$e, "col-end-4", {
1573
1444
  gridColumnEnd: "4"
1574
1445
  });
1575
- _responsiveRule(util$f, "col-end-5", {
1446
+ _responsiveRule(util$e, "col-end-5", {
1576
1447
  gridColumnEnd: "5"
1577
1448
  });
1578
- _responsiveRule(util$f, "col-end-6", {
1449
+ _responsiveRule(util$e, "col-end-6", {
1579
1450
  gridColumnEnd: "6"
1580
1451
  });
1581
- _responsiveRule(util$f, "col-end-7", {
1452
+ _responsiveRule(util$e, "col-end-7", {
1582
1453
  gridColumnEnd: "7"
1583
1454
  });
1584
- _responsiveRule(util$f, "col-end-8", {
1455
+ _responsiveRule(util$e, "col-end-8", {
1585
1456
  gridColumnEnd: "8"
1586
1457
  });
1587
- _responsiveRule(util$f, "col-end-9", {
1458
+ _responsiveRule(util$e, "col-end-9", {
1588
1459
  gridColumnEnd: "9"
1589
1460
  });
1590
- _responsiveRule(util$f, "col-end-10", {
1461
+ _responsiveRule(util$e, "col-end-10", {
1591
1462
  gridColumnEnd: "10"
1592
1463
  });
1593
- _responsiveRule(util$f, "col-end-11", {
1464
+ _responsiveRule(util$e, "col-end-11", {
1594
1465
  gridColumnEnd: "11"
1595
1466
  });
1596
- _responsiveRule(util$f, "col-end-12", {
1467
+ _responsiveRule(util$e, "col-end-12", {
1597
1468
  gridColumnEnd: "12"
1598
1469
  });
1599
1470
  const gridColumnEndStyle = {
1600
1471
  layers: {
1601
- util: util$f
1472
+ util: util$e
1602
1473
  }
1603
- }, util$e = {};
1604
- _responsiveRule(util$e, "col-start-auto", {
1474
+ }, util$d = {};
1475
+ _responsiveRule(util$d, "col-start-auto", {
1605
1476
  gridColumnStart: "auto"
1606
1477
  });
1607
- _responsiveRule(util$e, "col-start-1", {
1478
+ _responsiveRule(util$d, "col-start-1", {
1608
1479
  gridColumnStart: "1"
1609
1480
  });
1610
- _responsiveRule(util$e, "col-start-2", {
1481
+ _responsiveRule(util$d, "col-start-2", {
1611
1482
  gridColumnStart: "2"
1612
1483
  });
1613
- _responsiveRule(util$e, "col-start-3", {
1484
+ _responsiveRule(util$d, "col-start-3", {
1614
1485
  gridColumnStart: "3"
1615
1486
  });
1616
- _responsiveRule(util$e, "col-start-4", {
1487
+ _responsiveRule(util$d, "col-start-4", {
1617
1488
  gridColumnStart: "4"
1618
1489
  });
1619
- _responsiveRule(util$e, "col-start-5", {
1490
+ _responsiveRule(util$d, "col-start-5", {
1620
1491
  gridColumnStart: "5"
1621
1492
  });
1622
- _responsiveRule(util$e, "col-start-6", {
1493
+ _responsiveRule(util$d, "col-start-6", {
1623
1494
  gridColumnStart: "6"
1624
1495
  });
1625
- _responsiveRule(util$e, "col-start-7", {
1496
+ _responsiveRule(util$d, "col-start-7", {
1626
1497
  gridColumnStart: "7"
1627
1498
  });
1628
- _responsiveRule(util$e, "col-start-8", {
1499
+ _responsiveRule(util$d, "col-start-8", {
1629
1500
  gridColumnStart: "8"
1630
1501
  });
1631
- _responsiveRule(util$e, "col-start-9", {
1502
+ _responsiveRule(util$d, "col-start-9", {
1632
1503
  gridColumnStart: "9"
1633
1504
  });
1634
- _responsiveRule(util$e, "col-start-10", {
1505
+ _responsiveRule(util$d, "col-start-10", {
1635
1506
  gridColumnStart: "10"
1636
1507
  });
1637
- _responsiveRule(util$e, "col-start-11", {
1508
+ _responsiveRule(util$d, "col-start-11", {
1638
1509
  gridColumnStart: "11"
1639
1510
  });
1640
- _responsiveRule(util$e, "col-start-12", {
1511
+ _responsiveRule(util$d, "col-start-12", {
1641
1512
  gridColumnStart: "12"
1642
1513
  });
1643
1514
  const gridColumnStartStyle = {
1644
1515
  layers: {
1645
- util: util$e
1516
+ util: util$d
1646
1517
  }
1647
- }, util$d = {};
1648
- _responsiveRule(util$d, "row-auto", {
1518
+ }, util$c = {};
1519
+ _responsiveRule(util$c, "row-auto", {
1649
1520
  gridRow: "auto"
1650
1521
  });
1651
- _responsiveRule(util$d, "row-full", {
1522
+ _responsiveRule(util$c, "row-full", {
1652
1523
  gridRow: "1 / -1"
1653
1524
  });
1654
- _responsiveRule(util$d, "row-1", {
1525
+ _responsiveRule(util$c, "row-1", {
1655
1526
  gridRow: "span 1 / span 1"
1656
1527
  });
1657
- _responsiveRule(util$d, "row-2", {
1528
+ _responsiveRule(util$c, "row-2", {
1658
1529
  gridRow: "span 2 / span 2"
1659
1530
  });
1660
- _responsiveRule(util$d, "row-3", {
1531
+ _responsiveRule(util$c, "row-3", {
1661
1532
  gridRow: "span 3 / span 3"
1662
1533
  });
1663
- _responsiveRule(util$d, "row-4", {
1534
+ _responsiveRule(util$c, "row-4", {
1664
1535
  gridRow: "span 4 / span 4"
1665
1536
  });
1666
- _responsiveRule(util$d, "row-5", {
1537
+ _responsiveRule(util$c, "row-5", {
1667
1538
  gridRow: "span 5 / span 5"
1668
1539
  });
1669
- _responsiveRule(util$d, "row-6", {
1540
+ _responsiveRule(util$c, "row-6", {
1670
1541
  gridRow: "span 6 / span 6"
1671
1542
  });
1672
- _responsiveRule(util$d, "row-7", {
1543
+ _responsiveRule(util$c, "row-7", {
1673
1544
  gridRow: "span 7 / span 7"
1674
1545
  });
1675
- _responsiveRule(util$d, "row-8", {
1546
+ _responsiveRule(util$c, "row-8", {
1676
1547
  gridRow: "span 8 / span 8"
1677
1548
  });
1678
- _responsiveRule(util$d, "row-9", {
1549
+ _responsiveRule(util$c, "row-9", {
1679
1550
  gridRow: "span 9 / span 9"
1680
1551
  });
1681
- _responsiveRule(util$d, "row-10", {
1552
+ _responsiveRule(util$c, "row-10", {
1682
1553
  gridRow: "span 10 / span 10"
1683
1554
  });
1684
- _responsiveRule(util$d, "row-12", {
1555
+ _responsiveRule(util$c, "row-12", {
1685
1556
  gridRow: "span 12 / span 12"
1686
1557
  });
1687
1558
  const gridRowStyle = {
1688
1559
  layers: {
1689
- util: util$d
1560
+ util: util$c
1690
1561
  }
1691
- }, util$c = {};
1692
- _responsiveRule(util$c, "row-end-auto", {
1562
+ }, util$b = {};
1563
+ _responsiveRule(util$b, "row-end-auto", {
1693
1564
  gridRowEnd: "auto"
1694
1565
  });
1695
- _responsiveRule(util$c, "row-end-1", {
1566
+ _responsiveRule(util$b, "row-end-1", {
1696
1567
  gridRowEnd: "1"
1697
1568
  });
1698
- _responsiveRule(util$c, "row-end-2", {
1569
+ _responsiveRule(util$b, "row-end-2", {
1699
1570
  gridRowEnd: "2"
1700
1571
  });
1701
- _responsiveRule(util$c, "row-end-3", {
1572
+ _responsiveRule(util$b, "row-end-3", {
1702
1573
  gridRowEnd: "3"
1703
1574
  });
1704
- _responsiveRule(util$c, "row-end-4", {
1575
+ _responsiveRule(util$b, "row-end-4", {
1705
1576
  gridRowEnd: "4"
1706
1577
  });
1707
- _responsiveRule(util$c, "row-end-5", {
1578
+ _responsiveRule(util$b, "row-end-5", {
1708
1579
  gridRowEnd: "5"
1709
1580
  });
1710
- _responsiveRule(util$c, "row-end-6", {
1581
+ _responsiveRule(util$b, "row-end-6", {
1711
1582
  gridRowEnd: "6"
1712
1583
  });
1713
- _responsiveRule(util$c, "row-end-7", {
1584
+ _responsiveRule(util$b, "row-end-7", {
1714
1585
  gridRowEnd: "7"
1715
1586
  });
1716
- _responsiveRule(util$c, "row-end-8", {
1587
+ _responsiveRule(util$b, "row-end-8", {
1717
1588
  gridRowEnd: "8"
1718
1589
  });
1719
- _responsiveRule(util$c, "row-end-9", {
1590
+ _responsiveRule(util$b, "row-end-9", {
1720
1591
  gridRowEnd: "9"
1721
1592
  });
1722
- _responsiveRule(util$c, "row-end-10", {
1593
+ _responsiveRule(util$b, "row-end-10", {
1723
1594
  gridRowEnd: "10"
1724
1595
  });
1725
- _responsiveRule(util$c, "row-end-11", {
1596
+ _responsiveRule(util$b, "row-end-11", {
1726
1597
  gridRowEnd: "11"
1727
1598
  });
1728
- _responsiveRule(util$c, "row-end-12", {
1599
+ _responsiveRule(util$b, "row-end-12", {
1729
1600
  gridRowEnd: "12"
1730
1601
  });
1731
1602
  const gridRowEndStyle = {
1732
1603
  layers: {
1733
- util: util$c
1604
+ util: util$b
1734
1605
  }
1735
- }, util$b = {};
1736
- _responsiveRule(util$b, "row-start-auto", {
1606
+ }, util$a = {};
1607
+ _responsiveRule(util$a, "row-start-auto", {
1737
1608
  gridRowStart: "auto"
1738
1609
  });
1739
- _responsiveRule(util$b, "row-start-1", {
1610
+ _responsiveRule(util$a, "row-start-1", {
1740
1611
  gridRowStart: "1"
1741
1612
  });
1742
- _responsiveRule(util$b, "row-start-2", {
1613
+ _responsiveRule(util$a, "row-start-2", {
1743
1614
  gridRowStart: "2"
1744
1615
  });
1745
- _responsiveRule(util$b, "row-start-3", {
1616
+ _responsiveRule(util$a, "row-start-3", {
1746
1617
  gridRowStart: "3"
1747
1618
  });
1748
- _responsiveRule(util$b, "row-start-4", {
1619
+ _responsiveRule(util$a, "row-start-4", {
1749
1620
  gridRowStart: "4"
1750
1621
  });
1751
- _responsiveRule(util$b, "row-start-5", {
1622
+ _responsiveRule(util$a, "row-start-5", {
1752
1623
  gridRowStart: "5"
1753
1624
  });
1754
- _responsiveRule(util$b, "row-start-6", {
1625
+ _responsiveRule(util$a, "row-start-6", {
1755
1626
  gridRowStart: "6"
1756
1627
  });
1757
- _responsiveRule(util$b, "row-start-7", {
1628
+ _responsiveRule(util$a, "row-start-7", {
1758
1629
  gridRowStart: "7"
1759
1630
  });
1760
- _responsiveRule(util$b, "row-start-8", {
1631
+ _responsiveRule(util$a, "row-start-8", {
1761
1632
  gridRowStart: "8"
1762
1633
  });
1763
- _responsiveRule(util$b, "row-start-9", {
1634
+ _responsiveRule(util$a, "row-start-9", {
1764
1635
  gridRowStart: "9"
1765
1636
  });
1766
- _responsiveRule(util$b, "row-start-10", {
1637
+ _responsiveRule(util$a, "row-start-10", {
1767
1638
  gridRowStart: "10"
1768
1639
  });
1769
- _responsiveRule(util$b, "row-start-11", {
1640
+ _responsiveRule(util$a, "row-start-11", {
1770
1641
  gridRowStart: "11"
1771
1642
  });
1772
- _responsiveRule(util$b, "row-start-12", {
1643
+ _responsiveRule(util$a, "row-start-12", {
1773
1644
  gridRowStart: "12"
1774
1645
  });
1775
1646
  const gridRowStartStyle = {
1776
1647
  layers: {
1777
- util: util$b
1648
+ util: util$a
1778
1649
  }
1779
- }, util$a = {};
1780
- _responsiveRule(util$a, "h-fill", {
1650
+ }, util$9 = {};
1651
+ _responsiveRule(util$9, "h-fill", {
1781
1652
  height: "100%"
1782
1653
  });
1783
- _responsiveRule(util$a, "h-stretch", {
1654
+ _responsiveRule(util$9, "h-stretch", {
1784
1655
  height: "stretch"
1785
1656
  });
1786
1657
  const heightStyle = {
1787
1658
  layers: {
1788
- util: util$a
1659
+ util: util$9
1789
1660
  }
1790
- }, util$9 = {};
1791
- _responsiveRule(util$9, "inset-0", {
1661
+ }, util$8 = {};
1662
+ _responsiveRule(util$8, "inset-0", {
1792
1663
  top: 0,
1793
1664
  left: 0,
1794
1665
  right: 0,
1795
1666
  bottom: 0
1796
1667
  });
1797
- _responsiveRule(util$9, "top-0", {
1668
+ _responsiveRule(util$8, "top-0", {
1798
1669
  top: 0
1799
1670
  });
1800
- _responsiveRule(util$9, "right-0", {
1671
+ _responsiveRule(util$8, "right-0", {
1801
1672
  right: 0
1802
1673
  });
1803
- _responsiveRule(util$9, "bottom-0", {
1674
+ _responsiveRule(util$8, "bottom-0", {
1804
1675
  bottom: 0
1805
1676
  });
1806
- _responsiveRule(util$9, "left-0", {
1677
+ _responsiveRule(util$8, "left-0", {
1807
1678
  left: 0
1808
1679
  });
1809
1680
  const insetStyle = {
1810
1681
  layers: {
1811
- util: util$9
1682
+ util: util$8
1812
1683
  }
1813
- }, util$8 = {};
1684
+ }, util$7 = {};
1814
1685
  for (const space of SPACE)
1815
- _responsiveRule(util$8, `m-${space}`, {
1686
+ _responsiveRule(util$7, `m-${space}`, {
1816
1687
  margin: vars.space[space]
1817
1688
  });
1818
1689
  for (const space of SPACE)
1819
- _responsiveRule(util$8, `mx-${space}`, {
1690
+ _responsiveRule(util$7, `mx-${space}`, {
1820
1691
  marginLeft: vars.space[space],
1821
1692
  marginRight: vars.space[space]
1822
1693
  });
1823
1694
  for (const space of SPACE)
1824
- _responsiveRule(util$8, `my-${space}`, {
1695
+ _responsiveRule(util$7, `my-${space}`, {
1825
1696
  marginTop: vars.space[space],
1826
1697
  marginBottom: vars.space[space]
1827
1698
  });
1828
1699
  for (const space of SPACE)
1829
- _responsiveRule(util$8, `mt-${space}`, {
1700
+ _responsiveRule(util$7, `mt-${space}`, {
1830
1701
  marginTop: vars.space[space]
1831
1702
  });
1832
1703
  for (const space of SPACE)
1833
- _responsiveRule(util$8, `mr-${space}`, {
1704
+ _responsiveRule(util$7, `mr-${space}`, {
1834
1705
  marginRight: vars.space[space]
1835
1706
  });
1836
1707
  for (const space of SPACE)
1837
- _responsiveRule(util$8, `mb-${space}`, {
1708
+ _responsiveRule(util$7, `mb-${space}`, {
1838
1709
  marginBottom: vars.space[space]
1839
1710
  });
1840
1711
  for (const space of SPACE)
1841
- _responsiveRule(util$8, `ml-${space}`, {
1712
+ _responsiveRule(util$7, `ml-${space}`, {
1842
1713
  marginLeft: vars.space[space]
1843
1714
  });
1844
1715
  const marginStyle = {
1845
1716
  layers: {
1846
- util: util$8
1717
+ util: util$7
1847
1718
  }
1848
- }, util$7 = {};
1849
- _responsiveRule(util$7, "max-w-0", {
1719
+ }, util$6 = {};
1720
+ _responsiveRule(util$6, "max-w-0", {
1850
1721
  maxWidth: vars.container[0]
1851
1722
  });
1852
- _responsiveRule(util$7, "max-w-1", {
1723
+ _responsiveRule(util$6, "max-w-1", {
1853
1724
  maxWidth: vars.container[1]
1854
1725
  });
1855
- _responsiveRule(util$7, "max-w-2", {
1726
+ _responsiveRule(util$6, "max-w-2", {
1856
1727
  maxWidth: vars.container[2]
1857
1728
  });
1858
- _responsiveRule(util$7, "max-w-3", {
1729
+ _responsiveRule(util$6, "max-w-3", {
1859
1730
  maxWidth: vars.container[3]
1860
1731
  });
1861
- _responsiveRule(util$7, "max-w-4", {
1732
+ _responsiveRule(util$6, "max-w-4", {
1862
1733
  maxWidth: vars.container[4]
1863
1734
  });
1864
- _responsiveRule(util$7, "max-w-5", {
1735
+ _responsiveRule(util$6, "max-w-5", {
1865
1736
  maxWidth: vars.container[5]
1866
1737
  });
1867
- _responsiveRule(util$7, "max-w-auto", {
1738
+ _responsiveRule(util$6, "max-w-auto", {
1868
1739
  maxWidth: "none"
1869
1740
  });
1870
- _responsiveRule(util$7, "max-w-fill", {
1741
+ _responsiveRule(util$6, "max-w-fill", {
1871
1742
  maxWidth: "100%"
1872
1743
  });
1873
1744
  const maxWidthStyle = {
1874
- layers: {
1875
- util: util$7
1876
- }
1877
- }, util$6 = {};
1878
- _responsiveRule(util$6, "min-w-0", {
1879
- minWidth: "0"
1880
- });
1881
- _responsiveRule(util$6, "min-w-auto", {
1882
- minWidth: "auto"
1883
- });
1884
- _responsiveRule(util$6, "min-w-full", {
1885
- minWidth: "100%"
1886
- });
1887
- _responsiveRule(util$6, "min-w-min", {
1888
- minWidth: "min-content"
1889
- });
1890
- _responsiveRule(util$6, "min-w-max", {
1891
- minWidth: "max-content"
1892
- });
1893
- _responsiveRule(util$6, "min-w-fit", {
1894
- minWidth: "fit-content"
1895
- });
1896
- const minWidthStyle = {
1897
1745
  layers: {
1898
1746
  util: util$6
1899
1747
  }
@@ -2290,7 +2138,7 @@ const skeletonStyle = {
2290
2138
  layers: {
2291
2139
  component
2292
2140
  }
2293
- }, primitive$p = {
2141
+ }, primitive$o = {
2294
2142
  ".arrow": {
2295
2143
  position: "absolute",
2296
2144
  // todo: replace with vars?
@@ -2342,9 +2190,9 @@ const skeletonStyle = {
2342
2190
  }
2343
2191
  }, _arrowStyle = {
2344
2192
  layers: {
2345
- primitive: primitive$p
2193
+ primitive: primitive$o
2346
2194
  }
2347
- }, primitive$o = {
2195
+ }, primitive$n = {
2348
2196
  ".input": {
2349
2197
  position: "relative"
2350
2198
  },
@@ -2448,7 +2296,7 @@ const skeletonStyle = {
2448
2296
  };
2449
2297
  for (const textSize of FONT_TEXT_SIZE) {
2450
2298
  const source = vars.font.text.sizes[textSize];
2451
- primitive$o[`.input-${textSize}`] = {
2299
+ primitive$n[`.input-${textSize}`] = {
2452
2300
  [varNames.input.fontSize]: source.fontSize,
2453
2301
  [varNames.input.lineHeight]: source.lineHeight,
2454
2302
  [varNames.input.letterSpacing]: source.letterSpacing,
@@ -2457,26 +2305,26 @@ for (const textSize of FONT_TEXT_SIZE) {
2457
2305
  };
2458
2306
  }
2459
2307
  for (const space of SPACE)
2460
- primitive$o[`.input-p-${space}`] = {
2308
+ primitive$n[`.input-p-${space}`] = {
2461
2309
  [varNames.input.padding]: vars.space[space]
2462
2310
  };
2463
2311
  for (const space of SPACE)
2464
- primitive$o[`.input-g-${space}`] = {
2312
+ primitive$n[`.input-g-${space}`] = {
2465
2313
  [varNames.input.gap]: vars.space[space]
2466
2314
  };
2467
2315
  const _inputStyle = {
2468
2316
  layers: {
2469
- primitive: primitive$o
2317
+ primitive: primitive$n
2470
2318
  }
2471
2319
  }, toneMap$2 = {
2472
- default: "default",
2320
+ default: "surface",
2473
2321
  neutral: "neutral",
2474
2322
  suggest: "suggest",
2475
2323
  primary: "accent",
2476
2324
  positive: "positive",
2477
2325
  caution: "caution",
2478
2326
  critical: "critical"
2479
- }, primitive$n = {
2327
+ }, primitive$m = {
2480
2328
  ".selectable": {
2481
2329
  backgroundColor: vars.color.bg,
2482
2330
  color: vars.color.fg,
@@ -2541,7 +2389,7 @@ const _inputStyle = {
2541
2389
  }
2542
2390
  }, _selectableStyle = {
2543
2391
  layers: {
2544
- primitive: primitive$n
2392
+ primitive: primitive$m
2545
2393
  }
2546
2394
  };
2547
2395
  function buildSelectableTones() {
@@ -2583,7 +2431,7 @@ function buildSelectableTones() {
2583
2431
  }
2584
2432
  return rules2;
2585
2433
  }
2586
- const primitive$m = {
2434
+ const primitive$l = {
2587
2435
  ".avatar": {
2588
2436
  backgroundColor: vars.color.avatar.bg,
2589
2437
  position: "relative",
@@ -2620,11 +2468,11 @@ const primitive$m = {
2620
2468
  [varNames.color.avatar.bg]: vars.color.border,
2621
2469
  [varNames.color.avatar.fg]: vars.color.bg
2622
2470
  },
2623
- ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color2) => ({
2471
+ ...THEME_COLOR_AVATAR_COLORS.reduce((acc, color) => ({
2624
2472
  ...acc,
2625
- [`&.${color2}`]: {
2626
- [varNames.color.avatar.bg]: vars.color.avatar[color2].bg,
2627
- [varNames.color.avatar.fg]: vars.color.avatar[color2].fg
2473
+ [`&.${color}`]: {
2474
+ [varNames.color.avatar.bg]: vars.color.avatar[color].bg,
2475
+ [varNames.color.avatar.fg]: vars.color.avatar[color].fg
2628
2476
  }
2629
2477
  }), {})
2630
2478
  }
@@ -2715,15 +2563,15 @@ const primitive$m = {
2715
2563
  }
2716
2564
  };
2717
2565
  for (const size of AVATAR_SIZE)
2718
- _responsiveRule(primitive$m, `avatar-${size}`, {
2566
+ _responsiveRule(primitive$l, `avatar-${size}`, {
2719
2567
  [varNames.avatar.distance]: vars.avatar.sizes[size].distance,
2720
2568
  [varNames.avatar.size]: vars.avatar.sizes[size].size
2721
2569
  });
2722
2570
  const avatarStyle = {
2723
2571
  layers: {
2724
- primitive: primitive$m
2572
+ primitive: primitive$l
2725
2573
  }
2726
- }, primitive$l = {
2574
+ }, primitive$k = {
2727
2575
  ".badge": {
2728
2576
  backgroundColor: vars.color.bg,
2729
2577
  color: vars.color.fg,
@@ -2731,17 +2579,17 @@ const avatarStyle = {
2731
2579
  }
2732
2580
  };
2733
2581
  for (const tone of THEME_COLOR_STATE_TONES)
2734
- primitive$l[`.badge-${tone}`] = {
2582
+ primitive$k[`.badge-${tone}`] = {
2735
2583
  [varNames.color.bg]: vars.color.tinted[tone].bg[4],
2736
- [varNames.color.fg]: vars.color.tinted[tone].fg[3]
2584
+ [varNames.color.fg]: vars.color.tinted[tone].fg[1]
2737
2585
  };
2738
2586
  const badgeStyle = {
2739
2587
  layers: {
2740
- primitive: primitive$l
2588
+ primitive: primitive$k
2741
2589
  }
2742
- }, primitive$k = {
2590
+ }, primitive$j = {
2743
2591
  ".box": {
2744
- // todo: move to aspects
2592
+ minWidth: 0,
2745
2593
  minHeight: 0,
2746
2594
  "@nest": {
2747
2595
  "&:is(ul), &:is(ol)": {
@@ -2761,10 +2609,10 @@ const badgeStyle = {
2761
2609
  }
2762
2610
  }, boxStyle = {
2763
2611
  layers: {
2764
- primitive: primitive$k
2612
+ primitive: primitive$j
2765
2613
  }
2766
2614
  }, toneMap$1 = {
2767
- default: "default",
2615
+ default: "surface",
2768
2616
  neutral: "neutral",
2769
2617
  suggest: "suggest",
2770
2618
  primary: "accent",
@@ -2775,7 +2623,7 @@ const badgeStyle = {
2775
2623
  default: "solid",
2776
2624
  ghost: "ghost",
2777
2625
  bleed: "tinted"
2778
- }, primitive$j = {
2626
+ }, primitive$i = {
2779
2627
  ".button": {
2780
2628
  WebkitFontSmoothing: "inherit",
2781
2629
  appearance: "none",
@@ -2794,8 +2642,6 @@ const badgeStyle = {
2794
2642
  backgroundColor: vars.color.bg,
2795
2643
  color: vars.color.fg,
2796
2644
  boxShadow: "var(--button-box-shadow)",
2797
- alignItems: "center",
2798
- // 'justifyContent': 'center',
2799
2645
  "@nest": {
2800
2646
  "&::-moz-focus-inner": {
2801
2647
  border: 0,
@@ -2824,11 +2670,10 @@ const badgeStyle = {
2824
2670
  };
2825
2671
  for (const tone of THEME_COLOR_STATE_TONES) {
2826
2672
  const solid = vars.color.solid[tone], tinted = vars.color.tinted[tone];
2827
- primitive$j[`.button.${variantMap.default}.${toneMap$1[tone]}`] = {
2673
+ primitive$i[`.button.${variantMap.default}.${toneMap$1[tone]}`] = {
2828
2674
  [varNames.color.bg]: solid.bg[0],
2829
2675
  [varNames.color.border]: solid.border[1],
2830
2676
  [varNames.color.fg]: solid.fg[0],
2831
- [varNames.color.muted.bg]: solid.bg[1],
2832
2677
  [varNames.color.muted.fg]: solid.fg[4],
2833
2678
  "--button-box-shadow": "none",
2834
2679
  "@nest": {
@@ -2836,77 +2681,62 @@ for (const tone of THEME_COLOR_STATE_TONES) {
2836
2681
  [varNames.color.bg]: solid.bg[1],
2837
2682
  [varNames.color.border]: solid.border[2],
2838
2683
  [varNames.color.fg]: solid.fg[0],
2839
- [varNames.color.muted.bg]: solid.bg[2],
2840
2684
  [varNames.color.muted.fg]: solid.fg[4]
2841
2685
  },
2842
2686
  "&:not([data-disabled]):active": {
2843
2687
  [varNames.color.bg]: solid.bg[2],
2844
2688
  [varNames.color.border]: solid.border[3],
2845
2689
  [varNames.color.fg]: solid.fg[0],
2846
- [varNames.color.muted.bg]: solid.bg[3],
2847
2690
  [varNames.color.muted.fg]: solid.fg[4]
2848
2691
  },
2849
2692
  "&:not([data-disabled])[data-selected]": {
2850
2693
  [varNames.color.bg]: solid.bg[2],
2851
2694
  [varNames.color.border]: solid.border[3],
2852
2695
  [varNames.color.fg]: solid.fg[0],
2853
- [varNames.color.muted.bg]: solid.bg[3],
2854
2696
  [varNames.color.muted.fg]: solid.fg[4]
2855
2697
  },
2856
2698
  "&[data-disabled]": {
2857
2699
  [varNames.color.bg]: vars.color.default.tinted.bg[1],
2858
2700
  [varNames.color.border]: vars.color.default.tinted.border[0],
2859
2701
  [varNames.color.fg]: vars.color.default.tinted.fg[2],
2860
- [varNames.color.muted.bg]: vars.color.default.tinted.bg[2],
2861
2702
  [varNames.color.muted.fg]: vars.color.default.tinted.fg[1]
2862
2703
  }
2863
2704
  }
2864
- }, primitive$j[`.button.${variantMap.ghost}.${toneMap$1[tone]}`] = {
2865
- [varNames.color.bg]: tinted.bg[1],
2866
- [varNames.color.border]: tinted.border[0],
2705
+ }, primitive$i[`.button.${variantMap.ghost}.${toneMap$1[tone]}`] = {
2706
+ [varNames.color.bg]: tinted.bg[0],
2707
+ [varNames.color.border]: tinted.border[1],
2867
2708
  [varNames.color.fg]: tinted.fg[2],
2868
- [varNames.color.muted.bg]: tinted.bg[2],
2869
- [varNames.color.muted.fg]: tinted.fg[4],
2870
- "--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)",
2709
+ "--button-box-shadow": ["inset 0 0 0 var(--button-border-width) var(--color-border)", "inset 0 -1.5px 0 0.5px var(--color-shadow-umbra)"].join(","),
2871
2710
  "@nest": {
2872
2711
  "&:not([data-disabled]):hover": {
2873
- [varNames.color.bg]: tinted.bg[2],
2874
- [varNames.color.border]: tinted.border[1],
2875
- [varNames.color.fg]: tinted.fg[1],
2876
- [varNames.color.muted.bg]: tinted.bg[3],
2877
- [varNames.color.muted.fg]: tinted.fg[3]
2712
+ [varNames.color.bg]: tinted.bg[1],
2713
+ [varNames.color.border]: tinted.border[2],
2714
+ [varNames.color.fg]: tinted.fg[1]
2878
2715
  // '--button-box-shadow': `inset 0 0 0 var(--button-border-width) var(--color-border)`,
2879
2716
  },
2880
2717
  "&:not([data-disabled]):active": {
2881
- [varNames.color.bg]: tinted.bg[3],
2882
- [varNames.color.border]: tinted.border[2],
2718
+ [varNames.color.bg]: tinted.bg[2],
2719
+ [varNames.color.border]: tinted.border[3],
2883
2720
  [varNames.color.fg]: tinted.fg[1],
2884
- [varNames.color.muted.bg]: tinted.bg[4],
2885
- [varNames.color.muted.fg]: tinted.fg[3],
2886
2721
  "--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)"
2887
2722
  },
2888
2723
  "&:not([data-disabled])[data-selected]": {
2889
- [varNames.color.bg]: tinted.bg[3],
2890
- [varNames.color.border]: tinted.border[2],
2724
+ [varNames.color.bg]: tinted.bg[2],
2725
+ [varNames.color.border]: tinted.border[3],
2891
2726
  [varNames.color.fg]: tinted.fg[1],
2892
- [varNames.color.muted.bg]: tinted.bg[4],
2893
- [varNames.color.muted.fg]: tinted.fg[3],
2894
2727
  "--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)"
2895
2728
  },
2896
2729
  "&[data-disabled]": {
2897
- [varNames.color.bg]: vars.color.default.tinted.bg[1],
2730
+ [varNames.color.bg]: vars.color.default.tinted.bg[0],
2898
2731
  [varNames.color.border]: vars.color.default.tinted.border[0],
2899
- [varNames.color.fg]: vars.color.default.tinted.fg[2],
2900
- [varNames.color.muted.bg]: vars.color.default.tinted.bg[2],
2901
- [varNames.color.muted.fg]: vars.color.default.tinted.fg[1]
2732
+ [varNames.color.fg]: vars.color.default.tinted.fg[2]
2902
2733
  }
2903
2734
  }
2904
- }, primitive$j[`.button.${variantMap.bleed}.${toneMap$1[tone]}`] = {
2735
+ }, primitive$i[`.button.${variantMap.bleed}.${toneMap$1[tone]}`] = {
2905
2736
  boxShadow: "none",
2906
2737
  [varNames.color.bg]: tinted.bg[0],
2907
2738
  [varNames.color.border]: tinted.border[1],
2908
2739
  [varNames.color.fg]: tinted.fg[2],
2909
- [varNames.color.muted.bg]: tinted.bg[1],
2910
2740
  [varNames.color.muted.fg]: tinted.fg[4],
2911
2741
  "--button-box-shadow": "none",
2912
2742
  "@nest": {
@@ -2914,28 +2744,24 @@ for (const tone of THEME_COLOR_STATE_TONES) {
2914
2744
  [varNames.color.bg]: tinted.bg[1],
2915
2745
  [varNames.color.border]: tinted.border[2],
2916
2746
  [varNames.color.fg]: tinted.fg[1],
2917
- [varNames.color.muted.bg]: tinted.bg[2],
2918
2747
  [varNames.color.muted.fg]: tinted.fg[3]
2919
2748
  },
2920
2749
  "&:not([data-disabled]):active": {
2921
2750
  [varNames.color.bg]: tinted.bg[2],
2922
2751
  [varNames.color.border]: tinted.border[3],
2923
2752
  [varNames.color.fg]: tinted.fg[1],
2924
- [varNames.color.muted.bg]: tinted.bg[3],
2925
2753
  [varNames.color.muted.fg]: tinted.fg[3]
2926
2754
  },
2927
2755
  "&:not([data-disabled])[data-selected]": {
2928
2756
  [varNames.color.bg]: tinted.bg[2],
2929
2757
  [varNames.color.border]: tinted.border[3],
2930
2758
  [varNames.color.fg]: tinted.fg[1],
2931
- [varNames.color.muted.bg]: tinted.bg[3],
2932
2759
  [varNames.color.muted.fg]: tinted.fg[3]
2933
2760
  },
2934
2761
  "&[data-disabled]": {
2935
2762
  [varNames.color.bg]: vars.color.default.tinted.bg[0],
2936
2763
  [varNames.color.border]: vars.color.default.tinted.border[0],
2937
2764
  [varNames.color.fg]: vars.color.default.tinted.fg[2],
2938
- [varNames.color.muted.bg]: vars.color.default.tinted.bg[1],
2939
2765
  [varNames.color.muted.fg]: vars.color.default.tinted.fg[1]
2940
2766
  }
2941
2767
  }
@@ -2943,11 +2769,11 @@ for (const tone of THEME_COLOR_STATE_TONES) {
2943
2769
  }
2944
2770
  const buttonStyle = {
2945
2771
  layers: {
2946
- primitive: primitive$j
2772
+ primitive: primitive$i
2947
2773
  }
2948
2774
  }, toneMap = {
2949
- transparent: "transparent",
2950
- default: "default",
2775
+ transparent: "canvas",
2776
+ default: "surface",
2951
2777
  neutral: "neutral",
2952
2778
  suggest: "suggest",
2953
2779
  primary: "accent",
@@ -2955,19 +2781,17 @@ const buttonStyle = {
2955
2781
  caution: "caution",
2956
2782
  critical: "critical",
2957
2783
  inherit: void 0
2958
- }, primitive$i = {
2784
+ }, primitive$h = {
2959
2785
  ".card": {
2960
2786
  backgroundColor: vars.color.bg,
2961
2787
  color: vars.color.fg,
2962
2788
  [varNames.color.bg]: vars.color.tinted.default.bg[0],
2963
2789
  [varNames.color.border]: vars.color.tinted.default.border[1],
2964
- [varNames.color.code.bg]: vars.color.code.bg,
2965
- [varNames.color.code.fg]: vars.color.code.fg,
2966
2790
  [varNames.color.fg]: vars.color.tinted.default.fg[0],
2967
2791
  [varNames.color.muted.bg]: vars.color.tinted.default.bg[1],
2968
2792
  [varNames.color.muted.fg]: vars.color.tinted.default.fg[4],
2969
2793
  "@nest": {
2970
- "button&": {
2794
+ "&:is(button)": {
2971
2795
  WebkitFontSmoothing: "inherit",
2972
2796
  appearance: "none",
2973
2797
  outline: "none",
@@ -2977,72 +2801,14 @@ const buttonStyle = {
2977
2801
  // @ts-expect-error - TODO: fix
2978
2802
  width: ["-moz-available", "-webkit-fill-available", "fill-available"]
2979
2803
  },
2980
- "a&": {
2981
- // border: 'none',
2804
+ "&:is(a)": {
2982
2805
  outline: "none",
2983
2806
  textDecoration: "none"
2984
2807
  },
2985
- "pre&": {
2808
+ "&:is(pre)": {
2986
2809
  font: "inherit",
2987
2810
  whiteSpace: "inherit"
2988
- },
2989
- "a&:not([data-disabled]):hover, button&:not([data-disabled]):hover": {
2990
- [varNames.color.bg]: vars.color.tinted.default.bg[1],
2991
- [varNames.color.border]: vars.color.tinted.default.border[3],
2992
- [varNames.color.fg]: vars.color.tinted.default.fg[1],
2993
- [varNames.color.muted.bg]: vars.color.tinted.default.bg[2],
2994
- [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
2995
- },
2996
- "a&:not([data-disabled]):active, button&:not([data-disabled]):active": {
2997
- [varNames.color.bg]: vars.color.tinted.default.bg[2],
2998
- [varNames.color.border]: vars.color.tinted.default.border[4],
2999
- [varNames.color.fg]: vars.color.tinted.default.fg[0],
3000
- [varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
3001
- [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
3002
- },
3003
- // toggle button
3004
- 'a&:not([data-disabled])[aria-pressed="true"], button&:not([data-disabled])[aria-pressed="true"]': {
3005
- [varNames.color.bg]: vars.color.tinted.default.bg[2],
3006
- [varNames.color.border]: vars.color.tinted.default.border[4],
3007
- [varNames.color.fg]: vars.color.tinted.default.fg[0],
3008
- [varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
3009
- [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
3010
- },
3011
- "a&:not([data-disabled])[data-pressed], button&:not([data-disabled])[data-pressed]": {
3012
- [varNames.color.bg]: vars.color.tinted.default.bg[2],
3013
- [varNames.color.border]: vars.color.tinted.default.border[4],
3014
- [varNames.color.fg]: vars.color.tinted.default.fg[0],
3015
- [varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
3016
- [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
3017
- },
3018
- "a&:not([data-disabled])[data-selected], button&:not([data-disabled])[data-selected]": {
3019
- [varNames.color.bg]: vars.color.solid.primary.bg[0],
3020
- [varNames.color.border]: vars.color.solid.primary.border[1],
3021
- [varNames.color.fg]: vars.color.solid.primary.fg[0],
3022
- [varNames.color.muted.bg]: vars.color.solid.primary.bg[1],
3023
- [varNames.color.muted.fg]: vars.color.solid.primary.fg[3]
3024
- },
3025
- // '&:not([data-disabled]):focus': {
3026
- // '--color-bg': vars.color.solid.bg[0],
3027
- // '--color-border': vars.color.solid.border[1],
3028
- // '--color-fg': vars.color.solid.fg[1],
3029
- // '--color-muted-bg': vars.color.solid.bg[1],
3030
- // '--color-muted-fg': vars.color.solid.fg[3],
3031
- // },
3032
- "a&[data-disabled]), button&[data-disabled]": {
3033
- [varNames.color.bg]: vars.color.tinted.default.bg[2],
3034
- [varNames.color.border]: vars.color.tinted.default.border[4],
3035
- [varNames.color.fg]: vars.color.tinted.default.fg[0],
3036
- [varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
3037
- [varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
3038
2811
  }
3039
- // '&[data-disabled]': {
3040
- // '--color-bg': vars.color.tinted.bg[0],
3041
- // '--color-border': vars.color.tinted.border[1],
3042
- // '--color-fg': vars.color.tinted.border[4],
3043
- // '--color-muted-bg': vars.color.tinted.bg[1],
3044
- // '--color-muted-fg': vars.color.tinted.border[4],
3045
- // },
3046
2812
  }
3047
2813
  }
3048
2814
  };
@@ -3054,7 +2820,7 @@ for (const scheme of THEME_COLOR_SCHEMES$1) {
3054
2820
  const _varNames = varNames.color[tone], _vars = vars.color[scheme][tone];
3055
2821
  _assignToneProps(schemeProps, _varNames, _vars);
3056
2822
  }
3057
- primitive$i[`.card.${scheme}`] = schemeProps;
2823
+ primitive$h[`.card.${scheme}`] = schemeProps;
3058
2824
  }
3059
2825
  for (const tone of THEME_COLOR_CARD_TONES) {
3060
2826
  const _varNames = varNames.color, _vars = vars.color[tone], toneProps = {};
@@ -3062,12 +2828,10 @@ for (const tone of THEME_COLOR_CARD_TONES) {
3062
2828
  "--card-bg-color": vars.color.bg,
3063
2829
  "--card-bg2-color": vars.color.muted.bg,
3064
2830
  "--card-border-color": vars.color.border,
3065
- "--card-code-bg-color": vars.color.code.bg,
3066
- "--card-code-fg-color": vars.color.code.fg,
2831
+ "--card-code-bg-color": vars.color.muted.bg,
2832
+ "--card-code-fg-color": vars.color.tinted.default.fg[4],
3067
2833
  "--card-fg-color": vars.color.fg,
3068
2834
  "--card-focus-ring-color": vars.color.focusRing,
3069
- "--card-hairline-soft-color": vars.color.tinted.default.border[1],
3070
- "--card-hairline-hard-color": vars.color.tinted.default.border[2],
3071
2835
  "--card-icon-color": vars.color.fg,
3072
2836
  "--card-kbd-bg-color": vars.color.muted.bg,
3073
2837
  "--card-kbd-border-color": vars.color.tinted.default.border[1],
@@ -3079,14 +2843,16 @@ for (const tone of THEME_COLOR_CARD_TONES) {
3079
2843
  "--card-shadow-outline-color": vars.color.shadow.outline,
3080
2844
  "--card-shadow-umbra-color": vars.color.shadow.umbra,
3081
2845
  "--card-shadow-penumbra-color": vars.color.shadow.penumbra,
3082
- "--card-shadow-ambient-color": vars.color.shadow.ambient
2846
+ "--card-shadow-ambient-color": vars.color.shadow.ambient,
3083
2847
  // '--card-skeleton-from-color': 'var(--color-skeleton-from)',
3084
2848
  // '--card-skeleton-to-color': 'var(--color-skeleton-to)',
3085
- }), primitive$i[`.card.${toneMap[tone]}`] = toneProps;
2849
+ "--card-hairline-soft-color": vars.color.tinted.default.border[1],
2850
+ "--card-hairline-hard-color": vars.color.tinted.default.border[2]
2851
+ }), primitive$h[`.card.${toneMap[tone]}`] = toneProps;
3086
2852
  }
3087
2853
  const cardStyle = {
3088
2854
  layers: {
3089
- primitive: primitive$i
2855
+ primitive: primitive$h
3090
2856
  }
3091
2857
  };
3092
2858
  function _assignToneProps(toneProps, _varNames, _vars) {
@@ -3097,50 +2863,48 @@ function _assignToneProps(toneProps, _varNames, _vars) {
3097
2863
  toneProps[`${_varNames.avatar[hue].bg}`] = _vars.avatar[hue].bg, toneProps[`${_varNames.avatar[hue].fg}`] = _vars.avatar[hue].fg;
3098
2864
  Object.assign(toneProps, {
3099
2865
  [_varNames.backdrop]: _vars.backdrop,
3100
- [_varNames.code.fg]: _vars.code.fg,
3101
- [_varNames.code.bg]: _vars.code.bg,
3102
- [_varNames.code.token.atrule]: _vars.code.token.atrule,
3103
- [_varNames.code.token.attrName]: _vars.code.token.attrName,
3104
- [_varNames.code.token.attrValue]: _vars.code.token.attrValue,
3105
- [_varNames.code.token.attribute]: _vars.code.token.attribute,
3106
- [_varNames.code.token.boolean]: _vars.code.token.boolean,
3107
- [_varNames.code.token.builtin]: _vars.code.token.builtin,
3108
- [_varNames.code.token.cdata]: _vars.code.token.cdata,
3109
- [_varNames.code.token.char]: _vars.code.token.char,
3110
- [_varNames.code.token.class]: _vars.code.token.class,
3111
- [_varNames.code.token.className]: _vars.code.token.className,
3112
- [_varNames.code.token.comment]: _vars.code.token.comment,
3113
- [_varNames.code.token.constant]: _vars.code.token.constant,
3114
- [_varNames.code.token.deleted]: _vars.code.token.deleted,
3115
- [_varNames.code.token.doctype]: _vars.code.token.doctype,
3116
- [_varNames.code.token.entity]: _vars.code.token.entity,
3117
- [_varNames.code.token.function]: _vars.code.token.function,
3118
- [_varNames.code.token.hexcode]: _vars.code.token.hexcode,
3119
- [_varNames.code.token.id]: _vars.code.token.id,
3120
- [_varNames.code.token.important]: _vars.code.token.important,
3121
- [_varNames.code.token.inserted]: _vars.code.token.inserted,
3122
- [_varNames.code.token.keyword]: _vars.code.token.keyword,
3123
- [_varNames.code.token.number]: _vars.code.token.number,
3124
- [_varNames.code.token.operator]: _vars.code.token.operator,
3125
- [_varNames.code.token.prolog]: _vars.code.token.prolog,
3126
- [_varNames.code.token.property]: _vars.code.token.property,
3127
- [_varNames.code.token.pseudoClass]: _vars.code.token.pseudoClass,
3128
- [_varNames.code.token.pseudoElement]: _vars.code.token.pseudoElement,
3129
- [_varNames.code.token.punctuation]: _vars.code.token.punctuation,
3130
- [_varNames.code.token.regex]: _vars.code.token.regex,
3131
- [_varNames.code.token.selector]: _vars.code.token.selector,
3132
- [_varNames.code.token.string]: _vars.code.token.string,
3133
- [_varNames.code.token.symbol]: _vars.code.token.symbol,
3134
- [_varNames.code.token.tag]: _vars.code.token.tag,
3135
- [_varNames.code.token.unit]: _vars.code.token.unit,
3136
- [_varNames.code.token.url]: _vars.code.token.url,
3137
- [_varNames.code.token.variable]: _vars.code.token.variable,
3138
2866
  [_varNames.focusRing]: _vars.focusRing,
3139
2867
  [_varNames.link.fg]: _vars.link.fg,
3140
2868
  [_varNames.shadow.outline]: _vars.shadow.outline,
3141
2869
  [_varNames.shadow.umbra]: _vars.shadow.umbra,
3142
2870
  [_varNames.shadow.penumbra]: _vars.shadow.penumbra,
3143
- [_varNames.shadow.ambient]: _vars.shadow.ambient
2871
+ [_varNames.shadow.ambient]: _vars.shadow.ambient,
2872
+ [_varNames.token.atrule]: _vars.token.atrule,
2873
+ [_varNames.token.attrName]: _vars.token.attrName,
2874
+ [_varNames.token.attrValue]: _vars.token.attrValue,
2875
+ [_varNames.token.attribute]: _vars.token.attribute,
2876
+ [_varNames.token.boolean]: _vars.token.boolean,
2877
+ [_varNames.token.builtin]: _vars.token.builtin,
2878
+ [_varNames.token.cdata]: _vars.token.cdata,
2879
+ [_varNames.token.char]: _vars.token.char,
2880
+ [_varNames.token.class]: _vars.token.class,
2881
+ [_varNames.token.className]: _vars.token.className,
2882
+ [_varNames.token.comment]: _vars.token.comment,
2883
+ [_varNames.token.constant]: _vars.token.constant,
2884
+ [_varNames.token.deleted]: _vars.token.deleted,
2885
+ [_varNames.token.doctype]: _vars.token.doctype,
2886
+ [_varNames.token.entity]: _vars.token.entity,
2887
+ [_varNames.token.function]: _vars.token.function,
2888
+ [_varNames.token.hexcode]: _vars.token.hexcode,
2889
+ [_varNames.token.id]: _vars.token.id,
2890
+ [_varNames.token.important]: _vars.token.important,
2891
+ [_varNames.token.inserted]: _vars.token.inserted,
2892
+ [_varNames.token.keyword]: _vars.token.keyword,
2893
+ [_varNames.token.number]: _vars.token.number,
2894
+ [_varNames.token.operator]: _vars.token.operator,
2895
+ [_varNames.token.prolog]: _vars.token.prolog,
2896
+ [_varNames.token.property]: _vars.token.property,
2897
+ [_varNames.token.pseudoClass]: _vars.token.pseudoClass,
2898
+ [_varNames.token.pseudoElement]: _vars.token.pseudoElement,
2899
+ [_varNames.token.punctuation]: _vars.token.punctuation,
2900
+ [_varNames.token.regex]: _vars.token.regex,
2901
+ [_varNames.token.selector]: _vars.token.selector,
2902
+ [_varNames.token.string]: _vars.token.string,
2903
+ [_varNames.token.symbol]: _vars.token.symbol,
2904
+ [_varNames.token.tag]: _vars.token.tag,
2905
+ [_varNames.token.unit]: _vars.token.unit,
2906
+ [_varNames.token.url]: _vars.token.url,
2907
+ [_varNames.token.variable]: _vars.token.variable
3144
2908
  });
3145
2909
  for (const variant of ["solid", "tinted"])
3146
2910
  for (const elementTone of THEME_COLOR_STATE_TONES) {
@@ -3164,7 +2928,7 @@ function _assignToneProps(toneProps, _varNames, _vars) {
3164
2928
  });
3165
2929
  }
3166
2930
  }
3167
- const primitive$h = {
2931
+ const primitive$g = {
3168
2932
  ".checkbox": {
3169
2933
  position: "relative",
3170
2934
  display: "inline-block"
@@ -3294,9 +3058,9 @@ const primitive$h = {
3294
3058
  }
3295
3059
  }, checkboxStyle = {
3296
3060
  layers: {
3297
- primitive: primitive$h
3061
+ primitive: primitive$g
3298
3062
  }
3299
- }, primitive$g = {
3063
+ }, primitive$f = {
3300
3064
  ".code": {
3301
3065
  "--font-weight-regular": "var(--font-code-weight-regular)",
3302
3066
  "--font-weight-medium": "var(--font-code-weight-medium)",
@@ -3332,7 +3096,7 @@ const primitive$h = {
3332
3096
  }
3333
3097
  };
3334
3098
  for (const size of FONT_CODE_SIZE)
3335
- _responsiveRule(primitive$g, `code-${size}`, {
3099
+ _responsiveRule(primitive$f, `code-${size}`, {
3336
3100
  "--font-size": `var(--font-code-${size}-size)`,
3337
3101
  "--font-line-height": `var(--font-code-${size}-line-height)`,
3338
3102
  "--font-letter-spacing": `var(--font-code-${size}-letter-spacing)`,
@@ -3343,18 +3107,18 @@ for (const size of FONT_CODE_SIZE)
3343
3107
  });
3344
3108
  const codeStyle = {
3345
3109
  layers: {
3346
- primitive: primitive$g
3110
+ primitive: primitive$f
3347
3111
  }
3348
- }, primitive$f = {
3112
+ }, primitive$e = {
3349
3113
  ".container": {
3350
3114
  margin: "0 auto",
3351
3115
  width: "100%"
3352
3116
  }
3353
3117
  }, containerStyle = {
3354
3118
  layers: {
3355
- primitive: primitive$f
3119
+ primitive: primitive$e
3356
3120
  }
3357
- }, primitive$e = {
3121
+ }, primitive$d = {
3358
3122
  ".heading": {
3359
3123
  "--font-weight-regular": "var(--font-heading-weight-regular)",
3360
3124
  "--font-weight-medium": "var(--font-heading-weight-medium)",
@@ -3378,7 +3142,7 @@ const codeStyle = {
3378
3142
  }
3379
3143
  };
3380
3144
  for (const size of FONT_HEADING_SIZE)
3381
- _responsiveRule(primitive$e, `heading-${size}`, {
3145
+ _responsiveRule(primitive$d, `heading-${size}`, {
3382
3146
  "--font-size": `var(--font-heading-${size}-size)`,
3383
3147
  "--font-line-height": `var(--font-heading-${size}-line-height)`,
3384
3148
  "--font-letter-spacing": `var(--font-heading-${size}-letter-spacing)`,
@@ -3389,14 +3153,14 @@ for (const size of FONT_HEADING_SIZE)
3389
3153
  });
3390
3154
  const headingStyle = {
3391
3155
  layers: {
3392
- primitive: primitive$e
3156
+ primitive: primitive$d
3393
3157
  }
3394
- }, primitive$d = {
3158
+ }, primitive$c = {
3395
3159
  ".kbd": {
3396
3160
  // '--color-bg': 'var(--color-tinted-default-bg-1)',
3397
3161
  // '--color-border': 'var(--color-tinted-default-border-2)',
3398
3162
  // '--color-fg': 'var(--color-tinted-default-fg-3)',
3399
- boxShadow: "inset 0 0 0 0.5px var(--color-tinted-default-border-3)",
3163
+ boxShadow: "inset 0 0 0 0.5px var(--color-border)",
3400
3164
  background: "var(--color-muted-bg)",
3401
3165
  font: "inherit",
3402
3166
  verticalAlign: "top",
@@ -3408,9 +3172,9 @@ const headingStyle = {
3408
3172
  }
3409
3173
  }, kbdStyle = {
3410
3174
  layers: {
3411
- primitive: primitive$d
3175
+ primitive: primitive$c
3412
3176
  }
3413
- }, primitive$c = {
3177
+ }, primitive$b = {
3414
3178
  ".label": {
3415
3179
  "--font-weight-regular": "var(--font-label-weight-regular)",
3416
3180
  "--font-weight-medium": "var(--font-label-weight-medium)",
@@ -3435,7 +3199,7 @@ const headingStyle = {
3435
3199
  }
3436
3200
  };
3437
3201
  for (const size of FONT_LABEL_SIZE)
3438
- _responsiveRule(primitive$c, `label-${size}`, {
3202
+ _responsiveRule(primitive$b, `label-${size}`, {
3439
3203
  "--font-size": `var(--font-label-${size}-size)`,
3440
3204
  "--font-line-height": `var(--font-label-${size}-line-height)`,
3441
3205
  "--font-letter-spacing": `var(--font-label-${size}-letter-spacing)`,
@@ -3446,13 +3210,13 @@ for (const size of FONT_LABEL_SIZE)
3446
3210
  });
3447
3211
  const labelStyle = {
3448
3212
  layers: {
3449
- primitive: primitive$c
3213
+ primitive: primitive$b
3450
3214
  }
3451
- }, primitive$b = {}, popoverStyle = {
3215
+ }, primitive$a = {}, popoverStyle = {
3452
3216
  layers: {
3453
- primitive: primitive$b
3217
+ primitive: primitive$a
3454
3218
  }
3455
- }, primitive$a = {
3219
+ }, primitive$9 = {
3456
3220
  ".radio": {
3457
3221
  position: "relative",
3458
3222
  "@nest": {
@@ -3558,9 +3322,9 @@ const labelStyle = {
3558
3322
  }
3559
3323
  }, radioStyle = {
3560
3324
  layers: {
3561
- primitive: primitive$a
3325
+ primitive: primitive$9
3562
3326
  }
3563
- }, primitive$9 = {
3327
+ }, primitive$8 = {
3564
3328
  ".select": {
3565
3329
  "@nest": {
3566
3330
  "& > select:disabled": {
@@ -3580,7 +3344,7 @@ const labelStyle = {
3580
3344
  }
3581
3345
  }, selectStyle = {
3582
3346
  layers: {
3583
- primitive: primitive$9
3347
+ primitive: primitive$8
3584
3348
  }
3585
3349
  }, keyframes = {
3586
3350
  "spinner-rotate": {
@@ -3591,21 +3355,13 @@ const labelStyle = {
3591
3355
  transform: "rotate(360deg)"
3592
3356
  }
3593
3357
  }
3594
- }, primitive$8 = {
3358
+ }, primitive$7 = {
3595
3359
  ".spinner": {},
3596
3360
  ".animated-spinner-icon": {
3597
3361
  animation: "spinner-rotate 500ms linear infinite"
3598
3362
  }
3599
3363
  }, spinnerStyle = {
3600
3364
  keyframes,
3601
- layers: {
3602
- primitive: primitive$8
3603
- }
3604
- }, primitive$7 = {
3605
- ".stack": {
3606
- gridTemplateColumns: "minmax(0, 1fr)"
3607
- }
3608
- }, stackStyle = {
3609
3365
  layers: {
3610
3366
  primitive: primitive$7
3611
3367
  }
@@ -3623,15 +3379,21 @@ const labelStyle = {
3623
3379
  outline: "none",
3624
3380
  padding: 0,
3625
3381
  margin: 0,
3626
- // place the input element on top of the representation element
3382
+ /* Place the input element above the representation element */
3627
3383
  zIndex: 1
3628
3384
  },
3629
3385
  ".switch-presentation": {
3630
3386
  "--switch-bg-color": "var(--color-tinted-default-border-2)",
3387
+ // '--switch-border-color': 'var(--color-tinted-default-border-1)',
3631
3388
  "--switch-fg-color": "var(--color-tinted-default-bg-0)",
3389
+ // --switch-bg-color: ${color.input.default.enabled.border};
3390
+ // --switch-fg-color: ${color.input.default.enabled.bg};
3632
3391
  "--switch-thumb-offset": "0",
3633
3392
  "--switch-thumb-size": "calc(var(--input-switch-height) - var(--input-switch-padding) * 2)",
3634
3393
  display: "block",
3394
+ // &:not([hidden]) {
3395
+ // display: block;
3396
+ // }
3635
3397
  position: "relative",
3636
3398
  width: "var(--input-switch-width)",
3637
3399
  height: "var(--input-switch-height)",
@@ -3640,7 +3402,20 @@ const labelStyle = {
3640
3402
  // Make sure it’s not possible to interact with the presentation element
3641
3403
  pointerEvents: "none",
3642
3404
  "@nest": {
3405
+ // '&::after': {
3406
+ // content: '""',
3407
+ // display: 'block',
3408
+ // position: 'absolute',
3409
+ // top: 0,
3410
+ // left: 0,
3411
+ // right: 0,
3412
+ // bottom: 0,
3413
+ // zIndex: 1,
3414
+ // // boxShadow: 'var(--switch-box-shadow)',
3415
+ // borderRadius: 'inherit',
3416
+ // },
3643
3417
  ".switch-element:focus + &": {
3418
+ // --switch-box-shadow: ${focusRingStyle({focusRing: input.switch.focusRing})};
3644
3419
  outline: "var(--input-switch-focus-ring-width) solid var(--color-focus-ring)"
3645
3420
  },
3646
3421
  "input:focus:not(:focus-visible) + &": {
@@ -3648,15 +3423,35 @@ const labelStyle = {
3648
3423
  },
3649
3424
  "input:checked + &": {
3650
3425
  "--switch-bg-color": "var(--color-solid-default-bg-0)",
3426
+ // '--switch-border-color': 'var(--color-solid-default-bg-0)',
3651
3427
  "--switch-fg-color": "var(--color-solid-default-fg-0)"
3652
3428
  },
3429
+ // input:not([data-read-only]):disabled + && {
3430
+ // --switch-bg-color: ${color.input.default.disabled.border};
3431
+ // --switch-fg-color: ${color.input.default.disabled.bg};
3432
+ // }
3433
+ // input[data-read-only]:disabled + && {
3434
+ // --switch-bg-color: ${color.input.default.readOnly.border};
3435
+ // --switch-fg-color: ${color.input.default.readOnly.bg};
3436
+ // }
3437
+ // input:checked[data-read-only]:disabled + && {
3438
+ // --switch-bg-color: ${color.input.default.readOnly.fg};
3439
+ // --switch-fg-color: ${color.input.default.readOnly.bg};
3440
+ // }
3653
3441
  ".switch-element:checked + &": {
3654
3442
  "--switch-thumb-offset": "calc(var(--input-switch-width) - (var(--input-switch-padding) * 2) - var(--switch-thumb-size))"
3655
- },
3656
- "[data-indeterminate] > .switch-element + &": {
3657
- "--switch-thumb-offset": "calc(var(--input-switch-width) / 2 - var(--switch-thumb-size) / 2 - var(--input-switch-padding))"
3658
3443
  }
3659
3444
  }
3445
+ // @media (hover: hover) {
3446
+ // input:not(:disabled):hover + && {
3447
+ // --switch-bg-color: ${color.input.default.hovered.border};
3448
+ // --switch-fg-color: ${color.input.default.hovered.bg};
3449
+ // }
3450
+ // input:not(:disabled):checked:hover + && {
3451
+ // --switch-bg-color: ${color.input.default.enabled.fg};
3452
+ // --switch-fg-color: ${color.input.default.enabled.bg};
3453
+ // }
3454
+ // }
3660
3455
  },
3661
3456
  ".switch-track": {
3662
3457
  display: "block",
@@ -3667,9 +3462,11 @@ const labelStyle = {
3667
3462
  right: 0,
3668
3463
  bottom: 0,
3669
3464
  borderRadius: "inherit",
3465
+ // boxShadow: 'inset 0 0 0 1px var(--switch-border-color)',
3670
3466
  transition: "box-shadow, background-color var(--input-switch-transition-duration-ms) var(--input-switch-transition-timing-function)"
3671
3467
  },
3672
3468
  ".switch-thumb": {
3469
+ // '--switch-thumb-offset': '0',
3673
3470
  display: "block",
3674
3471
  position: "absolute",
3675
3472
  left: "var(--input-switch-padding)",
@@ -3681,6 +3478,40 @@ const labelStyle = {
3681
3478
  boxShadow: "0 0 0 0.5px var(--color-shadow-umbra), 0 0.5px 2px 0.5px var(--color-shadow-umbra)",
3682
3479
  transform: "translate3d(var(--switch-thumb-offset), 0, 0)",
3683
3480
  transition: "transform var(--input-switch-transition-duration-ms) var(--input-switch-transition-timing-function)"
3481
+ // transition-property: transform;
3482
+ // transition-duration: ${input.switch.transitionDurationMs}ms;
3483
+ // transition-timing-function: ${input.switch.transitionTimingFunction};
3484
+ // const {$indeterminate} = props
3485
+ // const {input} = getTheme_v2(props.theme)
3486
+ // const trackWidth = input.switch.width
3487
+ // const trackHeight = input.switch.height
3488
+ // const trackPadding = input.switch.padding
3489
+ // const size = trackHeight - input.switch.padding * 2
3490
+ // const checkedOffset = trackWidth - trackPadding * 2 - size
3491
+ // const indeterminateOffset = trackWidth / 2 - size / 2 - trackPadding
3492
+ // const checked = $indeterminate !== true && props.$checked === true
3493
+ // return css`
3494
+ // position: absolute;
3495
+ // left: ${rem(trackPadding)};
3496
+ // top: ${rem(trackPadding)};
3497
+ // height: ${rem(size)};
3498
+ // width: ${rem(size)};
3499
+ // border-radius: ${rem(size / 2)};
3500
+ // transition-property: transform;
3501
+ // transition-duration: ${input.switch.transitionDurationMs}ms;
3502
+ // transition-timing-function: ${input.switch.transitionTimingFunction};
3503
+ // background: var(--switch-fg-color);
3504
+ // transform: translate3d(0, 0, 0);
3505
+ // box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05);
3506
+ // ${checked &&
3507
+ // css`
3508
+ // transform: translate3d(${checkedOffset}px, 0, 0);
3509
+ // `}
3510
+ // ${$indeterminate &&
3511
+ // css`
3512
+ // transform: translate3d(${indeterminateOffset}px, 0, 0);
3513
+ // `}
3514
+ // `
3684
3515
  }
3685
3516
  }, switchStyle = {
3686
3517
  layers: {
@@ -3702,16 +3533,10 @@ const labelStyle = {
3702
3533
  },
3703
3534
  "& a:hover": {
3704
3535
  color: "var(--color-fg)"
3705
- },
3706
- "& code": {
3707
- fontFamily: vars.font.code.family,
3708
- color: "var(--color-code-fg)",
3709
- backgroundColor: "var(--color-muted-bg)",
3710
- borderRadius: vars.radius[2]
3711
- },
3712
- "& svg": {
3713
- color: "var(--color-muted-fg)"
3714
3536
  }
3537
+ // '& svg': {
3538
+ // color: 'var(--color-icon)',
3539
+ // },
3715
3540
  }
3716
3541
  },
3717
3542
  // 'text-accent': {
@@ -4091,7 +3916,6 @@ const textStyle = {
4091
3916
  insetStyle,
4092
3917
  marginStyle,
4093
3918
  maxWidthStyle,
4094
- minWidthStyle,
4095
3919
  outlineStyle,
4096
3920
  overflowStyle,
4097
3921
  paddingStyle,
@@ -4123,7 +3947,6 @@ const textStyle = {
4123
3947
  radioStyle,
4124
3948
  selectStyle,
4125
3949
  spinnerStyle,
4126
- stackStyle,
4127
3950
  switchStyle,
4128
3951
  textAreaStyle,
4129
3952
  textInputStyle,
@@ -4217,7 +4040,7 @@ function compileStyleRule(_selector, properties) {
4217
4040
  `), nestedProps)
4218
4041
  for (const [_nestedSelector, nestedProperties] of Object.entries(nestedProps)) {
4219
4042
  const nestedSelector = _prefix && (nestedProperties._prefix ?? !0) ? _nestedSelector.replace(/\./g, `.${PREFIX}`) : _nestedSelector;
4220
- css += `${nestedSelector.replace(/&/g, selector)} {
4043
+ css += `${nestedSelector.replace("&", selector)} {
4221
4044
  `, css += compileProperties(nestedProperties), css += `}
4222
4045
 
4223
4046
  `;
@@ -4263,6 +4086,7 @@ function compileThemeProperties(theme) {
4263
4086
  ...buildRadiusThemeProperties(theme),
4264
4087
  ...buildShadowThemeProperties(theme),
4265
4088
  ...buildSpaceThemeProperties(theme),
4089
+ // ...buildColorPaletteProperties(palette),
4266
4090
  ...buildColorThemeProperties(theme)
4267
4091
  };
4268
4092
  }
@@ -4490,57 +4314,49 @@ function buildColorCardThemeProperties(theme, options) {
4490
4314
  scheme
4491
4315
  };
4492
4316
  return {
4493
- // backdrop
4494
4317
  [`${prefix}-backdrop`]: renderColor(tokens.backdrop, context),
4495
- // code
4496
- [`${prefix}-code-bg`]: renderColor(tokens.code.bg, context),
4497
- [`${prefix}-code-fg`]: renderColor(tokens.code.fg, context),
4498
- // code / token
4499
- [`${prefix}-code-token-atrule`]: renderColor(tokens.code.token.atrule, context),
4500
- [`${prefix}-code-token-attr-name`]: renderColor(tokens.code.token.attrName, context),
4501
- [`${prefix}-code-token-attr-value`]: renderColor(tokens.code.token.attrValue, context),
4502
- [`${prefix}-code-token-attribute`]: renderColor(tokens.code.token.attribute, context),
4503
- [`${prefix}-code-token-boolean`]: renderColor(tokens.code.token.boolean, context),
4504
- [`${prefix}-code-token-builtin`]: renderColor(tokens.code.token.builtin, context),
4505
- [`${prefix}-code-token-cdata`]: renderColor(tokens.code.token.cdata, context),
4506
- [`${prefix}-code-token-char`]: renderColor(tokens.code.token.char, context),
4507
- [`${prefix}-code-token-class-name`]: renderColor(tokens.code.token.className, context),
4508
- [`${prefix}-code-token-class`]: renderColor(tokens.code.token.class, context),
4509
- [`${prefix}-code-token-comment`]: renderColor(tokens.code.token.comment, context),
4510
- [`${prefix}-code-token-constant`]: renderColor(tokens.code.token.constant, context),
4511
- [`${prefix}-code-token-deleted`]: renderColor(tokens.code.token.deleted, context),
4512
- [`${prefix}-code-token-doctype`]: renderColor(tokens.code.token.doctype, context),
4513
- [`${prefix}-code-token-entity`]: renderColor(tokens.code.token.entity, context),
4514
- [`${prefix}-code-token-function`]: renderColor(tokens.code.token.function, context),
4515
- [`${prefix}-code-token-hexcode`]: renderColor(tokens.code.token.hexcode, context),
4516
- [`${prefix}-code-token-id`]: renderColor(tokens.code.token.id, context),
4517
- [`${prefix}-code-token-important`]: renderColor(tokens.code.token.important, context),
4518
- [`${prefix}-code-token-inserted`]: renderColor(tokens.code.token.inserted, context),
4519
- [`${prefix}-code-token-keyword`]: renderColor(tokens.code.token.keyword, context),
4520
- [`${prefix}-code-token-number`]: renderColor(tokens.code.token.number, context),
4521
- [`${prefix}-code-token-operator`]: renderColor(tokens.code.token.operator, context),
4522
- [`${prefix}-code-token-prolog`]: renderColor(tokens.code.token.prolog, context),
4523
- [`${prefix}-code-token-property`]: renderColor(tokens.code.token.property, context),
4524
- [`${prefix}-code-token-pseudo-class`]: renderColor(tokens.code.token.pseudoClass, context),
4525
- [`${prefix}-code-token-pseudo-eelement`]: renderColor(tokens.code.token.pseudoElement, context),
4526
- [`${prefix}-code-token-punctuation`]: renderColor(tokens.code.token.punctuation, context),
4527
- [`${prefix}-code-token-regex`]: renderColor(tokens.code.token.regex, context),
4528
- [`${prefix}-code-token-selector`]: renderColor(tokens.code.token.selector, context),
4529
- [`${prefix}-code-token-string`]: renderColor(tokens.code.token.string, context),
4530
- [`${prefix}-code-token-symbol`]: renderColor(tokens.code.token.symbol, context),
4531
- [`${prefix}-code-token-tag`]: renderColor(tokens.code.token.tag, context),
4532
- [`${prefix}-code-token-unit`]: renderColor(tokens.code.token.unit, context),
4533
- [`${prefix}-code-token-url`]: renderColor(tokens.code.token.url, context),
4534
- [`${prefix}-code-token-variable`]: renderColor(tokens.code.token.variable, context),
4535
- // focus ring
4536
4318
  [`${prefix}-focus-ring`]: renderColor(tokens.focusRing, context),
4537
- // link
4538
4319
  [`${prefix}-link-fg`]: renderColor(tokens.link.fg, context),
4539
- // shadow
4540
4320
  [`${prefix}-shadow-outline`]: renderColor(tokens.shadow.outline, context),
4541
4321
  [`${prefix}-shadow-umbra`]: renderColor(tokens.shadow.umbra, context),
4542
4322
  [`${prefix}-shadow-penumbra`]: renderColor(tokens.shadow.penumbra, context),
4543
- [`${prefix}-shadow-ambient`]: renderColor(tokens.shadow.ambient, context)
4323
+ [`${prefix}-shadow-ambient`]: renderColor(tokens.shadow.ambient, context),
4324
+ [`${prefix}-token-atrule`]: renderColor(tokens.token.atrule, context),
4325
+ [`${prefix}-token-attr-name`]: renderColor(tokens.token.attrName, context),
4326
+ [`${prefix}-token-attr-value`]: renderColor(tokens.token.attrValue, context),
4327
+ [`${prefix}-token-attribute`]: renderColor(tokens.token.attribute, context),
4328
+ [`${prefix}-token-boolean`]: renderColor(tokens.token.boolean, context),
4329
+ [`${prefix}-token-builtin`]: renderColor(tokens.token.builtin, context),
4330
+ [`${prefix}-token-cdata`]: renderColor(tokens.token.cdata, context),
4331
+ [`${prefix}-token-char`]: renderColor(tokens.token.char, context),
4332
+ [`${prefix}-token-class-name`]: renderColor(tokens.token.className, context),
4333
+ [`${prefix}-token-class`]: renderColor(tokens.token.class, context),
4334
+ [`${prefix}-token-comment`]: renderColor(tokens.token.comment, context),
4335
+ [`${prefix}-token-constant`]: renderColor(tokens.token.constant, context),
4336
+ [`${prefix}-token-deleted`]: renderColor(tokens.token.deleted, context),
4337
+ [`${prefix}-token-doctype`]: renderColor(tokens.token.doctype, context),
4338
+ [`${prefix}-token-entity`]: renderColor(tokens.token.entity, context),
4339
+ [`${prefix}-token-function`]: renderColor(tokens.token.function, context),
4340
+ [`${prefix}-token-hexcode`]: renderColor(tokens.token.hexcode, context),
4341
+ [`${prefix}-token-id`]: renderColor(tokens.token.id, context),
4342
+ [`${prefix}-token-important`]: renderColor(tokens.token.important, context),
4343
+ [`${prefix}-token-inserted`]: renderColor(tokens.token.inserted, context),
4344
+ [`${prefix}-token-keyword`]: renderColor(tokens.token.keyword, context),
4345
+ [`${prefix}-token-number`]: renderColor(tokens.token.number, context),
4346
+ [`${prefix}-token-operator`]: renderColor(tokens.token.operator, context),
4347
+ [`${prefix}-token-prolog`]: renderColor(tokens.token.prolog, context),
4348
+ [`${prefix}-token-property`]: renderColor(tokens.token.property, context),
4349
+ [`${prefix}-token-pseudo-class`]: renderColor(tokens.token.pseudoClass, context),
4350
+ [`${prefix}-token-pseudo-eelement`]: renderColor(tokens.token.pseudoElement, context),
4351
+ [`${prefix}-token-punctuation`]: renderColor(tokens.token.punctuation, context),
4352
+ [`${prefix}-token-regex`]: renderColor(tokens.token.regex, context),
4353
+ [`${prefix}-token-selector`]: renderColor(tokens.token.selector, context),
4354
+ [`${prefix}-token-string`]: renderColor(tokens.token.string, context),
4355
+ [`${prefix}-token-symbol`]: renderColor(tokens.token.symbol, context),
4356
+ [`${prefix}-token-tag`]: renderColor(tokens.token.tag, context),
4357
+ [`${prefix}-token-unit`]: renderColor(tokens.token.unit, context),
4358
+ [`${prefix}-token-url`]: renderColor(tokens.token.url, context),
4359
+ [`${prefix}-token-variable`]: renderColor(tokens.token.variable, context)
4544
4360
  };
4545
4361
  }
4546
4362
  function compileTheme(theme) {
@@ -4548,9 +4364,93 @@ function compileTheme(theme) {
4548
4364
  ` : `/* v0 - not supported */
4549
4365
  `;
4550
4366
  }
4367
+ function getClassNames(...classNames) {
4368
+ return classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean).join(" ").split(" ");
4369
+ }
4370
+ function composeClassNames(...classNames) {
4371
+ return unique(getClassNames(...classNames)).join(" ") || void 0;
4372
+ }
4373
+ function unique(array) {
4374
+ return Array.from(new Set(array));
4375
+ }
4376
+ function scopeClassName(className) {
4377
+ if (className !== void 0)
4378
+ return `${PREFIX}${className.trim()}`;
4379
+ }
4380
+ function _comp(...classNames) {
4381
+ return getClassNames(...classNames).map(scopeClassName).join(" ") || void 0;
4382
+ }
4551
4383
  function breadcrumbs() {
4552
4384
  return _comp("breadcrumbs");
4553
4385
  }
4386
+ function _resp(prefix, prop) {
4387
+ if (!(prop === void 0 || prop === !1))
4388
+ return Array.isArray(prop) ? prop.map((value, index) => {
4389
+ if (value === void 0 || typeof prop == "boolean" && prop === !1) return;
4390
+ const className = (typeof value == "boolean" ? [prefix] : [prefix, value]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
4391
+ return index === 0 ? className : `${index}:${className}`;
4392
+ }).filter(Boolean).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
4393
+ }
4394
+ function border(props) {
4395
+ return composeClassNames(_resp("border", props.border), _resp("border-t", props.borderTop), _resp("border-r", props.borderRight), _resp("border-b", props.borderBottom), _resp("border-l", props.borderLeft));
4396
+ }
4397
+ function display(props) {
4398
+ return composeClassNames(_resp(void 0, props.display));
4399
+ }
4400
+ function flex(props) {
4401
+ return composeClassNames(_resp("flex-align", props.align), _resp("f", props.direction), _resp("flex-justify", props.justify), _resp("flex", props.wrap));
4402
+ }
4403
+ function flexItem(props) {
4404
+ return composeClassNames(_resp("f", props.flex));
4405
+ }
4406
+ function font(props) {
4407
+ return composeClassNames("font", props.weight && `font-${props.weight}`, _resp("text-align", props.align));
4408
+ }
4409
+ function gap(props) {
4410
+ return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
4411
+ }
4412
+ function grid(props) {
4413
+ return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-flow", props.autoFlow), _resp("auto-rows", props.autoRows), _resp("cols", props.columns), _resp("rows", props.rows));
4414
+ }
4415
+ function gridItem(props) {
4416
+ return composeClassNames(_resp("col", props.column), _resp("col-start", props.columnStart), _resp("col-end", props.columnEnd), _resp("row", props.row), _resp("row-start", props.rowStart), _resp("row-end", props.rowEnd));
4417
+ }
4418
+ function height(props) {
4419
+ return composeClassNames(_resp("h", props.height));
4420
+ }
4421
+ function inset(props) {
4422
+ return composeClassNames(_resp("inset", props.inset), _resp("top", props.insetTop), _resp("right", props.insetRight), _resp("bottom", props.insetBottom), _resp("left", props.insetLeft));
4423
+ }
4424
+ function margin(props) {
4425
+ return composeClassNames(_resp("m", props.margin), _resp("mx", props.marginX), _resp("my", props.marginY), _resp("mt", props.marginTop), _resp("mr", props.marginRight), _resp("mb", props.marginBottom), _resp("ml", props.marginLeft));
4426
+ }
4427
+ function maxWidth(props) {
4428
+ return _resp("max-w", props.maxWidth) ?? "";
4429
+ }
4430
+ function overflow(props) {
4431
+ return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
4432
+ }
4433
+ function padding(props) {
4434
+ return composeClassNames(_resp("p", props.padding), _resp("px", props.paddingX), _resp("py", props.paddingY), _resp("pt", props.paddingTop), _resp("pr", props.paddingRight), _resp("pb", props.paddingBottom), _resp("pl", props.paddingLeft));
4435
+ }
4436
+ function pointerEvents(props) {
4437
+ return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
4438
+ }
4439
+ function position(props) {
4440
+ return composeClassNames(_resp("position", props.position));
4441
+ }
4442
+ function radius(props) {
4443
+ return composeClassNames(_resp("r", props.radius));
4444
+ }
4445
+ function shadow(props) {
4446
+ return composeClassNames(_resp("shadow", props.shadow));
4447
+ }
4448
+ function textOverflow(props) {
4449
+ return composeClassNames(props.textOverflow && `text-overflow-${props.textOverflow}`);
4450
+ }
4451
+ function width(props) {
4452
+ return _resp("w", props.width) ?? "";
4453
+ }
4554
4454
  function dialog() {
4555
4455
  return _comp("dialog", inset({
4556
4456
  inset: 0
@@ -4672,7 +4572,6 @@ function box(props) {
4672
4572
  inset(props),
4673
4573
  margin(props),
4674
4574
  maxWidth(props),
4675
- minWidth(props),
4676
4575
  props.outline && `outline-${props.outline}`,
4677
4576
  overflow(props),
4678
4577
  padding(props),
@@ -4693,7 +4592,7 @@ function buttonLoadingBox() {
4693
4592
  return "button-loading-box";
4694
4593
  }
4695
4594
  function card(props) {
4696
- return _comp(props.scheme, toneMap[props.tone ?? "default"], "card", props.checkered && "card-checkered", shadow(props));
4595
+ return _comp(props.scheme, toneMap[props.tone ?? "inherit"], "card", props.checkered && "card-checkered", shadow(props));
4697
4596
  }
4698
4597
  function checkbox() {
4699
4598
  return _comp("checkbox");
@@ -4721,9 +4620,6 @@ function label(props) {
4721
4620
  function popover() {
4722
4621
  return _comp("popover");
4723
4622
  }
4724
- function popoverCard() {
4725
- return _comp("popover-card");
4726
- }
4727
4623
  function radio() {
4728
4624
  return _comp("radio");
4729
4625
  }
@@ -4739,9 +4635,6 @@ function spinner() {
4739
4635
  function animatedSpinnerIcon() {
4740
4636
  return _comp("animated-spinner-icon");
4741
4637
  }
4742
- function stack() {
4743
- return _comp("stack");
4744
- }
4745
4638
  function _switch() {
4746
4639
  return _comp("switch");
4747
4640
  }
@@ -4839,12 +4732,10 @@ export {
4839
4732
  maxWidth,
4840
4733
  menu,
4841
4734
  menuDivider,
4842
- minWidth,
4843
4735
  overflow,
4844
4736
  padding,
4845
4737
  pointerEvents,
4846
4738
  popover,
4847
- popoverCard,
4848
4739
  position,
4849
4740
  px,
4850
4741
  radio,
@@ -4857,7 +4748,6 @@ export {
4857
4748
  skeleton,
4858
4749
  spinner,
4859
4750
  srOnly,
4860
- stack,
4861
4751
  text,
4862
4752
  textArea,
4863
4753
  textInput,
@@ -4872,6 +4762,7 @@ export {
4872
4762
  tooltip,
4873
4763
  tooltipCard,
4874
4764
  treeItem,
4765
+ v3_v2,
4875
4766
  varNames,
4876
4767
  vars,
4877
4768
  width