@zyncat/ui 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -202
- package/dist/alert.css +1 -1
- package/dist/alert.js +18 -10
- package/dist/alert.js.map +1 -1
- package/dist/avatar.css +3 -2
- package/dist/badge.css +1 -1
- package/dist/bloom-HV23M4AW.js +81 -0
- package/dist/bloom-HV23M4AW.js.map +1 -0
- package/dist/button.css +21 -24
- package/dist/button.js +3 -1
- package/dist/checkbox.css +1 -1
- package/dist/chunk-2YGHPQ66.js +16 -0
- package/dist/chunk-2YGHPQ66.js.map +1 -0
- package/dist/{chunk-K45CWVHS.js → chunk-3MLUH2QL.js} +4 -4
- package/dist/{chunk-K45CWVHS.js.map → chunk-3MLUH2QL.js.map} +1 -1
- package/dist/{chunk-FVPNICF4.js → chunk-4PQDVK23.js} +4 -4
- package/dist/{chunk-FVPNICF4.js.map → chunk-4PQDVK23.js.map} +1 -1
- package/dist/{chunk-FLQVOSFC.js → chunk-6IXLW7QA.js} +7 -7
- package/dist/{chunk-FLQVOSFC.js.map → chunk-6IXLW7QA.js.map} +1 -1
- package/dist/chunk-7NHY2CRA.js +132 -0
- package/dist/chunk-7NHY2CRA.js.map +1 -0
- package/dist/{chunk-BH4JFWXQ.js → chunk-7VTWJL72.js} +19 -16
- package/dist/chunk-7VTWJL72.js.map +1 -0
- package/dist/chunk-7ZSIUUC3.js +50 -0
- package/dist/chunk-7ZSIUUC3.js.map +1 -0
- package/dist/{chunk-6X3G4GIM.js → chunk-DH7DT6EO.js} +3 -3
- package/dist/{chunk-6X3G4GIM.js.map → chunk-DH7DT6EO.js.map} +1 -1
- package/dist/{chunk-QGVFFT2B.js → chunk-EOWWVFBF.js} +3 -3
- package/dist/{chunk-QGVFFT2B.js.map → chunk-EOWWVFBF.js.map} +1 -1
- package/dist/{chunk-RBSHRRNO.js → chunk-FLDIRXFU.js} +5 -5
- package/dist/{chunk-RBSHRRNO.js.map → chunk-FLDIRXFU.js.map} +1 -1
- package/dist/{chunk-5GBV45YD.js → chunk-GWCBTD63.js} +3 -3
- package/dist/{chunk-5GBV45YD.js.map → chunk-GWCBTD63.js.map} +1 -1
- package/dist/chunk-GZ6UMHCK.js +103 -0
- package/dist/chunk-GZ6UMHCK.js.map +1 -0
- package/dist/{chunk-FEXUS4SV.js → chunk-HWDIVGME.js} +11 -5
- package/dist/chunk-HWDIVGME.js.map +1 -0
- package/dist/chunk-KSAJ6DED.js +16 -0
- package/dist/chunk-KSAJ6DED.js.map +1 -0
- package/dist/{chunk-UYSXJ7MH.js → chunk-LH2UIEKN.js} +7 -17
- package/dist/chunk-LH2UIEKN.js.map +1 -0
- package/dist/{chunk-CAXQJSIE.js → chunk-M2A6PZ7J.js} +6 -6
- package/dist/{chunk-CAXQJSIE.js.map → chunk-M2A6PZ7J.js.map} +1 -1
- package/dist/chunk-NYQQH4R5.js +40 -0
- package/dist/chunk-NYQQH4R5.js.map +1 -0
- package/dist/{chunk-BTF6DAE3.js → chunk-ODRO3KS6.js} +4 -4
- package/dist/{chunk-BTF6DAE3.js.map → chunk-ODRO3KS6.js.map} +1 -1
- package/dist/{chunk-GJTHWB6O.js → chunk-QDAN43B6.js} +3 -3
- package/dist/{chunk-GJTHWB6O.js.map → chunk-QDAN43B6.js.map} +1 -1
- package/dist/{chunk-MDSRZ4QR.js → chunk-RY35IU3G.js} +3 -3
- package/dist/{chunk-MDSRZ4QR.js.map → chunk-RY35IU3G.js.map} +1 -1
- package/dist/{chunk-GOLSYGRA.js → chunk-TBLPZQSI.js} +84 -48
- package/dist/chunk-TBLPZQSI.js.map +1 -0
- package/dist/{chunk-5X3MJRIM.js → chunk-UKPX3RIP.js} +3 -3
- package/dist/{chunk-5X3MJRIM.js.map → chunk-UKPX3RIP.js.map} +1 -1
- package/dist/{chunk-CFRGQJ23.js → chunk-VZXML7EH.js} +4 -4
- package/dist/{chunk-CFRGQJ23.js.map → chunk-VZXML7EH.js.map} +1 -1
- package/dist/{chunk-PWQVSVXR.js → chunk-WC45VSST.js} +8 -8
- package/dist/{chunk-PWQVSVXR.js.map → chunk-WC45VSST.js.map} +1 -1
- package/dist/chunk-WQKWPI6V.js +196 -0
- package/dist/chunk-WQKWPI6V.js.map +1 -0
- package/dist/{chunk-N2GJEO5Z.js → chunk-ZHMOH62S.js} +4 -4
- package/dist/chunk-ZHMOH62S.js.map +1 -0
- package/dist/cli.js +259 -43
- package/dist/collapse.css +8 -5
- package/dist/confetti.css +3 -3
- package/dist/confetti.js +2 -2
- package/dist/date-field.js +16 -14
- package/dist/date-field.js.map +1 -1
- package/dist/date-picker.css +168 -43
- package/dist/date-range-field.js +38 -23
- package/dist/date-range-field.js.map +1 -1
- package/dist/datetime-field.js +17 -15
- package/dist/datetime-field.js.map +1 -1
- package/dist/dialog.css +4 -3
- package/dist/dialog.js +8 -8
- package/dist/digit-strip.css +1 -1
- package/dist/dropdown.css +1 -1
- package/dist/dropdown.js +8 -8
- package/dist/emoji-picker.js +14 -14
- package/dist/facebook-feed.css +1 -1
- package/dist/flow-field.css +4 -4
- package/dist/flow-field.js +3 -3
- package/dist/flow-field.js.map +1 -1
- package/dist/glide.js +3 -3
- package/dist/icon.css +1 -1
- package/dist/input.css +7 -4
- package/dist/instagram-feed.css +1 -1
- package/dist/instagram-feed.js +2 -2
- package/dist/lens.css +1 -2
- package/dist/lens.js +2 -2
- package/dist/mcp.js +1 -1
- package/dist/menu-surface.css +1 -1
- package/dist/modal.css +1 -1
- package/dist/modal.js +6 -6
- package/dist/morphing-text.css +2 -2
- package/dist/morphing-text.js +2 -2
- package/dist/motion-devtools.css +77 -2
- package/dist/motion-devtools.js +194 -37
- package/dist/motion-devtools.js.map +1 -1
- package/dist/motion-tokens.js +1 -1
- package/dist/multi-select.js +9 -9
- package/dist/number-field.js +3 -3
- package/dist/odometer.css +1 -1
- package/dist/odometer.js +2 -2
- package/dist/overlay.css +1 -1
- package/dist/pagination.css +1 -1
- package/dist/pagination.js +6 -4
- package/dist/pagination.js.map +1 -1
- package/dist/paint-CJQCM6ZO.js +260 -0
- package/dist/paint-CJQCM6ZO.js.map +1 -0
- package/dist/popover.css +1 -1
- package/dist/popover.js +6 -6
- package/dist/radio-group.css +6 -4
- package/dist/radio-group.js +6 -6
- package/dist/select.css +1 -1
- package/dist/select.js +9 -9
- package/dist/sheet.css +1 -1
- package/dist/sheet.js +7 -7
- package/dist/spinner.css +115 -0
- package/dist/spinner.js +4 -0
- package/dist/spinner.js.map +1 -0
- package/dist/status-badge.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/support-rail.css +76 -238
- package/dist/support-rail.js +97 -105
- package/dist/support-rail.js.map +1 -1
- package/dist/table.css +2 -2
- package/dist/table.js +8 -6
- package/dist/table.js.map +1 -1
- package/dist/tabs.css +10 -14
- package/dist/tabs.js +6 -6
- package/dist/tag.css +1 -1
- package/dist/tag.js +6 -6
- package/dist/text-field.js +3 -3
- package/dist/textarea.css +1 -1
- package/dist/textarea.js +2 -2
- package/dist/theme-grid.js +11 -0
- package/dist/theme-grid.js.map +1 -0
- package/dist/theme-switcher.css +107 -0
- package/dist/theme-switcher.js +70 -0
- package/dist/theme-switcher.js.map +1 -0
- package/dist/theme-transition-LLC644ZR.js +346 -0
- package/dist/theme-transition-LLC644ZR.js.map +1 -0
- package/dist/theme-transition.css +48 -0
- package/dist/theme.js +57 -26
- package/dist/theme.js.map +1 -1
- package/dist/tide-DJZMDAFT.js +57 -0
- package/dist/tide-DJZMDAFT.js.map +1 -0
- package/dist/tiktok.css +2 -3
- package/dist/tiktok.js +2 -2
- package/dist/time-field.js +4 -4
- package/dist/toast.css +2 -14
- package/dist/toast.js +11 -9
- package/dist/toast.js.map +1 -1
- package/dist/toggle-tag.js +2 -2
- package/dist/toggle.css +1 -1
- package/dist/tooltip.css +1 -1
- package/dist/tooltip.js +5 -5
- package/dist/trigger.css +1 -1
- package/dist/types/components/composites/date-picker/month-jump.d.ts +11 -0
- package/dist/types/components/composites/theme-switcher/ThemeGrid.d.ts +20 -0
- package/dist/types/components/composites/theme-switcher/ThemeSwitcher.d.ts +24 -0
- package/dist/types/components/compound/support-rail/SupportRail.d.ts +10 -8
- package/dist/types/components/dev/MotionDevtools.d.ts +10 -5
- package/dist/types/components/expressive/theme-transition/bloom.d.ts +2 -0
- package/dist/types/components/expressive/theme-transition/paint.d.ts +2 -0
- package/dist/types/components/expressive/theme-transition/scene.d.ts +24 -0
- package/dist/types/components/expressive/theme-transition/theme-transition.d.ts +19 -0
- package/dist/types/components/expressive/theme-transition/tide.d.ts +2 -0
- package/dist/types/components/internal/icon/Icon.d.ts +1 -0
- package/dist/types/components/primitives/button/Button.d.ts +9 -12
- package/dist/types/components/primitives/button/button-style.d.ts +15 -0
- package/dist/types/components/primitives/spinner/Spinner.d.ts +27 -0
- package/dist/types/engine/animate.d.ts +1 -0
- package/dist/types/tokens/component-styles.generated.d.ts +35 -38
- package/dist/types/tokens/motion-tokens.d.ts +2 -2
- package/dist/types/tokens/theme-store.d.ts +47 -0
- package/dist/types/tokens/theme-sync.d.ts +7 -1
- package/dist/types/tokens/theme-tokens.generated.d.ts +121 -109
- package/dist/types/tokens/theme.d.ts +28 -5
- package/dist/typing-lines.css +1 -1
- package/dist/typing-lines.js +2 -2
- package/dist/weight-field.css +2 -2
- package/dist/youtube.css +1 -1
- package/dist/youtube.js +2 -2
- package/package.json +25 -31
- package/skills/zyncat-ui/references/components.md +5 -2
- package/src/components/composites/alert/Alert.tsx +7 -3
- package/src/components/composites/alert/alert.css +1 -1
- package/src/components/composites/date-picker/calendar-panel.tsx +10 -4
- package/src/components/composites/date-picker/date-picker.css +168 -43
- package/src/components/composites/date-picker/month-jump.tsx +192 -0
- package/src/components/composites/date-picker/range-panel.tsx +20 -5
- package/src/components/composites/dialog/dialog.css +4 -3
- package/src/components/composites/dropdown/dropdown.css +1 -1
- package/src/components/composites/emoji-picker/styles.css +1 -1
- package/src/components/composites/modal/modal.css +1 -1
- package/src/components/composites/pagination/pagination.css +1 -1
- package/src/components/composites/popover/popover.css +1 -1
- package/src/components/composites/select/select.css +1 -1
- package/src/components/composites/sheet/sheet.css +1 -1
- package/src/components/composites/table/table.css +2 -2
- package/src/components/composites/tabs/tabs.css +10 -14
- package/src/components/composites/theme-switcher/ThemeGrid.tsx +133 -0
- package/src/components/composites/theme-switcher/ThemeGrid.usage.md +20 -0
- package/src/components/composites/theme-switcher/ThemeSwitcher.tsx +75 -0
- package/src/components/composites/theme-switcher/ThemeSwitcher.usage.md +21 -0
- package/src/components/composites/theme-switcher/theme-switcher.css +107 -0
- package/src/components/composites/toast/Toast.tsx +2 -1
- package/src/components/composites/toast/toast.css +2 -14
- package/src/components/composites/tooltip/tooltip.css +1 -1
- package/src/components/compound/support-rail/SupportRail.tsx +116 -128
- package/src/components/compound/support-rail/SupportRail.usage.md +7 -6
- package/src/components/compound/support-rail/support-rail.css +76 -238
- package/src/components/dev/MotionDevtools.tsx +252 -42
- package/src/components/dev/MotionDevtools.usage.md +12 -4
- package/src/components/dev/motion-devtools.css +77 -2
- package/src/components/dev/slowmo-engine.ts +1 -1
- package/src/components/expressive/confetti/confetti.css +3 -3
- package/src/components/expressive/facebook-feed/facebook-feed.css +1 -1
- package/src/components/expressive/flow-field/FlowField.tsx +1 -1
- package/src/components/expressive/flow-field/flow-field.css +4 -4
- package/src/components/expressive/instagram-feed/instagram-feed.css +1 -1
- package/src/components/expressive/lens/lens.css +1 -2
- package/src/components/expressive/morphing-text/morphing-text.css +2 -2
- package/src/components/expressive/odometer/odometer.css +1 -1
- package/src/components/expressive/theme-transition/bloom.ts +88 -0
- package/src/components/expressive/theme-transition/paint.ts +296 -0
- package/src/components/expressive/theme-transition/scene.ts +38 -0
- package/src/components/expressive/theme-transition/theme-transition.css +48 -0
- package/src/components/expressive/theme-transition/theme-transition.ts +423 -0
- package/src/components/expressive/theme-transition/tide.ts +65 -0
- package/src/components/expressive/tiktok/tiktok.css +2 -3
- package/src/components/expressive/typing-lines/typing-lines.css +1 -1
- package/src/components/expressive/weight-field/weight-field.css +2 -2
- package/src/components/expressive/youtube/youtube.css +1 -1
- package/src/components/internal/glass/glass.css +1 -1
- package/src/components/internal/icon/Icon.tsx +2 -0
- package/src/components/internal/icon/icon.css +1 -1
- package/src/components/internal/menu/menu-surface.css +1 -1
- package/src/components/internal/overlay/overlay.css +1 -1
- package/src/components/internal/overlay/trigger.css +1 -1
- package/src/components/primitives/avatar/avatar.css +3 -2
- package/src/components/primitives/badge/badge.css +1 -1
- package/src/components/primitives/badge/digit-strip.css +1 -1
- package/src/components/primitives/button/Button.tsx +12 -26
- package/src/components/primitives/button/button-style.ts +28 -0
- package/src/components/primitives/button/button.css +21 -24
- package/src/components/primitives/checkbox/checkbox.css +1 -1
- package/src/components/primitives/collapse/collapse.css +8 -5
- package/src/components/primitives/input/input.css +7 -4
- package/src/components/primitives/radio-group/radio-group.css +6 -4
- package/src/components/primitives/spinner/Spinner.tsx +70 -0
- package/src/components/primitives/spinner/Spinner.usage.md +19 -0
- package/src/components/primitives/spinner/spinner.css +115 -0
- package/src/components/primitives/tag/tag.css +1 -1
- package/src/components/primitives/textarea/textarea.css +1 -1
- package/src/components/primitives/toggle/toggle.css +1 -1
- package/src/engine/animate.ts +10 -2
- package/src/mcp/server.ts +2 -1
- package/src/styles.css +3 -3
- package/src/tokens/base.css +5 -5
- package/src/tokens/color.css +8 -9
- package/src/tokens/component-styles.generated.ts +36 -38
- package/src/tokens/dark.css +8 -13
- package/src/tokens/decisions.css +5 -8
- package/src/tokens/elevation.css +18 -26
- package/src/tokens/glass.css +3 -2
- package/src/tokens/motion-defaults.generated.ts +1 -1
- package/src/tokens/motion-tokens.ts +3 -3
- package/src/tokens/motion.css +9 -9
- package/src/tokens/radius.css +3 -2
- package/src/tokens/reset.css +36 -0
- package/src/tokens/semantic.css +10 -18
- package/src/tokens/spacing.css +1 -1
- package/src/tokens/theme-store.ts +187 -0
- package/src/tokens/theme-sync.tsx +49 -2
- package/src/tokens/theme-tokens.generated.ts +124 -110
- package/src/tokens/theme.tsx +96 -24
- package/src/tokens/theme.usage.md +25 -24
- package/src/tokens/typography.css +4 -3
- package/tailwind.css +7 -13
- package/dist/chunk-6SUHSSOK.js +0 -25
- package/dist/chunk-6SUHSSOK.js.map +0 -1
- package/dist/chunk-BH4JFWXQ.js.map +0 -1
- package/dist/chunk-FEXUS4SV.js.map +0 -1
- package/dist/chunk-GOLSYGRA.js.map +0 -1
- package/dist/chunk-N2GJEO5Z.js.map +0 -1
- package/dist/chunk-UYSXJ7MH.js.map +0 -1
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
*/
|
|
11
11
|
/** Surfaces - the canvas, cards, fills and the overlay scrim. */
|
|
12
12
|
export interface ColorBgTokens {
|
|
13
|
-
/** `--bg-app` -
|
|
13
|
+
/** `--bg-app` - Canvas, cards and panels share the top of the ramp, separated by hairlines rather than tint. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.165 0.006 h)`. */
|
|
14
14
|
app?: string | number;
|
|
15
|
-
/** `--bg-surface`. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.
|
|
15
|
+
/** `--bg-surface`. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.165 0.006 h)`. */
|
|
16
16
|
surface?: string | number;
|
|
17
|
-
/** `--bg-surface-raised`. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.
|
|
17
|
+
/** `--bg-surface-raised`. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.195 0.007 h)`. */
|
|
18
18
|
surfaceRaised?: string | number;
|
|
19
|
-
/** `--bg-subtle`. Default: `var(--gray-50)`. Dark: `oklch(from var(--neutral) 0.
|
|
19
|
+
/** `--bg-subtle`. Default: `var(--gray-50)`. Dark: `oklch(from var(--neutral) 0.154 0.006 h)`. */
|
|
20
20
|
subtle?: string | number;
|
|
21
|
-
/** `--bg-muted`. Default: `var(--gray-100)`. Dark: `oklch(from var(--neutral) 0.
|
|
21
|
+
/** `--bg-muted`. Default: `var(--gray-100)`. Dark: `oklch(from var(--neutral) 0.14 0.007 h)`. */
|
|
22
22
|
muted?: string | number;
|
|
23
|
-
/** `--bg-inset`. Default: `var(--gray-150)`. Dark: `oklch(from var(--neutral) 0.
|
|
23
|
+
/** `--bg-inset`. Default: `var(--gray-150)`. Dark: `oklch(from var(--neutral) 0.124 0.007 h)`. */
|
|
24
24
|
inset?: string | number;
|
|
25
25
|
/** `--bg-overlay`. Default: `color-mix(in oklab, var(--gray-900) 44%, transparent)`. Dark: `oklch(from var(--neutral) 0.06 0.004 h / 0.64)`. */
|
|
26
26
|
overlay?: string | number;
|
|
27
27
|
}
|
|
28
28
|
/** Ink, from strong to disabled, and the faces on a fill. */
|
|
29
29
|
export interface ColorTextTokens {
|
|
30
|
-
/** `--text-on-accent` - The ink on a hue fill -
|
|
30
|
+
/** `--text-on-accent` - The ink on a hue fill - the ramp's lightest rung in either polarity. Default: `var(--gray-0)`. */
|
|
31
31
|
onAccent?: string | number;
|
|
32
32
|
/** `--text-strong`. Default: `var(--gray-950)`. Dark: `oklch(from var(--neutral) 0.975 0.003 h)`. */
|
|
33
33
|
strong?: string | number;
|
|
@@ -57,7 +57,7 @@ export interface ColorBorderTokens {
|
|
|
57
57
|
export interface ColorTokens {
|
|
58
58
|
/** `--accent` - The brand hue - hover, active, lift, subtle, border, wash, the focus ring and info follow. Default: `oklch(0.63 0.118 198)`. */
|
|
59
59
|
accent?: string | number;
|
|
60
|
-
/** `--neutral` - The gray ramp's hue - the accent by default, so chrome shares its temperature.
|
|
60
|
+
/** `--neutral` - The gray ramp's hue - the accent by default, so chrome shares its temperature. Default: `var(--accent)`. */
|
|
61
61
|
neutral?: string | number;
|
|
62
62
|
/** `--success` - Positive status - its subtle, text and wash follow. Default: `oklch(0.548 0.122 152)`. */
|
|
63
63
|
success?: string | number;
|
|
@@ -86,7 +86,7 @@ export interface TypeTokens {
|
|
|
86
86
|
}
|
|
87
87
|
/** Roundness. */
|
|
88
88
|
export interface ShapeTokens {
|
|
89
|
-
/** `--radius` - Roundness - every --radius-<step> is a fixed ratio of it
|
|
89
|
+
/** `--radius` - Roundness - every --radius-<step> is a fixed ratio of it, 0 squaring every corner. Default: `0.5rem`. */
|
|
90
90
|
radius?: string | number;
|
|
91
91
|
}
|
|
92
92
|
/** The time bands. */
|
|
@@ -99,11 +99,11 @@ export interface MotionDurationTokens {
|
|
|
99
99
|
slow?: string | number;
|
|
100
100
|
/** `--duration-slower` - large-surface movement - dialog, sheet, page-scale reveals. Default: `450ms`. Collapses to `1ms` under reduced motion. */
|
|
101
101
|
slower?: string | number;
|
|
102
|
-
/** `--duration-slowest` - hero-scale movement - card expansion, container transforms
|
|
102
|
+
/** `--duration-slowest` - hero-scale movement - card expansion, container transforms. Default: `900ms`. Collapses to `1ms` under reduced motion. */
|
|
103
103
|
slowest?: string | number;
|
|
104
|
-
/** `--duration-spin` - continuous loaders only
|
|
104
|
+
/** `--duration-spin` - continuous loaders only, outside the UI-transition scale. Default: `1000ms`. Collapses to `2000ms` under reduced motion. */
|
|
105
105
|
spin?: string | number;
|
|
106
|
-
/** `--duration-pulse` - ambient
|
|
106
|
+
/** `--duration-pulse` - ambient breathing, not collapsed under reduced motion. Default: `1600ms`. */
|
|
107
107
|
pulse?: string | number;
|
|
108
108
|
}
|
|
109
109
|
/** The brand curves. */
|
|
@@ -121,7 +121,7 @@ export interface MotionEaseTokens {
|
|
|
121
121
|
}
|
|
122
122
|
/** How far a surface travels on the way in or out. */
|
|
123
123
|
export interface MotionDistanceTokens {
|
|
124
|
-
/** `--distance-sm` - 8px - settling into place
|
|
124
|
+
/** `--distance-sm` - 8px - settling into place. Default: `0.5rem`. */
|
|
125
125
|
sm?: string | number;
|
|
126
126
|
/** `--distance-md` - 16px - arriving from an adjacent position - page turns, tab panels, paged ranges. Default: `1rem`. */
|
|
127
127
|
md?: string | number;
|
|
@@ -148,24 +148,24 @@ export interface MotionTokens {
|
|
|
148
148
|
/** What a surface scales from on the way in, and to on the way out. */
|
|
149
149
|
scale?: MotionScaleTokens;
|
|
150
150
|
}
|
|
151
|
-
/** `--confetti-paper-1` to `--confetti-paper-5` - The five papers a burst draws from
|
|
151
|
+
/** `--confetti-paper-1` to `--confetti-paper-5` - The five papers a burst draws from. */
|
|
152
152
|
export interface ConfettiPaperTokens {
|
|
153
|
-
/** `--confetti-paper-1` - The five papers a burst draws from
|
|
153
|
+
/** `--confetti-paper-1` - The five papers a burst draws from. Default: `oklch(0.53 0.2 288)`. */
|
|
154
154
|
1?: string | number;
|
|
155
|
-
/** `--confetti-paper-2` - The five papers a burst draws from
|
|
155
|
+
/** `--confetti-paper-2` - The five papers a burst draws from. Default: `var(--accent)`. */
|
|
156
156
|
2?: string | number;
|
|
157
|
-
/** `--confetti-paper-3` - The five papers a burst draws from
|
|
157
|
+
/** `--confetti-paper-3` - The five papers a burst draws from. Default: `oklch(0.78 0.115 62)`. */
|
|
158
158
|
3?: string | number;
|
|
159
|
-
/** `--confetti-paper-4` - The five papers a burst draws from
|
|
159
|
+
/** `--confetti-paper-4` - The five papers a burst draws from. Default: `oklch(0.67 0.18 12)`. */
|
|
160
160
|
4?: string | number;
|
|
161
|
-
/** `--confetti-paper-5` - The five papers a burst draws from
|
|
161
|
+
/** `--confetti-paper-5` - The five papers a burst draws from. Default: `var(--text-strong)`. */
|
|
162
162
|
5?: string | number;
|
|
163
163
|
}
|
|
164
164
|
/** The scoped properties Confetti publishes as its theming contract. */
|
|
165
165
|
export interface ConfettiTokens {
|
|
166
|
-
/** `--confetti-paper-1` to `--confetti-paper-5` - The five papers a burst draws from
|
|
166
|
+
/** `--confetti-paper-1` to `--confetti-paper-5` - The five papers a burst draws from. */
|
|
167
167
|
paper?: ConfettiPaperTokens;
|
|
168
|
-
/** `--confetti-weights` - How often each paper appears
|
|
168
|
+
/** `--confetti-weights` - How often each paper appears, in slot order. Default: `1 1 1 1 0.45`. */
|
|
169
169
|
weights?: string | number;
|
|
170
170
|
/** `--confetti-ink` - What the reverse side of a piece darkens toward. Default: `var(--text-strong)`. */
|
|
171
171
|
ink?: string | number;
|
|
@@ -178,42 +178,42 @@ export interface ConfettiTokens {
|
|
|
178
178
|
/** `--confetti-layer` - The z-index of a viewport-field burst. Default: `var(--layer-toast)`. */
|
|
179
179
|
layer?: string | number;
|
|
180
180
|
}
|
|
181
|
-
/** `--flow-field-ramp-0` to `--flow-field-ramp-11` - The twelve stops from ink to accent,
|
|
181
|
+
/** `--flow-field-ramp-0` to `--flow-field-ramp-11` - The twelve stops from ink to accent, set together for a ramp of your own. */
|
|
182
182
|
export interface FlowFieldRampTokens {
|
|
183
|
-
/** `--flow-field-ramp-0` - The twelve stops from ink to accent,
|
|
183
|
+
/** `--flow-field-ramp-0` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `var(--flow-field-ink)`. */
|
|
184
184
|
0?: string | number;
|
|
185
|
-
/** `--flow-field-ramp-1` - The twelve stops from ink to accent,
|
|
185
|
+
/** `--flow-field-ramp-1` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 9%, var(--flow-field-ink))`. */
|
|
186
186
|
1?: string | number;
|
|
187
|
-
/** `--flow-field-ramp-2` - The twelve stops from ink to accent,
|
|
187
|
+
/** `--flow-field-ramp-2` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 18%, var(--flow-field-ink))`. */
|
|
188
188
|
2?: string | number;
|
|
189
|
-
/** `--flow-field-ramp-3` - The twelve stops from ink to accent,
|
|
189
|
+
/** `--flow-field-ramp-3` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 27%, var(--flow-field-ink))`. */
|
|
190
190
|
3?: string | number;
|
|
191
|
-
/** `--flow-field-ramp-4` - The twelve stops from ink to accent,
|
|
191
|
+
/** `--flow-field-ramp-4` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 36%, var(--flow-field-ink))`. */
|
|
192
192
|
4?: string | number;
|
|
193
|
-
/** `--flow-field-ramp-5` - The twelve stops from ink to accent,
|
|
193
|
+
/** `--flow-field-ramp-5` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 45%, var(--flow-field-ink))`. */
|
|
194
194
|
5?: string | number;
|
|
195
|
-
/** `--flow-field-ramp-6` - The twelve stops from ink to accent,
|
|
195
|
+
/** `--flow-field-ramp-6` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 55%, var(--flow-field-ink))`. */
|
|
196
196
|
6?: string | number;
|
|
197
|
-
/** `--flow-field-ramp-7` - The twelve stops from ink to accent,
|
|
197
|
+
/** `--flow-field-ramp-7` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 64%, var(--flow-field-ink))`. */
|
|
198
198
|
7?: string | number;
|
|
199
|
-
/** `--flow-field-ramp-8` - The twelve stops from ink to accent,
|
|
199
|
+
/** `--flow-field-ramp-8` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 73%, var(--flow-field-ink))`. */
|
|
200
200
|
8?: string | number;
|
|
201
|
-
/** `--flow-field-ramp-9` - The twelve stops from ink to accent,
|
|
201
|
+
/** `--flow-field-ramp-9` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 82%, var(--flow-field-ink))`. */
|
|
202
202
|
9?: string | number;
|
|
203
|
-
/** `--flow-field-ramp-10` - The twelve stops from ink to accent,
|
|
203
|
+
/** `--flow-field-ramp-10` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 91%, var(--flow-field-ink))`. */
|
|
204
204
|
10?: string | number;
|
|
205
|
-
/** `--flow-field-ramp-11` - The twelve stops from ink to accent,
|
|
205
|
+
/** `--flow-field-ramp-11` - The twelve stops from ink to accent, set together for a ramp of your own. Default: `var(--flow-field-accent)`. */
|
|
206
206
|
11?: string | number;
|
|
207
207
|
}
|
|
208
208
|
/** The scoped properties FlowField publishes as its theming contract. */
|
|
209
209
|
export interface FlowFieldTokens {
|
|
210
|
-
/** `--flow-field-ink` - The particle colour at rest
|
|
210
|
+
/** `--flow-field-ink` - The particle colour at rest. Default: `var(--text-subtle)`. */
|
|
211
211
|
ink?: string | number;
|
|
212
|
-
/** `--flow-field-accent` - The particle colour at full speed
|
|
212
|
+
/** `--flow-field-accent` - The particle colour at full speed. Default: `var(--accent)`. */
|
|
213
213
|
accent?: string | number;
|
|
214
214
|
/** `--flow-field-min-height` - The field's minimum height before content sizes it. Default: `var(--space-10)`. */
|
|
215
215
|
minHeight?: string | number;
|
|
216
|
-
/** `--flow-field-ramp-0` to `--flow-field-ramp-11` - The twelve stops from ink to accent,
|
|
216
|
+
/** `--flow-field-ramp-0` to `--flow-field-ramp-11` - The twelve stops from ink to accent, set together for a ramp of your own. */
|
|
217
217
|
ramp?: FlowFieldRampTokens;
|
|
218
218
|
}
|
|
219
219
|
/** The `--lens-fringe-*` knobs. */
|
|
@@ -255,7 +255,7 @@ export interface MorphingTextTokens {
|
|
|
255
255
|
leading?: string | number;
|
|
256
256
|
/** `--morphing-text-tracking` - Letter spacing. Default: `var(--tracking-display)`. */
|
|
257
257
|
tracking?: string | number;
|
|
258
|
-
/** `--morphing-text-smear` - How much letters blur
|
|
258
|
+
/** `--morphing-text-smear` - How much letters blur between words, 0 cutting clean. Default: `1`. */
|
|
259
259
|
smear?: string | number;
|
|
260
260
|
/** The `--morphing-text-rule-*` knobs. */
|
|
261
261
|
rule?: MorphingTextRuleTokens;
|
|
@@ -275,6 +275,11 @@ export interface OdometerTokens {
|
|
|
275
275
|
/** `--odometer-weight` - Digit weight. Default: `var(--weight-medium)`. */
|
|
276
276
|
weight?: string | number;
|
|
277
277
|
}
|
|
278
|
+
/** The scoped properties ThemeTransition publishes as its theming contract. */
|
|
279
|
+
export interface ThemeTransitionTokens {
|
|
280
|
+
/** `--theme-transition-layer` - The z-index the arriving page paints at, above every panel it covers. Default: `var(--layer-infinity)`. */
|
|
281
|
+
layer?: string | number;
|
|
282
|
+
}
|
|
278
283
|
/** The `--typing-lines-caret-*` knobs. */
|
|
279
284
|
export interface TypingLinesCaretTokens {
|
|
280
285
|
/** `--typing-lines-caret-ink` - The caret. Default: `var(--accent)`. */
|
|
@@ -321,7 +326,7 @@ export interface WeightFieldTokens {
|
|
|
321
326
|
peakWeight?: string | number;
|
|
322
327
|
/** `--weight-field-hover-padding` - How much a unit widens under the pointer. Default: `calc(1em / 12)`. */
|
|
323
328
|
hoverPadding?: string | number;
|
|
324
|
-
/** `--weight-field-stroke` - The text stroke every unit carries
|
|
329
|
+
/** `--weight-field-stroke` - The text stroke every unit carries, doubled on the peak letter. Default: `calc(1em * 125 / 6000)`. */
|
|
325
330
|
stroke?: string | number;
|
|
326
331
|
/** `--weight-field-duration` - How long a unit takes to settle at a new weight. Default: `400ms`. */
|
|
327
332
|
duration?: string | number;
|
|
@@ -330,35 +335,27 @@ export interface WeightFieldTokens {
|
|
|
330
335
|
}
|
|
331
336
|
/** The `--support-rail-row-*` knobs. */
|
|
332
337
|
export interface SupportRailRowTokens {
|
|
333
|
-
/** `--support-rail-row-pad-block` - Row padding on the block axis
|
|
338
|
+
/** `--support-rail-row-pad-block` - Row padding on the block axis. Default: `var(--space-3)`. */
|
|
334
339
|
padBlock?: string | number;
|
|
335
|
-
/** `--support-rail-row-pad-inline` - Row padding on the inline axis
|
|
340
|
+
/** `--support-rail-row-pad-inline` - Row padding on the inline axis. Default: `var(--space-4)`. */
|
|
336
341
|
padInline?: string | number;
|
|
337
342
|
}
|
|
338
343
|
/** The scoped properties SupportRail publishes as its theming contract. */
|
|
339
344
|
export interface SupportRailTokens {
|
|
340
|
-
/** `--support-rail-width` - Panel width
|
|
345
|
+
/** `--support-rail-width` - Panel width, capped by the container. Default: `318px`. */
|
|
341
346
|
width?: string | number;
|
|
342
347
|
/** The `--support-rail-row-*` knobs. */
|
|
343
348
|
row?: SupportRailRowTokens;
|
|
344
|
-
/** `--support-rail-surface` - The
|
|
349
|
+
/** `--support-rail-surface` - The tab, and the panel it morphs into. Default: `var(--bg-subtle)`. */
|
|
345
350
|
surface?: string | number;
|
|
346
|
-
/** `--support-rail-surface-raised` - The
|
|
351
|
+
/** `--support-rail-surface-raised` - The tab while hovered. Default: `var(--bg-surface)`. */
|
|
347
352
|
surfaceRaised?: string | number;
|
|
348
|
-
/** `--support-rail-line` - The
|
|
353
|
+
/** `--support-rail-line` - The surface's edge. Default: `var(--border-default)`. */
|
|
349
354
|
line?: string | number;
|
|
350
|
-
/** `--support-rail-line-soft` - Row dividers
|
|
355
|
+
/** `--support-rail-line-soft` - Row dividers. Default: `var(--border-subtle)`. */
|
|
351
356
|
lineSoft?: string | number;
|
|
352
|
-
/** `--support-rail-
|
|
353
|
-
accent?: string | number;
|
|
354
|
-
/** `--support-rail-live-color` - The live dot and its pulse. Default: `var(--success)`. */
|
|
355
|
-
liveColor?: string | number;
|
|
356
|
-
/** `--support-rail-radius` - The needle's outer corners. Default: `var(--radius-2xl)`. */
|
|
357
|
+
/** `--support-rail-radius` - The tab's outer corners. Default: `var(--radius-2xl)`. */
|
|
357
358
|
radius?: string | number;
|
|
358
|
-
/** `--support-rail-open-duration` - How long the panel takes to open. Default: `calc(var(--duration-slower) * 1.4)`. */
|
|
359
|
-
openDuration?: string | number;
|
|
360
|
-
/** `--support-rail-close-duration` - How long the panel takes to close. Default: `var(--duration-slower)`. */
|
|
361
|
-
closeDuration?: string | number;
|
|
362
359
|
}
|
|
363
360
|
/** Per-component knobs - retunes every instance of that component. */
|
|
364
361
|
export interface ComponentTokens {
|
|
@@ -372,6 +369,8 @@ export interface ComponentTokens {
|
|
|
372
369
|
morphingText?: MorphingTextTokens;
|
|
373
370
|
/** Odometer - its `--odometer-*` properties. */
|
|
374
371
|
odometer?: OdometerTokens;
|
|
372
|
+
/** ThemeTransition - its `--theme-transition-*` properties. */
|
|
373
|
+
themeTransition?: ThemeTransitionTokens;
|
|
375
374
|
/** TypingLines - its `--typing-lines-*` properties. */
|
|
376
375
|
typingLines?: TypingLinesTokens;
|
|
377
376
|
/** WeightField - its `--weight-field-*` properties. */
|
|
@@ -392,41 +391,41 @@ export interface TokenProperties {
|
|
|
392
391
|
'--warning'?: string | number;
|
|
393
392
|
/** `--danger` - Destructive actions and errors - the danger button ladder, ring, subtle, text and wash follow. Default: `oklch(0.545 0.196 27)`. */
|
|
394
393
|
'--danger'?: string | number;
|
|
395
|
-
/** `--neutral` - The gray ramp's hue - the accent by default, so chrome shares its temperature.
|
|
394
|
+
/** `--neutral` - The gray ramp's hue - the accent by default, so chrome shares its temperature. Default: `var(--accent)`. */
|
|
396
395
|
'--neutral'?: string | number;
|
|
397
|
-
/** `--radius` - Roundness - every --radius-<step> is a fixed ratio of it
|
|
396
|
+
/** `--radius` - Roundness - every --radius-<step> is a fixed ratio of it, 0 squaring every corner. Default: `0.5rem`. */
|
|
398
397
|
'--radius'?: string | number;
|
|
399
398
|
/** `--font-body` - The body face - every --type-* bundle follows. Default: `'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif`. */
|
|
400
399
|
'--font-body'?: string | number;
|
|
401
400
|
/** `--font-code` - The code face - --type-code follows. Default: `'Geist Mono', ui-monospace, 'SF Mono', 'Menlo', monospace`. */
|
|
402
401
|
'--font-code'?: string | number;
|
|
403
|
-
/** `--gray-0
|
|
402
|
+
/** `--gray-0` - The top of the ramp, not pure white: it carries --neutral like every rung below it. Default: `oklch(from var(--neutral) 0.995 0.002 h)`. Re-derived on every theme root. */
|
|
404
403
|
'--gray-0'?: string | number;
|
|
405
|
-
/** `--gray-50`. Default: `oklch(from var(--neutral) 0.984 0.003 h)`. */
|
|
404
|
+
/** `--gray-50`. Default: `oklch(from var(--neutral) 0.984 0.003 h)`. Re-derived on every theme root. */
|
|
406
405
|
'--gray-50'?: string | number;
|
|
407
|
-
/** `--gray-100`. Default: `oklch(from var(--neutral) 0.97 0.004 h)`. */
|
|
406
|
+
/** `--gray-100`. Default: `oklch(from var(--neutral) 0.97 0.004 h)`. Re-derived on every theme root. */
|
|
408
407
|
'--gray-100'?: string | number;
|
|
409
|
-
/** `--gray-150`. Default: `oklch(from var(--neutral) 0.954 0.005 h)`. */
|
|
408
|
+
/** `--gray-150`. Default: `oklch(from var(--neutral) 0.954 0.005 h)`. Re-derived on every theme root. */
|
|
410
409
|
'--gray-150'?: string | number;
|
|
411
|
-
/** `--gray-200`. Default: `oklch(from var(--neutral) 0.924 0.006 h)`. */
|
|
410
|
+
/** `--gray-200`. Default: `oklch(from var(--neutral) 0.924 0.006 h)`. Re-derived on every theme root. */
|
|
412
411
|
'--gray-200'?: string | number;
|
|
413
|
-
/** `--gray-300`. Default: `oklch(from var(--neutral) 0.874 0.007 h)`. */
|
|
412
|
+
/** `--gray-300`. Default: `oklch(from var(--neutral) 0.874 0.007 h)`. Re-derived on every theme root. */
|
|
414
413
|
'--gray-300'?: string | number;
|
|
415
|
-
/** `--gray-400`. Default: `oklch(from var(--neutral) 0.765 0.009 h)`. */
|
|
414
|
+
/** `--gray-400`. Default: `oklch(from var(--neutral) 0.765 0.009 h)`. Re-derived on every theme root. */
|
|
416
415
|
'--gray-400'?: string | number;
|
|
417
|
-
/** `--gray-500`. Default: `oklch(from var(--neutral) 0.642 0.011 h)`. */
|
|
416
|
+
/** `--gray-500`. Default: `oklch(from var(--neutral) 0.642 0.011 h)`. Re-derived on every theme root. */
|
|
418
417
|
'--gray-500'?: string | number;
|
|
419
|
-
/** `--gray-600`. Default: `oklch(from var(--neutral) 0.532 0.012 h)`. */
|
|
418
|
+
/** `--gray-600`. Default: `oklch(from var(--neutral) 0.532 0.012 h)`. Re-derived on every theme root. */
|
|
420
419
|
'--gray-600'?: string | number;
|
|
421
|
-
/** `--gray-700`. Default: `oklch(from var(--neutral) 0.422 0.012 h)`. */
|
|
420
|
+
/** `--gray-700`. Default: `oklch(from var(--neutral) 0.422 0.012 h)`. Re-derived on every theme root. */
|
|
422
421
|
'--gray-700'?: string | number;
|
|
423
|
-
/** `--gray-800`. Default: `oklch(from var(--neutral) 0.305 0.01 h)`. */
|
|
422
|
+
/** `--gray-800`. Default: `oklch(from var(--neutral) 0.305 0.01 h)`. Re-derived on every theme root. */
|
|
424
423
|
'--gray-800'?: string | number;
|
|
425
|
-
/** `--gray-900`. Default: `oklch(from var(--neutral) 0.225 0.008 h)`. */
|
|
424
|
+
/** `--gray-900`. Default: `oklch(from var(--neutral) 0.225 0.008 h)`. Re-derived on every theme root. */
|
|
426
425
|
'--gray-900'?: string | number;
|
|
427
|
-
/** `--gray-950`. Default: `oklch(from var(--neutral) 0.165 0.007 h)`. */
|
|
426
|
+
/** `--gray-950`. Default: `oklch(from var(--neutral) 0.165 0.007 h)`. Re-derived on every theme root. */
|
|
428
427
|
'--gray-950'?: string | number;
|
|
429
|
-
/** `--shadow-rgb` - Cool near-black
|
|
428
|
+
/** `--shadow-rgb` - Cool near-black on the white canvas. Default: `15 22 25`. Dark: `0 0 0`. */
|
|
430
429
|
'--shadow-rgb'?: string | number;
|
|
431
430
|
/** `--weight-regular`. Default: `400`. */
|
|
432
431
|
'--weight-regular'?: string | number;
|
|
@@ -480,7 +479,7 @@ export interface TokenProperties {
|
|
|
480
479
|
'--tracking-tight'?: string | number;
|
|
481
480
|
/** `--tracking-display`. Default: `-0.021em`. */
|
|
482
481
|
'--tracking-display'?: string | number;
|
|
483
|
-
/** `--type-display-lg` -
|
|
482
|
+
/** `--type-display-lg` - Size, leading, weight and tracking pre-composed - reach for these first. Default: `var(--weight-semibold) var(--size-display-lg)/var(--leading-display-lg) var(--font-body)`. Re-derived on every theme root. */
|
|
484
483
|
'--type-display-lg'?: string | number;
|
|
485
484
|
/** `--type-display`. Default: `var(--weight-semibold) var(--size-display)/var(--leading-display) var(--font-body)`. Re-derived on every theme root. */
|
|
486
485
|
'--type-display'?: string | number;
|
|
@@ -554,23 +553,25 @@ export interface TokenProperties {
|
|
|
554
553
|
'--radius-xl'?: string | number;
|
|
555
554
|
/** `--radius-2xl`. Default: `calc(var(--radius) * 2)`. Re-derived on every theme root. */
|
|
556
555
|
'--radius-2xl'?: string | number;
|
|
557
|
-
/** `--border-hairline
|
|
556
|
+
/** `--border-hairline`. Default: `1px`. */
|
|
558
557
|
'--border-hairline'?: string | number;
|
|
559
558
|
/** `--border-emphasis`. Default: `1.5px`. */
|
|
560
559
|
'--border-emphasis'?: string | number;
|
|
561
|
-
/** `--ring-width` - How far every focus ring reaches past the border box
|
|
560
|
+
/** `--ring-width` - How far every focus ring reaches past the border box. Default: `3px`. */
|
|
562
561
|
'--ring-width'?: string | number;
|
|
563
|
-
/** `--layer-overlay` - a band - each overlay adds its stack depth
|
|
562
|
+
/** `--layer-overlay` - a band - each overlay adds its stack depth on top. Default: `1000`. */
|
|
564
563
|
'--layer-overlay'?: string | number;
|
|
565
564
|
/** `--layer-toast`. Default: `1050`. */
|
|
566
565
|
'--layer-toast'?: string | number;
|
|
567
566
|
/** `--layer-tooltip`. Default: `1100`. */
|
|
568
567
|
'--layer-tooltip'?: string | number;
|
|
569
|
-
/** `--
|
|
568
|
+
/** `--layer-infinity`. Default: `2147483647`. */
|
|
569
|
+
'--layer-infinity'?: string | number;
|
|
570
|
+
/** `--shadow-strength` - Multiplies every shadow alpha - 3-4x on dark. Default: `1`. Dark: `3.5`. */
|
|
570
571
|
'--shadow-strength'?: string | number;
|
|
571
|
-
/** `--sheen-strength` - Multiplies every white top-light highlight
|
|
572
|
+
/** `--sheen-strength` - Multiplies every white top-light highlight. Default: `1`. Dark: `0.2`. */
|
|
572
573
|
'--sheen-strength'?: string | number;
|
|
573
|
-
/** `--glow-strength` - Multiplies the light a lifted hue fill casts around it - off on the white canvas
|
|
574
|
+
/** `--glow-strength` - Multiplies the light a lifted hue fill casts around it - off on the white canvas. Default: `0`. Dark: `1`. */
|
|
574
575
|
'--glow-strength'?: string | number;
|
|
575
576
|
/** `--shadow-xs`. Default: `0 1px 1px rgb(var(--shadow-rgb) / calc(0.04 * var(--shadow-strength)))`. Re-derived on every theme root. */
|
|
576
577
|
'--shadow-xs'?: string | number;
|
|
@@ -578,11 +579,11 @@ export interface TokenProperties {
|
|
|
578
579
|
'--shadow-sm'?: string | number;
|
|
579
580
|
/** `--shadow-md`. Default: `0 2px 4px rgb(var(--shadow-rgb) / calc(0.04 * var(--shadow-strength))), 0 6px 12px rgb(var(--shadow-rgb) / calc(0.07 * var(--shadow-strength)))`. Re-derived on every theme root. */
|
|
580
581
|
'--shadow-md'?: string | number;
|
|
581
|
-
/** `--shadow-lg
|
|
582
|
+
/** `--shadow-lg`. Default: `0 1px 2px rgb(var(--shadow-rgb) / calc(0.06 * var(--shadow-strength))), 0 4px 8px rgb(var(--shadow-rgb) / calc(0.04 * var(--shadow-strength))), 0 12px 28px rgb(var(--shadow-rgb) / calc(0.1 * var(--shadow-strength)))`. Re-derived on every theme root. */
|
|
582
583
|
'--shadow-lg'?: string | number;
|
|
583
584
|
/** `--shadow-xl`. Default: `0 1px 2px rgb(var(--shadow-rgb) / calc(0.06 * var(--shadow-strength))), 0 8px 16px rgb(var(--shadow-rgb) / calc(0.06 * var(--shadow-strength))), 0 24px 48px rgb(var(--shadow-rgb) / calc(0.14 * var(--shadow-strength)))`. Re-derived on every theme root. */
|
|
584
585
|
'--shadow-xl'?: string | number;
|
|
585
|
-
/** `--ring-color-accent` -
|
|
586
|
+
/** `--ring-color-accent` - Danger rings on its fill tone, the lighter face the destructive button rests on. Default: `color-mix(in oklab, var(--accent) 32%, transparent)`. Re-derived on every theme root. */
|
|
586
587
|
'--ring-color-accent'?: string | number;
|
|
587
588
|
/** `--ring-color-danger`. Default: `oklch(from var(--danger) 0.602 0.196 h / 0.3)`. Re-derived on every theme root. */
|
|
588
589
|
'--ring-color-danger'?: string | number;
|
|
@@ -590,10 +591,12 @@ export interface TokenProperties {
|
|
|
590
591
|
'--ring-color-warning'?: string | number;
|
|
591
592
|
/** `--ring-color-success`. Default: `color-mix(in oklab, var(--success) 30%, transparent)`. Re-derived on every theme root. */
|
|
592
593
|
'--ring-color-success'?: string | number;
|
|
593
|
-
/** `--ring-rest` -
|
|
594
|
+
/** `--ring-rest` - Outlines, not box-shadow, so a ring never collides with elevation and still follows border-radius. Default: `var(--ring-width) solid transparent`. Re-derived on every theme root. */
|
|
594
595
|
'--ring-rest'?: string | number;
|
|
595
596
|
/** `--ring-inset`. Default: `calc(var(--ring-width) * -1)`. Re-derived on every theme root. */
|
|
596
597
|
'--ring-inset'?: string | number;
|
|
598
|
+
/** `--ring-gutter` - The room a clipping container holds open for a child's ring. Default: `var(--ring-width)`. Re-derived on every theme root. */
|
|
599
|
+
'--ring-gutter'?: string | number;
|
|
597
600
|
/** `--ring-accent`. Default: `var(--ring-width) solid var(--ring-color-accent)`. Re-derived on every theme root. */
|
|
598
601
|
'--ring-accent'?: string | number;
|
|
599
602
|
/** `--ring-danger`. Default: `var(--ring-width) solid var(--ring-color-danger)`. Re-derived on every theme root. */
|
|
@@ -602,7 +605,7 @@ export interface TokenProperties {
|
|
|
602
605
|
'--ring-warning'?: string | number;
|
|
603
606
|
/** `--ring-success`. Default: `var(--ring-width) solid var(--ring-color-success)`. Re-derived on every theme root. */
|
|
604
607
|
'--ring-success'?: string | number;
|
|
605
|
-
/** `--glow-accent
|
|
608
|
+
/** `--glow-accent`. Default: `0 4px 16px oklch(from var(--accent) l c h / calc(0.4 * var(--glow-strength)))`. Re-derived on every theme root. */
|
|
606
609
|
'--glow-accent'?: string | number;
|
|
607
610
|
/** `--glow-danger`. Default: `0 4px 16px oklch(from var(--danger) 0.602 0.196 h / calc(0.4 * var(--glow-strength)))`. Re-derived on every theme root. */
|
|
608
611
|
'--glow-danger'?: string | number;
|
|
@@ -614,11 +617,11 @@ export interface TokenProperties {
|
|
|
614
617
|
'--duration-slow'?: string | number;
|
|
615
618
|
/** `--duration-slower` - large-surface movement - dialog, sheet, page-scale reveals. Default: `450ms`. Collapses to `1ms` under reduced motion. */
|
|
616
619
|
'--duration-slower'?: string | number;
|
|
617
|
-
/** `--duration-slowest` - hero-scale movement - card expansion, container transforms
|
|
620
|
+
/** `--duration-slowest` - hero-scale movement - card expansion, container transforms. Default: `900ms`. Collapses to `1ms` under reduced motion. */
|
|
618
621
|
'--duration-slowest'?: string | number;
|
|
619
|
-
/** `--duration-spin` - continuous loaders only
|
|
622
|
+
/** `--duration-spin` - continuous loaders only, outside the UI-transition scale. Default: `1000ms`. Collapses to `2000ms` under reduced motion. */
|
|
620
623
|
'--duration-spin'?: string | number;
|
|
621
|
-
/** `--duration-pulse` - ambient
|
|
624
|
+
/** `--duration-pulse` - ambient breathing, not collapsed under reduced motion. Default: `1600ms`. */
|
|
622
625
|
'--duration-pulse'?: string | number;
|
|
623
626
|
/** `--ease-standard`. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
|
|
624
627
|
'--ease-standard'?: string | number;
|
|
@@ -630,7 +633,7 @@ export interface TokenProperties {
|
|
|
630
633
|
'--ease-spring'?: string | number;
|
|
631
634
|
/** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.32, 0.55, 0, 1 )`. */
|
|
632
635
|
'--ease-glide'?: string | number;
|
|
633
|
-
/** `--distance-sm` - 8px - settling into place
|
|
636
|
+
/** `--distance-sm` - 8px - settling into place. Default: `0.5rem`. */
|
|
634
637
|
'--distance-sm'?: string | number;
|
|
635
638
|
/** `--distance-md` - 16px - arriving from an adjacent position - page turns, tab panels, paged ranges. Default: `1rem`. */
|
|
636
639
|
'--distance-md'?: string | number;
|
|
@@ -666,19 +669,19 @@ export interface TokenProperties {
|
|
|
666
669
|
'--glass-shadow'?: string | number;
|
|
667
670
|
/** `--glass-shadow-hover`. Default: `0 2px 4px rgb(var(--shadow-rgb) / calc(0.06 * var(--shadow-strength))), 0 8px 18px rgb(var(--shadow-rgb) / calc(0.1 * var(--shadow-strength)))`. Re-derived on every theme root. */
|
|
668
671
|
'--glass-shadow-hover'?: string | number;
|
|
669
|
-
/** `--text-on-accent` - The ink on a hue fill -
|
|
672
|
+
/** `--text-on-accent` - The ink on a hue fill - the ramp's lightest rung in either polarity. Default: `var(--gray-0)`. */
|
|
670
673
|
'--text-on-accent'?: string | number;
|
|
671
|
-
/** `--bg-app` -
|
|
674
|
+
/** `--bg-app` - Canvas, cards and panels share the top of the ramp, separated by hairlines rather than tint. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.165 0.006 h)`. */
|
|
672
675
|
'--bg-app'?: string | number;
|
|
673
|
-
/** `--bg-surface`. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.
|
|
676
|
+
/** `--bg-surface`. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.165 0.006 h)`. */
|
|
674
677
|
'--bg-surface'?: string | number;
|
|
675
|
-
/** `--bg-surface-raised`. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.
|
|
678
|
+
/** `--bg-surface-raised`. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.195 0.007 h)`. */
|
|
676
679
|
'--bg-surface-raised'?: string | number;
|
|
677
|
-
/** `--bg-subtle`. Default: `var(--gray-50)`. Dark: `oklch(from var(--neutral) 0.
|
|
680
|
+
/** `--bg-subtle`. Default: `var(--gray-50)`. Dark: `oklch(from var(--neutral) 0.154 0.006 h)`. */
|
|
678
681
|
'--bg-subtle'?: string | number;
|
|
679
|
-
/** `--bg-muted`. Default: `var(--gray-100)`. Dark: `oklch(from var(--neutral) 0.
|
|
682
|
+
/** `--bg-muted`. Default: `var(--gray-100)`. Dark: `oklch(from var(--neutral) 0.14 0.007 h)`. */
|
|
680
683
|
'--bg-muted'?: string | number;
|
|
681
|
-
/** `--bg-inset`. Default: `var(--gray-150)`. Dark: `oklch(from var(--neutral) 0.
|
|
684
|
+
/** `--bg-inset`. Default: `var(--gray-150)`. Dark: `oklch(from var(--neutral) 0.124 0.007 h)`. */
|
|
682
685
|
'--bg-inset'?: string | number;
|
|
683
686
|
/** `--bg-overlay`. Default: `color-mix(in oklab, var(--gray-900) 44%, transparent)`. Dark: `oklch(from var(--neutral) 0.06 0.004 h / 0.64)`. */
|
|
684
687
|
'--bg-overlay'?: string | number;
|
|
@@ -702,7 +705,7 @@ export interface TokenProperties {
|
|
|
702
705
|
'--border-default'?: string | number;
|
|
703
706
|
/** `--border-strong`. Default: `var(--gray-300)`. Dark: `oklch(from var(--neutral) 0.4 0.011 h)`. */
|
|
704
707
|
'--border-strong'?: string | number;
|
|
705
|
-
/** `--accent-fill` -
|
|
708
|
+
/** `--accent-fill` - The resting face of a filled control. Default: `var(--accent)`. Dark: `oklch(from var(--accent) calc(l - 0.06) calc(c - 0.01) h)`. Re-derived on every theme root. */
|
|
706
709
|
'--accent-fill'?: string | number;
|
|
707
710
|
/** `--accent-lift`. Default: `oklch(from var(--accent) calc(l + 0.075) calc(c - 0.006) h)`. Re-derived on every theme root. */
|
|
708
711
|
'--accent-lift'?: string | number;
|
|
@@ -720,11 +723,11 @@ export interface TokenProperties {
|
|
|
720
723
|
'--accent-wash'?: string | number;
|
|
721
724
|
/** `--text-accent`. Default: `var(--accent-active)`. Dark: `oklch(from var(--accent) calc(l + 0.14) calc(c - 0.012) h)`. Re-derived on every theme root. */
|
|
722
725
|
'--text-accent'?: string | number;
|
|
723
|
-
/** `--neutral-wash` -
|
|
726
|
+
/** `--neutral-wash` - Translucent washes of the ink, never opaque near-whites. Default: `color-mix(in oklab, var(--text-secondary) 6%, transparent)`. Re-derived on every theme root. */
|
|
724
727
|
'--neutral-wash'?: string | number;
|
|
725
728
|
/** `--neutral-wash-press`. Default: `color-mix(in oklab, var(--text-secondary) 10%, transparent)`. Re-derived on every theme root. */
|
|
726
729
|
'--neutral-wash-press'?: string | number;
|
|
727
|
-
/** `--info` -
|
|
730
|
+
/** `--info` - The accent's hue one step down - repoint it for a hue of its own. Default: `var(--accent-hover)`. Re-derived on every theme root. */
|
|
728
731
|
'--info'?: string | number;
|
|
729
732
|
/** `--info-subtle`. Default: `oklch(from var(--info) 0.972 0.02 h)`. Dark: `oklch(from var(--info) 0.265 0.045 h)`. Re-derived on every theme root. */
|
|
730
733
|
'--info-subtle'?: string | number;
|
|
@@ -744,7 +747,7 @@ export interface TokenProperties {
|
|
|
744
747
|
'--warning-text'?: string | number;
|
|
745
748
|
/** `--warning-wash`. Default: `oklch(from var(--warning) 0.76 0.14 h / 0.12)`. Dark: `oklch(from var(--warning) 0.76 0.14 h / 0.18)`. Re-derived on every theme root. */
|
|
746
749
|
'--warning-wash'?: string | number;
|
|
747
|
-
/** `--danger-lift` -
|
|
750
|
+
/** `--danger-lift` - The destructive button's hover face, above --danger-fill. Default: `oklch(from var(--danger) 0.64 0.2 h)`. Re-derived on every theme root. */
|
|
748
751
|
'--danger-lift'?: string | number;
|
|
749
752
|
/** `--danger-fill`. Default: `oklch(from var(--danger) 0.602 0.196 h)`. Dark: `oklch(from var(--danger) 0.555 0.185 h)`. Re-derived on every theme root. */
|
|
750
753
|
'--danger-fill'?: string | number;
|
|
@@ -758,7 +761,7 @@ export interface TokenProperties {
|
|
|
758
761
|
'--danger-disabled'?: string | number;
|
|
759
762
|
/** `--danger-wash`. Default: `oklch(from var(--danger) 0.602 0.196 h / 0.1)`. Dark: `oklch(from var(--danger) 0.602 0.196 h / 0.16)`. Re-derived on every theme root. */
|
|
760
763
|
'--danger-wash'?: string | number;
|
|
761
|
-
/** `--glass-tint-neutral
|
|
764
|
+
/** `--glass-tint-neutral`. Default: `color-mix(in oklab, var(--text-muted) 13%, transparent)`. Re-derived on every theme root. */
|
|
762
765
|
'--glass-tint-neutral'?: string | number;
|
|
763
766
|
/** `--glass-tint-info`. Default: `color-mix(in oklab, var(--info) 17%, transparent)`. Re-derived on every theme root. */
|
|
764
767
|
'--glass-tint-info'?: string | number;
|
|
@@ -792,19 +795,28 @@ export interface ThemeTokens {
|
|
|
792
795
|
custom?: TokenProperties & Record<`--${string}`, string | number>;
|
|
793
796
|
}
|
|
794
797
|
/**
|
|
795
|
-
*
|
|
796
|
-
* `
|
|
797
|
-
*
|
|
798
|
-
* here extends the shipped dark theme rather than starting one.
|
|
798
|
+
* One palette, both polarities. `light` carries the palette itself - its decisions and the
|
|
799
|
+
* light roles; `dark` carries only what differs on dark surfaces, and every key `light`
|
|
800
|
+
* sets that `dark` leaves out is copied into it.
|
|
799
801
|
*/
|
|
800
|
-
export interface
|
|
801
|
-
/** The
|
|
802
|
-
base?: ThemeTokens;
|
|
803
|
-
/** Extends the shipped dark theme - the values that differ under `data-theme="dark"`. */
|
|
804
|
-
dark?: ThemeTokens;
|
|
805
|
-
/** Extends the shipped light theme, where a light island sits inside a dark page. */
|
|
802
|
+
export interface ThemePalette {
|
|
803
|
+
/** The palette - its decisions, and the roles the light polarity sets. */
|
|
806
804
|
light?: ThemeTokens;
|
|
807
|
-
|
|
805
|
+
/** What differs on dark surfaces. A delta over `light`, never a second palette. */
|
|
806
|
+
dark?: ThemeTokens;
|
|
807
|
+
/** How the palette is named in a picker. Defaults to its key, title-cased. */
|
|
808
|
+
name?: string;
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* The palettes an app ships. `default` lands on `:root` and is the base every other
|
|
812
|
+
* palette layers over; every other key becomes a `[data-theme='<key>']` block, activated
|
|
813
|
+
* by setting that attribute on `<html>` or any subtree root. Polarity is the separate
|
|
814
|
+
* `data-polarity` attribute, so every palette carries both sides.
|
|
815
|
+
*/
|
|
816
|
+
export interface ThemeSet {
|
|
817
|
+
/** The base palette - what applies when `data-theme` names no other. */
|
|
818
|
+
default: ThemePalette;
|
|
819
|
+
[palette: string]: ThemePalette;
|
|
808
820
|
}
|
|
809
821
|
export declare const reducedMotionTokens: Readonly<Record<string, string>>;
|
|
810
822
|
declare module 'react' {
|
|
@@ -1,12 +1,35 @@
|
|
|
1
|
+
import type { ThemeTransitionSetting } from '../components/expressive/theme-transition/theme-transition';
|
|
2
|
+
import { type PolarityPreference } from './theme-store';
|
|
1
3
|
import { type ThemeSet, type ThemeTokens } from './theme-tokens.generated';
|
|
2
4
|
export type * from './theme-tokens.generated';
|
|
5
|
+
export type { ThemeTransitionEffect, ThemeTransitionOptions, ThemeTransitionSetting, } from '../components/expressive/theme-transition/theme-transition';
|
|
6
|
+
export type { Polarity, PolarityPreference, ThemeControls, ThemeState } from './theme-store';
|
|
7
|
+
export { useTheme } from './theme-sync';
|
|
3
8
|
export interface ZyncatThemeProps {
|
|
4
9
|
/**
|
|
5
|
-
* The app's
|
|
6
|
-
* `[data-theme='<key>']` block, activated by setting that attribute on
|
|
7
|
-
* or any subtree root.
|
|
10
|
+
* The app's palettes. `default` lands on `:root`; every other key becomes a
|
|
11
|
+
* `[data-theme='<key>']` block that layers over it, activated by setting that attribute on
|
|
12
|
+
* `<html>` or any subtree root. Each palette carries a `light` and a `dark` side, selected by
|
|
13
|
+
* `data-polarity`, and `dark` is a delta - what `light` sets and `dark` leaves out carries over.
|
|
8
14
|
*/
|
|
9
|
-
|
|
15
|
+
themes?: ThemeSet;
|
|
16
|
+
/** The palette a first visit gets, before a choice is stored. @default 'default' */
|
|
17
|
+
defaultTheme?: string;
|
|
18
|
+
/** The side a first visit gets. `system` follows the OS setting, and keeps following it. @default 'system' */
|
|
19
|
+
defaultPolarity?: PolarityPreference;
|
|
20
|
+
/** The localStorage key the choice persists under. @default 'zyncat-theme' */
|
|
21
|
+
storageKey?: string;
|
|
22
|
+
/** Write the stored choice onto `<html>` before first paint and register the palettes with `useTheme`.
|
|
23
|
+
* Off for a second `ZyncatTheme` whose palettes serve one subtree. @default true */
|
|
24
|
+
boot?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Animate every theme change as a full-page reveal: `tide` sweeps a wave across the page,
|
|
27
|
+
* `paint` throws splats that run together, and `bloom-circle`, `bloom-hexagon`, `bloom-star`,
|
|
28
|
+
* `bloom-petal` or `bloom-blob` grows that outline from the control that was pressed. An object
|
|
29
|
+
* adds `speed` and `intensity`. The arriving page is a live clone revealed by a clip; under
|
|
30
|
+
* reduced motion the swap is instant. The code loads on demand.
|
|
31
|
+
*/
|
|
32
|
+
transition?: ThemeTransitionSetting;
|
|
10
33
|
}
|
|
11
34
|
export declare function defineTheme(tokens: ThemeTokens): ThemeTokens;
|
|
12
|
-
export declare function ZyncatTheme({
|
|
35
|
+
export declare function ZyncatTheme({ themes, defaultTheme, defaultPolarity, storageKey, boot, transition, }: ZyncatThemeProps): import("react").JSX.Element;
|
package/dist/typing-lines.css
CHANGED
package/dist/typing-lines.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
'use client';import { loop } from './chunk-
|
|
1
|
+
'use client';import { loop } from './chunk-HWDIVGME.js';
|
|
2
2
|
import './chunk-VNVVG47J.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-ZHMOH62S.js';
|
|
4
4
|
import { cx } from './chunk-QGNC7LH5.js';
|
|
5
5
|
import './typing-lines.css';
|
|
6
6
|
import { useRef, useEffect } from 'react';
|
package/dist/weight-field.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer zyncat.tokens, zyncat.components;
|
|
1
|
+
@layer zyncat.reset, zyncat.tokens, zyncat.components;
|
|
2
2
|
|
|
3
3
|
@layer zyncat.components {
|
|
4
4
|
.zc-weight-field {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
--weight-field-peak-weight: 900;
|
|
25
25
|
/* How much a unit widens under the pointer. */
|
|
26
26
|
--weight-field-hover-padding: calc(1em / 12);
|
|
27
|
-
/* The text stroke every unit carries
|
|
27
|
+
/* The text stroke every unit carries, doubled on the peak letter. */
|
|
28
28
|
--weight-field-stroke: calc(1em * 125 / 6000);
|
|
29
29
|
--_weight-field-stroke-peak: calc(var(--weight-field-stroke) * 2);
|
|
30
30
|
/* How long a unit takes to settle at a new weight. */
|
package/dist/youtube.css
CHANGED