@zazz-ui/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/LICENSE +21 -0
- package/README.md +61 -0
- package/dist/sri.json +75 -0
- package/dist/zazz.css +1 -0
- package/dist/zazz.js +1 -0
- package/examples/about.html +590 -0
- package/examples/components.html +1040 -0
- package/examples/forms.html +511 -0
- package/examples/index.html +268 -0
- package/examples/layout.html +320 -0
- package/examples/products.html +846 -0
- package/examples/responsive.html +339 -0
- package/package.json +85 -0
- package/src/base/_layers.css +12 -0
- package/src/base/_layout.css +568 -0
- package/src/base/_reset.css +515 -0
- package/src/base/_typography.css +495 -0
- package/src/base/_utilities.css +6628 -0
- package/src/base/_variables.css +682 -0
- package/src/base/_view-transitions.css +103 -0
- package/src/base/command-score.d.ts +12 -0
- package/src/base/command-score.d.ts.map +1 -0
- package/src/base/command-score.js +151 -0
- package/src/base/command-score.ts +192 -0
- package/src/base/dialog-lifecycle.d.ts +11 -0
- package/src/base/dialog-lifecycle.d.ts.map +1 -0
- package/src/base/dialog-lifecycle.js +65 -0
- package/src/base/dialog-lifecycle.ts +80 -0
- package/src/base/embla.d.ts +90 -0
- package/src/base/embla.d.ts.map +1 -0
- package/src/base/embla.js +643 -0
- package/src/base/embla.ts +791 -0
- package/src/base/hotkeys.d.ts +82 -0
- package/src/base/hotkeys.d.ts.map +1 -0
- package/src/base/hotkeys.js +141 -0
- package/src/base/hotkeys.ts +195 -0
- package/src/base/navigation.d.ts +2 -0
- package/src/base/navigation.d.ts.map +1 -0
- package/src/base/navigation.js +136 -0
- package/src/base/navigation.ts +151 -0
- package/src/base/reveal.d.ts +80 -0
- package/src/base/reveal.d.ts.map +1 -0
- package/src/base/reveal.js +305 -0
- package/src/base/reveal.ts +379 -0
- package/src/base/signals.d.ts +89 -0
- package/src/base/signals.d.ts.map +1 -0
- package/src/base/signals.js +134 -0
- package/src/base/signals.ts +164 -0
- package/src/base/typeahead.d.ts +105 -0
- package/src/base/typeahead.d.ts.map +1 -0
- package/src/base/typeahead.js +411 -0
- package/src/base/typeahead.ts +500 -0
- package/src/base/utils.d.ts +56 -0
- package/src/base/utils.d.ts.map +1 -0
- package/src/base/utils.js +88 -0
- package/src/base/utils.ts +98 -0
- package/src/base/zazz-element.d.ts +44 -0
- package/src/base/zazz-element.d.ts.map +1 -0
- package/src/base/zazz-element.js +59 -0
- package/src/base/zazz-element.ts +73 -0
- package/src/globals.d.ts +148 -0
- package/src/head.d.ts +95 -0
- package/src/head.d.ts.map +1 -0
- package/src/head.js +311 -0
- package/src/head.ts +433 -0
- package/src/index.css +71 -0
- package/src/index.d.ts +36 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +35 -0
- package/src/index.ts +36 -0
- package/src/manifest.d.ts +90 -0
- package/src/manifest.d.ts.map +1 -0
- package/src/manifest.js +614 -0
- package/src/manifest.ts +667 -0
- package/src/primitives/accordion/accordion.css +104 -0
- package/src/primitives/accordion/accordion.html +69 -0
- package/src/primitives/alert-dialog/alert-dialog.css +38 -0
- package/src/primitives/alert-dialog/alert-dialog.html +53 -0
- package/src/primitives/autocomplete/autocomplete-groups.html +77 -0
- package/src/primitives/autocomplete/autocomplete.css +114 -0
- package/src/primitives/autocomplete/autocomplete.d.ts +30 -0
- package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -0
- package/src/primitives/autocomplete/autocomplete.html +66 -0
- package/src/primitives/autocomplete/autocomplete.js +41 -0
- package/src/primitives/autocomplete/autocomplete.ts +46 -0
- package/src/primitives/avatar/avatar.html +44 -0
- package/src/primitives/badge/badge-icon.html +36 -0
- package/src/primitives/badge/badge.css +251 -0
- package/src/primitives/badge/badge.html +7 -0
- package/src/primitives/breadcrumbs/breadcrumbs.html +9 -0
- package/src/primitives/button/button-icon-only.html +84 -0
- package/src/primitives/button/button-icon.html +82 -0
- package/src/primitives/button/button.css +319 -0
- package/src/primitives/button/button.html +8 -0
- package/src/primitives/button-group/button-group-vertical.html +6 -0
- package/src/primitives/button-group/button-group.css +94 -0
- package/src/primitives/button-group/button-group.html +64 -0
- package/src/primitives/card/card-subgrid.html +118 -0
- package/src/primitives/card/card.html +53 -0
- package/src/primitives/carousel/carousel.css +61 -0
- package/src/primitives/carousel/carousel.d.ts +16 -0
- package/src/primitives/carousel/carousel.d.ts.map +1 -0
- package/src/primitives/carousel/carousel.html +315 -0
- package/src/primitives/carousel/carousel.js +73 -0
- package/src/primitives/carousel/carousel.ts +84 -0
- package/src/primitives/checkbox/checkbox-tasklist.html +71 -0
- package/src/primitives/checkbox/checkbox.css +82 -0
- package/src/primitives/checkbox/checkbox.d.ts +21 -0
- package/src/primitives/checkbox/checkbox.d.ts.map +1 -0
- package/src/primitives/checkbox/checkbox.html +17 -0
- package/src/primitives/checkbox/checkbox.js +190 -0
- package/src/primitives/checkbox/checkbox.ts +219 -0
- package/src/primitives/combobox/combobox-multiselect.html +91 -0
- package/src/primitives/combobox/combobox.css +307 -0
- package/src/primitives/combobox/combobox.d.ts +100 -0
- package/src/primitives/combobox/combobox.d.ts.map +1 -0
- package/src/primitives/combobox/combobox.html +73 -0
- package/src/primitives/combobox/combobox.js +503 -0
- package/src/primitives/combobox/combobox.ts +559 -0
- package/src/primitives/command/command-actions.d.ts +31 -0
- package/src/primitives/command/command-actions.d.ts.map +1 -0
- package/src/primitives/command/command-actions.html +89 -0
- package/src/primitives/command/command-actions.js +70 -0
- package/src/primitives/command/command-actions.ts +77 -0
- package/src/primitives/command/command-dialog.html +77 -0
- package/src/primitives/command/command.css +151 -0
- package/src/primitives/command/command.d.ts +52 -0
- package/src/primitives/command/command.d.ts.map +1 -0
- package/src/primitives/command/command.html +119 -0
- package/src/primitives/command/command.js +146 -0
- package/src/primitives/command/command.ts +157 -0
- package/src/primitives/dialog/dialog-with-form.html +200 -0
- package/src/primitives/dialog/dialog.css +229 -0
- package/src/primitives/dialog/dialog.html +90 -0
- package/src/primitives/fields/fields.css +278 -0
- package/src/primitives/input/input-icon-leading.html +19 -0
- package/src/primitives/input/input-icon-trailing.html +18 -0
- package/src/primitives/input/input.css +114 -0
- package/src/primitives/input/input.html +61 -0
- package/src/primitives/input-group/input-group-password-group.html +108 -0
- package/src/primitives/input-group/input-group.css +215 -0
- package/src/primitives/input-group/input-group.html +132 -0
- package/src/primitives/kbd/kbd-group.html +18 -0
- package/src/primitives/kbd/kbd.css +87 -0
- package/src/primitives/kbd/kbd.html +7 -0
- package/src/primitives/lightbox/lightbox.css +459 -0
- package/src/primitives/lightbox/lightbox.d.ts +7 -0
- package/src/primitives/lightbox/lightbox.d.ts.map +1 -0
- package/src/primitives/lightbox/lightbox.html +665 -0
- package/src/primitives/lightbox/lightbox.js +96 -0
- package/src/primitives/lightbox/lightbox.ts +113 -0
- package/src/primitives/menu/menu-interest.html +52 -0
- package/src/primitives/menu/menu.css +55 -0
- package/src/primitives/menu/menu.d.ts +38 -0
- package/src/primitives/menu/menu.d.ts.map +1 -0
- package/src/primitives/menu/menu.html +70 -0
- package/src/primitives/menu/menu.js +117 -0
- package/src/primitives/menu/menu.ts +131 -0
- package/src/primitives/menubar/menubar-help-search.html +103 -0
- package/src/primitives/menubar/menubar.html +166 -0
- package/src/primitives/meter/meter.css +178 -0
- package/src/primitives/meter/meter.html +38 -0
- package/src/primitives/mobile-menu/mobile-menu.css +145 -0
- package/src/primitives/mobile-menu/mobile-menu.html +614 -0
- package/src/primitives/navigation-menu/navigation-menu-featured.html +76 -0
- package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +158 -0
- package/src/primitives/navigation-menu/navigation-menu-interest.html +103 -0
- package/src/primitives/navigation-menu/navigation-menu-megamenu.html +141 -0
- package/src/primitives/navigation-menu/navigation-menu-simple.html +96 -0
- package/src/primitives/navigation-menu/navigation-menu.css +295 -0
- package/src/primitives/navigation-menu/navigation-menu.html +576 -0
- package/src/primitives/otp/otp.css +126 -0
- package/src/primitives/otp/otp.d.ts +89 -0
- package/src/primitives/otp/otp.d.ts.map +1 -0
- package/src/primitives/otp/otp.html +22 -0
- package/src/primitives/otp/otp.js +226 -0
- package/src/primitives/otp/otp.ts +279 -0
- package/src/primitives/password-group/password-group.css +238 -0
- package/src/primitives/password-group/password-group.d.ts +25 -0
- package/src/primitives/password-group/password-group.d.ts.map +1 -0
- package/src/primitives/password-group/password-group.html +109 -0
- package/src/primitives/password-group/password-group.js +76 -0
- package/src/primitives/password-group/password-group.ts +95 -0
- package/src/primitives/popover/popover.css +233 -0
- package/src/primitives/progress/progress-indeterminate.html +1 -0
- package/src/primitives/progress/progress.css +105 -0
- package/src/primitives/progress/progress.html +7 -0
- package/src/primitives/prose/prose.html +65 -0
- package/src/primitives/radio/radio.css +84 -0
- package/src/primitives/radio/radio.html +17 -0
- package/src/primitives/reveal/reveal.css +167 -0
- package/src/primitives/select/multiselect.d.ts +43 -0
- package/src/primitives/select/multiselect.d.ts.map +1 -0
- package/src/primitives/select/multiselect.js +147 -0
- package/src/primitives/select/multiselect.ts +188 -0
- package/src/primitives/select/select-align.html +49 -0
- package/src/primitives/select/select-multiple.html +12 -0
- package/src/primitives/select/select-sides.html +65 -0
- package/src/primitives/select/select.css +481 -0
- package/src/primitives/select/select.html +16 -0
- package/src/primitives/separator/separator.css +49 -0
- package/src/primitives/separator/separator.html +16 -0
- package/src/primitives/slider/slider.css +122 -0
- package/src/primitives/slider/slider.html +1 -0
- package/src/primitives/switch/switch.css +126 -0
- package/src/primitives/switch/switch.html +13 -0
- package/src/primitives/table/table-alternating.html +36 -0
- package/src/primitives/table/table-grid.html +30 -0
- package/src/primitives/table/table-size-sm.html +26 -0
- package/src/primitives/table/table.css +158 -0
- package/src/primitives/table/table.html +45 -0
- package/src/primitives/tabs/tabs.css +328 -0
- package/src/primitives/tabs/tabs.d.ts +35 -0
- package/src/primitives/tabs/tabs.d.ts.map +1 -0
- package/src/primitives/tabs/tabs.html +75 -0
- package/src/primitives/tabs/tabs.js +84 -0
- package/src/primitives/tabs/tabs.ts +93 -0
- package/src/primitives/textarea/textarea.css +78 -0
- package/src/primitives/textarea/textarea.html +10 -0
- package/src/primitives/toaster/toaster.css +309 -0
- package/src/primitives/toaster/toaster.d.ts +138 -0
- package/src/primitives/toaster/toaster.d.ts.map +1 -0
- package/src/primitives/toaster/toaster.html +77 -0
- package/src/primitives/toaster/toaster.js +736 -0
- package/src/primitives/toaster/toaster.ts +823 -0
- package/src/primitives/toggle/toggle.css +295 -0
- package/src/primitives/toggle/toggle.html +68 -0
- package/src/primitives/toggle-group/toggle-group-multiple.html +14 -0
- package/src/primitives/toggle-group/toggle-group-vertical.html +14 -0
- package/src/primitives/toggle-group/toggle-group.css +73 -0
- package/src/primitives/toggle-group/toggle-group.html +53 -0
- package/src/primitives/toolbar/toolbar.html +45 -0
- package/src/primitives/tooltip/tooltip-disabled.html +19 -0
- package/src/primitives/tooltip/tooltip-sides.html +57 -0
- package/src/primitives/tooltip/tooltip-with-kbd.html +31 -0
- package/src/primitives/tooltip/tooltip.css +235 -0
- package/src/primitives/tooltip/tooltip.html +12 -0
- package/src/primitives/utilities/aspect-ratio.html +17 -0
- package/src/primitives/utilities/basis.html +27 -0
- package/src/primitives/utilities/col-span.html +23 -0
- package/src/primitives/utilities/compose.html +19 -0
- package/src/primitives/utilities/flex-align.html +26 -0
- package/src/primitives/utilities/flex-direction.html +36 -0
- package/src/primitives/utilities/flex-grow.html +17 -0
- package/src/primitives/utilities/gap.html +62 -0
- package/src/primitives/utilities/grid-cols.html +20 -0
- package/src/primitives/utilities/grid-pile.html +5 -0
- package/src/primitives/utilities/grid-responsive.html +31 -0
- package/src/primitives/utilities/margin-auto.html +13 -0
- package/src/primitives/utilities/object-fit.html +41 -0
- package/src/primitives/utilities/order.html +17 -0
- package/src/primitives/utilities/overflow.html +26 -0
- package/src/primitives/utilities/padding-compose.html +23 -0
- package/src/primitives/utilities/padding.html +30 -0
- package/src/primitives/utilities/position.html +13 -0
- package/src/primitives/utilities/responsive-flex.html +22 -0
- package/src/primitives/utilities/responsive-grid.html +31 -0
- package/src/primitives/utilities/size.html +22 -0
- package/src/primitives/utilities/width.html +22 -0
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* _variables.css — Global design tokens (Tier 1).
|
|
3
|
+
*
|
|
4
|
+
* @layer variables
|
|
5
|
+
* @requires layers.css, _properties.css
|
|
6
|
+
* @uses light-dark() — theme roles follow color-scheme / .dark overrides
|
|
7
|
+
* @uses oklch(from …) — shade/tint scales and shadow alphas
|
|
8
|
+
* @uses color-mix() — focus ring (--ring)
|
|
9
|
+
* @uses interpolate-size: allow-keywords — discrete block-size animations (details, etc.)
|
|
10
|
+
* @tokens Global token tiers (the root override hooks) — Theme roles, brand
|
|
11
|
+
* scales (50–950), grayscale/shade/tint, typography, spacing, radius,
|
|
12
|
+
* layout, effects, animations. Re-declare any of these to re-skin the
|
|
13
|
+
* whole system; see CONVENTIONS.md.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/* Inverted menu */
|
|
17
|
+
|
|
18
|
+
@property --use-inverted-popovers {
|
|
19
|
+
syntax: "*";
|
|
20
|
+
inherits: false;
|
|
21
|
+
initial-value: false;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Animations */
|
|
25
|
+
|
|
26
|
+
@property --default-transition-duration {
|
|
27
|
+
syntax: "<time>";
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 0s;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* NOTE: --ui-reveal-duration / --ui-reveal-wait are intentionally NOT registered.
|
|
33
|
+
* reveal.js sets them per-element, and _reveal.css resolves them with
|
|
34
|
+
* var(--ui-reveal-*, var(--ui-reveal-global-*)). A registered property is never
|
|
35
|
+
* guaranteed-invalid, so registering them would make that var() fallback
|
|
36
|
+
* dead — the global/config defaults could never apply. They are not used in
|
|
37
|
+
* any style() query, so typing buys nothing here. */
|
|
38
|
+
|
|
39
|
+
@property --spring-duration {
|
|
40
|
+
syntax: "<time>";
|
|
41
|
+
inherits: true;
|
|
42
|
+
initial-value: 0s;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Layout breakpoint state — boolean flags read by container style() queries.
|
|
46
|
+
* Typed enum + false default so style(--is-breakpoint-X: false) resolves before
|
|
47
|
+
* any min-width query matches. Sourced from the body container in _variables.css. */
|
|
48
|
+
|
|
49
|
+
@property --is-breakpoint-xs {
|
|
50
|
+
syntax: "true | false";
|
|
51
|
+
inherits: true;
|
|
52
|
+
initial-value: false;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@property --is-breakpoint-sm {
|
|
56
|
+
syntax: "true | false";
|
|
57
|
+
inherits: true;
|
|
58
|
+
initial-value: false;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@property --is-breakpoint-md {
|
|
62
|
+
syntax: "true | false";
|
|
63
|
+
inherits: true;
|
|
64
|
+
initial-value: false;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@property --is-breakpoint-lg {
|
|
68
|
+
syntax: "true | false";
|
|
69
|
+
inherits: true;
|
|
70
|
+
initial-value: false;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@property --is-breakpoint-xl {
|
|
74
|
+
syntax: "true | false";
|
|
75
|
+
inherits: true;
|
|
76
|
+
initial-value: false;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Token values — @property registrations live in _properties.css (style() queries). */
|
|
80
|
+
@layer variables {
|
|
81
|
+
:root {
|
|
82
|
+
/* Enable light/dark mode - make sure to redeclare dark mode tokens on .dark at the bottom of the file */
|
|
83
|
+
color-scheme: light dark;
|
|
84
|
+
|
|
85
|
+
/* Enable discrete value animations, e.g. block-size: auto; */
|
|
86
|
+
interpolate-size: allow-keywords;
|
|
87
|
+
|
|
88
|
+
/* ==========================================================================
|
|
89
|
+
* 1. Theme — light/dark via light-dark(); follows color-scheme (system + .dark)
|
|
90
|
+
* ========================================================================== */
|
|
91
|
+
|
|
92
|
+
/* base */
|
|
93
|
+
--background: light-dark(var(--white), var(--neutral-900));
|
|
94
|
+
--foreground: light-dark(var(--neutral-900), var(--white));
|
|
95
|
+
--border: light-dark(var(--neutral-100), var(--tint-100));
|
|
96
|
+
--border-foreground: light-dark(var(--tint-950), var(--shade-500));
|
|
97
|
+
--card: light-dark(var(--white), var(--neutral-950));
|
|
98
|
+
--card-foreground: light-dark(var(--neutral-900), var(--white));
|
|
99
|
+
--popover: light-dark(var(--white), var(--neutral-950));
|
|
100
|
+
--popover-foreground: light-dark(var(--neutral-900), var(--white));
|
|
101
|
+
--input: light-dark(var(--neutral-50), var(--tint-50));
|
|
102
|
+
--input-foreground: light-dark(var(--neutral-900), var(--white));
|
|
103
|
+
|
|
104
|
+
/* overlay */
|
|
105
|
+
--muted: light-dark(var(--shade-50), var(--tint-50));
|
|
106
|
+
--muted-foreground: light-dark(var(--shade-600), var(--tint-600));
|
|
107
|
+
--faded: light-dark(var(--tint-400), var(--shade-100));
|
|
108
|
+
--faded-foreground: light-dark(var(--tint-600), var(--shade-600));
|
|
109
|
+
|
|
110
|
+
/* brand */
|
|
111
|
+
--primary: light-dark(var(--primary-950), var(--primary-800));
|
|
112
|
+
--primary-foreground: light-dark(var(--white), var(--white));
|
|
113
|
+
--secondary: light-dark(var(--secondary-950), var(--secondary-800));
|
|
114
|
+
--secondary-foreground: light-dark(var(--white), var(--white));
|
|
115
|
+
--tertiary: light-dark(var(--tertiary-950), var(--tertiary-800));
|
|
116
|
+
--tertiary-foreground: light-dark(var(--white), var(--white));
|
|
117
|
+
|
|
118
|
+
/* status */
|
|
119
|
+
--info: light-dark(oklch(0.5876 0.1389 241.97), oklch(0.5 0.1193 242.75));
|
|
120
|
+
--info-foreground: light-dark(var(--white), var(--white));
|
|
121
|
+
--success: light-dark(oklch(0.596 0.1274 163.23), oklch(0.5081 0.1049 165.61));
|
|
122
|
+
--success-foreground: light-dark(var(--white), var(--white));
|
|
123
|
+
--warning: light-dark(oklch(0.6658 0.1574 58.32), oklch(0.5553 0.1455 49));
|
|
124
|
+
--warning-foreground: light-dark(var(--white), var(--white));
|
|
125
|
+
--destructive: light-dark(oklch(0.5771 0.2152 27.33), oklch(0.5054 0.1905 27.52));
|
|
126
|
+
--destructive-foreground: light-dark(var(--white), var(--white));
|
|
127
|
+
|
|
128
|
+
/* ==========================================================================
|
|
129
|
+
* 2. Corporate — brand color scales (50–950)
|
|
130
|
+
* @see https://www.tints.dev/palette/v1:cHJpbWFyeXw0RjQ2RTV8NjAwfHB8MHwwfC0yfDEwM3xtfnNlY29uZGFyeXxERTQ5MTd8NjAwfHB8MHwwfDJ8MTAyfG1-dGVydGlhcnl8RTUzNzVCfDUwMHxwfDB8MHwxfDEwM3xtfm5ldXRyYWx8ODg4ODkwfDUwMHxwfDB8MHwxfDEwM3xt
|
|
131
|
+
* ========================================================================== */
|
|
132
|
+
|
|
133
|
+
/* primary */
|
|
134
|
+
--primary-50: oklch(0.985 0 0);
|
|
135
|
+
--primary-100: oklch(0.967 0.001 0);
|
|
136
|
+
--primary-200: oklch(0.92 0.004 0);
|
|
137
|
+
--primary-300: oklch(0.87 0 0);
|
|
138
|
+
--primary-400: oklch(0.708 0 0);
|
|
139
|
+
--primary-500: oklch(0.556 0 0);
|
|
140
|
+
--primary-600: oklch(0.439 0 0);
|
|
141
|
+
--primary-700: oklch(0.371 0 0);
|
|
142
|
+
--primary-800: oklch(0.269 0 0);
|
|
143
|
+
--primary-900: oklch(0.205 0 0);
|
|
144
|
+
--primary-950: oklch(0.145 0 0);
|
|
145
|
+
|
|
146
|
+
/* secondary */
|
|
147
|
+
--secondary-50: oklch(98.5% 0.002 247.839);
|
|
148
|
+
--secondary-100: oklch(96.7% 0.003 264.542);
|
|
149
|
+
--secondary-200: oklch(92.8% 0.006 264.531);
|
|
150
|
+
--secondary-300: oklch(87.2% 0.01 258.338);
|
|
151
|
+
--secondary-400: oklch(70.7% 0.022 261.325);
|
|
152
|
+
--secondary-500: oklch(55.1% 0.027 264.364);
|
|
153
|
+
--secondary-600: oklch(44.6% 0.03 256.802);
|
|
154
|
+
--secondary-700: oklch(37.3% 0.034 259.733);
|
|
155
|
+
--secondary-800: oklch(27.8% 0.033 256.848);
|
|
156
|
+
--secondary-900: oklch(21% 0.034 264.665);
|
|
157
|
+
--secondary-950: oklch(13% 0.028 261.692);
|
|
158
|
+
|
|
159
|
+
/* tertiary */
|
|
160
|
+
--tertiary-50: oklch(0.986 0.002 67.8);
|
|
161
|
+
--tertiary-100: oklch(0.96 0.002 17.2);
|
|
162
|
+
--tertiary-200: oklch(0.922 0.005 34.3);
|
|
163
|
+
--tertiary-300: oklch(0.868 0.007 39.5);
|
|
164
|
+
--tertiary-400: oklch(0.714 0.014 41.2);
|
|
165
|
+
--tertiary-500: oklch(0.547 0.021 43.1);
|
|
166
|
+
--tertiary-600: oklch(0.438 0.017 39.3);
|
|
167
|
+
--tertiary-700: oklch(0.367 0.016 35.7);
|
|
168
|
+
--tertiary-800: oklch(0.268 0.011 36.5);
|
|
169
|
+
--tertiary-900: oklch(0.214 0.009 43.1);
|
|
170
|
+
--tertiary-950: oklch(0.147 0.004 49.3);
|
|
171
|
+
|
|
172
|
+
/* ==========================================================================
|
|
173
|
+
* 3. Grayscale — neutrals, shade (dim), tint (fade)
|
|
174
|
+
* @see https://www.tints.dev/palette/v1:cHJpbWFyeXw0RjQ2RTV8NjAwfHB8MHwwfC0yfDEwM3xtfnNlY29uZGFyeXxERTQ5MTd8NjAwfHB8MHwwfDJ8MTAyfG1-dGVydGlhcnl8RTUzNzVCfDUwMHxwfDB8MHwxfDEwM3xtfm5ldXRyYWx8ODg4ODkwfDUwMHxwfDB8MHwxfDEwM3xt
|
|
175
|
+
* ========================================================================== */
|
|
176
|
+
|
|
177
|
+
/* neutral */
|
|
178
|
+
--white: oklch(1 0 0);
|
|
179
|
+
--neutral-50: oklch(0.973 0.001 287.31);
|
|
180
|
+
--neutral-100: oklch(0.949 0.001 287.28);
|
|
181
|
+
--neutral-200: oklch(0.871 0.004 286.58);
|
|
182
|
+
--neutral-300: oklch(0.784 0.007 286.38);
|
|
183
|
+
--neutral-400: oklch(0.708 0.009 286.28);
|
|
184
|
+
--neutral-500: oklch(0.629 0.012 286.12);
|
|
185
|
+
--neutral-600: oklch(0.535 0.015 285.91);
|
|
186
|
+
--neutral-700: oklch(0.442 0.015 285.82);
|
|
187
|
+
--neutral-800: oklch(0.336 0.014 285.66);
|
|
188
|
+
--neutral-900: oklch(0.241 0.009 285.7);
|
|
189
|
+
--neutral-950: oklch(0.198 0.008 285.68);
|
|
190
|
+
--black: oklch(0 0 0);
|
|
191
|
+
|
|
192
|
+
/* shade — darkened overlays (derived from neutral-950) */
|
|
193
|
+
--shade-none: oklch(from var(--neutral-950) l c h / 0);
|
|
194
|
+
--shade-50: oklch(from var(--neutral-950) l c h / 0.05);
|
|
195
|
+
--shade-100: oklch(from var(--neutral-950) l c h / 0.1);
|
|
196
|
+
--shade-200: oklch(from var(--neutral-950) l c h / 0.2);
|
|
197
|
+
--shade-300: oklch(from var(--neutral-950) l c h / 0.3);
|
|
198
|
+
--shade-400: oklch(from var(--neutral-950) l c h / 0.4);
|
|
199
|
+
--shade-500: oklch(from var(--neutral-950) l c h / 0.5);
|
|
200
|
+
--shade-600: oklch(from var(--neutral-950) l c h / 0.6);
|
|
201
|
+
--shade-700: oklch(from var(--neutral-950) l c h / 0.7);
|
|
202
|
+
--shade-800: oklch(from var(--neutral-950) l c h / 0.8);
|
|
203
|
+
--shade-900: oklch(from var(--neutral-950) l c h / 0.9);
|
|
204
|
+
--shade-950: oklch(from var(--neutral-950) l c h / 0.95);
|
|
205
|
+
--shade-full: oklch(from var(--neutral-950) l c h / 1);
|
|
206
|
+
|
|
207
|
+
/* tint — faded overlays (derived from white) */
|
|
208
|
+
--tint-none: oklch(from var(--white) l c h / 0);
|
|
209
|
+
--tint-50: oklch(from var(--white) l c h / 0.05);
|
|
210
|
+
--tint-100: oklch(from var(--white) l c h / 0.1);
|
|
211
|
+
--tint-200: oklch(from var(--white) l c h / 0.2);
|
|
212
|
+
--tint-300: oklch(from var(--white) l c h / 0.3);
|
|
213
|
+
--tint-400: oklch(from var(--white) l c h / 0.4);
|
|
214
|
+
--tint-500: oklch(from var(--white) l c h / 0.5);
|
|
215
|
+
--tint-600: oklch(from var(--white) l c h / 0.6);
|
|
216
|
+
--tint-700: oklch(from var(--white) l c h / 0.7);
|
|
217
|
+
--tint-800: oklch(from var(--white) l c h / 0.8);
|
|
218
|
+
--tint-900: oklch(from var(--white) l c h / 0.9);
|
|
219
|
+
--tint-950: oklch(from var(--white) l c h / 0.95);
|
|
220
|
+
--tint-full: oklch(from var(--white) l c h / 1);
|
|
221
|
+
|
|
222
|
+
/* ==========================================================================
|
|
223
|
+
* 4. Typography — typefaces, sizes, weights, tracking, leading
|
|
224
|
+
* ========================================================================== */
|
|
225
|
+
|
|
226
|
+
/* font-family */
|
|
227
|
+
--font-body:
|
|
228
|
+
"Geist", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
229
|
+
"Segoe UI Symbol", "Noto Color Emoji";
|
|
230
|
+
--font-heading:
|
|
231
|
+
"Geist", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
232
|
+
"Segoe UI Symbol", "Noto Color Emoji";
|
|
233
|
+
--font-mono:
|
|
234
|
+
"Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
235
|
+
"Courier New", monospace;
|
|
236
|
+
|
|
237
|
+
/* semantic font-families */
|
|
238
|
+
--font-family-body: var(--font-body);
|
|
239
|
+
--font-family-heading: var(--font-heading);
|
|
240
|
+
--font-family-mono: var(--font-mono);
|
|
241
|
+
|
|
242
|
+
/* font-size — fluid clamp() */
|
|
243
|
+
--font-size-eyebrow: clamp(0.512rem, 0.609rem + 0.1213vi, 0.5787rem);
|
|
244
|
+
--font-size-xs: clamp(0.5787rem, 0.8584rem + 0.273vi, 0.64rem);
|
|
245
|
+
--font-size-sm: clamp(0.7901rem, 0.9293rem + 0.1616vi, 0.8rem);
|
|
246
|
+
--font-size-md: clamp(1rem, 1rem + 0vi, 1rem);
|
|
247
|
+
--font-size-lg: clamp(1.125rem, 1.0682rem + 0.2273vi, 1.25rem);
|
|
248
|
+
--font-size-xl: clamp(1.2656rem, 1.1307rem + 0.5398vi, 1.5625rem);
|
|
249
|
+
--font-size-h6: clamp(1.2656rem, 1.1307rem + 0.5398vi, 1.5625rem);
|
|
250
|
+
--font-size-h5: clamp(1.4238rem, 1.1832rem + 0.9624vi, 1.9531rem);
|
|
251
|
+
--font-size-h4: clamp(1.6018rem, 1.2202rem + 1.5265vi, 2.4414rem);
|
|
252
|
+
--font-size-h3: clamp(1.802rem, 1.234rem + 2.2722vi, 3.0518rem);
|
|
253
|
+
--font-size-h2: clamp(2.0273rem, 1.2148rem + 3.2498vi, 3.8147rem);
|
|
254
|
+
--font-size-h1: clamp(2.2807rem, 1.1499rem + 4.523vi, 4.7684rem);
|
|
255
|
+
--font-size-display: clamp(2.5658rem, 1.0227rem + 6.1721vi, 5.9605rem);
|
|
256
|
+
|
|
257
|
+
/* font-weight */
|
|
258
|
+
--font-weight-body: 400;
|
|
259
|
+
--font-weight-heading: 600;
|
|
260
|
+
--font-weight-strong: 500;
|
|
261
|
+
--font-weight-mono: 400;
|
|
262
|
+
--font-weight-eyebrow: 600;
|
|
263
|
+
|
|
264
|
+
/* letter-spacing */
|
|
265
|
+
--tracking-display: -0.05em;
|
|
266
|
+
--tracking-h1: -0.05em;
|
|
267
|
+
--tracking-h2: -0.025em;
|
|
268
|
+
--tracking-h3: -0.025em;
|
|
269
|
+
--tracking-h4: -0.015em;
|
|
270
|
+
--tracking-h5: -0.01em;
|
|
271
|
+
--tracking-h6: -0.005em;
|
|
272
|
+
--tracking-xl: 0em;
|
|
273
|
+
--tracking-lg: 0em;
|
|
274
|
+
--tracking-md: 0em;
|
|
275
|
+
--tracking-sm: 0em;
|
|
276
|
+
--tracking-xs: 0em;
|
|
277
|
+
--tracking-eyebrow: 0.1em;
|
|
278
|
+
|
|
279
|
+
/* line-height */
|
|
280
|
+
--leading-display: 0.95;
|
|
281
|
+
--leading-h1: 0.95;
|
|
282
|
+
--leading-h2: 0.95;
|
|
283
|
+
--leading-h3: 1;
|
|
284
|
+
--leading-h4: 1;
|
|
285
|
+
--leading-h5: 1;
|
|
286
|
+
--leading-h6: 1;
|
|
287
|
+
--leading-xl: 1.5;
|
|
288
|
+
--leading-lg: 1.5;
|
|
289
|
+
--leading-md: 1.6;
|
|
290
|
+
--leading-sm: 1.5;
|
|
291
|
+
--leading-xs: 1.5;
|
|
292
|
+
--leading-eyebrow: 1.2;
|
|
293
|
+
|
|
294
|
+
/* paragraph-spacing */
|
|
295
|
+
--paragraph-spacing-multiplier: 1;
|
|
296
|
+
|
|
297
|
+
--paragraph-spacing-display: calc(1.75rlh * var(--paragraph-spacing-multiplier));
|
|
298
|
+
--paragraph-spacing-h1: calc(1.75rlh * var(--paragraph-spacing-multiplier));
|
|
299
|
+
--paragraph-spacing-h2: calc(1.5rlh * var(--paragraph-spacing-multiplier));
|
|
300
|
+
--paragraph-spacing-h3: calc(1.5rlh * var(--paragraph-spacing-multiplier));
|
|
301
|
+
--paragraph-spacing-h4: calc(1.25rlh * var(--paragraph-spacing-multiplier));
|
|
302
|
+
--paragraph-spacing-h5: calc(1.25rlh * var(--paragraph-spacing-multiplier));
|
|
303
|
+
--paragraph-spacing-h6: calc(1.25rlh * var(--paragraph-spacing-multiplier));
|
|
304
|
+
--paragraph-spacing-xl: calc(0.75rlh * var(--paragraph-spacing-multiplier));
|
|
305
|
+
--paragraph-spacing-lg: calc(0.75rlh * var(--paragraph-spacing-multiplier));
|
|
306
|
+
--paragraph-spacing-md: calc(0.75rlh * var(--paragraph-spacing-multiplier));
|
|
307
|
+
--paragraph-spacing-sm: calc(0.5rlh * var(--paragraph-spacing-multiplier));
|
|
308
|
+
--paragraph-spacing-xs: calc(0.5rlh * var(--paragraph-spacing-multiplier));
|
|
309
|
+
--paragraph-spacing-eyebrow: calc(1rlh * var(--paragraph-spacing-multiplier));
|
|
310
|
+
|
|
311
|
+
/* ==========================================================================
|
|
312
|
+
* 5. Spacing — interval modifier, semantic gaps, step scale
|
|
313
|
+
* ========================================================================== */
|
|
314
|
+
|
|
315
|
+
/* modifiers */
|
|
316
|
+
/* @link https://utopia.fyi/clamp/calculator?a=400,1280,3.6—4 */
|
|
317
|
+
--spacing-interval: clamp(0.225rem, 0.2136rem + 0.0455vi, 0.25rem);
|
|
318
|
+
|
|
319
|
+
/* scale */
|
|
320
|
+
--step-0_5px: 0.5px;
|
|
321
|
+
--step-px: 1px;
|
|
322
|
+
--step-0_5: calc(var(--spacing-interval) / 2);
|
|
323
|
+
--step-1: var(--spacing-interval);
|
|
324
|
+
--step-1_5: calc(var(--spacing-interval) * 1.5);
|
|
325
|
+
--step-2: calc(var(--spacing-interval) * 2);
|
|
326
|
+
--step-2_5: calc(var(--spacing-interval) * 2.5);
|
|
327
|
+
--step-3: calc(var(--spacing-interval) * 3);
|
|
328
|
+
--step-3_5: calc(var(--spacing-interval) * 3.5);
|
|
329
|
+
--step-4: calc(var(--spacing-interval) * 4);
|
|
330
|
+
--step-4_5: calc(var(--spacing-interval) * 4.5);
|
|
331
|
+
--step-5: calc(var(--spacing-interval) * 5);
|
|
332
|
+
--step-5_5: calc(var(--spacing-interval) * 5.5);
|
|
333
|
+
--step-6: calc(var(--spacing-interval) * 6);
|
|
334
|
+
--step-7: calc(var(--spacing-interval) * 7);
|
|
335
|
+
--step-8: calc(var(--spacing-interval) * 8);
|
|
336
|
+
--step-9: calc(var(--spacing-interval) * 9);
|
|
337
|
+
--step-10: calc(var(--spacing-interval) * 10);
|
|
338
|
+
--step-11: calc(var(--spacing-interval) * 11);
|
|
339
|
+
--step-12: calc(var(--spacing-interval) * 12);
|
|
340
|
+
--step-14: calc(var(--spacing-interval) * 14);
|
|
341
|
+
--step-16: calc(var(--spacing-interval) * 16);
|
|
342
|
+
--step-20: calc(var(--spacing-interval) * 20);
|
|
343
|
+
--step-24: calc(var(--spacing-interval) * 24);
|
|
344
|
+
--step-28: calc(var(--spacing-interval) * 28);
|
|
345
|
+
--step-32: calc(var(--spacing-interval) * 32);
|
|
346
|
+
--step-36: calc(var(--spacing-interval) * 36);
|
|
347
|
+
--step-40: calc(var(--spacing-interval) * 40);
|
|
348
|
+
--step-44: calc(var(--spacing-interval) * 44);
|
|
349
|
+
--step-48: calc(var(--spacing-interval) * 48);
|
|
350
|
+
--step-52: calc(var(--spacing-interval) * 52);
|
|
351
|
+
--step-56: calc(var(--spacing-interval) * 56);
|
|
352
|
+
--step-60: calc(var(--spacing-interval) * 60);
|
|
353
|
+
--step-64: calc(var(--spacing-interval) * 64);
|
|
354
|
+
--step-72: calc(var(--spacing-interval) * 72);
|
|
355
|
+
--step-80: calc(var(--spacing-interval) * 80);
|
|
356
|
+
--step-96: calc(var(--spacing-interval) * 96);
|
|
357
|
+
--step-full: 100%;
|
|
358
|
+
|
|
359
|
+
/* semantic */
|
|
360
|
+
--gap-xs: var(--step-2);
|
|
361
|
+
--gap-sm: var(--step-4);
|
|
362
|
+
--gap-md: var(--step-6);
|
|
363
|
+
--gap-lg: var(--step-11);
|
|
364
|
+
--gap-xl: var(--step-24);
|
|
365
|
+
|
|
366
|
+
/* ==========================================================================
|
|
367
|
+
* 6. Radius — multiplier, semantic scale, component primitives
|
|
368
|
+
* ========================================================================== */
|
|
369
|
+
|
|
370
|
+
/* modifiers */
|
|
371
|
+
--radius-multiplier: 1;
|
|
372
|
+
|
|
373
|
+
/* semantic */
|
|
374
|
+
--radius-none: 0rem;
|
|
375
|
+
--radius-xs: calc(var(--step-1) * var(--radius-multiplier));
|
|
376
|
+
--radius-sm: calc(var(--step-1_5) * var(--radius-multiplier));
|
|
377
|
+
--radius-md: calc(var(--step-2_5) * var(--radius-multiplier));
|
|
378
|
+
--radius-lg: calc(var(--step-4_5) * var(--radius-multiplier));
|
|
379
|
+
--radius-xl: calc(var(--step-7) * var(--radius-multiplier));
|
|
380
|
+
--radius-full: 9999rem;
|
|
381
|
+
|
|
382
|
+
/* ==========================================================================
|
|
383
|
+
* 7. Layout — container widths and breakpoints
|
|
384
|
+
* ========================================================================== */
|
|
385
|
+
|
|
386
|
+
/* semantic */
|
|
387
|
+
--gutters: var(--gap-md);
|
|
388
|
+
|
|
389
|
+
/* breakpoints — length tokens for calcs and container queries.
|
|
390
|
+
The matching --is-breakpoint-* state flags are sourced from the body
|
|
391
|
+
container after this :root block (the size-query subject must be a body
|
|
392
|
+
descendant, so it cannot live in :root). */
|
|
393
|
+
--breakpoint-xs: 40rem;
|
|
394
|
+
--breakpoint-sm: 48rem;
|
|
395
|
+
--breakpoint-md: 64rem;
|
|
396
|
+
--breakpoint-lg: 80rem;
|
|
397
|
+
--breakpoint-xl: 96rem;
|
|
398
|
+
|
|
399
|
+
/* article container widths */
|
|
400
|
+
--article-xs: 45ch;
|
|
401
|
+
--article-sm: 50ch;
|
|
402
|
+
--article-md: 65ch;
|
|
403
|
+
--article-lg: 70ch;
|
|
404
|
+
--article-xl: 75ch;
|
|
405
|
+
|
|
406
|
+
/* ==========================================================================
|
|
407
|
+
* 8. Effects — shadows, focus rings
|
|
408
|
+
* ========================================================================== */
|
|
409
|
+
|
|
410
|
+
/* states - focus rings
|
|
411
|
+
* Tailwind/shadcn-compatible ring tokens. The ring renders as a box-shadow:
|
|
412
|
+
* --ring-offset-shadow (a --ring-offset-width gap in --ring-offset-color) +
|
|
413
|
+
* --ring-shadow (a --ring-width band of --ring) — the same composition
|
|
414
|
+
* Tailwind's ring utilities use (--tw-ring-*), so values port 1:1.
|
|
415
|
+
*
|
|
416
|
+
* Override --ring-color, never --ring: a custom property resolves its own
|
|
417
|
+
* var()s on the element where it is DECLARED, then the resolved value
|
|
418
|
+
* inherits. So redeclaring --ring here (or on :root) bakes in this element's
|
|
419
|
+
* --ring-color and no descendant override can change it. To re-colour a
|
|
420
|
+
* ring, declare --_ring on the element that paints it (below).
|
|
421
|
+
*
|
|
422
|
+
* The animated recipe. Components paint the ring as a box-shadow so it
|
|
423
|
+
* composes with their own shadow and can grow from 0 on focus. Copy this
|
|
424
|
+
* verbatim — it is byte-identical in every component, and for the same
|
|
425
|
+
* reason as above it cannot be hoisted into one token here: the widths must
|
|
426
|
+
* resolve per element, and a :root-composed token would freeze them at 0.
|
|
427
|
+
*
|
|
428
|
+
* --_ring-offset-width: 0px;
|
|
429
|
+
* --_ring-width: 0px;
|
|
430
|
+
* --_ring: color-mix(in oklch, var(--ui-x-ring-color) var(--ring-opacity), transparent);
|
|
431
|
+
* box-shadow:
|
|
432
|
+
* 0 0 0 var(--_ring-offset-width) var(--ring-offset-color),
|
|
433
|
+
* 0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width)) var(--_ring, var(--ring)),
|
|
434
|
+
* var(--ui-x-shadow);
|
|
435
|
+
*
|
|
436
|
+
* …then grow it in the focus rule:
|
|
437
|
+
*
|
|
438
|
+
* --_ring-offset-width: var(--ring-offset-width);
|
|
439
|
+
* --_ring-width: var(--ring-width);
|
|
440
|
+
* outline-color: transparent;
|
|
441
|
+
*
|
|
442
|
+
* --_ring is optional: omit it and the ring falls back to --ring. */
|
|
443
|
+
--ring-color: var(--primary);
|
|
444
|
+
--ring-opacity: 70%;
|
|
445
|
+
--ring: color-mix(in oklch, var(--ring-color) var(--ring-opacity), transparent);
|
|
446
|
+
--ring-width: 2px;
|
|
447
|
+
--ring-offset-width: 1px;
|
|
448
|
+
--ring-offset-color: var(--background);
|
|
449
|
+
|
|
450
|
+
/* outline twin — transparent outline matching the ring's geometry.
|
|
451
|
+
* Shadow-ringed elements keep it because forced-colors / high-contrast
|
|
452
|
+
* modes drop box-shadows but force outline-color, so focus stays visible. */
|
|
453
|
+
--outline-width: var(--ring-width);
|
|
454
|
+
--outline-style: solid;
|
|
455
|
+
--outline-offset: var(--ring-offset-width);
|
|
456
|
+
|
|
457
|
+
/* shadows */
|
|
458
|
+
--ring-offset-shadow: 0 0 0 var(--ring-offset-width) var(--ring-offset-color);
|
|
459
|
+
--ring-shadow: 0 0 0 calc(var(--ring-offset-width) + var(--ring-width)) var(--ring);
|
|
460
|
+
/* the composed focus ring (offset gap + ring band) for box-shadow lists */
|
|
461
|
+
--shadow-ring: var(--ring-offset-shadow), var(--ring-shadow);
|
|
462
|
+
|
|
463
|
+
--shadow-xs:
|
|
464
|
+
0 8px 2px 0 oklch(from var(--black) l c h / 0),
|
|
465
|
+
0 5px 2px 0 oklch(from var(--black) l c h / 0.01),
|
|
466
|
+
0 3px 2px 0 oklch(from var(--black) l c h / 0.03),
|
|
467
|
+
0 1px 1px 0 oklch(from var(--black) l c h / 0.04),
|
|
468
|
+
0 0 1px 0 oklch(from var(--black) l c h / 0.05);
|
|
469
|
+
--shadow-sm:
|
|
470
|
+
0 25px 7px 0 oklch(from var(--black) l c h / 0),
|
|
471
|
+
0 16px 6px 0 oklch(from var(--black) l c h / 0.01),
|
|
472
|
+
0 9px 5px 0 oklch(from var(--black) l c h / 0.03),
|
|
473
|
+
0 4px 4px 0 oklch(from var(--black) l c h / 0.04),
|
|
474
|
+
0 1px 2px 0 oklch(from var(--black) l c h / 0.05);
|
|
475
|
+
--shadow-md:
|
|
476
|
+
0 66px 18px 0 oklch(from var(--black) l c h / 0),
|
|
477
|
+
0 42px 17px 0 oklch(from var(--black) l c h / 0.01),
|
|
478
|
+
0 24px 14px 0 oklch(from var(--black) l c h / 0.03),
|
|
479
|
+
0 11px 11px 0 oklch(from var(--black) l c h / 0.04),
|
|
480
|
+
0 3px 6px 0 oklch(from var(--black) l c h / 0.05);
|
|
481
|
+
--shadow-lg:
|
|
482
|
+
0 247px 69px 0 oklch(from var(--black) l c h / 0),
|
|
483
|
+
0 158px 63px 0 oklch(from var(--black) l c h / 0.01),
|
|
484
|
+
0 89px 53px 0 oklch(from var(--black) l c h / 0.03),
|
|
485
|
+
0 39px 39px 0 oklch(from var(--black) l c h / 0.05),
|
|
486
|
+
0 10px 22px 0 oklch(from var(--black) l c h / 0.06);
|
|
487
|
+
--shadow-xl:
|
|
488
|
+
0 370px 104px 0 oklch(from var(--black) l c h / 0),
|
|
489
|
+
0 237px 95px 0 oklch(from var(--black) l c h / 0.01),
|
|
490
|
+
0 133px 80px 0 oklch(from var(--black) l c h / 0.04),
|
|
491
|
+
0 59px 59px 0 oklch(from var(--black) l c h / 0.06),
|
|
492
|
+
0 15px 33px 0 oklch(from var(--black) l c h / 0.07);
|
|
493
|
+
|
|
494
|
+
/* ==========================================================================
|
|
495
|
+
* 9. Animations — spring easing, duration
|
|
496
|
+
* ========================================================================== */
|
|
497
|
+
|
|
498
|
+
/* Spring easing curve for smooth, natural animations */
|
|
499
|
+
--spring-easing: linear(
|
|
500
|
+
0,
|
|
501
|
+
0.012 0.9%,
|
|
502
|
+
0.049 2%,
|
|
503
|
+
0.409 9.3%,
|
|
504
|
+
0.513 11.9%,
|
|
505
|
+
0.606 14.7%,
|
|
506
|
+
0.691 17.9%,
|
|
507
|
+
0.762 21.3%,
|
|
508
|
+
0.82 25%,
|
|
509
|
+
0.868 29.1%,
|
|
510
|
+
0.907 33.6%,
|
|
511
|
+
0.937 38.7%,
|
|
512
|
+
0.976 51.3%,
|
|
513
|
+
0.994 68.8%,
|
|
514
|
+
1
|
|
515
|
+
);
|
|
516
|
+
--bezier-easing: cubic-bezier(0.17, 0.84, 0.44, 1);
|
|
517
|
+
--spring-duration: 0.333s;
|
|
518
|
+
|
|
519
|
+
/* Fallback to easeOutQuart for browsers that don't support spring easing */
|
|
520
|
+
--default-transition-property:
|
|
521
|
+
text-underline-offset, text-decoration-color, box-shadow, background-color, border-color,
|
|
522
|
+
opacity, color, fill, stroke, transform, translate, scale, rotate, filter,
|
|
523
|
+
-webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
524
|
+
--default-transition-timing-function: var(--spring-easing, var(--bezier-easing));
|
|
525
|
+
--default-transition-duration: var(--spring-duration, 0.333s);
|
|
526
|
+
--default-transition:
|
|
527
|
+
text-underline-offset var(--default-transition-duration)
|
|
528
|
+
var(--default-transition-timing-function),
|
|
529
|
+
text-decoration-color var(--default-transition-duration)
|
|
530
|
+
var(--default-transition-timing-function),
|
|
531
|
+
box-shadow var(--default-transition-duration) var(--default-transition-timing-function),
|
|
532
|
+
background-color var(--default-transition-duration) var(--default-transition-timing-function),
|
|
533
|
+
border-color var(--default-transition-duration) var(--default-transition-timing-function),
|
|
534
|
+
opacity var(--default-transition-duration) var(--default-transition-timing-function),
|
|
535
|
+
color var(--default-transition-duration) var(--default-transition-timing-function),
|
|
536
|
+
fill var(--default-transition-duration) var(--default-transition-timing-function),
|
|
537
|
+
stroke var(--default-transition-duration) var(--default-transition-timing-function),
|
|
538
|
+
transform var(--default-transition-duration) var(--default-transition-timing-function),
|
|
539
|
+
translate var(--default-transition-duration) var(--default-transition-timing-function),
|
|
540
|
+
scale var(--default-transition-duration) var(--default-transition-timing-function),
|
|
541
|
+
rotate var(--default-transition-duration) var(--default-transition-timing-function),
|
|
542
|
+
filter var(--default-transition-duration) var(--default-transition-timing-function),
|
|
543
|
+
-webkit-backdrop-filter var(--default-transition-duration)
|
|
544
|
+
var(--default-transition-timing-function),
|
|
545
|
+
backdrop-filter var(--default-transition-duration) var(--default-transition-timing-function),
|
|
546
|
+
display var(--default-transition-duration) var(--default-transition-timing-function),
|
|
547
|
+
content-visibility var(--default-transition-duration)
|
|
548
|
+
var(--default-transition-timing-function),
|
|
549
|
+
overlay var(--default-transition-duration) var(--default-transition-timing-function),
|
|
550
|
+
pointer-events var(--default-transition-duration) var(--default-transition-timing-function);
|
|
551
|
+
|
|
552
|
+
--decoration-line: underline;
|
|
553
|
+
--decoration-color: currentColor;
|
|
554
|
+
--decoration-color--hover: currentColor;
|
|
555
|
+
--decoration-color--active: currentColor;
|
|
556
|
+
--decoration-style: solid;
|
|
557
|
+
--decoration-thickness: 1px;
|
|
558
|
+
--decoration-offset: 2px;
|
|
559
|
+
--decoration-offset--hover: 3px;
|
|
560
|
+
--decoration-offset--active: 2px;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/* ==========================================================================
|
|
564
|
+
* Breakpoint state flags — global, sourced from the body container.
|
|
565
|
+
* Set the same value on every body descendant so any style() consumer
|
|
566
|
+
* resolves it identically, no matter which container it reads from (the
|
|
567
|
+
* .container element is intentionally container-type: normal).
|
|
568
|
+
* Mobile-first: --is-breakpoint-X becomes true once width reaches X.
|
|
569
|
+
* Registered as typed @property (false default) in _properties.css.
|
|
570
|
+
* Literal rem required — var() is invalid in a container-query prelude.
|
|
571
|
+
* ========================================================================== */
|
|
572
|
+
@container (width >=40rem) {
|
|
573
|
+
:where(body *) {
|
|
574
|
+
--is-breakpoint-xs: true;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
@container (width >=48rem) {
|
|
579
|
+
:where(body *) {
|
|
580
|
+
--is-breakpoint-sm: true;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
@container (width >=64rem) {
|
|
585
|
+
:where(body *) {
|
|
586
|
+
--is-breakpoint-md: true;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
@container (width >=80rem) {
|
|
591
|
+
:where(body *) {
|
|
592
|
+
--is-breakpoint-lg: true;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
@container (width >=96rem) {
|
|
597
|
+
:where(body *) {
|
|
598
|
+
--is-breakpoint-xl: true;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
@media (prefers-reduced-motion: reduce) {
|
|
603
|
+
:root {
|
|
604
|
+
--default-transition-duration: 0s;
|
|
605
|
+
--default-transition-timing-function: ease-in-out;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/*
|
|
610
|
+
* Manual dark mode — re-declare dark theme tokens so light-dark() resolves
|
|
611
|
+
* with color-scheme: dark. Tokens defined only on :root inherit as computed
|
|
612
|
+
* light values; setting color-scheme on descendants alone does not flip them.
|
|
613
|
+
*/
|
|
614
|
+
|
|
615
|
+
@container style(--use-inverted-popovers: true) {
|
|
616
|
+
:where([popover]:not([data-use-inverted-menu="false"])) {
|
|
617
|
+
color-scheme: dark;
|
|
618
|
+
|
|
619
|
+
--background: var(--neutral-900);
|
|
620
|
+
--foreground: var(--white);
|
|
621
|
+
--border: var(--tint-200);
|
|
622
|
+
--border-foreground: var(--shade-500);
|
|
623
|
+
--card: var(--neutral-950);
|
|
624
|
+
--card-foreground: var(--white);
|
|
625
|
+
--input: var(--tint-50);
|
|
626
|
+
--input-foreground: var(--white);
|
|
627
|
+
--popover: var(--shade-950);
|
|
628
|
+
--popover-foreground: var(--white);
|
|
629
|
+
--muted: var(--tint-50);
|
|
630
|
+
--muted-foreground: var(--tint-600);
|
|
631
|
+
--faded: var(--shade-100);
|
|
632
|
+
--faded-foreground: var(--shade-600);
|
|
633
|
+
--primary: var(--primary-500);
|
|
634
|
+
--primary-foreground: var(--white);
|
|
635
|
+
--secondary: var(--secondary-500);
|
|
636
|
+
--secondary-foreground: var(--white);
|
|
637
|
+
--tertiary: var(--tertiary-400);
|
|
638
|
+
--tertiary-foreground: var(--white);
|
|
639
|
+
--info: oklch(0.5 0.1193 242.75);
|
|
640
|
+
--info-foreground: var(--white);
|
|
641
|
+
--success: oklch(0.5081 0.1049 165.61);
|
|
642
|
+
--success-foreground: var(--white);
|
|
643
|
+
--warning: oklch(0.5553 0.1455 49);
|
|
644
|
+
--warning-foreground: var(--white);
|
|
645
|
+
--destructive: oklch(0.5054 0.1905 27.52);
|
|
646
|
+
--destructive-foreground: var(--white);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.dark {
|
|
651
|
+
color-scheme: dark;
|
|
652
|
+
|
|
653
|
+
--background: var(--neutral-900);
|
|
654
|
+
--foreground: var(--white);
|
|
655
|
+
--border: var(--tint-200);
|
|
656
|
+
--border-foreground: var(--shade-500);
|
|
657
|
+
--card: var(--neutral-950);
|
|
658
|
+
--card-foreground: var(--white);
|
|
659
|
+
--input: var(--tint-50);
|
|
660
|
+
--input-foreground: var(--white);
|
|
661
|
+
--popover: var(--shade-950);
|
|
662
|
+
--popover-foreground: var(--white);
|
|
663
|
+
--muted: var(--tint-50);
|
|
664
|
+
--muted-foreground: var(--tint-600);
|
|
665
|
+
--faded: var(--shade-100);
|
|
666
|
+
--faded-foreground: var(--shade-600);
|
|
667
|
+
--primary: var(--primary-500);
|
|
668
|
+
--primary-foreground: var(--white);
|
|
669
|
+
--secondary: var(--secondary-500);
|
|
670
|
+
--secondary-foreground: var(--white);
|
|
671
|
+
--tertiary: var(--tertiary-400);
|
|
672
|
+
--tertiary-foreground: var(--white);
|
|
673
|
+
--info: oklch(0.5 0.1193 242.75);
|
|
674
|
+
--info-foreground: var(--white);
|
|
675
|
+
--success: oklch(0.5081 0.1049 165.61);
|
|
676
|
+
--success-foreground: var(--white);
|
|
677
|
+
--warning: oklch(0.5553 0.1455 49);
|
|
678
|
+
--warning-foreground: var(--white);
|
|
679
|
+
--destructive: oklch(0.5054 0.1905 27.52);
|
|
680
|
+
--destructive-foreground: var(--white);
|
|
681
|
+
}
|
|
682
|
+
}
|