burne-ui 1.6.5 → 1.6.7

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 (141) hide show
  1. package/README.md +39 -7
  2. package/dist/components/composite/Accordion/Accordion.d.ts +1 -1
  3. package/dist/components/composite/Accordion/index.d.ts +1 -1
  4. package/dist/components/composite/AlertDialog/alertDialogStyles.d.ts +11 -7
  5. package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +5 -14
  6. package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +1 -1
  7. package/dist/components/composite/ButtonGroup/buttonGroupStyles.d.ts +2 -2
  8. package/dist/components/composite/ButtonGroup/index.d.ts +1 -1
  9. package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +1 -1
  10. package/dist/components/composite/Form/formTypes.d.ts +1 -1
  11. package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +1 -1
  12. package/dist/components/core/Alert/alertTypes.d.ts +1 -1
  13. package/dist/components/core/Alert/useAlertRootState.d.ts +2 -2
  14. package/dist/components/core/Button/buttonStyles.d.ts +1 -1
  15. package/dist/components/core/Button/buttonTypes.d.ts +1 -1
  16. package/dist/components/core/Button/useButtonRootState.d.ts +2 -2
  17. package/dist/components/core/Calendar/calendarParts.d.ts +2 -2
  18. package/dist/components/core/Calendar/calendarStyles.d.ts +2 -1
  19. package/dist/components/core/Calendar/index.d.ts +2 -2
  20. package/dist/components/core/Card/Card.d.ts +2 -1
  21. package/dist/components/core/Card/cardContext.d.ts +9 -2
  22. package/dist/components/core/Card/cardStyles.d.ts +15 -8
  23. package/dist/components/core/Card/cardTypes.d.ts +7 -2
  24. package/dist/components/core/Card/index.d.ts +2 -1
  25. package/dist/components/core/Card/useCardRootState.d.ts +2 -1
  26. package/dist/components/core/Checkbox/Checkbox.d.ts +1 -1
  27. package/dist/components/core/Checkbox/checkboxStyles.d.ts +1 -7
  28. package/dist/components/core/Checkbox/index.d.ts +1 -1
  29. package/dist/components/core/Checkbox/useCheckboxRootState.d.ts +1 -5
  30. package/dist/components/core/CloseButton/closeButtonTypes.d.ts +1 -1
  31. package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +2 -2
  32. package/dist/components/core/ColorPicker/colorPickerStyles.d.ts +3 -2
  33. package/dist/components/core/ColorPicker/colorSliderStyles.d.ts +2 -1
  34. package/dist/components/core/ColorPicker/colorUtils.d.ts +2 -0
  35. package/dist/components/core/ColorPicker/useColorPickerRootState.d.ts +6 -0
  36. package/dist/components/core/ComboBox/useComboBoxInputState.d.ts +1 -1
  37. package/dist/components/core/Dialog/dialogStyles.d.ts +14 -10
  38. package/dist/components/core/Dialog/dialogTypes.d.ts +4 -15
  39. package/dist/components/core/Disclosure/disclosureTypes.d.ts +1 -1
  40. package/dist/components/core/Drawer/Drawer.d.ts +2 -2
  41. package/dist/components/core/Drawer/drawerAPI.d.ts +2 -0
  42. package/dist/components/core/Drawer/drawerStyles.d.ts +15 -13
  43. package/dist/components/core/Drawer/drawerTypes.d.ts +12 -1
  44. package/dist/components/core/Drawer/index.d.ts +1 -1
  45. package/dist/components/core/Drawer/useDrawerRootState.d.ts +1 -1
  46. package/dist/components/core/Expandable/expandableTypes.d.ts +1 -1
  47. package/dist/components/core/Field/fieldContext.d.ts +1 -1
  48. package/dist/components/core/Field/fieldStyles.d.ts +1 -1
  49. package/dist/components/core/Field/fieldTypes.d.ts +1 -1
  50. package/dist/components/core/Input/index.d.ts +1 -1
  51. package/dist/components/core/Input/inputControlParts.d.ts +1 -1
  52. package/dist/components/core/Input/inputTypes.d.ts +1 -1
  53. package/dist/components/core/Input/useInputRootState.d.ts +1 -1
  54. package/dist/components/core/Kbd/kbdStyles.d.ts +1 -1
  55. package/dist/components/core/Link/linkTypes.d.ts +1 -1
  56. package/dist/components/core/Link/useLinkRootState.d.ts +1 -1
  57. package/dist/components/core/ListBox/listBoxAPI.d.ts +5 -2
  58. package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
  59. package/dist/components/core/ListBox/listBoxStyles.d.ts +8 -5
  60. package/dist/components/core/ListBox/useListBoxItemState.d.ts +1 -0
  61. package/dist/components/core/Loading/loadingTypes.d.ts +1 -1
  62. package/dist/components/core/Pagination/paginationStyles.d.ts +5 -4
  63. package/dist/components/core/Popover/popoverStyles.d.ts +21 -14
  64. package/dist/components/core/Popover/popoverTypes.d.ts +3 -5
  65. package/dist/components/core/Radio/Radio.d.ts +1 -1
  66. package/dist/components/core/Radio/index.d.ts +1 -1
  67. package/dist/components/core/Radio/radioStyles.d.ts +1 -7
  68. package/dist/components/core/Radio/useRadioRootState.d.ts +1 -5
  69. package/dist/components/core/SearchInput/SearchInput.d.ts +1 -1
  70. package/dist/components/core/SearchInput/searchInputStyles.d.ts +2 -2
  71. package/dist/components/core/SearchInput/searchInputTypes.d.ts +1 -1
  72. package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +1 -1
  73. package/dist/components/core/SelectionIndicator/index.d.ts +1 -1
  74. package/dist/components/core/SelectionIndicator/selectionIndicatorTokens.d.ts +9 -6
  75. package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +2 -2
  76. package/dist/components/core/SelectionThumb/selectionThumbStyles.d.ts +5 -11
  77. package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +0 -4
  78. package/dist/components/core/Skeleton/skeletonStyles.d.ts +1 -1
  79. package/dist/components/core/Slider/sliderStyles.d.ts +7 -5
  80. package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
  81. package/dist/components/core/Slider/useSliderTrackState.d.ts +16 -16
  82. package/dist/components/core/Surface/surfaceStyles.d.ts +1 -1
  83. package/dist/components/core/Surface/surfaceTypes.d.ts +1 -1
  84. package/dist/components/core/Switch/Switch.d.ts +1 -1
  85. package/dist/components/core/Switch/index.d.ts +2 -2
  86. package/dist/components/core/Switch/switchAnimations.d.ts +1 -1
  87. package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
  88. package/dist/components/core/Switch/switchGeometry.d.ts +3 -3
  89. package/dist/components/core/Switch/switchStyles.d.ts +3 -2
  90. package/dist/components/core/Switch/switchTypes.d.ts +0 -2
  91. package/dist/components/core/Switch/useSwitchRootState.d.ts +14 -14
  92. package/dist/components/core/Table/tableStyles.d.ts +3 -3
  93. package/dist/components/core/Tabs/tabsTypes.d.ts +1 -1
  94. package/dist/components/core/Text/textTypes.d.ts +1 -1
  95. package/dist/components/core/TextArea/textAreaStyles.d.ts +4 -3
  96. package/dist/components/core/TextArea/textAreaTypes.d.ts +1 -1
  97. package/dist/components/core/TextArea/useTextAreaResize.d.ts +1 -1
  98. package/dist/components/core/TextArea/useTextAreaRootState.d.ts +1 -1
  99. package/dist/components/core/TimeField/timeFieldStyles.d.ts +4 -3
  100. package/dist/components/core/TimeField/timeFieldTypes.d.ts +1 -1
  101. package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +1 -1
  102. package/dist/components/core/TimeField/useTimeFieldRootState.d.ts +1 -1
  103. package/dist/components/core/Toast/toastTypes.d.ts +1 -1
  104. package/dist/components/core/Toast/useToastProviderState.d.ts +1 -1
  105. package/dist/components/core/Toast/useToastRootState.d.ts +1 -1
  106. package/dist/components/core/ToggleButton/ToggleButton.d.ts +1 -1
  107. package/dist/components/core/ToggleButton/index.d.ts +1 -1
  108. package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +3 -1
  109. package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +1 -3
  110. package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +1 -1
  111. package/dist/components/core/utils/controlHeightMeasure.d.ts +1 -1
  112. package/dist/components/core/utils/hoverInteractiveLift.d.ts +13 -6
  113. package/dist/components/core/utils/inputAffixLayout.d.ts +1 -1
  114. package/dist/components/core/utils/motionConfig.d.ts +41 -5
  115. package/dist/components/core/utils/optionListItemParts.d.ts +6 -2
  116. package/dist/components/core/utils/{messageBannerSize.d.ts → sizeLayout/banner.d.ts} +5 -3
  117. package/dist/components/core/utils/{componentSize.d.ts → sizeLayout/componentSize.d.ts} +1 -0
  118. package/dist/components/core/utils/{controlSizeLayout.d.ts → sizeLayout/control.d.ts} +3 -1
  119. package/dist/components/core/utils/sizeLayout/index.d.ts +14 -0
  120. package/dist/components/core/utils/sizeLayout/option.d.ts +15 -0
  121. package/dist/components/core/utils/sizeLayout/panel.d.ts +52 -0
  122. package/dist/index.cjs +1 -1
  123. package/dist/index.d.ts +4 -4
  124. package/dist/index.js +10648 -10390
  125. package/dist/internal.cjs +1 -1
  126. package/dist/internal.d.ts +5 -3
  127. package/dist/internal.js +78 -69
  128. package/dist/theme/index.d.ts +1 -1
  129. package/dist/theme/themeConfig.d.ts +1 -1
  130. package/dist/theme/themeDefaults.d.ts +56 -76
  131. package/dist/{themeRuntimeContext-DmzqBFsv.js → themeRuntimeContext-CE8HsqSx.js} +1861 -1765
  132. package/dist/themeRuntimeContext-zhfbKb8L.cjs +50 -0
  133. package/dist/tokens/breakpoints.d.ts +14 -0
  134. package/dist/tokens/config.d.ts +47 -13
  135. package/dist/tokens/index.d.ts +5 -2
  136. package/dist/tokens/overlayBackdrop.d.ts +17 -0
  137. package/dist/tokens/shadows.d.ts +21 -0
  138. package/dist/tokens/textScale.d.ts +36 -0
  139. package/dist/ui.css +441 -298
  140. package/package.json +4 -3
  141. package/dist/themeRuntimeContext-CQapx3IE.cjs +0 -50
