@zazz-ui/core 0.4.1 → 0.5.1
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/AUTHORING.md +158 -0
- package/CHANGELOG.md +345 -0
- package/README.md +55 -23
- package/dist/scroll-state-C8mA5gq6.js +1 -0
- package/dist/sri.json +124 -72
- package/dist/zazz.css +1 -1
- package/dist/zazz.js +1 -1
- package/editor/zazz.css-data.json +116794 -0
- package/editor/zazz.html-data.json +1683 -0
- package/editor/zazz.language-data.json +5001 -0
- package/editor/zazz.lint-data.json +152 -0
- package/package.json +12 -5
- package/src/base/_breakpoints.css +12 -0
- package/src/base/_layers.css +8 -9
- package/src/base/_properties-2xl.css +171 -0
- package/src/base/_properties-active.css +107 -0
- package/src/base/_properties-checked.css +107 -0
- package/src/base/_properties-current.css +107 -0
- package/src/base/_properties-disabled.css +107 -0
- package/src/base/_properties-focus-visible.css +107 -0
- package/src/base/_properties-focus-within.css +107 -0
- package/src/base/_properties-hover.css +107 -0
- package/src/base/_properties-lg.css +171 -0
- package/src/base/_properties-md.css +171 -0
- package/src/base/_properties-open.css +107 -0
- package/src/base/_properties-sm.css +171 -0
- package/src/base/_properties-starting.css +55 -0
- package/src/base/_properties-stuck.css +55 -0
- package/src/base/_properties-xl.css +171 -0
- package/src/base/_properties.css +555 -0
- package/src/base/_reset.css +67 -75
- package/src/base/_switches.css +145 -0
- package/src/base/_typography.css +437 -370
- package/src/base/_utilities-box.css +142 -0
- package/src/base/_utilities-color.css +290 -0
- package/src/base/_utilities-effects.css +235 -0
- package/src/base/_utilities-flow.css +312 -0
- package/src/base/_utilities-grid.css +143 -0
- package/src/base/_utilities-margin.css +376 -0
- package/src/base/_utilities-pseudo.css +426 -0
- package/src/base/_utilities-sizing.css +259 -0
- package/src/base/_utilities-spacing.css +190 -0
- package/src/base/_utilities-tier-2xl.css +93 -0
- package/src/base/_utilities-tier-active.css +61 -0
- package/src/base/_utilities-tier-checked.css +61 -0
- package/src/base/_utilities-tier-current.css +61 -0
- package/src/base/_utilities-tier-disabled.css +61 -0
- package/src/base/_utilities-tier-focus-visible.css +61 -0
- package/src/base/_utilities-tier-focus-within.css +61 -0
- package/src/base/_utilities-tier-hover.css +63 -0
- package/src/base/_utilities-tier-lg.css +93 -0
- package/src/base/_utilities-tier-md.css +93 -0
- package/src/base/_utilities-tier-open.css +61 -0
- package/src/base/_utilities-tier-sm.css +93 -0
- package/src/base/_utilities-tier-starting.css +35 -0
- package/src/base/_utilities-tier-stuck.css +114 -0
- package/src/base/_utilities-tier-xl.css +93 -0
- package/src/base/_utilities-typography.css +141 -0
- package/src/base/_variables.css +323 -372
- package/src/base/_view-transitions.css +10 -12
- package/src/base/command-score.d.ts.map +1 -1
- package/src/base/command-score.js +1 -2
- package/src/base/command-score.ts +1 -2
- package/src/base/dialog-lifecycle.js +1 -1
- package/src/base/dialog-lifecycle.ts +1 -1
- package/src/base/embla.d.ts +6 -7
- package/src/base/embla.d.ts.map +1 -1
- package/src/base/embla.js +89 -55
- package/src/base/embla.ts +89 -55
- package/src/base/hotkeys.d.ts +0 -5
- package/src/base/hotkeys.d.ts.map +1 -1
- package/src/base/hotkeys.ts +0 -5
- package/src/base/navigation.d.ts +12 -1
- package/src/base/navigation.d.ts.map +1 -1
- package/src/base/navigation.js +229 -86
- package/src/base/navigation.ts +224 -92
- package/src/base/reveal.js +14 -14
- package/src/base/reveal.ts +14 -14
- package/src/base/scroll-state.d.ts +21 -0
- package/src/base/scroll-state.d.ts.map +1 -0
- package/src/base/scroll-state.js +177 -0
- package/src/base/scroll-state.ts +188 -0
- package/src/base/signals.d.ts +1 -2
- package/src/base/signals.d.ts.map +1 -1
- package/src/base/signals.js +4 -6
- package/src/base/signals.ts +4 -6
- package/src/base/style-format.d.ts +33 -0
- package/src/base/style-format.d.ts.map +1 -0
- package/src/base/style-format.js +160 -0
- package/src/base/style-format.ts +180 -0
- package/src/base/typeahead.d.ts +19 -4
- package/src/base/typeahead.d.ts.map +1 -1
- package/src/base/typeahead.js +68 -21
- package/src/base/typeahead.ts +73 -23
- package/src/base/utilities.d.ts +188 -0
- package/src/base/utilities.d.ts.map +1 -0
- package/src/base/utilities.js +750 -0
- package/src/base/utilities.ts +865 -0
- package/src/base/utils.d.ts +3 -7
- package/src/base/utils.d.ts.map +1 -1
- package/src/base/utils.js +4 -8
- package/src/base/utils.ts +4 -8
- package/src/base/zazz-element.d.ts +14 -8
- package/src/base/zazz-element.d.ts.map +1 -1
- package/src/base/zazz-element.js +14 -8
- package/src/base/zazz-element.ts +15 -8
- package/src/globals.d.ts +1 -1
- package/src/head.d.ts +50 -4
- package/src/head.d.ts.map +1 -1
- package/src/head.js +119 -38
- package/src/head.ts +172 -41
- package/src/index.css +57 -14
- package/src/index.js +5 -0
- package/src/index.ts +6 -0
- package/src/manifest.d.ts +36 -5
- package/src/manifest.d.ts.map +1 -1
- package/src/manifest.js +150 -6
- package/src/manifest.ts +167 -9
- package/src/primitives/accordion/accordion.css +18 -17
- package/src/primitives/accordion/accordion.html +42 -9
- package/src/primitives/alert-dialog/alert-dialog.css +13 -13
- package/src/primitives/alert-dialog/alert-dialog.html +26 -12
- package/src/primitives/autocomplete/autocomplete-groups.html +64 -33
- package/src/primitives/autocomplete/autocomplete.css +43 -39
- package/src/primitives/autocomplete/autocomplete.d.ts +6 -5
- package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -1
- package/src/primitives/autocomplete/autocomplete.html +38 -26
- package/src/primitives/autocomplete/autocomplete.js +6 -5
- package/src/primitives/autocomplete/autocomplete.ts +6 -5
- package/src/primitives/avatar/avatar.html +110 -15
- package/src/primitives/badge/badge-icon.html +22 -8
- package/src/primitives/badge/badge.css +401 -128
- package/src/primitives/badge/badge.html +12 -6
- package/src/primitives/breadcrumbs/breadcrumbs.html +25 -5
- package/src/primitives/button/button-icon-only.html +17 -11
- package/src/primitives/button/button-icon.html +9 -3
- package/src/primitives/button/button.css +408 -164
- package/src/primitives/button/button.html +14 -7
- package/src/primitives/button-group/button-group-vertical.html +5 -5
- package/src/primitives/button-group/button-group.css +61 -31
- package/src/primitives/button-group/button-group.html +18 -12
- package/src/primitives/callout/callout.css +114 -0
- package/src/primitives/callout/callout.html +188 -0
- package/src/primitives/card/card-subgrid.html +249 -34
- package/src/primitives/card/card.css +125 -0
- package/src/primitives/card/card.html +141 -20
- package/src/primitives/carousel/carousel.css +30 -20
- package/src/primitives/carousel/carousel.d.ts +7 -10
- package/src/primitives/carousel/carousel.d.ts.map +1 -1
- package/src/primitives/carousel/carousel.html +420 -84
- package/src/primitives/carousel/carousel.js +1 -1
- package/src/primitives/carousel/carousel.ts +8 -11
- package/src/primitives/checkbox/checkbox-tasklist.html +6 -6
- package/src/primitives/checkbox/checkbox.css +98 -40
- package/src/primitives/checkbox/checkbox.d.ts.map +1 -1
- package/src/primitives/checkbox/checkbox.html +13 -8
- package/src/primitives/checkbox/checkbox.js +7 -9
- package/src/primitives/checkbox/checkbox.ts +7 -15
- package/src/primitives/combobox/combobox-multiselect.html +53 -33
- package/src/primitives/combobox/combobox.css +145 -122
- package/src/primitives/combobox/combobox.d.ts +12 -11
- package/src/primitives/combobox/combobox.d.ts.map +1 -1
- package/src/primitives/combobox/combobox.html +48 -28
- package/src/primitives/combobox/combobox.js +46 -51
- package/src/primitives/combobox/combobox.ts +48 -55
- package/src/primitives/command/command-actions.d.ts +2 -3
- package/src/primitives/command/command-actions.d.ts.map +1 -1
- package/src/primitives/command/command-actions.html +48 -33
- package/src/primitives/command/command-actions.js +12 -10
- package/src/primitives/command/command-actions.ts +12 -13
- package/src/primitives/command/command-dialog.html +49 -25
- package/src/primitives/command/command.css +52 -42
- package/src/primitives/command/command.d.ts +10 -7
- package/src/primitives/command/command.d.ts.map +1 -1
- package/src/primitives/command/command.html +95 -46
- package/src/primitives/command/command.js +30 -13
- package/src/primitives/command/command.ts +30 -12
- package/src/primitives/debug/audit-core.d.ts +64 -0
- package/src/primitives/debug/audit-core.d.ts.map +1 -0
- package/src/primitives/debug/audit-core.js +356 -0
- package/src/primitives/debug/audit-core.ts +535 -0
- package/src/primitives/debug/debug.d.ts +50 -0
- package/src/primitives/debug/debug.d.ts.map +1 -0
- package/src/primitives/debug/debug.js +168 -0
- package/src/primitives/debug/debug.ts +211 -0
- package/src/primitives/dialog/dialog-with-form.html +67 -45
- package/src/primitives/dialog/dialog.css +87 -61
- package/src/primitives/dialog/dialog.html +25 -17
- package/src/primitives/fields/fields.css +108 -134
- package/src/primitives/fields/fields.html +39 -0
- package/src/primitives/input/input-icon-leading.html +3 -3
- package/src/primitives/input/input-icon-trailing.html +3 -3
- package/src/primitives/input/input.css +87 -49
- package/src/primitives/input/input.html +15 -15
- package/src/primitives/input-group/input-group-password-group.html +15 -15
- package/src/primitives/input-group/input-group.css +118 -75
- package/src/primitives/input-group/input-group.html +42 -30
- package/src/primitives/kbd/kbd-group.html +15 -2
- package/src/primitives/kbd/kbd.css +44 -31
- package/src/primitives/kbd/kbd.html +7 -1
- package/src/primitives/layout/layout.css +159 -0
- package/src/primitives/layout/layout.html +35 -0
- package/src/primitives/lightbox/lightbox.css +178 -105
- package/src/primitives/lightbox/lightbox.d.ts.map +1 -1
- package/src/primitives/lightbox/lightbox.html +138 -166
- package/src/primitives/lightbox/lightbox.js +10 -13
- package/src/primitives/lightbox/lightbox.ts +12 -13
- package/src/primitives/menu/menu-interest.html +60 -18
- package/src/primitives/menu/menu.css +22 -17
- package/src/primitives/menu/menu.d.ts +5 -5
- package/src/primitives/menu/menu.html +195 -40
- package/src/primitives/menu/menu.js +8 -8
- package/src/primitives/menu/menu.ts +8 -8
- package/src/primitives/menubar/menubar-help-search.html +78 -32
- package/src/primitives/menubar/menubar.html +166 -38
- package/src/primitives/meter/meter.css +41 -38
- package/src/primitives/meter/meter.html +44 -9
- package/src/primitives/mobile-menu/mobile-menu.css +47 -40
- package/src/primitives/mobile-menu/mobile-menu.html +1460 -179
- package/src/primitives/navigation-menu/navigation-menu-featured.html +155 -33
- package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +222 -47
- package/src/primitives/navigation-menu/navigation-menu-interest.html +130 -38
- package/src/primitives/navigation-menu/navigation-menu-megamenu.html +402 -72
- package/src/primitives/navigation-menu/navigation-menu-simple.html +90 -40
- package/src/primitives/navigation-menu/navigation-menu.css +104 -106
- package/src/primitives/navigation-menu/navigation-menu.html +554 -158
- package/src/primitives/otp/otp.css +43 -44
- package/src/primitives/otp/otp.d.ts +4 -5
- package/src/primitives/otp/otp.d.ts.map +1 -1
- package/src/primitives/otp/otp.html +7 -6
- package/src/primitives/otp/otp.js +13 -18
- package/src/primitives/otp/otp.ts +12 -19
- package/src/primitives/password-group/password-group.css +132 -107
- package/src/primitives/password-group/password-group.d.ts.map +1 -1
- package/src/primitives/password-group/password-group.html +23 -16
- package/src/primitives/password-group/password-group.js +11 -12
- package/src/primitives/password-group/password-group.ts +11 -12
- package/src/primitives/popover/popover.css +88 -95
- package/src/primitives/popover/popover.html +18 -0
- package/src/primitives/progress/progress-indeterminate.html +1 -1
- package/src/primitives/progress/progress.css +34 -35
- package/src/primitives/progress/progress.html +18 -4
- package/src/primitives/prose/prose.html +19 -12
- package/src/primitives/radio/radio.css +83 -46
- package/src/primitives/radio/radio.html +16 -11
- package/src/primitives/reveal/reveal.css +37 -46
- package/src/primitives/reveal/reveal.html +15 -0
- package/src/primitives/scroll-fade/scroll-fade.css +115 -0
- package/src/primitives/scroll-fade/scroll-fade.html +69 -0
- package/src/primitives/select/multiselect.d.ts +8 -10
- package/src/primitives/select/multiselect.d.ts.map +1 -1
- package/src/primitives/select/multiselect.js +23 -27
- package/src/primitives/select/multiselect.ts +23 -29
- package/src/primitives/select/select-align.html +79 -16
- package/src/primitives/select/select-multiple.html +8 -4
- package/src/primitives/select/select-sides.html +104 -21
- package/src/primitives/select/select.css +297 -186
- package/src/primitives/select/select.html +24 -5
- package/src/primitives/separator/separator.css +15 -18
- package/src/primitives/separator/separator.html +37 -10
- package/src/primitives/slider/slider.css +48 -38
- package/src/primitives/slider/slider.html +9 -1
- package/src/primitives/style-guard/style-guard.d.ts +19 -0
- package/src/primitives/style-guard/style-guard.d.ts.map +1 -0
- package/src/primitives/style-guard/style-guard.js +125 -0
- package/src/primitives/style-guard/style-guard.ts +153 -0
- package/src/primitives/switch/switch.css +42 -33
- package/src/primitives/switch/switch.html +11 -6
- package/src/primitives/table/table-alternating.html +1 -1
- package/src/primitives/table/table-grid.html +5 -5
- package/src/primitives/table/table-size-sm.html +1 -1
- package/src/primitives/table/table.css +64 -61
- package/src/primitives/table/table.html +7 -7
- package/src/primitives/tabs/tabs.css +167 -166
- package/src/primitives/tabs/tabs.d.ts +10 -11
- package/src/primitives/tabs/tabs.d.ts.map +1 -1
- package/src/primitives/tabs/tabs.html +192 -36
- package/src/primitives/tabs/tabs.js +14 -15
- package/src/primitives/tabs/tabs.ts +14 -15
- package/src/primitives/textarea/textarea.css +69 -44
- package/src/primitives/textarea/textarea.html +3 -3
- package/src/primitives/toaster/toaster.css +90 -92
- package/src/primitives/toaster/toaster.d.ts +0 -6
- package/src/primitives/toaster/toaster.d.ts.map +1 -1
- package/src/primitives/toaster/toaster.html +22 -18
- package/src/primitives/toaster/toaster.js +64 -72
- package/src/primitives/toaster/toaster.ts +71 -87
- package/src/primitives/toggle/toggle.css +368 -153
- package/src/primitives/toggle/toggle.html +27 -9
- package/src/primitives/toggle-group/toggle-group-multiple.html +3 -3
- package/src/primitives/toggle-group/toggle-group-vertical.html +4 -4
- package/src/primitives/toggle-group/toggle-group.css +76 -26
- package/src/primitives/toggle-group/toggle-group.html +3 -3
- package/src/primitives/toolbar/toolbar.html +35 -13
- package/src/primitives/tooltip/tooltip-disabled.html +3 -3
- package/src/primitives/tooltip/tooltip-sides.html +36 -14
- package/src/primitives/tooltip/tooltip-with-kbd.html +5 -5
- package/src/primitives/tooltip/tooltip.css +111 -80
- package/src/primitives/tooltip/tooltip.html +3 -3
- package/src/primitives/utilities/aspect-ratio.html +51 -7
- package/src/primitives/utilities/basis.html +64 -11
- package/src/primitives/utilities/col-span.html +65 -9
- package/src/primitives/utilities/compose.html +48 -10
- package/src/primitives/utilities/flex-align.html +89 -19
- package/src/primitives/utilities/flex-direction.html +111 -13
- package/src/primitives/utilities/flex-grow.html +41 -7
- package/src/primitives/utilities/gap.html +158 -19
- package/src/primitives/utilities/grid-cols.html +75 -7
- package/src/primitives/utilities/grid-responsive.html +111 -12
- package/src/primitives/utilities/margin-auto.html +38 -7
- package/src/primitives/utilities/object-fit.html +75 -13
- package/src/primitives/utilities/order.html +40 -4
- package/src/primitives/utilities/overflow.html +74 -20
- package/src/primitives/utilities/padding-compose.html +67 -10
- package/src/primitives/utilities/padding.html +84 -13
- package/src/primitives/utilities/pile.html +29 -0
- package/src/primitives/utilities/position.html +65 -8
- package/src/primitives/utilities/responsive-flex.html +54 -7
- package/src/primitives/utilities/responsive-grid.html +115 -12
- package/src/primitives/utilities/size.html +120 -16
- package/src/primitives/utilities/width.html +123 -16
- package/examples/about.html +0 -583
- package/examples/components.html +0 -1028
- package/examples/forms.html +0 -504
- package/examples/index.html +0 -261
- package/examples/layout.html +0 -313
- package/examples/products.html +0 -839
- package/examples/responsive.html +0 -332
- package/src/base/_layout.css +0 -571
- package/src/base/_utilities.css +0 -6758
- package/src/primitives/utilities/grid-pile.html +0 -5
package/src/base/_variables.css
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* _variables.css — Global design tokens (Tier 1).
|
|
3
3
|
*
|
|
4
4
|
* @layer variables
|
|
5
|
-
* @requires
|
|
5
|
+
* @requires _layers.css
|
|
6
6
|
* @uses light-dark() — theme roles re-resolve per color-scheme (system,
|
|
7
|
-
*
|
|
7
|
+
* [data-ui-theme="dark" | "light"]); tokens stay unregistered on purpose
|
|
8
8
|
* @uses oklch(from …) — shade/tint scales and shadow alphas
|
|
9
|
-
* @uses color-mix() — focus ring (--ring)
|
|
9
|
+
* @uses color-mix() — focus ring (--color-ring)
|
|
10
10
|
* @uses interpolate-size: allow-keywords — discrete block-size animations (details, etc.)
|
|
11
11
|
* @tokens Global token tiers (the root override hooks) — Theme roles, brand
|
|
12
12
|
* scales (50–950), grayscale/shade/tint, typography, spacing, radius,
|
|
13
|
-
* layout, effects, animations. Re-declare any of these to re-skin the
|
|
14
|
-
* whole system; see CONVENTIONS.md.
|
|
13
|
+
* layout, effects, animations. Sized families run 2xs–2xl. Re-declare any of these to re-skin the
|
|
14
|
+
* whole system; see CONVENTIONS.styles.md.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
/* Animations */
|
|
@@ -22,12 +22,10 @@
|
|
|
22
22
|
initial-value: 0s;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
/*
|
|
26
|
-
* reveal.
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* dead — the global/config defaults could never apply. They are not used in
|
|
30
|
-
* any style() query, so typing buys nothing here. */
|
|
25
|
+
/* --ui-reveal-duration / --ui-reveal-wait are intentionally unregistered:
|
|
26
|
+
* reveal.css resolves them with var(--ui-reveal-*, var(--ui-reveal-global-*)),
|
|
27
|
+
* and a registered property is never guaranteed-invalid, which would make that
|
|
28
|
+
* fallback dead. */
|
|
31
29
|
|
|
32
30
|
@property --spring-duration {
|
|
33
31
|
syntax: "<time>";
|
|
@@ -35,211 +33,212 @@
|
|
|
35
33
|
initial-value: 0s;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
* any min-width query matches. Sourced from the body container in _variables.css. */
|
|
41
|
-
|
|
42
|
-
@property --is-breakpoint-xs {
|
|
43
|
-
syntax: "true | false";
|
|
44
|
-
inherits: true;
|
|
45
|
-
initial-value: false;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@property --is-breakpoint-sm {
|
|
49
|
-
syntax: "true | false";
|
|
50
|
-
inherits: true;
|
|
51
|
-
initial-value: false;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@property --is-breakpoint-md {
|
|
55
|
-
syntax: "true | false";
|
|
56
|
-
inherits: true;
|
|
57
|
-
initial-value: false;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@property --is-breakpoint-lg {
|
|
61
|
-
syntax: "true | false";
|
|
62
|
-
inherits: true;
|
|
63
|
-
initial-value: false;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@property --is-breakpoint-xl {
|
|
67
|
-
syntax: "true | false";
|
|
36
|
+
@property --decoration-offset {
|
|
37
|
+
syntax: "<length>";
|
|
68
38
|
inherits: true;
|
|
69
|
-
initial-value:
|
|
39
|
+
initial-value: 1px;
|
|
70
40
|
}
|
|
71
41
|
|
|
72
|
-
/*
|
|
42
|
+
/* Layout width tokens (--layout-*) are generated into _breakpoints.css. */
|
|
73
43
|
@layer variables {
|
|
74
44
|
:root {
|
|
75
|
-
/*
|
|
76
|
-
* color-scheme; light-dark() tokens re-resolve there automatically. */
|
|
45
|
+
/* theme scopes at the bottom of the file pin color-scheme */
|
|
77
46
|
color-scheme: light dark;
|
|
78
47
|
|
|
79
|
-
/*
|
|
48
|
+
/* allows animating to/from block-size: auto */
|
|
80
49
|
interpolate-size: allow-keywords;
|
|
81
50
|
|
|
82
51
|
/* ==========================================================================
|
|
83
|
-
*
|
|
52
|
+
* Theme — light/dark via light-dark(); follows color-scheme (system + data-ui-theme)
|
|
84
53
|
* ========================================================================== */
|
|
85
54
|
|
|
86
55
|
/* base */
|
|
87
|
-
--background: light-dark(var(--white), var(--neutral-900));
|
|
88
|
-
--foreground: light-dark(var(--neutral-900), var(--white));
|
|
89
|
-
--border: light-dark(var(--neutral-100), var(--
|
|
90
|
-
--border-foreground: light-dark(var(--tint-950), var(--shade-500));
|
|
91
|
-
--card: light-dark(var(--white), var(--neutral-950));
|
|
92
|
-
--card-foreground: light-dark(var(--neutral-900), var(--white));
|
|
93
|
-
--popover: light-dark(var(--white), var(--neutral-950));
|
|
94
|
-
--popover-foreground: light-dark(var(--neutral-900), var(--white));
|
|
95
|
-
--input: light-dark(var(--neutral-50), var(--tint-100));
|
|
96
|
-
--input-foreground: light-dark(var(--neutral-900), var(--white));
|
|
56
|
+
--color-background: light-dark(var(--color-white), var(--color-neutral-900));
|
|
57
|
+
--color-foreground: light-dark(var(--color-neutral-900), var(--color-white));
|
|
58
|
+
--color-border: light-dark(var(--color-neutral-100), var(--color-neutral-800));
|
|
59
|
+
--color-border-foreground: light-dark(var(--color-tint-950), var(--color-shade-500));
|
|
60
|
+
--color-card: light-dark(var(--color-white), var(--color-neutral-950));
|
|
61
|
+
--color-card-foreground: light-dark(var(--color-neutral-900), var(--color-white));
|
|
62
|
+
--color-popover: light-dark(var(--color-white), var(--color-neutral-950));
|
|
63
|
+
--color-popover-foreground: light-dark(var(--color-neutral-900), var(--color-white));
|
|
64
|
+
--color-input: light-dark(var(--color-neutral-50), var(--color-tint-100));
|
|
65
|
+
--color-input-foreground: light-dark(var(--color-neutral-900), var(--color-white));
|
|
97
66
|
|
|
98
67
|
/* overlay */
|
|
99
|
-
--muted: light-dark(var(--shade-50), var(--tint-100));
|
|
100
|
-
--muted-foreground: light-dark(var(--shade-600), var(--tint-600));
|
|
101
|
-
--faded: light-dark(var(--tint-400), var(--shade-100));
|
|
102
|
-
--faded-foreground: light-dark(var(--tint-600), var(--shade-600));
|
|
68
|
+
--color-muted: light-dark(var(--color-shade-50), var(--color-tint-100));
|
|
69
|
+
--color-muted-foreground: light-dark(var(--color-shade-600), var(--color-tint-600));
|
|
70
|
+
--color-faded: light-dark(var(--color-tint-400), var(--color-shade-100));
|
|
71
|
+
--color-faded-foreground: light-dark(var(--color-tint-600), var(--color-shade-600));
|
|
103
72
|
|
|
104
73
|
/* brand */
|
|
105
|
-
--primary: light-dark(var(--primary-950), var(--primary-
|
|
106
|
-
--primary-foreground: light-dark(var(--white), var(--
|
|
107
|
-
--secondary: light-dark(var(--secondary-950), var(--secondary-
|
|
108
|
-
--secondary-foreground: light-dark(var(--white), var(--
|
|
109
|
-
--tertiary: light-dark(var(--tertiary-950), var(--tertiary-
|
|
110
|
-
--tertiary-foreground: light-dark(var(--white), var(--
|
|
74
|
+
--color-primary: light-dark(var(--color-primary-950), var(--color-primary-50));
|
|
75
|
+
--color-primary-foreground: light-dark(var(--color-white), var(--color-primary-950));
|
|
76
|
+
--color-secondary: light-dark(var(--color-secondary-950), var(--color-secondary-50));
|
|
77
|
+
--color-secondary-foreground: light-dark(var(--color-white), var(--color-secondary-950));
|
|
78
|
+
--color-tertiary: light-dark(var(--color-tertiary-950), var(--color-tertiary-50));
|
|
79
|
+
--color-tertiary-foreground: light-dark(var(--color-white), var(--color-tertiary-950));
|
|
80
|
+
--color-ring: var(--color-primary);
|
|
81
|
+
/* the shadow color every --shadow-* token is tinted with (alpha comes from the token) */
|
|
82
|
+
--color-shadow: var(--color-black);
|
|
111
83
|
|
|
112
84
|
/* status */
|
|
113
|
-
--info: light-dark(oklch(0.5876 0.1389 241.97), oklch(0.5 0.1193 242.75));
|
|
114
|
-
--info-foreground: light-dark(var(--white), var(--white));
|
|
115
|
-
--success: light-dark(oklch(0.596 0.1274 163.23), oklch(0.5081 0.1049 165.61));
|
|
116
|
-
--success-foreground: light-dark(var(--white), var(--white));
|
|
117
|
-
--warning: light-dark(oklch(0.6658 0.1574 58.32), oklch(0.5553 0.1455 49));
|
|
118
|
-
--warning-foreground: light-dark(var(--white), var(--white));
|
|
119
|
-
--destructive: light-dark(oklch(0.5771 0.2152 27.33), oklch(0.5054 0.1905 27.52));
|
|
120
|
-
--destructive-foreground: light-dark(var(--white), var(--white));
|
|
85
|
+
--color-info: light-dark(oklch(0.5876 0.1389 241.97), oklch(0.5 0.1193 242.75));
|
|
86
|
+
--color-info-foreground: light-dark(var(--color-white), var(--color-white));
|
|
87
|
+
--color-success: light-dark(oklch(0.596 0.1274 163.23), oklch(0.5081 0.1049 165.61));
|
|
88
|
+
--color-success-foreground: light-dark(var(--color-white), var(--color-white));
|
|
89
|
+
--color-warning: light-dark(oklch(0.6658 0.1574 58.32), oklch(0.5553 0.1455 49));
|
|
90
|
+
--color-warning-foreground: light-dark(var(--color-white), var(--color-white));
|
|
91
|
+
--color-destructive: light-dark(oklch(0.5771 0.2152 27.33), oklch(0.5054 0.1905 27.52));
|
|
92
|
+
--color-destructive-foreground: light-dark(var(--color-white), var(--color-white));
|
|
121
93
|
|
|
122
94
|
/* ==========================================================================
|
|
123
|
-
*
|
|
124
|
-
* @see https://www.tints.dev/palette/v1:cHJpbWFyeXw0RjQ2RTV8NjAwfHB8MHwwfC0yfDEwM3xtfnNlY29uZGFyeXxERTQ5MTd8NjAwfHB8MHwwfDJ8MTAyfG1-dGVydGlhcnl8RTUzNzVCfDUwMHxwfDB8MHwxfDEwM3xtfm5ldXRyYWx8ODg4ODkwfDUwMHxwfDB8MHwxfDEwM3xt
|
|
95
|
+
* Corporate — brand color scales (50–950)
|
|
125
96
|
* ========================================================================== */
|
|
126
97
|
|
|
127
98
|
/* primary */
|
|
128
|
-
--primary-50: oklch(0.985 0 0);
|
|
129
|
-
--primary-100: oklch(0.967 0.001 0);
|
|
130
|
-
--primary-200: oklch(0.92 0.004 0);
|
|
131
|
-
--primary-300: oklch(0.87 0 0);
|
|
132
|
-
--primary-400: oklch(0.708 0 0);
|
|
133
|
-
--primary-500: oklch(0.556 0 0);
|
|
134
|
-
--primary-600: oklch(0.439 0 0);
|
|
135
|
-
--primary-700: oklch(0.371 0 0);
|
|
136
|
-
--primary-800: oklch(0.269 0 0);
|
|
137
|
-
--primary-900: oklch(0.205 0 0);
|
|
138
|
-
--primary-950: oklch(0.145 0 0);
|
|
99
|
+
--color-primary-50: oklch(0.985 0 0);
|
|
100
|
+
--color-primary-100: oklch(0.967 0.001 0);
|
|
101
|
+
--color-primary-200: oklch(0.92 0.004 0);
|
|
102
|
+
--color-primary-300: oklch(0.87 0 0);
|
|
103
|
+
--color-primary-400: oklch(0.708 0 0);
|
|
104
|
+
--color-primary-500: oklch(0.556 0 0);
|
|
105
|
+
--color-primary-600: oklch(0.439 0 0);
|
|
106
|
+
--color-primary-700: oklch(0.371 0 0);
|
|
107
|
+
--color-primary-800: oklch(0.269 0 0);
|
|
108
|
+
--color-primary-900: oklch(0.205 0 0);
|
|
109
|
+
--color-primary-950: oklch(0.145 0 0);
|
|
139
110
|
|
|
140
111
|
/* secondary */
|
|
141
|
-
--secondary-50: oklch(98.5% 0.002 247.839);
|
|
142
|
-
--secondary-100: oklch(96.7% 0.003 264.542);
|
|
143
|
-
--secondary-200: oklch(92.8% 0.006 264.531);
|
|
144
|
-
--secondary-300: oklch(87.2% 0.01 258.338);
|
|
145
|
-
--secondary-400: oklch(70.7% 0.022 261.325);
|
|
146
|
-
--secondary-500: oklch(55.1% 0.027 264.364);
|
|
147
|
-
--secondary-600: oklch(44.6% 0.03 256.802);
|
|
148
|
-
--secondary-700: oklch(37.3% 0.034 259.733);
|
|
149
|
-
--secondary-800: oklch(27.8% 0.033 256.848);
|
|
150
|
-
--secondary-900: oklch(21% 0.034 264.665);
|
|
151
|
-
--secondary-950: oklch(13% 0.028 261.692);
|
|
112
|
+
--color-secondary-50: oklch(98.5% 0.002 247.839);
|
|
113
|
+
--color-secondary-100: oklch(96.7% 0.003 264.542);
|
|
114
|
+
--color-secondary-200: oklch(92.8% 0.006 264.531);
|
|
115
|
+
--color-secondary-300: oklch(87.2% 0.01 258.338);
|
|
116
|
+
--color-secondary-400: oklch(70.7% 0.022 261.325);
|
|
117
|
+
--color-secondary-500: oklch(55.1% 0.027 264.364);
|
|
118
|
+
--color-secondary-600: oklch(44.6% 0.03 256.802);
|
|
119
|
+
--color-secondary-700: oklch(37.3% 0.034 259.733);
|
|
120
|
+
--color-secondary-800: oklch(27.8% 0.033 256.848);
|
|
121
|
+
--color-secondary-900: oklch(21% 0.034 264.665);
|
|
122
|
+
--color-secondary-950: oklch(13% 0.028 261.692);
|
|
152
123
|
|
|
153
124
|
/* tertiary */
|
|
154
|
-
--tertiary-50: oklch(0.986 0.002 67.8);
|
|
155
|
-
--tertiary-100: oklch(0.96 0.002 17.2);
|
|
156
|
-
--tertiary-200: oklch(0.922 0.005 34.3);
|
|
157
|
-
--tertiary-300: oklch(0.868 0.007 39.5);
|
|
158
|
-
--tertiary-400: oklch(0.714 0.014 41.2);
|
|
159
|
-
--tertiary-500: oklch(0.547 0.021 43.1);
|
|
160
|
-
--tertiary-600: oklch(0.438 0.017 39.3);
|
|
161
|
-
--tertiary-700: oklch(0.367 0.016 35.7);
|
|
162
|
-
--tertiary-800: oklch(0.268 0.011 36.5);
|
|
163
|
-
--tertiary-900: oklch(0.214 0.009 43.1);
|
|
164
|
-
--tertiary-950: oklch(0.147 0.004 49.3);
|
|
125
|
+
--color-tertiary-50: oklch(0.986 0.002 67.8);
|
|
126
|
+
--color-tertiary-100: oklch(0.96 0.002 17.2);
|
|
127
|
+
--color-tertiary-200: oklch(0.922 0.005 34.3);
|
|
128
|
+
--color-tertiary-300: oklch(0.868 0.007 39.5);
|
|
129
|
+
--color-tertiary-400: oklch(0.714 0.014 41.2);
|
|
130
|
+
--color-tertiary-500: oklch(0.547 0.021 43.1);
|
|
131
|
+
--color-tertiary-600: oklch(0.438 0.017 39.3);
|
|
132
|
+
--color-tertiary-700: oklch(0.367 0.016 35.7);
|
|
133
|
+
--color-tertiary-800: oklch(0.268 0.011 36.5);
|
|
134
|
+
--color-tertiary-900: oklch(0.214 0.009 43.1);
|
|
135
|
+
--color-tertiary-950: oklch(0.147 0.004 49.3);
|
|
165
136
|
|
|
166
137
|
/* ==========================================================================
|
|
167
|
-
*
|
|
168
|
-
* @see https://www.tints.dev/palette/v1:cHJpbWFyeXw0RjQ2RTV8NjAwfHB8MHwwfC0yfDEwM3xtfnNlY29uZGFyeXxERTQ5MTd8NjAwfHB8MHwwfDJ8MTAyfG1-dGVydGlhcnl8RTUzNzVCfDUwMHxwfDB8MHwxfDEwM3xtfm5ldXRyYWx8ODg4ODkwfDUwMHxwfDB8MHwxfDEwM3xt
|
|
138
|
+
* Grayscale — neutrals, shade (dim), tint (fade)
|
|
169
139
|
* ========================================================================== */
|
|
170
140
|
|
|
171
141
|
/* neutral */
|
|
172
|
-
--white: oklch(1 0 0);
|
|
173
|
-
--neutral-50: oklch(0.973 0.001 287.31);
|
|
174
|
-
--neutral-100: oklch(0.949 0.001 287.28);
|
|
175
|
-
--neutral-200: oklch(0.871 0.004 286.58);
|
|
176
|
-
--neutral-300: oklch(0.784 0.007 286.38);
|
|
177
|
-
--neutral-400: oklch(0.708 0.009 286.28);
|
|
178
|
-
--neutral-500: oklch(0.629 0.012 286.12);
|
|
179
|
-
--neutral-600: oklch(0.535 0.015 285.91);
|
|
180
|
-
--neutral-700: oklch(0.442 0.015 285.82);
|
|
181
|
-
--neutral-800: oklch(0.336 0.014 285.66);
|
|
182
|
-
--neutral-900: oklch(0.241 0.009 285.7);
|
|
183
|
-
--neutral-950: oklch(0.198 0.008 285.68);
|
|
184
|
-
--black: oklch(0 0 0);
|
|
142
|
+
--color-white: oklch(1 0 0);
|
|
143
|
+
--color-neutral-50: oklch(0.973 0.001 287.31);
|
|
144
|
+
--color-neutral-100: oklch(0.949 0.001 287.28);
|
|
145
|
+
--color-neutral-200: oklch(0.871 0.004 286.58);
|
|
146
|
+
--color-neutral-300: oklch(0.784 0.007 286.38);
|
|
147
|
+
--color-neutral-400: oklch(0.708 0.009 286.28);
|
|
148
|
+
--color-neutral-500: oklch(0.629 0.012 286.12);
|
|
149
|
+
--color-neutral-600: oklch(0.535 0.015 285.91);
|
|
150
|
+
--color-neutral-700: oklch(0.442 0.015 285.82);
|
|
151
|
+
--color-neutral-800: oklch(0.336 0.014 285.66);
|
|
152
|
+
--color-neutral-900: oklch(0.241 0.009 285.7);
|
|
153
|
+
--color-neutral-950: oklch(0.198 0.008 285.68);
|
|
154
|
+
--color-black: oklch(0 0 0);
|
|
185
155
|
|
|
186
156
|
/* shade — darkened overlays (derived from neutral-950) */
|
|
187
|
-
--shade-none: oklch(from var(--neutral-950) l c h / 0);
|
|
188
|
-
--shade-50: oklch(from var(--neutral-950) l c h / 0.
|
|
189
|
-
--shade-100: oklch(from var(--neutral-950) l c h / 0.1);
|
|
190
|
-
--shade-200: oklch(from var(--neutral-950) l c h / 0.2);
|
|
191
|
-
--shade-300: oklch(from var(--neutral-950) l c h / 0.3);
|
|
192
|
-
--shade-400: oklch(from var(--neutral-950) l c h / 0.4);
|
|
193
|
-
--shade-500: oklch(from var(--neutral-950) l c h / 0.5);
|
|
194
|
-
--shade-600: oklch(from var(--neutral-950) l c h / 0.6);
|
|
195
|
-
--shade-700: oklch(from var(--neutral-950) l c h / 0.7);
|
|
196
|
-
--shade-800: oklch(from var(--neutral-950) l c h / 0.8);
|
|
197
|
-
--shade-900: oklch(from var(--neutral-950) l c h / 0.9);
|
|
198
|
-
--shade-950: oklch(from var(--neutral-950) l c h / 0.
|
|
199
|
-
--shade-full: oklch(from var(--neutral-950) l c h / 1);
|
|
157
|
+
--color-shade-none: oklch(from var(--color-neutral-950) l c h / 0);
|
|
158
|
+
--color-shade-50: oklch(from var(--color-neutral-950) l c h / 0.04);
|
|
159
|
+
--color-shade-100: oklch(from var(--color-neutral-950) l c h / 0.1);
|
|
160
|
+
--color-shade-200: oklch(from var(--color-neutral-950) l c h / 0.2);
|
|
161
|
+
--color-shade-300: oklch(from var(--color-neutral-950) l c h / 0.3);
|
|
162
|
+
--color-shade-400: oklch(from var(--color-neutral-950) l c h / 0.4);
|
|
163
|
+
--color-shade-500: oklch(from var(--color-neutral-950) l c h / 0.5);
|
|
164
|
+
--color-shade-600: oklch(from var(--color-neutral-950) l c h / 0.6);
|
|
165
|
+
--color-shade-700: oklch(from var(--color-neutral-950) l c h / 0.7);
|
|
166
|
+
--color-shade-800: oklch(from var(--color-neutral-950) l c h / 0.8);
|
|
167
|
+
--color-shade-900: oklch(from var(--color-neutral-950) l c h / 0.9);
|
|
168
|
+
--color-shade-950: oklch(from var(--color-neutral-950) l c h / 0.96);
|
|
169
|
+
--color-shade-full: oklch(from var(--color-neutral-950) l c h / 1);
|
|
200
170
|
|
|
201
171
|
/* tint — faded overlays (derived from white) */
|
|
202
|
-
--tint-none: oklch(from var(--white) l c h / 0);
|
|
203
|
-
--tint-50: oklch(from var(--white) l c h / 0.
|
|
204
|
-
--tint-100: oklch(from var(--white) l c h / 0.1);
|
|
205
|
-
--tint-200: oklch(from var(--white) l c h / 0.2);
|
|
206
|
-
--tint-300: oklch(from var(--white) l c h / 0.3);
|
|
207
|
-
--tint-400: oklch(from var(--white) l c h / 0.4);
|
|
208
|
-
--tint-500: oklch(from var(--white) l c h / 0.5);
|
|
209
|
-
--tint-600: oklch(from var(--white) l c h / 0.6);
|
|
210
|
-
--tint-700: oklch(from var(--white) l c h / 0.7);
|
|
211
|
-
--tint-800: oklch(from var(--white) l c h / 0.8);
|
|
212
|
-
--tint-900: oklch(from var(--white) l c h / 0.9);
|
|
213
|
-
--tint-950: oklch(from var(--white) l c h / 0.
|
|
214
|
-
--tint-full: oklch(from var(--white) l c h / 1);
|
|
172
|
+
--color-tint-none: oklch(from var(--color-white) l c h / 0);
|
|
173
|
+
--color-tint-50: oklch(from var(--color-white) l c h / 0.04);
|
|
174
|
+
--color-tint-100: oklch(from var(--color-white) l c h / 0.1);
|
|
175
|
+
--color-tint-200: oklch(from var(--color-white) l c h / 0.2);
|
|
176
|
+
--color-tint-300: oklch(from var(--color-white) l c h / 0.3);
|
|
177
|
+
--color-tint-400: oklch(from var(--color-white) l c h / 0.4);
|
|
178
|
+
--color-tint-500: oklch(from var(--color-white) l c h / 0.5);
|
|
179
|
+
--color-tint-600: oklch(from var(--color-white) l c h / 0.6);
|
|
180
|
+
--color-tint-700: oklch(from var(--color-white) l c h / 0.7);
|
|
181
|
+
--color-tint-800: oklch(from var(--color-white) l c h / 0.8);
|
|
182
|
+
--color-tint-900: oklch(from var(--color-white) l c h / 0.9);
|
|
183
|
+
--color-tint-950: oklch(from var(--color-white) l c h / 0.96);
|
|
184
|
+
--color-tint-full: oklch(from var(--color-white) l c h / 1);
|
|
215
185
|
|
|
216
186
|
/* ==========================================================================
|
|
217
|
-
*
|
|
187
|
+
* Typography — typefaces, sizes, weights, tracking, leading
|
|
218
188
|
* ========================================================================== */
|
|
219
189
|
|
|
220
|
-
/*
|
|
221
|
-
--font-
|
|
222
|
-
|
|
223
|
-
"Segoe UI
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
--font-family-
|
|
233
|
-
|
|
234
|
-
|
|
190
|
+
/* Credit: Tailwind CSS */
|
|
191
|
+
--font-serif-fallback: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
|
192
|
+
--font-sans-fallback:
|
|
193
|
+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial,
|
|
194
|
+
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
195
|
+
--font-mono-fallback:
|
|
196
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
|
|
197
|
+
monospace;
|
|
198
|
+
|
|
199
|
+
/* font-family — re-skin by redeclaring these */
|
|
200
|
+
--font-family-heading: var(--font-sans-fallback);
|
|
201
|
+
--font-family-body: var(--font-sans-fallback);
|
|
202
|
+
--font-family-mono: var(--font-mono-fallback);
|
|
203
|
+
|
|
204
|
+
/* OpenType and variant controls per role — CSS initial values; redeclare to
|
|
205
|
+
turn on features (e.g. --font-numeric-body: tabular-nums) */
|
|
206
|
+
--font-feature-heading: normal;
|
|
207
|
+
--font-feature-body: normal;
|
|
208
|
+
--font-kerning-heading: auto;
|
|
209
|
+
--font-kerning-body: auto;
|
|
210
|
+
--font-language-heading: normal;
|
|
211
|
+
--font-language-body: normal;
|
|
212
|
+
--font-size-adjust-heading: none;
|
|
213
|
+
--font-size-adjust-body: none;
|
|
214
|
+
--font-alternates-heading: normal;
|
|
215
|
+
--font-alternates-body: normal;
|
|
216
|
+
--font-caps-heading: normal;
|
|
217
|
+
--font-caps-body: normal;
|
|
218
|
+
--font-east-asian-heading: normal;
|
|
219
|
+
--font-east-asian-body: normal;
|
|
220
|
+
--font-emoji-heading: normal;
|
|
221
|
+
--font-emoji-body: normal;
|
|
222
|
+
--font-ligatures-heading: normal;
|
|
223
|
+
--font-ligatures-body: normal;
|
|
224
|
+
--font-numeric-heading: normal;
|
|
225
|
+
--font-numeric-body: normal;
|
|
226
|
+
--font-position-heading: normal;
|
|
227
|
+
--font-position-body: normal;
|
|
228
|
+
--font-settings-heading: normal;
|
|
229
|
+
--font-settings-body: normal;
|
|
230
|
+
--font-optical-sizing-heading: auto;
|
|
231
|
+
--font-optical-sizing-body: auto;
|
|
235
232
|
|
|
236
233
|
/* font-size — fluid clamp() */
|
|
237
234
|
--font-size-eyebrow: clamp(0.512rem, 0.609rem + 0.1213vi, 0.5787rem);
|
|
235
|
+
--font-size-2xs: clamp(0.512rem, 0.609rem + 0.1213vi, 0.5787rem);
|
|
238
236
|
--font-size-xs: clamp(0.5787rem, 0.8584rem + 0.273vi, 0.64rem);
|
|
239
237
|
--font-size-sm: clamp(0.7901rem, 0.9293rem + 0.1616vi, 0.8rem);
|
|
240
238
|
--font-size-md: clamp(1rem, 1rem + 0vi, 1rem);
|
|
241
239
|
--font-size-lg: clamp(1.125rem, 1.0682rem + 0.2273vi, 1.25rem);
|
|
242
240
|
--font-size-xl: clamp(1.2656rem, 1.1307rem + 0.5398vi, 1.5625rem);
|
|
241
|
+
--font-size-2xl: clamp(1.4238rem, 1.1832rem + 0.9624vi, 1.9531rem);
|
|
243
242
|
--font-size-h6: clamp(1.2656rem, 1.1307rem + 0.5398vi, 1.5625rem);
|
|
244
243
|
--font-size-h5: clamp(1.4238rem, 1.1832rem + 0.9624vi, 1.9531rem);
|
|
245
244
|
--font-size-h4: clamp(1.6018rem, 1.2202rem + 1.5265vi, 2.4414rem);
|
|
@@ -252,7 +251,6 @@
|
|
|
252
251
|
--font-weight-body: 400;
|
|
253
252
|
--font-weight-heading: 600;
|
|
254
253
|
--font-weight-strong: 500;
|
|
255
|
-
--font-weight-mono: 400;
|
|
256
254
|
--font-weight-eyebrow: 600;
|
|
257
255
|
|
|
258
256
|
/* letter-spacing */
|
|
@@ -263,12 +261,14 @@
|
|
|
263
261
|
--tracking-h4: -0.015em;
|
|
264
262
|
--tracking-h5: -0.01em;
|
|
265
263
|
--tracking-h6: -0.005em;
|
|
264
|
+
--tracking-2xl: -0.01em;
|
|
266
265
|
--tracking-xl: 0em;
|
|
267
266
|
--tracking-lg: 0em;
|
|
268
267
|
--tracking-md: 0em;
|
|
269
268
|
--tracking-sm: 0em;
|
|
270
269
|
--tracking-xs: 0em;
|
|
271
|
-
--tracking-
|
|
270
|
+
--tracking-2xs: 0em;
|
|
271
|
+
--tracking-eyebrow: 0.05em;
|
|
272
272
|
|
|
273
273
|
/* line-height */
|
|
274
274
|
--leading-display: 0.95;
|
|
@@ -278,87 +278,54 @@
|
|
|
278
278
|
--leading-h4: 1;
|
|
279
279
|
--leading-h5: 1;
|
|
280
280
|
--leading-h6: 1;
|
|
281
|
+
--leading-2xl: 1.25;
|
|
281
282
|
--leading-xl: 1.5;
|
|
282
283
|
--leading-lg: 1.5;
|
|
283
284
|
--leading-md: 1.6;
|
|
284
285
|
--leading-sm: 1.5;
|
|
285
286
|
--leading-xs: 1.5;
|
|
287
|
+
--leading-2xs: 1.5;
|
|
286
288
|
--leading-eyebrow: 1.2;
|
|
287
289
|
|
|
288
290
|
/* paragraph-spacing */
|
|
289
|
-
--
|
|
290
|
-
|
|
291
|
-
--paragraph-spacing-display: calc(
|
|
292
|
-
--paragraph-spacing-h1: calc(
|
|
293
|
-
--paragraph-spacing-h2: calc(
|
|
294
|
-
--paragraph-spacing-h3: calc(
|
|
295
|
-
--paragraph-spacing-h4: calc(
|
|
296
|
-
--paragraph-spacing-h5: calc(
|
|
297
|
-
--paragraph-spacing-h6: calc(
|
|
298
|
-
--paragraph-spacing-
|
|
299
|
-
--paragraph-spacing-
|
|
300
|
-
--paragraph-spacing-
|
|
301
|
-
--paragraph-spacing-
|
|
302
|
-
--paragraph-spacing-
|
|
303
|
-
--paragraph-spacing-
|
|
291
|
+
--_paragraph-spacing-multiplier: 1;
|
|
292
|
+
|
|
293
|
+
--paragraph-spacing-display: calc(3.5rlh * var(--_paragraph-spacing-multiplier));
|
|
294
|
+
--paragraph-spacing-h1: calc(3.5rlh * var(--_paragraph-spacing-multiplier));
|
|
295
|
+
--paragraph-spacing-h2: calc(3rlh * var(--_paragraph-spacing-multiplier));
|
|
296
|
+
--paragraph-spacing-h3: calc(3rlh * var(--_paragraph-spacing-multiplier));
|
|
297
|
+
--paragraph-spacing-h4: calc(2rlh * var(--_paragraph-spacing-multiplier));
|
|
298
|
+
--paragraph-spacing-h5: calc(2rlh * var(--_paragraph-spacing-multiplier));
|
|
299
|
+
--paragraph-spacing-h6: calc(2rlh * var(--_paragraph-spacing-multiplier));
|
|
300
|
+
--paragraph-spacing-2xl: calc(1rlh * var(--_paragraph-spacing-multiplier));
|
|
301
|
+
--paragraph-spacing-xl: calc(0.75rlh * var(--_paragraph-spacing-multiplier));
|
|
302
|
+
--paragraph-spacing-lg: calc(0.75rlh * var(--_paragraph-spacing-multiplier));
|
|
303
|
+
--paragraph-spacing-md: calc(0.75rlh * var(--_paragraph-spacing-multiplier));
|
|
304
|
+
--paragraph-spacing-sm: calc(0.5rlh * var(--_paragraph-spacing-multiplier));
|
|
305
|
+
--paragraph-spacing-xs: calc(0.5rlh * var(--_paragraph-spacing-multiplier));
|
|
306
|
+
--paragraph-spacing-2xs: calc(0.5rlh * var(--_paragraph-spacing-multiplier));
|
|
307
|
+
--paragraph-spacing-eyebrow: calc(1rlh * var(--_paragraph-spacing-multiplier));
|
|
304
308
|
|
|
305
309
|
/* ==========================================================================
|
|
306
|
-
*
|
|
310
|
+
* Spacing — the --spacing unit and the --space-* scale
|
|
307
311
|
* ========================================================================== */
|
|
308
312
|
|
|
309
|
-
/*
|
|
310
|
-
|
|
311
|
-
--spacing
|
|
312
|
-
|
|
313
|
-
/* scale */
|
|
314
|
-
--step-0_5px: 0.5px;
|
|
315
|
-
--step-px: 1px;
|
|
316
|
-
--step-0_5: calc(var(--spacing-interval) / 2);
|
|
317
|
-
--step-1: var(--spacing-interval);
|
|
318
|
-
--step-1_5: calc(var(--spacing-interval) * 1.5);
|
|
319
|
-
--step-2: calc(var(--spacing-interval) * 2);
|
|
320
|
-
--step-2_5: calc(var(--spacing-interval) * 2.5);
|
|
321
|
-
--step-3: calc(var(--spacing-interval) * 3);
|
|
322
|
-
--step-3_5: calc(var(--spacing-interval) * 3.5);
|
|
323
|
-
--step-4: calc(var(--spacing-interval) * 4);
|
|
324
|
-
--step-4_5: calc(var(--spacing-interval) * 4.5);
|
|
325
|
-
--step-5: calc(var(--spacing-interval) * 5);
|
|
326
|
-
--step-5_5: calc(var(--spacing-interval) * 5.5);
|
|
327
|
-
--step-6: calc(var(--spacing-interval) * 6);
|
|
328
|
-
--step-7: calc(var(--spacing-interval) * 7);
|
|
329
|
-
--step-8: calc(var(--spacing-interval) * 8);
|
|
330
|
-
--step-9: calc(var(--spacing-interval) * 9);
|
|
331
|
-
--step-10: calc(var(--spacing-interval) * 10);
|
|
332
|
-
--step-11: calc(var(--spacing-interval) * 11);
|
|
333
|
-
--step-12: calc(var(--spacing-interval) * 12);
|
|
334
|
-
--step-14: calc(var(--spacing-interval) * 14);
|
|
335
|
-
--step-16: calc(var(--spacing-interval) * 16);
|
|
336
|
-
--step-20: calc(var(--spacing-interval) * 20);
|
|
337
|
-
--step-24: calc(var(--spacing-interval) * 24);
|
|
338
|
-
--step-28: calc(var(--spacing-interval) * 28);
|
|
339
|
-
--step-32: calc(var(--spacing-interval) * 32);
|
|
340
|
-
--step-36: calc(var(--spacing-interval) * 36);
|
|
341
|
-
--step-40: calc(var(--spacing-interval) * 40);
|
|
342
|
-
--step-44: calc(var(--spacing-interval) * 44);
|
|
343
|
-
--step-48: calc(var(--spacing-interval) * 48);
|
|
344
|
-
--step-52: calc(var(--spacing-interval) * 52);
|
|
345
|
-
--step-56: calc(var(--spacing-interval) * 56);
|
|
346
|
-
--step-60: calc(var(--spacing-interval) * 60);
|
|
347
|
-
--step-64: calc(var(--spacing-interval) * 64);
|
|
348
|
-
--step-72: calc(var(--spacing-interval) * 72);
|
|
349
|
-
--step-80: calc(var(--spacing-interval) * 80);
|
|
350
|
-
--step-96: calc(var(--spacing-interval) * 96);
|
|
351
|
-
--step-full: 100%;
|
|
313
|
+
/* the utility scale unit: `--p: 4` is 4 × --spacing. Fluid between
|
|
314
|
+
0.225rem and 0.25rem; pin it with `:root { --spacing: 0.25rem }` for a fixed scale. */
|
|
315
|
+
--spacing: clamp(0.225rem, 0.2136rem + 0.0455vi, 0.25rem);
|
|
352
316
|
|
|
353
|
-
/*
|
|
354
|
-
|
|
355
|
-
--
|
|
356
|
-
--
|
|
357
|
-
--
|
|
358
|
-
--
|
|
317
|
+
/* named spacing scale — for CSS and component hooks. In style utilities write the
|
|
318
|
+
number instead (`--gap: 6`, not `var(--space-md)`). */
|
|
319
|
+
--space-2xs: calc(var(--spacing) * 1);
|
|
320
|
+
--space-xs: calc(var(--spacing) * 2);
|
|
321
|
+
--space-sm: calc(var(--spacing) * 4);
|
|
322
|
+
--space-md: calc(var(--spacing) * 6);
|
|
323
|
+
--space-lg: calc(var(--spacing) * 11);
|
|
324
|
+
--space-xl: calc(var(--spacing) * 24);
|
|
325
|
+
--space-2xl: calc(var(--spacing) * 40);
|
|
359
326
|
|
|
360
327
|
/* ==========================================================================
|
|
361
|
-
*
|
|
328
|
+
* Radius — multiplier, semantic scale, component primitives
|
|
362
329
|
* ========================================================================== */
|
|
363
330
|
|
|
364
331
|
/* modifiers */
|
|
@@ -366,65 +333,60 @@
|
|
|
366
333
|
|
|
367
334
|
/* semantic */
|
|
368
335
|
--radius-none: 0rem;
|
|
369
|
-
--radius-
|
|
370
|
-
--radius-
|
|
371
|
-
--radius-
|
|
372
|
-
--radius-
|
|
373
|
-
--radius-
|
|
336
|
+
--radius-2xs: calc(var(--spacing) * 0.5 * var(--radius-multiplier));
|
|
337
|
+
--radius-xs: calc(var(--spacing) * var(--radius-multiplier));
|
|
338
|
+
--radius-sm: calc(var(--spacing) * 1.5 * var(--radius-multiplier));
|
|
339
|
+
--radius-md: calc(var(--spacing) * 2.5 * var(--radius-multiplier));
|
|
340
|
+
--radius-lg: calc(var(--spacing) * 4.5 * var(--radius-multiplier));
|
|
341
|
+
--radius-xl: calc(var(--spacing) * 7 * var(--radius-multiplier));
|
|
342
|
+
--radius-2xl: calc(var(--spacing) * 10 * var(--radius-multiplier));
|
|
374
343
|
--radius-full: 9999rem;
|
|
375
344
|
|
|
376
345
|
/* ==========================================================================
|
|
377
|
-
*
|
|
346
|
+
* Layout — container widths and breakpoints
|
|
378
347
|
* ========================================================================== */
|
|
379
348
|
|
|
380
349
|
/* semantic */
|
|
381
|
-
--gutters: var(--
|
|
382
|
-
|
|
383
|
-
/*
|
|
384
|
-
|
|
385
|
-
container after this :root block (the size-query subject must be a body
|
|
386
|
-
descendant, so it cannot live in :root). */
|
|
387
|
-
--breakpoint-xs: 40rem;
|
|
388
|
-
--breakpoint-sm: 48rem;
|
|
389
|
-
--breakpoint-md: 64rem;
|
|
390
|
-
--breakpoint-lg: 80rem;
|
|
391
|
-
--breakpoint-xl: 96rem;
|
|
350
|
+
--gutters: var(--space-md);
|
|
351
|
+
|
|
352
|
+
/* --layout-* tokens are generated into _breakpoints.css; breakpoint
|
|
353
|
+
tiers query the nearest inline-size container (_utilities-tier-*.css). */
|
|
392
354
|
|
|
393
355
|
/* article container widths */
|
|
356
|
+
--article-2xs: 30ch;
|
|
394
357
|
--article-xs: 45ch;
|
|
395
358
|
--article-sm: 50ch;
|
|
396
359
|
--article-md: 65ch;
|
|
397
360
|
--article-lg: 70ch;
|
|
398
361
|
--article-xl: 75ch;
|
|
362
|
+
--article-2xl: 90ch;
|
|
399
363
|
|
|
400
364
|
/* ==========================================================================
|
|
401
|
-
*
|
|
365
|
+
* Effects — shadows, focus rings
|
|
402
366
|
* ========================================================================== */
|
|
403
367
|
|
|
404
368
|
/* states - focus rings
|
|
405
|
-
*
|
|
406
|
-
* --ring-offset-shadow
|
|
407
|
-
* --ring-shadow
|
|
408
|
-
* Tailwind's ring utilities use (--tw-ring-*), so values port 1:1.
|
|
369
|
+
* The ring renders as a box-shadow: --ring-offset-shadow (a --ring-offset-width
|
|
370
|
+
* gap in --ring-offset-shadow-color) + --ring-shadow (a --ring-width band of
|
|
371
|
+
* --ring-shadow-color).
|
|
409
372
|
*
|
|
410
|
-
* Override --ring
|
|
373
|
+
* Override --color-ring (or a hook), never --ring-shadow-color: a custom property resolves its own
|
|
411
374
|
* var()s on the element where it is DECLARED, then the resolved value
|
|
412
|
-
* inherits. So redeclaring --ring here (or on :root) bakes in this
|
|
413
|
-
* --ring
|
|
414
|
-
* ring, declare --_ring on the element that paints it (below).
|
|
375
|
+
* inherits. So redeclaring --ring-shadow-color here (or on :root) bakes in this
|
|
376
|
+
* element's --color-ring and no descendant override can change it. To re-color a
|
|
377
|
+
* ring, declare --_ring-fill on the element that paints it (below).
|
|
415
378
|
*
|
|
416
379
|
* The animated recipe. Components paint the ring as a box-shadow so it
|
|
417
|
-
* composes with their own shadow and can grow from 0 on focus. Copy
|
|
418
|
-
* verbatim
|
|
419
|
-
*
|
|
420
|
-
* resolve per element, and a :root-composed token would freeze them at 0.
|
|
380
|
+
* composes with their own shadow and can grow from 0 on focus. Copy it
|
|
381
|
+
* verbatim; it cannot be hoisted into a token here because the widths must
|
|
382
|
+
* resolve per element (a :root-composed token would freeze them at 0).
|
|
421
383
|
*
|
|
422
384
|
* --_ring-offset-width: 0px;
|
|
423
385
|
* --_ring-width: 0px;
|
|
424
|
-
* --_ring: color-mix(in oklch, var(--ui-x-ring-color) var(--ring-opacity), transparent);
|
|
386
|
+
* --_ring-fill: color-mix(in oklch, var(--ui-x-ring-color) var(--ring-opacity), transparent);
|
|
425
387
|
* box-shadow:
|
|
426
|
-
* 0 0 0 var(--_ring-offset-width) var(--ring-offset-color),
|
|
427
|
-
* 0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width)) var(--_ring, var(--ring)),
|
|
388
|
+
* 0 0 0 var(--_ring-offset-width) var(--ring-offset-shadow-color),
|
|
389
|
+
* 0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width)) var(--_ring-fill, var(--ring-shadow-color)),
|
|
428
390
|
* var(--ui-x-shadow);
|
|
429
391
|
*
|
|
430
392
|
* …then grow it in the focus rule:
|
|
@@ -433,13 +395,16 @@
|
|
|
433
395
|
* --_ring-width: var(--ring-width);
|
|
434
396
|
* outline-color: transparent;
|
|
435
397
|
*
|
|
436
|
-
* --_ring is optional: omit it and the ring falls back to --ring. */
|
|
437
|
-
--ring-color
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
--ring-
|
|
442
|
-
--ring-
|
|
398
|
+
* --_ring-fill is optional: omit it and the ring falls back to --ring-shadow-color. */
|
|
399
|
+
/* --ring, --ring-color, and --ring-offset-color are utility names,
|
|
400
|
+
* registered non-inheriting, so the ring's theme color is --color-ring (with
|
|
401
|
+
* the other roles above); the kit reads it through the inheriting
|
|
402
|
+
* --ring-shadow-color and --ring-offset-shadow-color tokens. */
|
|
403
|
+
--ring-opacity: 20%;
|
|
404
|
+
--ring-shadow-color: color-mix(in oklch, var(--color-ring) var(--ring-opacity), transparent);
|
|
405
|
+
--ring-width: 3px;
|
|
406
|
+
--ring-offset-width: 0px;
|
|
407
|
+
--ring-offset-shadow-color: var(--color-background);
|
|
443
408
|
|
|
444
409
|
/* outline twin — transparent outline matching the ring's geometry.
|
|
445
410
|
* Shadow-ringed elements keep it because forced-colors / high-contrast
|
|
@@ -449,47 +414,24 @@
|
|
|
449
414
|
--outline-offset: var(--ring-offset-width);
|
|
450
415
|
|
|
451
416
|
/* shadows */
|
|
452
|
-
--ring-offset-shadow: 0 0 0 var(--ring-offset-width) var(--ring-offset-color);
|
|
453
|
-
--ring-shadow: 0 0 0 calc(var(--ring-offset-width) + var(--ring-width)) var(--ring);
|
|
417
|
+
--ring-offset-shadow: 0 0 0 var(--ring-offset-width) var(--ring-offset-shadow-color);
|
|
418
|
+
--ring-shadow: 0 0 0 calc(var(--ring-offset-width) + var(--ring-width)) var(--ring-shadow-color);
|
|
454
419
|
/* the composed focus ring (offset gap + ring band) for box-shadow lists */
|
|
455
420
|
--shadow-ring: var(--ring-offset-shadow), var(--ring-shadow);
|
|
456
421
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
--
|
|
464
|
-
|
|
465
|
-
0 16px 6px 0 oklch(from var(--black) l c h / 0.01),
|
|
466
|
-
0 9px 5px 0 oklch(from var(--black) l c h / 0.03),
|
|
467
|
-
0 4px 4px 0 oklch(from var(--black) l c h / 0.04),
|
|
468
|
-
0 1px 2px 0 oklch(from var(--black) l c h / 0.05);
|
|
469
|
-
--shadow-md:
|
|
470
|
-
0 66px 18px 0 oklch(from var(--black) l c h / 0),
|
|
471
|
-
0 42px 17px 0 oklch(from var(--black) l c h / 0.01),
|
|
472
|
-
0 24px 14px 0 oklch(from var(--black) l c h / 0.03),
|
|
473
|
-
0 11px 11px 0 oklch(from var(--black) l c h / 0.04),
|
|
474
|
-
0 3px 6px 0 oklch(from var(--black) l c h / 0.05);
|
|
475
|
-
--shadow-lg:
|
|
476
|
-
0 247px 69px 0 oklch(from var(--black) l c h / 0),
|
|
477
|
-
0 158px 63px 0 oklch(from var(--black) l c h / 0.01),
|
|
478
|
-
0 89px 53px 0 oklch(from var(--black) l c h / 0.03),
|
|
479
|
-
0 39px 39px 0 oklch(from var(--black) l c h / 0.05),
|
|
480
|
-
0 10px 22px 0 oklch(from var(--black) l c h / 0.06);
|
|
481
|
-
--shadow-xl:
|
|
482
|
-
0 370px 104px 0 oklch(from var(--black) l c h / 0),
|
|
483
|
-
0 237px 95px 0 oklch(from var(--black) l c h / 0.01),
|
|
484
|
-
0 133px 80px 0 oklch(from var(--black) l c h / 0.04),
|
|
485
|
-
0 59px 59px 0 oklch(from var(--black) l c h / 0.06),
|
|
486
|
-
0 15px 33px 0 oklch(from var(--black) l c h / 0.07);
|
|
422
|
+
/* ==========================================================================
|
|
423
|
+
* Decoration — underlines and decorations
|
|
424
|
+
* ========================================================================== */
|
|
425
|
+
--decoration-line: underline;
|
|
426
|
+
--decoration-color: currentColor;
|
|
427
|
+
--decoration-style: solid;
|
|
428
|
+
--decoration-thickness: 1px;
|
|
429
|
+
--decoration-offset: 1px;
|
|
487
430
|
|
|
488
431
|
/* ==========================================================================
|
|
489
|
-
*
|
|
432
|
+
* Animations — spring easing, duration
|
|
490
433
|
* ========================================================================== */
|
|
491
434
|
|
|
492
|
-
/* Spring easing curve for smooth, natural animations */
|
|
493
435
|
--spring-easing: linear(
|
|
494
436
|
0,
|
|
495
437
|
0.012 0.9%,
|
|
@@ -510,15 +452,11 @@
|
|
|
510
452
|
--bezier-easing: cubic-bezier(0.17, 0.84, 0.44, 1);
|
|
511
453
|
--spring-duration: 0.333s;
|
|
512
454
|
|
|
513
|
-
/*
|
|
514
|
-
--default-transition-property:
|
|
515
|
-
text-underline-offset, text-decoration-color, box-shadow, background-color, border-color,
|
|
516
|
-
opacity, color, fill, stroke, transform, translate, scale, rotate, filter,
|
|
517
|
-
-webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
455
|
+
/* falls back to easeOutQuart when linear() easing is unsupported */
|
|
518
456
|
--default-transition-timing-function: var(--spring-easing, var(--bezier-easing));
|
|
519
457
|
--default-transition-duration: var(--spring-duration, 0.333s);
|
|
520
458
|
--default-transition:
|
|
521
|
-
text-
|
|
459
|
+
text-decoration-offset var(--default-transition-duration)
|
|
522
460
|
var(--default-transition-timing-function),
|
|
523
461
|
text-decoration-color var(--default-transition-duration)
|
|
524
462
|
var(--default-transition-timing-function),
|
|
@@ -542,82 +480,95 @@
|
|
|
542
480
|
var(--default-transition-timing-function),
|
|
543
481
|
overlay var(--default-transition-duration) var(--default-transition-timing-function),
|
|
544
482
|
pointer-events var(--default-transition-duration) var(--default-transition-timing-function);
|
|
545
|
-
|
|
546
|
-
--decoration-line: underline;
|
|
547
|
-
--decoration-color: currentColor;
|
|
548
|
-
--decoration-color--hover: currentColor;
|
|
549
|
-
--decoration-color--active: currentColor;
|
|
550
|
-
--decoration-style: solid;
|
|
551
|
-
--decoration-thickness: 1px;
|
|
552
|
-
--decoration-offset: 2px;
|
|
553
|
-
--decoration-offset--hover: 3px;
|
|
554
|
-
--decoration-offset--active: 2px;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
/* ==========================================================================
|
|
558
|
-
* Breakpoint state flags — global, sourced from the body container.
|
|
559
|
-
* Set the same value on every body descendant so any style() consumer
|
|
560
|
-
* resolves it identically, no matter which container it reads from (the
|
|
561
|
-
* .container element is intentionally container-type: normal).
|
|
562
|
-
* Mobile-first: --is-breakpoint-X becomes true once width reaches X.
|
|
563
|
-
* Registered as typed @property (false default) at the top of this file.
|
|
564
|
-
* Literal rem required — var() is invalid in a container-query prelude.
|
|
565
|
-
* ========================================================================== */
|
|
566
|
-
@container (width >=40rem) {
|
|
567
|
-
:where(body *) {
|
|
568
|
-
--is-breakpoint-xs: true;
|
|
569
|
-
}
|
|
570
483
|
}
|
|
571
484
|
|
|
572
|
-
@
|
|
573
|
-
:
|
|
574
|
-
--
|
|
575
|
-
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
@container (width >=64rem) {
|
|
579
|
-
:where(body *) {
|
|
580
|
-
--is-breakpoint-md: true;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
@container (width >=80rem) {
|
|
585
|
-
:where(body *) {
|
|
586
|
-
--is-breakpoint-lg: true;
|
|
485
|
+
@media (prefers-reduced-motion: reduce) {
|
|
486
|
+
:root {
|
|
487
|
+
--default-transition-duration: 0s;
|
|
488
|
+
--default-transition-timing-function: ease-in-out;
|
|
587
489
|
}
|
|
588
490
|
}
|
|
589
491
|
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
492
|
+
/* The first style pass holds transitions at 0s. When anything resolves styles
|
|
493
|
+
before this stylesheet applies (a head script, a browser extension,
|
|
494
|
+
assistive tech), its arrival would otherwise transition every primitive in
|
|
495
|
+
from its UA styles. The hold lasts one frame; an author rule animating
|
|
496
|
+
:root replaces it. */
|
|
497
|
+
@keyframes ui-first-style {
|
|
498
|
+
from,
|
|
499
|
+
to {
|
|
500
|
+
--default-transition-duration: 0s;
|
|
593
501
|
}
|
|
594
502
|
}
|
|
595
503
|
|
|
596
|
-
|
|
597
|
-
:
|
|
598
|
-
--default-transition-duration: 0s;
|
|
599
|
-
--default-transition-timing-function: ease-in-out;
|
|
600
|
-
}
|
|
504
|
+
:root {
|
|
505
|
+
animation: ui-first-style 1ms;
|
|
601
506
|
}
|
|
602
507
|
|
|
603
508
|
/*
|
|
604
509
|
* Theme scopes — theme role tokens are intentionally unregistered, so their
|
|
605
|
-
* light-dark() expressions
|
|
606
|
-
*
|
|
607
|
-
* a scope needs; nesting works (.light inside .dark re-lightens its subtree).
|
|
510
|
+
* light-dark() expressions re-resolve against each element's inherited
|
|
511
|
+
* color-scheme; pinning color-scheme is all a scope needs, and scopes nest.
|
|
608
512
|
* Built-in inherited color properties (color, accent-color, …) resolve at
|
|
609
513
|
* the ancestor, so re-assert them at each scope boundary.
|
|
610
514
|
*/
|
|
611
515
|
|
|
612
|
-
[data-theme="dark"]
|
|
613
|
-
.dark {
|
|
516
|
+
[data-ui-theme="dark"] {
|
|
614
517
|
color-scheme: dark;
|
|
615
|
-
color: var(--foreground);
|
|
518
|
+
color: var(--color-foreground);
|
|
616
519
|
}
|
|
617
520
|
|
|
618
|
-
[data-theme="light"]
|
|
619
|
-
.light {
|
|
521
|
+
[data-ui-theme="light"] {
|
|
620
522
|
color-scheme: light;
|
|
621
|
-
color: var(--foreground);
|
|
523
|
+
color: var(--color-foreground);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/* Shadows: here, not in the :root block above, so the same rule re-declares
|
|
528
|
+
them wherever a --shadow-hue style utility is set. A token's var() resolves
|
|
529
|
+
where it is declared, so the element and its subtree get shadows tinted with
|
|
530
|
+
that hue: a --shadow keyword, var(--shadow-md), and any primitive's shadow. */
|
|
531
|
+
@layer variables {
|
|
532
|
+
:root,
|
|
533
|
+
:where([style*="--shadow-hue:"]) {
|
|
534
|
+
--shadow-2xs:
|
|
535
|
+
0 1px 1px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.04),
|
|
536
|
+
0 0 1px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.05);
|
|
537
|
+
--shadow-xs:
|
|
538
|
+
0 8px 2px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0),
|
|
539
|
+
0 5px 2px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.01),
|
|
540
|
+
0 3px 2px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.03),
|
|
541
|
+
0 1px 1px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.04),
|
|
542
|
+
0 0 1px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.05);
|
|
543
|
+
--shadow-sm:
|
|
544
|
+
0 25px 7px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0),
|
|
545
|
+
0 16px 6px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.01),
|
|
546
|
+
0 9px 5px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.03),
|
|
547
|
+
0 4px 4px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.04),
|
|
548
|
+
0 1px 2px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.05);
|
|
549
|
+
--shadow-md:
|
|
550
|
+
0 66px 18px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0),
|
|
551
|
+
0 42px 17px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.01),
|
|
552
|
+
0 24px 14px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.03),
|
|
553
|
+
0 11px 11px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.04),
|
|
554
|
+
0 3px 6px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.05);
|
|
555
|
+
--shadow-lg:
|
|
556
|
+
0 247px 69px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0),
|
|
557
|
+
0 158px 63px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.01),
|
|
558
|
+
0 89px 53px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.03),
|
|
559
|
+
0 39px 39px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.05),
|
|
560
|
+
0 10px 22px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.06);
|
|
561
|
+
--shadow-xl:
|
|
562
|
+
0 370px 104px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0),
|
|
563
|
+
0 237px 95px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.01),
|
|
564
|
+
0 133px 80px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.04),
|
|
565
|
+
0 59px 59px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.06),
|
|
566
|
+
0 15px 33px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.07);
|
|
567
|
+
--shadow-2xl:
|
|
568
|
+
0 555px 156px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0),
|
|
569
|
+
0 356px 143px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.01),
|
|
570
|
+
0 200px 120px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.04),
|
|
571
|
+
0 89px 89px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.06),
|
|
572
|
+
0 23px 50px 0 oklch(from var(--shadow-hue, var(--color-shadow)) l c h / 0.08);
|
|
622
573
|
}
|
|
623
574
|
}
|