@@ -2,16 +2,43 @@
2
2
  * Token layer metadata. Values are defined in `./styles.css`,
3
3
  * Tailwind utilities — in `src/styles.css` (`@theme`, `@utility`).
4
4
  *
5
+ * ## Naming layers (knob → steps → Tailwind)
6
+ *
7
+ * | Domain | Knob | Design steps | Tailwind `@theme` bridge | Utilities |
8
+ * |---|---|---|---|---|
9
+ * | Spacing | `--space` | `--space-*` | `--spacing-*` (Tailwind spacing ns) | `gap-*`, `p-*`, `m-*` |
10
+ * | Radius | `--radius` | `--radius-*` | `--radius-*` (identity) | `rounded-*` |
11
+ * | Control box | — | `--control-height-*` | — | `h-control-*`, `min-h-control-*` |
12
+ * | Control square | — | `--control-size-*` (= height) | — | `w-control-*`, `min/max-w-control-*` |
13
+ * | Icons | `--size` | `--size-scale-*` → `--icon-size-*` (1:1) | — | `icon-xsmall` … `icon-3xlarge` |
14
+ * | Indicators | `--size` / `--radius` | `--selection-indicator-*` + `--selection-indicator-radius-*` (`--radius-*` × 0.75) | — | `selection-indicator-*` |
15
+ * | Panels | `--size` | `--max-component-*` | — | `min/max-w-component-*` |
16
+ *
17
+ * ## Typography
18
+ *
19
+ * `--text-scale-*` steps (rem) align with semantic roles / utilities of the same name:
20
+ * `xsmall` 0.6875 · `small` 0.75 · `base` 0.875 · `mid` 1 · `large` 1.25 ·
21
+ * `xlarge` 1.5 · `2xlarge` 1.875 · `3xlarge` 2.25.
22
+ * Headers: `text-header-2` → `xlarge`, `text-header-1` → `2xlarge`, `text-accent-header` → `3xlarge`.
23
+ *
5
24
  * Customization:
6
- * - `--space` — spacing (gap, padding); steps `gap-*`, `p-*` via multipliers; fluid `clamp` by viewport.
25
+ * - `--space` — spacing (gap, padding); steps `gap-*`, `p-*` via multipliers; fluid `clamp` by viewport (theme JS writes scaled `clamp`, not fixed rem).
7
26
  * - `--size` — control sizes (icons, indicators, button min-width, modal max-w); fluid `clamp` by viewport.
8
- * - `--radius` — base radius; `rounded-*` steps via multipliers; fluid `clamp` by viewport.
9
- * - `--shadow-size` — blur/offset multiplier for `--shadow-base|mid|large`.
27
+ * - `--radius` — base radius; `rounded-*` steps via tight multipliers
28
+ * (`0.75 / 0.875 / 1 / 1.125 / 1.25`); fluid `clamp` by viewport.
29
+ * - `--shadow-size` — blur/offset multiplier for `--shadow-base|mid|large` (`calc(… * var(--shadow-size))`; do not bake px).
10
30
  * - `--toast-scrim-size` / `--toast-scrim-density` — Toast scrim backdrop size and density.
11
31
  * - `--focus-ring-width` / `--focus-ring-offset` — keyboard focus ring geometry (`focus-ring*` utilities).
32
+ * - `--motion-surface-duration` — CSS transitions for `surface-color-transition` / `animate-shadow` / field shells (from `surfaceTransitionDuration` in motion config).
33
+ * - `--overlay-backdrop-color` / `--overlay-backdrop-blur` / `--overlay-backdrop-saturate` — frosted modal scrim (`overlay-backdrop`); `--overlay-backdrop-scrim` — solid dark-UI scrim.
12
34
  * - `--z-dialog` / `--z-dropdown` / `--z-popover` / `--z-toast` / `--z-tooltip` — overlay stacking (`z-*` utilities).
13
- * - `--text-scale-*` — primitive typography (`xsmall` … `3xlarge`, base step `base`); roles `text-base`, `text-large` are aliases.
35
+ * - `--max-component-*` — panel/container widths (`min/max-w-component-*`); Dialog size props map onto base…2xlarge.
36
+ * - `NARROW_VIEWPORT_MAX_PX` (1024) — shared with CSS `field-control-mobile-no-zoom` media query.
37
+ * - `--text-scale-*` — primitive typography; roles `text-base` / `text-mid` / … map 1:1 by name.
14
38
  * - `--font-w-*` — primitive font-weight scale;
39
+ *
40
+ * Fonts / text-scale / shadow geometry defaults: `tokenPrimitives.json` → TS modules + generated CSS
41
+ * (`npm run sync:tokens` / `scripts/sync-generated-tokens.mjs`).
15
42
  */
16
43
  export declare const tokensConfig: {
17
44
  /** Namespace for documentation */
@@ -22,15 +49,16 @@ export declare const tokensConfig: {
22
49
  readonly "spacing-xsmall": "space-xsmall";
23
50
  readonly "spacing-small": "space-small";
24
51
  readonly "spacing-base": "space-base";
25
- readonly "spacing-plus": "space-plus";
26
52
  readonly "spacing-mid": "space-mid";
27
53
  readonly "spacing-large": "space-large";
28
54
  readonly "spacing-xlarge": "space-xlarge";
29
- readonly "radius-xsmall": "radius-value-xsmall";
30
- readonly "radius-small": "radius-value-small";
31
- readonly "radius-base": "radius-value-base";
32
- readonly "radius-mid": "radius-value-mid";
33
- readonly "radius-large": "radius-value-large";
55
+ readonly "spacing-2xlarge": "space-2xlarge";
56
+ readonly "spacing-3xlarge": "space-3xlarge";
57
+ readonly "radius-xsmall": "radius-xsmall";
58
+ readonly "radius-small": "radius-small";
59
+ readonly "radius-base": "radius-base";
60
+ readonly "radius-mid": "radius-mid";
61
+ readonly "radius-large": "radius-large";
34
62
  readonly "color-background": "color-background";
35
63
  readonly "color-foreground": "color-foreground";
36
64
  readonly "color-muted": "color-muted";
@@ -86,17 +114,23 @@ export declare const tokensConfig: {
86
114
  readonly "icon-large": "icon-size-large";
87
115
  readonly "icon-xlarge": "icon-size-xlarge";
88
116
  readonly "icon-2xlarge": "icon-size-2xlarge";
117
+ readonly "icon-3xlarge": "icon-size-3xlarge";
89
118
  };
90
119
  };
91
120
  /** `--spacing-*` steps → `gap-*`, `p-*`, `m-*`, `space-*`, … utilities */
92
- export declare const burneSpacingScale: readonly ["xsmall", "small", "base", "plus", "mid", "large", "xlarge"];
121
+ export declare const burneSpacingScale: readonly ["xsmall", "small", "base", "mid", "large", "xlarge", "2xlarge", "3xlarge"];
93
122
  /** `--radius-*` steps → `rounded-*` utilities */
94
123
  export declare const burneRadiusScale: readonly ["xsmall", "small", "base", "mid", "large"];
124
+ /**
125
+ * Icon utilities `icon-*` — 1:1 with `--size-scale-*` / `--icon-size-*`.
126
+ * SelectionIndicator marks use `--icon-size-*` × 0.75 in component tokens.
127
+ */
128
+ export declare const burneIconScale: readonly ["xsmall", "small", "base", "mid", "large", "xlarge", "2xlarge", "3xlarge"];
95
129
  /**
96
130
  * `@utility text-*` roles (size/weight); not to be confused with `text-foreground` and other colors.
97
- * `text-base` — Tailwind default override; no separate entry needed in merge.
131
+ * `text-base` — Tailwind default override; maps 1:1 to `--text-scale-base` (0.875rem).
98
132
  */
99
- export declare const burneTextScale: readonly ["small", "mid", "tools", "accent-header", "header-1", "header-2", "large"];
133
+ export declare const burneTextScale: readonly ["small", "mid", "xsmall", "accent-header", "header-1", "header-2", "large"];
100
134
  export { burneShadowScale, type ShadowSize, type ShadowLevel, SHADOW_CSS_VAR, shadowToken, } from './shadows';
101
135
  export { TOAST_SCRIM_CSS_VAR, TOAST_SCRIM_DEFAULTS, toastScrimToken, type ToastScrimCssVar, } from './toastScrim';
102
136
  export type TokensConfig = typeof tokensConfig;
@@ -1,10 +1,13 @@
1
1
  export { tokensConfig, type TokensConfig } from './config';
2
2
  export { burneFontWeightScale, FONT_WEIGHT_CSS_VAR, FONT_WEIGHT_DEFAULTS, fontWeightToken, type FontWeightStep, } from './fontWeights';
3
- export { burneShadowScale, type ShadowSize, type ShadowLevel, SHADOW_CSS_VAR, shadowToken, } from './shadows';
3
+ export { burneShadowScale, type ShadowSize, type ShadowLevel, SHADOW_CSS_VAR, SHADOW_LAYER_GEOM, SHADOW_OPACITY_BASE, SHADOW_SIZE_CSS_DEFAULT, shadowToken, } from './shadows';
4
+ export { TEXT_SCALE_BASES, type TextScaleStep, } from './textScale';
4
5
  export { TOAST_SCRIM_CSS_VAR, TOAST_SCRIM_DEFAULTS, toastScrimToken, type ToastScrimCssVar, } from './toastScrim';
6
+ export { OVERLAY_BACKDROP_CSS_VAR, OVERLAY_BACKDROP_DEFAULTS, overlayBackdropToken, type OverlayBackdropCssVar, } from './overlayBackdrop';
5
7
  export { burneZIndexScale, Z_INDEX_CSS_VAR, Z_INDEX_DEFAULTS, zIndexToken, type ZIndexLayer, } from './zIndex';
8
+ export { NARROW_VIEWPORT_MAX_PX, TOUCH_OR_NARROW_VIEWPORT_MQL, TOUCH_OR_NARROW_VIEWPORT_MQL_ANY_POINTER, } from './breakpoints';
6
9
  /** CSS variable names for type-safe access and generators */
7
- export declare const designTokenNames: readonly ["--border-width", "--focus-ring-width", "--focus-ring-offset", "--z-dialog", "--z-dropdown", "--z-dropdown-sub", "--z-popover", "--z-toast", "--z-tooltip", "--color-background", "--color-surface", "--color-border", "--color-foreground", "--color-muted", "--color-primary", "--color-primary-foreground", "--color-primary-hover", "--color-default-hover", "--color-primary-tint", "--color-primary-tint-strong", "--color-indicator", "--color-indicator-foreground", "--color-secondary", "--color-secondary-foreground", "--color-secondary-hover", "--color-tertiary", "--color-tertiary-foreground", "--color-tertiary-hover", "--color-focus-ring", "--color-converge-ripple-primary-fill", "--color-converge-ripple-neutral", "--color-converge-ripple-neutral-muted", "--color-converge-ripple-danger", "--color-converge-ripple-info", "--color-converge-ripple-success", "--color-converge-ripple-warning", "--color-danger", "--color-danger-fill-hover", "--color-danger-foreground", "--color-success", "--color-success-foreground", "--color-success-fill-hover", "--color-info", "--color-info-foreground", "--color-info-fill-hover", "--color-warning", "--color-warning-foreground", "--color-warning-fill-hover", "--color-surface-tint-danger", "--color-surface-tint-success", "--color-surface-tint-info", "--color-surface-tint-warning", "--color-surface-tint-danger-hover", "--color-surface-tint-success-hover", "--color-surface-tint-info-hover", "--color-surface-tint-warning-hover", "--font-family-sans", "--font-family-mono", "--font-w-small", "--font-w-base", "--font-w-mid", "--font-w-strong", "--font-w-bold", "--space", "--space-xsmall", "--space-small", "--space-base", "--space-plus", "--space-mid", "--space-large", "--space-xlarge", "--size", "--size-scale-xsmall", "--size-scale-small", "--size-scale-base", "--size-scale-plus", "--size-scale-mid", "--size-scale-large", "--size-scale-xlarge", "--selection-indicator-small", "--selection-indicator-base", "--selection-indicator-mid", "--selection-indicator-large", "--radius", "--radius-value-xsmall", "--radius-value-small", "--radius-value-base", "--radius-value-mid", "--radius-value-large", "--text-scale-tools", "--text-scale-tools--line-height", "--text-scale-xsmall", "--text-scale-xsmall--line-height", "--text-scale-small", "--text-scale-small--line-height", "--text-scale-base", "--text-scale-base--line-height", "--text-scale-mid", "--text-scale-mid--line-height", "--text-scale-large", "--text-scale-large--line-height", "--text-scale-xlarge", "--text-scale-xlarge--line-height", "--text-scale-2xlarge", "--text-scale-2xlarge--line-height", "--text-scale-3xlarge", "--text-scale-3xlarge--line-height", "--text-accent-header-size", "--text-accent-header-line-height", "--text-accent-header-weight", "--text-header-1-size", "--text-header-1-line-height", "--text-header-1-weight", "--text-header-2-size", "--text-header-2-line-height", "--text-header-2-weight", "--text-large-size", "--text-large-line-height", "--text-large-weight", "--text-base-size", "--text-base-line-height", "--text-base-weight", "--text-small-size", "--text-small-line-height", "--text-small-weight", "--text-mid-size", "--text-mid-line-height", "--text-mid-weight", "--text-tools-size", "--text-tools-line-height", "--text-tools-weight", "--max-component-small", "--max-component-base", "--max-component-mid", "--max-component-large", "--button-min-width-small", "--button-min-width-base", "--button-min-width-mid", "--button-min-width-large", "--control-height-small", "--control-height-base", "--control-height-mid", "--control-height-large", "--avatar-size-small", "--avatar-size-base", "--avatar-size-mid", "--avatar-size-large", "--icon-size-xsmall", "--icon-size-small", "--icon-size-base", "--icon-size-mid", "--icon-size-large", "--icon-size-xlarge", "--icon-size-2xlarge", "--shadow-size", "--shadow-none", "--shadow-base", "--shadow-mid", "--shadow-large", "--toast-scrim-size", "--toast-scrim-density"];
10
+ export declare const designTokenNames: readonly ["--border-width", "--focus-ring-width", "--focus-ring-offset", "--motion-surface-duration", "--motion-surface-ease", "--motion-shadow-ease", "--overlay-backdrop-color", "--overlay-backdrop-blur", "--overlay-backdrop-saturate", "--overlay-backdrop-scrim", "--z-dialog", "--z-dropdown", "--z-dropdown-sub", "--z-popover", "--z-toast", "--z-tooltip", "--color-background", "--color-surface", "--color-border", "--color-foreground", "--color-muted", "--color-primary", "--color-primary-foreground", "--color-primary-hover", "--color-default-hover", "--color-primary-tint", "--color-primary-tint-strong", "--color-indicator", "--color-indicator-foreground", "--color-secondary", "--color-secondary-foreground", "--color-secondary-hover", "--color-tertiary", "--color-tertiary-foreground", "--color-tertiary-hover", "--color-focus-ring", "--color-converge-ripple-primary-fill", "--color-converge-ripple-neutral", "--color-converge-ripple-neutral-muted", "--color-converge-ripple-danger", "--color-converge-ripple-info", "--color-converge-ripple-success", "--color-converge-ripple-warning", "--color-danger", "--color-danger-fill-hover", "--color-danger-foreground", "--color-success", "--color-success-foreground", "--color-success-fill-hover", "--color-info", "--color-info-foreground", "--color-info-fill-hover", "--color-warning", "--color-warning-foreground", "--color-warning-fill-hover", "--color-surface-tint-danger", "--color-surface-tint-success", "--color-surface-tint-info", "--color-surface-tint-warning", "--color-surface-tint-danger-hover", "--color-surface-tint-success-hover", "--color-surface-tint-info-hover", "--color-surface-tint-warning-hover", "--font-family-sans", "--font-family-mono", "--font-w-small", "--font-w-base", "--font-w-mid", "--font-w-strong", "--font-w-bold", "--space", "--space-xsmall", "--space-small", "--space-base", "--space-mid", "--space-large", "--space-xlarge", "--space-2xlarge", "--space-3xlarge", "--size", "--size-scale-xsmall", "--size-scale-small", "--size-scale-base", "--size-scale-mid", "--size-scale-large", "--size-scale-xlarge", "--size-scale-2xlarge", "--size-scale-3xlarge", "--selection-indicator-xsmall", "--selection-indicator-small", "--selection-indicator-base", "--selection-indicator-mid", "--selection-indicator-large", "--selection-indicator-radius-xsmall", "--selection-indicator-radius-small", "--selection-indicator-radius-base", "--selection-indicator-radius-mid", "--selection-indicator-radius-large", "--radius", "--radius-xsmall", "--radius-small", "--radius-base", "--radius-mid", "--radius-large", "--text-scale-xsmall", "--text-scale-xsmall--line-height", "--text-scale-small", "--text-scale-small--line-height", "--text-scale-base", "--text-scale-base--line-height", "--text-scale-mid", "--text-scale-mid--line-height", "--text-scale-large", "--text-scale-large--line-height", "--text-scale-xlarge", "--text-scale-xlarge--line-height", "--text-scale-2xlarge", "--text-scale-2xlarge--line-height", "--text-scale-3xlarge", "--text-scale-3xlarge--line-height", "--text-accent-header-size", "--text-accent-header-line-height", "--text-accent-header-weight", "--text-header-1-size", "--text-header-1-line-height", "--text-header-1-weight", "--text-header-2-size", "--text-header-2-line-height", "--text-header-2-weight", "--text-large-size", "--text-large-line-height", "--text-large-weight", "--text-base-size", "--text-base-line-height", "--text-base-weight", "--text-small-size", "--text-small-line-height", "--text-small-weight", "--text-mid-size", "--text-mid-line-height", "--text-mid-weight", "--text-xsmall-size", "--text-xsmall-line-height", "--text-xsmall-weight", "--max-component-xsmall", "--max-component-small", "--max-component-base", "--max-component-mid", "--max-component-large", "--max-component-xlarge", "--max-component-2xlarge", "--button-min-width-small", "--button-min-width-base", "--button-min-width-mid", "--button-min-width-large", "--control-height-xsmall", "--control-height-small", "--control-height-base", "--control-height-mid", "--control-height-large", "--control-size-xsmall", "--control-size-small", "--control-size-base", "--control-size-mid", "--control-size-large", "--avatar-size-small", "--avatar-size-base", "--avatar-size-mid", "--avatar-size-large", "--icon-size-xsmall", "--icon-size-small", "--icon-size-base", "--icon-size-mid", "--icon-size-large", "--icon-size-xlarge", "--icon-size-2xlarge", "--icon-size-3xlarge", "--shadow-size", "--shadow-none", "--shadow-base", "--shadow-mid", "--shadow-large", "--toast-scrim-size", "--toast-scrim-density"];
8
11
  export type DesignCssVar = (typeof designTokenNames)[number];
9
12
  type ColorCssVarName = Extract<DesignCssVar, `--color-${string}`>;
10
13
  /** Suffix after `--color-` (same as theme key without the `color-` prefix) */
@@ -0,0 +1,17 @@
1
+ /** Modal overlay backdrop tokens — see `--overlay-backdrop-*` in `tokens/styles.css`. */
2
+ export declare const OVERLAY_BACKDROP_CSS_VAR: {
3
+ readonly color: "--overlay-backdrop-color";
4
+ readonly blur: "--overlay-backdrop-blur";
5
+ readonly saturate: "--overlay-backdrop-saturate";
6
+ readonly scrim: "--overlay-backdrop-scrim";
7
+ };
8
+ export type OverlayBackdropCssVar = (typeof OVERLAY_BACKDROP_CSS_VAR)[keyof typeof OVERLAY_BACKDROP_CSS_VAR];
9
+ /** CSS `var(--overlay-backdrop-*)` for inline styles and documentation. */
10
+ export declare function overlayBackdropToken<V extends OverlayBackdropCssVar>(name: V): `var(${V})`;
11
+ /** Defaults — match `:root` in tokens/styles.css. */
12
+ export declare const OVERLAY_BACKDROP_DEFAULTS: {
13
+ readonly color: "color-mix(in oklab, var(--color-foreground) 14%, transparent)";
14
+ readonly blur: "14px";
15
+ readonly saturate: 1.5;
16
+ readonly scrim: "color-mix(in oklab, black 58%, transparent)";
17
+ };
@@ -3,5 +3,26 @@ export declare const burneShadowScale: readonly ["none", "base", "mid", "large"]
3
3
  export type ShadowSize = (typeof burneShadowScale)[number];
4
4
  export type ShadowLevel = Exclude<ShadowSize, "none">;
5
5
  export declare const SHADOW_CSS_VAR: Record<ShadowLevel, `--shadow-${ShadowLevel}`>;
6
+ /** Default `--shadow-size` in `tokens/styles.css` (theme knob identity is separate in SCALE_DEFAULTS). */
7
+ export declare const SHADOW_SIZE_CSS_DEFAULT: number;
8
+ /** Opacity bases per theme × level — single source with `tokens/styles.css` (via sync script). */
9
+ export declare const SHADOW_OPACITY_BASE: {
10
+ dark: {
11
+ base: number;
12
+ mid: number;
13
+ large: number;
14
+ };
15
+ light: {
16
+ base: number;
17
+ mid: number;
18
+ large: number;
19
+ };
20
+ };
21
+ /** One layer: [offsetX, offsetY, blur, spread] — single source with CSS (via sync script). */
22
+ export declare const SHADOW_LAYER_GEOM: {
23
+ readonly base: readonly [number[]];
24
+ readonly mid: readonly [number[]];
25
+ readonly large: readonly [number[]];
26
+ };
6
27
  /** CSS `var(--shadow-base|mid|large)` for inline styles and documentation. */
7
28
  export declare function shadowToken<S extends ShadowLevel>(level: S): `var(--shadow-${S})`;
@@ -0,0 +1,36 @@
1
+ /** Primitive typography sizes (rem) — single source with `tokens/styles.css` (via sync script). */
2
+ export declare const TEXT_SCALE_BASES: {
3
+ xsmall: {
4
+ size: number;
5
+ line: number;
6
+ };
7
+ small: {
8
+ size: number;
9
+ line: number;
10
+ };
11
+ base: {
12
+ size: number;
13
+ line: number;
14
+ };
15
+ mid: {
16
+ size: number;
17
+ line: number;
18
+ };
19
+ large: {
20
+ size: number;
21
+ line: number;
22
+ };
23
+ xlarge: {
24
+ size: number;
25
+ line: number;
26
+ };
27
+ "2xlarge": {
28
+ size: number;
29
+ line: number;
30
+ };
31
+ "3xlarge": {
32
+ size: number;
33
+ line: number;
34
+ };
35
+ };
36
+ export type TextScaleStep = keyof typeof TEXT_SCALE_BASES;