@hellboy/ds 0.1.2 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +568 -71
- package/{src/style/components/badge → dist/components}/badge.css +9 -25
- package/dist/components/badge.d.mts +12 -0
- package/dist/components/badge.d.ts +12 -0
- package/dist/components/badge.js +42 -0
- package/dist/components/badge.mjs +15 -0
- package/dist/components/banner.css +280 -0
- package/dist/components/banner.d.mts +12 -0
- package/dist/components/banner.d.ts +12 -0
- package/dist/components/banner.js +184 -0
- package/dist/components/banner.mjs +147 -0
- package/dist/components/button-group.css +289 -0
- package/dist/components/button-group.d.mts +81 -0
- package/dist/components/button-group.d.ts +81 -0
- package/dist/components/button-group.js +180 -0
- package/dist/components/button-group.mjs +143 -0
- package/{src/style/components/button → dist/components}/button.css +59 -62
- package/dist/components/button.d.mts +57 -0
- package/dist/components/button.d.ts +57 -0
- package/dist/components/button.js +129 -0
- package/dist/components/button.mjs +92 -0
- package/{src/style/components/card → dist/components}/card.css +9 -30
- package/dist/components/card.d.mts +31 -0
- package/dist/components/card.d.ts +31 -0
- package/dist/components/card.js +59 -0
- package/dist/components/card.mjs +32 -0
- package/{src/style → dist}/components/checkbox.css +51 -43
- package/dist/components/checkbox.d.mts +31 -0
- package/dist/components/checkbox.d.ts +31 -0
- package/dist/components/checkbox.js +130 -0
- package/dist/components/checkbox.mjs +93 -0
- package/{src/style/components/code-block → dist/components}/code-block.css +3 -7
- package/dist/components/code-block.d.mts +24 -0
- package/dist/components/code-block.d.ts +24 -0
- package/dist/components/code-block.js +43 -0
- package/dist/components/code-block.mjs +16 -0
- package/dist/components/color-control.css +285 -0
- package/dist/components/color-control.d.mts +5 -0
- package/dist/components/color-control.d.ts +5 -0
- package/dist/components/color-control.js +534 -0
- package/dist/components/color-control.mjs +497 -0
- package/dist/components/dialog.css +930 -0
- package/dist/components/dialog.d.mts +32 -0
- package/dist/components/dialog.d.ts +32 -0
- package/dist/components/dialog.js +1111 -0
- package/dist/components/dialog.mjs +1074 -0
- package/dist/components/divider.css +356 -0
- package/dist/components/divider.d.mts +32 -0
- package/dist/components/divider.d.ts +32 -0
- package/dist/components/divider.js +344 -0
- package/dist/components/divider.mjs +307 -0
- package/{src/style/components/drag-handle → dist/components}/drag-handle.css +3 -18
- package/dist/components/drag-handle.d.mts +11 -0
- package/dist/components/drag-handle.d.ts +11 -0
- package/dist/components/drag-handle.js +103 -0
- package/dist/components/drag-handle.mjs +66 -0
- package/dist/components/drawer.css +1027 -0
- package/dist/components/drawer.d.mts +14 -0
- package/dist/components/drawer.d.ts +14 -0
- package/dist/components/drawer.js +1072 -0
- package/dist/components/drawer.mjs +1035 -0
- package/dist/components/floating-bar.css +17 -0
- package/dist/components/floating-bar.d.mts +25 -0
- package/dist/components/floating-bar.d.ts +25 -0
- package/dist/components/floating-bar.js +52 -0
- package/dist/components/floating-bar.mjs +25 -0
- package/dist/components/footer.css +40 -0
- package/dist/components/footer.d.mts +8 -0
- package/dist/components/footer.d.ts +8 -0
- package/dist/components/footer.js +44 -0
- package/dist/components/footer.mjs +17 -0
- package/dist/components/grid.css +47 -0
- package/dist/components/grid.d.mts +27 -0
- package/dist/components/grid.d.ts +27 -0
- package/dist/components/grid.js +52 -0
- package/dist/components/grid.mjs +25 -0
- package/dist/components/header.css +1075 -0
- package/dist/components/header.d.mts +35 -0
- package/dist/components/header.d.ts +35 -0
- package/dist/components/header.js +1402 -0
- package/dist/components/header.mjs +1365 -0
- package/dist/components/hero.css +121 -0
- package/dist/components/hero.d.mts +111 -0
- package/dist/components/hero.d.ts +111 -0
- package/dist/components/hero.js +285 -0
- package/dist/components/hero.mjs +248 -0
- package/{src/style/components/icons → dist/components}/icons.css +14 -15
- package/dist/components/icons.d.mts +104 -0
- package/dist/components/icons.d.ts +104 -0
- package/dist/components/icons.js +239 -0
- package/dist/components/icons.mjs +203 -0
- package/{src/style/components/input → dist/components}/input.css +189 -102
- package/dist/components/input.d.mts +114 -0
- package/dist/components/input.d.ts +114 -0
- package/dist/components/input.js +926 -0
- package/dist/components/input.mjs +879 -0
- package/dist/components/layout.css +551 -0
- package/dist/components/layout.d.mts +16 -0
- package/dist/components/layout.d.ts +16 -0
- package/dist/components/layout.js +387 -0
- package/dist/components/layout.mjs +352 -0
- package/{src/style/components/list → dist/components}/list.css +47 -41
- package/dist/components/list.d.mts +46 -0
- package/dist/components/list.d.ts +46 -0
- package/dist/components/list.js +124 -0
- package/dist/components/list.mjs +96 -0
- package/dist/components/navbar.css +706 -0
- package/dist/components/navbar.d.mts +56 -0
- package/dist/components/navbar.d.ts +56 -0
- package/dist/components/navbar.js +994 -0
- package/dist/components/navbar.mjs +952 -0
- package/{src/style/components/page-index → dist/components}/page-index.css +2 -47
- package/dist/components/page-index.d.mts +25 -0
- package/dist/components/page-index.d.ts +25 -0
- package/dist/components/page-index.js +239 -0
- package/dist/components/page-index.mjs +202 -0
- package/{src/style/components/page → dist/components}/page.css +4 -15
- package/dist/components/page.d.mts +30 -0
- package/dist/components/page.d.ts +30 -0
- package/dist/components/page.js +40 -0
- package/dist/components/page.mjs +13 -0
- package/dist/components/popover.css +87 -0
- package/dist/components/popover.d.mts +22 -0
- package/dist/components/popover.d.ts +22 -0
- package/dist/components/popover.js +243 -0
- package/dist/components/popover.mjs +206 -0
- package/{src/style → dist}/components/radio.css +8 -51
- package/dist/components/radio.d.mts +59 -0
- package/dist/components/radio.d.ts +59 -0
- package/dist/components/radio.js +133 -0
- package/dist/components/radio.mjs +95 -0
- package/dist/components/section.css +993 -0
- package/dist/components/section.d.mts +33 -0
- package/dist/components/section.d.ts +33 -0
- package/dist/components/section.js +1401 -0
- package/dist/components/section.mjs +1364 -0
- package/dist/components/select.css +391 -0
- package/dist/components/select.d.mts +63 -0
- package/dist/components/select.d.ts +63 -0
- package/dist/components/select.js +452 -0
- package/dist/components/select.mjs +415 -0
- package/{src/style/components/slider → dist/components}/slider.css +55 -33
- package/dist/components/slider.d.mts +69 -0
- package/dist/components/slider.d.ts +69 -0
- package/dist/components/slider.js +254 -0
- package/dist/components/slider.mjs +217 -0
- package/dist/components/switch.css +1081 -0
- package/dist/components/switch.d.mts +33 -0
- package/dist/components/switch.d.ts +33 -0
- package/dist/components/switch.js +1092 -0
- package/dist/components/switch.mjs +1055 -0
- package/{src/style/components/table → dist/components}/table.css +3 -28
- package/dist/components/table.d.mts +42 -0
- package/dist/components/table.d.ts +42 -0
- package/dist/components/table.js +108 -0
- package/dist/components/table.mjs +76 -0
- package/dist/components/tag.css +97 -0
- package/dist/components/tag.d.mts +12 -0
- package/dist/components/tag.d.ts +12 -0
- package/dist/components/tag.js +42 -0
- package/dist/components/tag.mjs +15 -0
- package/dist/components/textarea.css +1359 -0
- package/dist/components/textarea.d.mts +84 -0
- package/dist/components/textarea.d.ts +84 -0
- package/dist/components/textarea.js +1962 -0
- package/dist/components/textarea.mjs +1924 -0
- package/{src/style/components/theme-control → dist/components}/theme-control.css +3 -7
- package/dist/components/theme-control.d.mts +9 -0
- package/dist/components/theme-control.d.ts +9 -0
- package/dist/components/theme-control.js +235 -0
- package/dist/components/theme-control.mjs +200 -0
- package/{src/style/components/tooltip → dist/components}/tooltip.css +5 -13
- package/dist/components/tooltip.d.mts +12 -0
- package/dist/components/tooltip.d.ts +12 -0
- package/dist/components/tooltip.js +200 -0
- package/dist/components/tooltip.mjs +163 -0
- package/dist/icons-Czahnf-r.d.mts +15 -0
- package/dist/icons-Czahnf-r.d.ts +15 -0
- package/dist/index.css +2915 -2068
- package/dist/index.d.mts +144 -721
- package/dist/index.d.ts +144 -721
- package/dist/index.js +4076 -2282
- package/dist/index.mjs +4132 -2366
- package/dist/theme.css +34 -34
- package/package.json +27 -8
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/hellboy-ds-0.1.2.tgz +0 -0
- package/src/components/badge/Badge.tsx +0 -29
- package/src/components/badge/index.ts +0 -1
- package/src/components/banner/Banner.tsx +0 -48
- package/src/components/banner/banner.css +0 -44
- package/src/components/banner/index.ts +0 -1
- package/src/components/button/button.tsx +0 -127
- package/src/components/button/index.ts +0 -1
- package/src/components/card/card.tsx +0 -57
- package/src/components/card/index.ts +0 -1
- package/src/components/checkbox/Checkbox.tsx +0 -98
- package/src/components/checkbox/index.ts +0 -1
- package/src/components/code-block/code-block.tsx +0 -44
- package/src/components/code-block/index.ts +0 -1
- package/src/components/color-control/color-control.tsx +0 -322
- package/src/components/color-control/index.ts +0 -1
- package/src/components/drag-handle/DragHandle.tsx +0 -78
- package/src/components/drag-handle/index.ts +0 -1
- package/src/components/drawer/drawer.tsx +0 -82
- package/src/components/drawer/index.ts +0 -1
- package/src/components/floating-bar/floating-bar.tsx +0 -52
- package/src/components/floating-bar/index.ts +0 -2
- package/src/components/footer/footer.tsx +0 -28
- package/src/components/footer/index.ts +0 -1
- package/src/components/grid/Grid.tsx +0 -53
- package/src/components/grid/index.ts +0 -1
- package/src/components/header/header.tsx +0 -57
- package/src/components/header/index.ts +0 -1
- package/src/components/icons/icons.tsx +0 -44
- package/src/components/icons/index.ts +0 -1
- package/src/components/index.ts +0 -29
- package/src/components/input/DatePicker.tsx +0 -133
- package/src/components/input/Input.tsx +0 -220
- package/src/components/input/InputDate.tsx +0 -10
- package/src/components/input/InputDateTime.tsx +0 -10
- package/src/components/input/InputEmail.tsx +0 -10
- package/src/components/input/InputField.tsx +0 -137
- package/src/components/input/InputNumber.tsx +0 -10
- package/src/components/input/InputPassword.tsx +0 -10
- package/src/components/input/InputSearch.tsx +0 -10
- package/src/components/input/InputTel.tsx +0 -10
- package/src/components/input/InputText.tsx +0 -10
- package/src/components/input/InputTime.tsx +0 -10
- package/src/components/input/InputUrl.tsx +0 -10
- package/src/components/input/TimePicker.tsx +0 -151
- package/src/components/input/index.ts +0 -11
- package/src/components/layout/Layout.tsx +0 -244
- package/src/components/layout/index.ts +0 -1
- package/src/components/list/List.tsx +0 -159
- package/src/components/list/index.ts +0 -1
- package/src/components/navbar/MenuCategory.tsx +0 -20
- package/src/components/navbar/MenuGroup.tsx +0 -288
- package/src/components/navbar/MenuItem.tsx +0 -65
- package/src/components/navbar/Navbar.tsx +0 -23
- package/src/components/navbar/index.ts +0 -4
- package/src/components/page/index.ts +0 -1
- package/src/components/page/page.tsx +0 -46
- package/src/components/page-index/PageIndex.tsx +0 -275
- package/src/components/page-index/index.ts +0 -1
- package/src/components/popover/index.ts +0 -1
- package/src/components/popover/popover.tsx +0 -199
- package/src/components/radio/Radio.tsx +0 -176
- package/src/components/radio/index.ts +0 -1
- package/src/components/section/index.ts +0 -1
- package/src/components/section/section.tsx +0 -66
- package/src/components/select/Select.tsx +0 -212
- package/src/components/select/index.ts +0 -1
- package/src/components/slider/Slider.tsx +0 -267
- package/src/components/slider/index.ts +0 -1
- package/src/components/switch/index.ts +0 -1
- package/src/components/switch/switch.tsx +0 -99
- package/src/components/table/Table.tsx +0 -147
- package/src/components/table/index.ts +0 -1
- package/src/components/theme-control/index.ts +0 -1
- package/src/components/theme-control/theme-control.tsx +0 -78
- package/src/components/tooltip/index.ts +0 -1
- package/src/components/tooltip/tooltip.tsx +0 -207
- package/src/contexts/NavbarTooltipContext.tsx +0 -48
- package/src/contexts/index.ts +0 -1
- package/src/foundations/motion.md +0 -136
- package/src/index.ts +0 -40
- package/src/style/_shared/field.css +0 -69
- package/src/style/components/color-control/color-control.css +0 -126
- package/src/style/components/drawer/drawer.css +0 -210
- package/src/style/components/floating-bar/floating-bar.css +0 -39
- package/src/style/components/footer/footer.css +0 -108
- package/src/style/components/grid/grid.css +0 -33
- package/src/style/components/header/header.css +0 -44
- package/src/style/components/layout/layout.css +0 -205
- package/src/style/components/navbar/navbar.css +0 -342
- package/src/style/components/popover/popover.css +0 -44
- package/src/style/components/section/section.css +0 -67
- package/src/style/components/select/select.css +0 -143
- package/src/style/components/switch/switch.css +0 -267
- package/src/style/foundations/global.css +0 -316
- package/src/style/foundations/motion.css +0 -164
- package/src/style/foundations/spacing.css +0 -51
- package/src/style/foundations/typography.css +0 -39
- package/src/style/foundations/z-index.css +0 -81
- package/src/style/modes/dark.css +0 -146
- package/src/style/modes/light.css +0 -147
- package/src/style/semantic.css +0 -52
- package/src/style/styles.css +0 -51
- package/src/style/themes/theme.json +0 -37
- package/src/utils/README.md +0 -305
- package/src/utils/USER_PREFERENCES.md +0 -558
- package/src/utils/theme.ts +0 -127
- package/src/utils/user-preferences.ts +0 -577
- package/tsconfig.json +0 -25
- package/tsup.config.ts +0 -52
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Motion & Animation Tokens
|
|
3
|
-
* Consistent timing, easing, and animation patterns
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
:root {
|
|
7
|
-
/* ===== DURATION TOKENS ===== */
|
|
8
|
-
/* Fast interactions (hover states, button feedback) */
|
|
9
|
-
--motion-duration-fast: 0.15s;
|
|
10
|
-
--motion-duration-base: 0.2s;
|
|
11
|
-
--motion-duration-slow: 0.3s;
|
|
12
|
-
--motion-duration-slower: 0.5s;
|
|
13
|
-
|
|
14
|
-
/* ===== EASING FUNCTIONS ===== */
|
|
15
|
-
/* Standard easing for most UI interactions */
|
|
16
|
-
--motion-easing-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
|
|
17
|
-
/* Decelerating easing for elements entering the screen */
|
|
18
|
-
--motion-easing-decelerate: cubic-bezier(0.0, 0.0, 0.2, 1);
|
|
19
|
-
/* Accelerating easing for elements leaving the screen */
|
|
20
|
-
--motion-easing-accelerate: cubic-bezier(0.4, 0.0, 1, 1);
|
|
21
|
-
/* Sharp easing for emphasized interactions */
|
|
22
|
-
--motion-easing-sharp: cubic-bezier(0.4, 0.0, 0.6, 1);
|
|
23
|
-
|
|
24
|
-
/* ===== COMBINED TRANSITIONS ===== */
|
|
25
|
-
--motion-transition-fast: var(--motion-duration-fast) var(--motion-easing-standard);
|
|
26
|
-
--motion-transition-base: var(--motion-duration-base) var(--motion-easing-standard);
|
|
27
|
-
--motion-transition-slow: var(--motion-duration-slow) var(--motion-easing-standard);
|
|
28
|
-
--motion-transition-slower: var(--motion-duration-slower) var(--motion-easing-standard);
|
|
29
|
-
|
|
30
|
-
/* ===== SPECIFIC TRANSITIONS ===== */
|
|
31
|
-
/* Color transitions */
|
|
32
|
-
--motion-transition-color: color var(--motion-transition-base);
|
|
33
|
-
--motion-transition-background: background-color var(--motion-transition-base);
|
|
34
|
-
|
|
35
|
-
/* Transform transitions */
|
|
36
|
-
--motion-transition-transform: transform var(--motion-transition-base);
|
|
37
|
-
--motion-transition-scale: transform var(--motion-transition-fast);
|
|
38
|
-
|
|
39
|
-
/* Opacity transitions */
|
|
40
|
-
--motion-transition-opacity: opacity var(--motion-transition-base);
|
|
41
|
-
--motion-transition-fade-in: opacity var(--motion-duration-base) var(--motion-easing-decelerate);
|
|
42
|
-
--motion-transition-fade-out: opacity var(--motion-duration-base) var(--motion-easing-accelerate);
|
|
43
|
-
|
|
44
|
-
/* Border transitions */
|
|
45
|
-
--motion-transition-border: border-color var(--motion-transition-base);
|
|
46
|
-
|
|
47
|
-
/* Shadow transitions */
|
|
48
|
-
--motion-transition-shadow: box-shadow var(--motion-transition-base);
|
|
49
|
-
|
|
50
|
-
/* ===== HOVER STATE TRANSITIONS (No easing on entry, easing on exit) ===== */
|
|
51
|
-
/* Use these for hover/active states to show immediate response */
|
|
52
|
-
/* Entry (hover/active) is instant (linear), exit goes back with easing */
|
|
53
|
-
--motion-easing-linear: linear;
|
|
54
|
-
|
|
55
|
-
/* Color transitions for hover states */
|
|
56
|
-
--motion-transition-color-hover-in: color var(--motion-duration-fast) var(--motion-easing-linear);
|
|
57
|
-
--motion-transition-color-hover-out: color var(--motion-duration-fast) var(--motion-easing-accelerate);
|
|
58
|
-
|
|
59
|
-
/* Background transitions for hover states */
|
|
60
|
-
--motion-transition-background-hover-in: background-color var(--motion-duration-fast) var(--motion-easing-linear);
|
|
61
|
-
--motion-transition-background-hover-out: background-color var(--motion-duration-fast) var(--motion-easing-accelerate);
|
|
62
|
-
|
|
63
|
-
/* Combined hover transitions */
|
|
64
|
-
--motion-transition-hover-in: color var(--motion-duration-fast) var(--motion-easing-linear), background-color var(--motion-duration-fast) var(--motion-easing-linear), box-shadow var(--motion-duration-fast) var(--motion-easing-linear), outline var(--motion-duration-fast) var(--motion-easing-accelerate);
|
|
65
|
-
--motion-transition-hover-out: color var(--motion-duration-fast) var(--motion-easing-accelerate), background-color var(--motion-duration-fast) var(--motion-easing-accelerate), box-shadow var(--motion-duration-fast) var(--motion-easing-accelerate), outline var(--motion-duration-fast) var(--motion-easing-accelerate);
|
|
66
|
-
|
|
67
|
-
/* ===== ANIMATION KEYFRAMES ===== */
|
|
68
|
-
/* Fade animations */
|
|
69
|
-
--motion-keyframes-fade-in: fadeIn 0.2s ease-out;
|
|
70
|
-
--motion-keyframes-fade-out: fadeOut 0.2s ease-in;
|
|
71
|
-
|
|
72
|
-
/* Slide animations */
|
|
73
|
-
--motion-keyframes-slide-in-right: slideInRight 0.3s ease-out;
|
|
74
|
-
--motion-keyframes-slide-out-right: slideOutRight 0.3s ease-in;
|
|
75
|
-
--motion-keyframes-slide-in-left: slideInLeft 0.3s ease-out;
|
|
76
|
-
--motion-keyframes-slide-out-left: slideOutLeft 0.3s ease-in;
|
|
77
|
-
--motion-keyframes-slide-in-top: slideInTop 0.3s ease-out;
|
|
78
|
-
--motion-keyframes-slide-out-top: slideOutTop 0.3s ease-in;
|
|
79
|
-
--motion-keyframes-slide-in-bottom: slideInBottom 0.3s ease-out;
|
|
80
|
-
--motion-keyframes-slide-out-bottom: slideOutBottom 0.3s ease-in;
|
|
81
|
-
|
|
82
|
-
/* Scale animations */
|
|
83
|
-
--motion-keyframes-scale-in: scaleIn 0.2s ease-out;
|
|
84
|
-
--motion-keyframes-scale-out: scaleOut 0.2s ease-in;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* ===== KEYFRAME DEFINITIONS ===== */
|
|
88
|
-
@keyframes fadeIn {
|
|
89
|
-
from { opacity: 0; }
|
|
90
|
-
to { opacity: 1; }
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@keyframes fadeOut {
|
|
94
|
-
from { opacity: 1; }
|
|
95
|
-
to { opacity: 0; }
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@keyframes slideInRight {
|
|
99
|
-
from { transform: translateX(100%); }
|
|
100
|
-
to { transform: translateX(0); }
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@keyframes slideOutRight {
|
|
104
|
-
from { transform: translateX(0); }
|
|
105
|
-
to { transform: translateX(100%); }
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@keyframes slideInLeft {
|
|
109
|
-
from { transform: translateX(-100%); }
|
|
110
|
-
to { transform: translateX(0); }
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@keyframes slideOutLeft {
|
|
114
|
-
from { transform: translateX(0); }
|
|
115
|
-
to { transform: translateX(-100%); }
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@keyframes slideInTop {
|
|
119
|
-
from { transform: translateY(-100%); }
|
|
120
|
-
to { transform: translateY(0); }
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@keyframes slideOutTop {
|
|
124
|
-
from { transform: translateY(0); }
|
|
125
|
-
to { transform: translateY(-100%); }
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@keyframes slideInBottom {
|
|
129
|
-
from { transform: translateY(100%); }
|
|
130
|
-
to { transform: translateY(0); }
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@keyframes slideOutBottom {
|
|
134
|
-
from { transform: translateY(0); }
|
|
135
|
-
to { transform: translateY(100%); }
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@keyframes scaleIn {
|
|
139
|
-
from { transform: scale(0.95); opacity: 0; }
|
|
140
|
-
to { transform: scale(1); opacity: 1; }
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@keyframes scaleOut {
|
|
144
|
-
from { transform: scale(1); opacity: 1; }
|
|
145
|
-
to { transform: scale(0.95); opacity: 0; }
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/* ===== MOTION PREFERENCES ===== */
|
|
149
|
-
@media (prefers-reduced-motion: reduce) {
|
|
150
|
-
:root {
|
|
151
|
-
--motion-duration-fast: 0.01s;
|
|
152
|
-
--motion-duration-base: 0.01s;
|
|
153
|
-
--motion-duration-slow: 0.01s;
|
|
154
|
-
--motion-duration-slower: 0.01s;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
*,
|
|
158
|
-
*::before,
|
|
159
|
-
*::after {
|
|
160
|
-
animation-duration: 0.01ms ;
|
|
161
|
-
animation-iteration-count: 1 ;
|
|
162
|
-
transition-duration: 0.01ms ;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Spacing Tokens
|
|
3
|
-
* Spacing scale, border radius, and transitions
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
:root {
|
|
7
|
-
/* ===== SPACING SCALE ===== */
|
|
8
|
-
--spacing-0: 0px;
|
|
9
|
-
--spacing-1: 4px;
|
|
10
|
-
--spacing-2: 8px;
|
|
11
|
-
--spacing-3: 12px;
|
|
12
|
-
--spacing-4: 16px;
|
|
13
|
-
--spacing-5: 20px;
|
|
14
|
-
--spacing-6: 24px;
|
|
15
|
-
--spacing-7: 28px;
|
|
16
|
-
--spacing-8: 32px;
|
|
17
|
-
--spacing-9: 36px;
|
|
18
|
-
--spacing-10: 40px;
|
|
19
|
-
--spacing-11: 44px;
|
|
20
|
-
--spacing-12: 48px;
|
|
21
|
-
--spacing-14: 56px;
|
|
22
|
-
--spacing-16: 64px;
|
|
23
|
-
--spacing-20: 80px;
|
|
24
|
-
--spacing-24: 96px;
|
|
25
|
-
--spacing-28: 112px;
|
|
26
|
-
--spacing-32: 128px;
|
|
27
|
-
--spacing-36: 144px;
|
|
28
|
-
--spacing-40: 160px;
|
|
29
|
-
--spacing-44: 176px;
|
|
30
|
-
--spacing-48: 192px;
|
|
31
|
-
--spacing-52: 208px;
|
|
32
|
-
--spacing-56: 224px;
|
|
33
|
-
--spacing-60: 240px;
|
|
34
|
-
--spacing-64: 256px;
|
|
35
|
-
--spacing-72: 288px;
|
|
36
|
-
--spacing-80: 320px;
|
|
37
|
-
--spacing-96: 384px;
|
|
38
|
-
|
|
39
|
-
/* ===== BORDER RADIUS ===== */
|
|
40
|
-
--radius-sm: 4px;
|
|
41
|
-
--radius-base: 6px;
|
|
42
|
-
--radius-md: 8px;
|
|
43
|
-
--radius-lg: 12px;
|
|
44
|
-
--radius-xl: 16px;
|
|
45
|
-
--radius-full: 9999px;
|
|
46
|
-
|
|
47
|
-
/* ===== TRANSITIONS ===== */
|
|
48
|
-
--transition-fast: 0.15s ease-in-out;
|
|
49
|
-
--transition-base: 0.2s ease-in-out;
|
|
50
|
-
--transition-slow: 0.3s ease-in-out;
|
|
51
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Typography Tokens
|
|
3
|
-
* Font families, sizes, weights, line heights, and letter spacing
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
:root {
|
|
7
|
-
/* ===== FONT FAMILIES ===== */
|
|
8
|
-
--font-family-base: 'Rubik', sans-serif;
|
|
9
|
-
--font-family-heading: 'Signika', sans-serif;
|
|
10
|
-
--font-family-mono: 'Fira Code', 'Courier New', monospace;
|
|
11
|
-
|
|
12
|
-
/* ===== FONT SIZES ===== */
|
|
13
|
-
--font-size-xs: 12px;
|
|
14
|
-
--font-size-sm: 14px;
|
|
15
|
-
--font-size-base: 16px;
|
|
16
|
-
--font-size-md: 16px;
|
|
17
|
-
--font-size-lg: 18px;
|
|
18
|
-
--font-size-xl: 20px;
|
|
19
|
-
--font-size-2xl: 24px;
|
|
20
|
-
--font-size-3xl: 30px;
|
|
21
|
-
--font-size-4xl: 36px;
|
|
22
|
-
|
|
23
|
-
/* ===== FONT WEIGHTS ===== */
|
|
24
|
-
--font-weight-light: 200;
|
|
25
|
-
--font-weight-normal: 300;
|
|
26
|
-
--font-weight-medium: 500;
|
|
27
|
-
--font-weight-semibold: 600;
|
|
28
|
-
--font-weight-bold: 700;
|
|
29
|
-
|
|
30
|
-
/* ===== LINE HEIGHTS ===== */
|
|
31
|
-
--line-height-tight: 1.2;
|
|
32
|
-
--line-height-normal: 1.5;
|
|
33
|
-
--line-height-relaxed: 1.75;
|
|
34
|
-
|
|
35
|
-
/* ===== LETTER SPACING ===== */
|
|
36
|
-
--letter-spacing-tight: -0.02em;
|
|
37
|
-
--letter-spacing-normal: 0;
|
|
38
|
-
--letter-spacing-wide: 0.02em;
|
|
39
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Z-Index Layering System
|
|
3
|
-
*
|
|
4
|
-
* Organized z-index values for different UI layers.
|
|
5
|
-
* Each range is defined to prevent conflicts and maintain clear hierarchy.
|
|
6
|
-
*
|
|
7
|
-
* Ranges:
|
|
8
|
-
* - Base: 1-99 (interactive elements, hover states)
|
|
9
|
-
* - Floating: 100-999 (floating elements like tooltips, badges)
|
|
10
|
-
* - Popover: 1000-1999 (dropdowns, popovers, menus)
|
|
11
|
-
* - Modal: 2000-2999 (modals, dialogs, drawers)
|
|
12
|
-
* - Notification: 3000-3999 (toasts, notifications)
|
|
13
|
-
* - Fixed: 4000-4999 (fixed headers, footers, sticky elements)
|
|
14
|
-
* - Overlay: 5000+ (full-page overlays, backdrops)
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
:root {
|
|
18
|
-
/* ============================================
|
|
19
|
-
Base Layer (1-99)
|
|
20
|
-
Interactive elements, shadows, subtle overlays
|
|
21
|
-
============================================ */
|
|
22
|
-
--z-base: 1;
|
|
23
|
-
--z-dropdown-shadow: 5;
|
|
24
|
-
--z-hover-state: 10;
|
|
25
|
-
--z-focus-ring: 15;
|
|
26
|
-
|
|
27
|
-
/* ============================================
|
|
28
|
-
Floating Layer (100-999)
|
|
29
|
-
Floating elements that appear above content
|
|
30
|
-
============================================ */
|
|
31
|
-
--z-floating-base: 100;
|
|
32
|
-
--z-tooltip: 150;
|
|
33
|
-
--z-badge: 120;
|
|
34
|
-
--z-floating-action: 180;
|
|
35
|
-
|
|
36
|
-
/* ============================================
|
|
37
|
-
Popover Layer (1000-1999)
|
|
38
|
-
Dropdowns, context menus, select dropdowns, popovers
|
|
39
|
-
============================================ */
|
|
40
|
-
--z-popover-base: 1000;
|
|
41
|
-
--z-select-dropdown: 1050;
|
|
42
|
-
--z-popover: 1100;
|
|
43
|
-
--z-context-menu: 1150;
|
|
44
|
-
--z-date-picker: 1200;
|
|
45
|
-
--z-time-picker: 1200;
|
|
46
|
-
|
|
47
|
-
/* ============================================
|
|
48
|
-
Modal Layer (2000-2999)
|
|
49
|
-
Modals, dialogs, drawers, lightboxes
|
|
50
|
-
============================================ */
|
|
51
|
-
--z-modal-base: 2000;
|
|
52
|
-
--z-drawer: 2100;
|
|
53
|
-
--z-dialog: 2200;
|
|
54
|
-
--z-lightbox: 2300;
|
|
55
|
-
|
|
56
|
-
/* ============================================
|
|
57
|
-
Notification Layer (3000-3999)
|
|
58
|
-
Toasts, notifications, alerts
|
|
59
|
-
============================================ */
|
|
60
|
-
--z-notification-base: 3000;
|
|
61
|
-
--z-toast: 3100;
|
|
62
|
-
--z-alert: 3200;
|
|
63
|
-
--z-banner: 3300;
|
|
64
|
-
|
|
65
|
-
/* ============================================
|
|
66
|
-
Fixed Layer (4000-4999)
|
|
67
|
-
Fixed positioned elements (headers, footers, sticky)
|
|
68
|
-
============================================ */
|
|
69
|
-
--z-fixed-base: 4000;
|
|
70
|
-
--z-sticky-header: 4100;
|
|
71
|
-
--z-sticky-footer: 4100;
|
|
72
|
-
--z-fixed-nav: 4200;
|
|
73
|
-
|
|
74
|
-
/* ============================================
|
|
75
|
-
Overlay Layer (5000+)
|
|
76
|
-
Full-page overlays, backdrops
|
|
77
|
-
============================================ */
|
|
78
|
-
--z-overlay-base: 5000;
|
|
79
|
-
--z-modal-backdrop: 5100;
|
|
80
|
-
--z-drawer-backdrop: 5100;
|
|
81
|
-
}
|
package/src/style/modes/dark.css
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dark Theme
|
|
3
|
-
* Dark color scheme
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
:root[data-theme="dark"] {
|
|
7
|
-
--lightness-foreground-1: 96%;
|
|
8
|
-
--lightness-foreground-2: 88%;
|
|
9
|
-
--lightness-foreground-3: 80%;
|
|
10
|
-
--lightness-foreground-4: 64%;
|
|
11
|
-
--lightness-foreground-5: 48%;
|
|
12
|
-
--lightness-foreground-6: 32%;
|
|
13
|
-
|
|
14
|
-
--lightness-bg-1: 4%;
|
|
15
|
-
--lightness-bg-2: 12%;
|
|
16
|
-
--lightness-bg-3: 20%;
|
|
17
|
-
|
|
18
|
-
/* Base colors */
|
|
19
|
-
--color-primary: hsla(var(--primary-hue), var(--primary-saturation), var(--primary-lightness), 1);
|
|
20
|
-
--color-on-primary: hsla(var(--primary-hue), 0%, 100%, 1);
|
|
21
|
-
|
|
22
|
-
--color-secondary: hsla(var(--secondary-hue), var(--secondary-saturation), var(--secondary-lightness), 1);
|
|
23
|
-
--color-on-secondary: hsla(var(--secondary-hue), 0%, 100%, 1);
|
|
24
|
-
|
|
25
|
-
--color-tertiary: hsla(var(--secondary-hue), var(--secondary-saturation), var(--secondary-lightness), 1);
|
|
26
|
-
--color-on-tertiary: hsla(var(--secondary-hue), 0%, 100%, 1);
|
|
27
|
-
|
|
28
|
-
--color-accent: hsla(var(--accent-hue), var(--accent-saturation), var(--accent-lightness), 1);
|
|
29
|
-
--color-on-accent: hsla(var(--accent-hue), 0%, 100%, 1);
|
|
30
|
-
|
|
31
|
-
/* Status colors */
|
|
32
|
-
--color-success: hsla(var(--success-hue), var(--success-saturation), var(--success-lightness), 1);
|
|
33
|
-
--color-on-success: hsla(var(--success-hue), 0%, 100%, 1);
|
|
34
|
-
|
|
35
|
-
--color-warning: hsla(var(--warning-hue), var(--warning-saturation), var(--warning-lightness), 1);
|
|
36
|
-
--color-on-warning: hsla(var(--warning-hue), 0%, 100%, 1);
|
|
37
|
-
|
|
38
|
-
--color-error: hsla(var(--error-hue), var(--error-saturation), var(--error-lightness), 1);
|
|
39
|
-
--color-on-error: hsla(var(--error-hue), 0%, 100%, 1);
|
|
40
|
-
|
|
41
|
-
--color-info: hsla(var(--info-hue), var(--info-saturation), var(--info-lightness), 1);
|
|
42
|
-
--color-on-info: hsla(var(--info-hue), 0%, 100%, 1);
|
|
43
|
-
|
|
44
|
-
/* Foreground & background */
|
|
45
|
-
--color-foreground-1: hsla(0, 0%, var(--lightness-foreground-1), 1);
|
|
46
|
-
--color-foreground-2: hsla(0, 0%, var(--lightness-foreground-2), 1);
|
|
47
|
-
--color-foreground-3: hsla(0, 0%, var(--lightness-foreground-3), 1);
|
|
48
|
-
--color-foreground-4: hsla(0, 0%, var(--lightness-foreground-4), 1);
|
|
49
|
-
--color-foreground-5: hsla(0, 0%, var(--lightness-foreground-5), 1);
|
|
50
|
-
--color-foreground-6: hsla(0, 0%, var(--lightness-foreground-6), 1);
|
|
51
|
-
|
|
52
|
-
--color-bg-1: hsla(var(--primary-hue), 10%, var(--lightness-bg-1), 1);
|
|
53
|
-
--color-bg-2: hsla(var(--primary-hue), 30%, var(--lightness-bg-2), 1);
|
|
54
|
-
--color-bg-3: hsla(var(--primary-hue), 50%, var(--lightness-bg-3), 1);
|
|
55
|
-
|
|
56
|
-
/* Interaction state colors */
|
|
57
|
-
--color-primary-hover: hsla(var(--primary-hue), var(--primary-saturation), calc(var(--primary-lightness) + 10%), 1);
|
|
58
|
-
--color-primary-active: hsla(var(--primary-hue), var(--primary-saturation), calc(var(--primary-lightness) + 5%), 1);
|
|
59
|
-
--color-primary-disabled: hsla(var(--primary-hue), var(--primary-saturation), calc(var(--primary-lightness) - 20%), 0.5);
|
|
60
|
-
|
|
61
|
-
--color-secondary-hover: hsla(var(--secondary-hue), var(--secondary-saturation), calc(var(--secondary-lightness) + 10%), 1);
|
|
62
|
-
--color-secondary-active: hsla(var(--secondary-hue), var(--secondary-saturation), calc(var(--secondary-lightness) + 5%), 1);
|
|
63
|
-
--color-secondary-disabled: hsla(var(--secondary-hue), var(--secondary-saturation), calc(var(--secondary-lightness) - 20%), 0.5);
|
|
64
|
-
|
|
65
|
-
--color-accent-hover: hsla(var(--accent-hue), var(--accent-saturation), calc(var(--accent-lightness) + 10%), 1);
|
|
66
|
-
--color-accent-active: hsla(var(--accent-hue), var(--accent-saturation), calc(var(--accent-lightness) + 5%), 1);
|
|
67
|
-
--color-accent-disabled: hsla(var(--accent-hue), var(--accent-saturation), calc(var(--accent-lightness) - 20%), 0.5);
|
|
68
|
-
|
|
69
|
-
--color-success-hover: hsla(var(--success-hue), var(--success-saturation), calc(var(--success-lightness) + 10%), 1);
|
|
70
|
-
--color-success-active: hsla(var(--success-hue), var(--success-saturation), calc(var(--success-lightness) + 5%), 1);
|
|
71
|
-
|
|
72
|
-
--color-warning-hover: hsla(var(--warning-hue), var(--warning-saturation), calc(var(--warning-lightness) + 10%), 1);
|
|
73
|
-
--color-warning-active: hsla(var(--warning-hue), var(--warning-saturation), calc(var(--warning-lightness) + 5%), 1);
|
|
74
|
-
|
|
75
|
-
--color-error-hover: hsla(var(--error-hue), var(--error-saturation), calc(var(--error-lightness) + 10%), 1);
|
|
76
|
-
--color-error-active: hsla(var(--error-hue), var(--error-saturation), calc(var(--error-lightness) + 5%), 1);
|
|
77
|
-
|
|
78
|
-
--color-info-hover: hsla(var(--info-hue), var(--info-saturation), calc(var(--info-lightness) + 10%), 1);
|
|
79
|
-
--color-info-active: hsla(var(--info-hue), var(--info-saturation), calc(var(--info-lightness) + 5%), 1);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@media (prefers-color-scheme: dark) {
|
|
83
|
-
:root:not([data-theme]) {
|
|
84
|
-
--lightness-foreground-1: 96%;
|
|
85
|
-
--lightness-foreground-2: 88%;
|
|
86
|
-
--lightness-foreground-3: 80%;
|
|
87
|
-
--lightness-foreground-4: 64%;
|
|
88
|
-
--lightness-foreground-5: 48%;
|
|
89
|
-
--lightness-foreground-6: 32%;
|
|
90
|
-
|
|
91
|
-
--lightness-bg-1: 4%;
|
|
92
|
-
--lightness-bg-2: 12%;
|
|
93
|
-
--lightness-bg-3: 20%;
|
|
94
|
-
|
|
95
|
-
/* Base colors */
|
|
96
|
-
--color-primary: hsla(var(--primary-hue), var(--primary-saturation), var(--primary-lightness), 1);
|
|
97
|
-
--color-on-primary: hsla(var(--primary-hue), 0%, 100%, 1);
|
|
98
|
-
|
|
99
|
-
--color-secondary: hsla(var(--secondary-hue), var(--secondary-saturation), var(--secondary-lightness), 1);
|
|
100
|
-
--color-on-secondary: hsla(var(--secondary-hue), 0%, 100%, 1);
|
|
101
|
-
|
|
102
|
-
--color-tertiary: var(--color-secondary);
|
|
103
|
-
--color-on-tertiary: var(--color-on-secondary);
|
|
104
|
-
|
|
105
|
-
--color-accent: hsla(var(--accent-hue), var(--accent-saturation), var(--accent-lightness), 1);
|
|
106
|
-
--color-on-accent: hsla(var(--accent-hue), 0%, 100%, 1);
|
|
107
|
-
|
|
108
|
-
/* Status colors */
|
|
109
|
-
--color-success: hsla(var(--success-hue), var(--success-saturation), 50%, 1);
|
|
110
|
-
--color-on-success: hsla(var(--success-hue), 0%, 100%, 1);
|
|
111
|
-
|
|
112
|
-
--color-warning: hsla(var(--warning-hue), var(--warning-saturation), 50%, 1);
|
|
113
|
-
--color-on-warning: hsla(var(--warning-hue), 0%, 100%, 1);
|
|
114
|
-
|
|
115
|
-
--color-error: hsla(var(--error-hue), var(--error-saturation), 50%, 1);
|
|
116
|
-
--color-on-error: hsla(var(--error-hue), 0%, 100%, 1);
|
|
117
|
-
|
|
118
|
-
--color-info: hsla(var(--info-hue), var(--info-saturation), 50%, 1);
|
|
119
|
-
--color-on-info: hsla(var(--info-hue), 0%, 100%, 1);
|
|
120
|
-
|
|
121
|
-
/* Foreground & background */
|
|
122
|
-
--color-foreground-1: hsla(0, 0%, var(--lightness-foreground-1), 1);
|
|
123
|
-
--color-foreground-2: hsla(0, 0%, var(--lightness-foreground-2), 1);
|
|
124
|
-
--color-foreground-3: hsla(0, 0%, var(--lightness-foreground-3), 1);
|
|
125
|
-
--color-foreground-4: hsla(0, 0%, var(--lightness-foreground-4), 1);
|
|
126
|
-
--color-foreground-5: hsla(0, 0%, var(--lightness-foreground-5), 1);
|
|
127
|
-
--color-foreground-6: hsla(0, 0%, var(--lightness-foreground-6), 1);
|
|
128
|
-
|
|
129
|
-
--color-bg-1: hsla(0, 0%, var(--lightness-bg-1), 1);
|
|
130
|
-
--color-bg-2: hsla(0, 0%, var(--lightness-bg-2), 1);
|
|
131
|
-
--color-bg-3: hsla(0, 0%, var(--lightness-bg-3), 1);
|
|
132
|
-
|
|
133
|
-
/* Interaction state colors */
|
|
134
|
-
--color-primary-hover: hsla(var(--primary-hue), var(--primary-saturation), calc(var(--primary-lightness) + 10%), 1);
|
|
135
|
-
--color-primary-active: hsla(var(--primary-hue), var(--primary-saturation), calc(var(--primary-lightness) + 5%), 1);
|
|
136
|
-
--color-primary-disabled: hsla(var(--primary-hue), var(--primary-saturation), calc(var(--primary-lightness) - 20%), 0.5);
|
|
137
|
-
|
|
138
|
-
--color-secondary-hover: hsla(var(--secondary-hue), var(--secondary-saturation), calc(var(--secondary-lightness) + 10%), 1);
|
|
139
|
-
--color-secondary-active: hsla(var(--secondary-hue), var(--secondary-saturation), calc(var(--secondary-lightness) + 5%), 1);
|
|
140
|
-
--color-secondary-disabled: hsla(var(--secondary-hue), var(--secondary-saturation), calc(var(--secondary-lightness) - 20%), 0.5);
|
|
141
|
-
|
|
142
|
-
--color-accent-hover: hsla(var(--accent-hue), var(--accent-saturation), calc(var(--accent-lightness) + 10%), 1);
|
|
143
|
-
--color-accent-active: hsla(var(--accent-hue), var(--accent-saturation), calc(var(--accent-lightness) + 5%), 1);
|
|
144
|
-
--color-accent-disabled: hsla(var(--accent-hue), var(--accent-saturation), calc(var(--accent-lightness) - 20%), 0.5);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Light Theme
|
|
3
|
-
* Default light color scheme
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
:root,
|
|
7
|
-
:root[data-theme="light"] {
|
|
8
|
-
--lightness-foreground-1: 20%;
|
|
9
|
-
--lightness-foreground-2: 12%;
|
|
10
|
-
--lightness-foreground-3: 4%;
|
|
11
|
-
--lightness-foreground-4: 8%;
|
|
12
|
-
--lightness-foreground-5: 16%;
|
|
13
|
-
--lightness-foreground-6: 24%;
|
|
14
|
-
|
|
15
|
-
--lightness-bg-1: 80%;
|
|
16
|
-
--lightness-bg-2: 88%;
|
|
17
|
-
--lightness-bg-3: 96%;
|
|
18
|
-
|
|
19
|
-
/* Base colors */
|
|
20
|
-
--color-primary: hsla(var(--primary-hue), var(--primary-saturation), var(--primary-lightness), 1);
|
|
21
|
-
--color-on-primary: hsla(var(--primary-hue), 0%, 100%, 1);
|
|
22
|
-
|
|
23
|
-
--color-secondary: hsla(var(--secondary-hue), var(--secondary-saturation), var(--secondary-lightness), 1);
|
|
24
|
-
--color-on-secondary: hsla(var(--secondary-hue), 0%, 100%, 1);
|
|
25
|
-
|
|
26
|
-
--color-tertiary: var(--color-secondary);
|
|
27
|
-
--color-on-tertiary: var(--color-on-secondary);
|
|
28
|
-
|
|
29
|
-
--color-accent: hsla(var(--accent-hue), var(--accent-saturation), var(--accent-lightness), 1);
|
|
30
|
-
--color-on-accent: hsla(var(--accent-hue), 0%, 100%, 1);
|
|
31
|
-
|
|
32
|
-
/* Status colors */
|
|
33
|
-
--color-success: hsla(var(--success-hue), var(--success-saturation), var(--success-lightness), 1);
|
|
34
|
-
--color-on-success: hsla(var(--success-hue), 0%, 100%, 1);
|
|
35
|
-
|
|
36
|
-
--color-warning: hsla(var(--warning-hue), var(--warning-saturation), var(--warning-lightness), 1);
|
|
37
|
-
--color-on-warning: hsla(var(--warning-hue), 0%, 100%, 1);
|
|
38
|
-
|
|
39
|
-
--color-error: hsla(var(--error-hue), var(--error-saturation), var(--error-lightness), 1);
|
|
40
|
-
--color-on-error: hsla(var(--error-hue), 0%, 100%, 1);
|
|
41
|
-
|
|
42
|
-
--color-info: hsla(var(--info-hue), var(--info-saturation), var(--info-lightness), 1);
|
|
43
|
-
--color-on-info: hsla(var(--info-hue), 0%, 100%, 1);
|
|
44
|
-
|
|
45
|
-
/* Foreground & background */
|
|
46
|
-
--color-foreground-1: hsla(0, 0%, var(--lightness-foreground-1), 1);
|
|
47
|
-
--color-foreground-2: hsla(0, 0%, var(--lightness-foreground-2), 1);
|
|
48
|
-
--color-foreground-3: hsla(0, 0%, var(--lightness-foreground-3), 1);
|
|
49
|
-
--color-foreground-4: hsla(0, 0%, var(--lightness-foreground-4), 1);
|
|
50
|
-
--color-foreground-5: hsla(0, 0%, var(--lightness-foreground-5), 1);
|
|
51
|
-
--color-foreground-6: hsla(0, 0%, var(--lightness-foreground-6), 1);
|
|
52
|
-
|
|
53
|
-
--color-bg-1: hsla(var(--primary-hue), 0%, var(--lightness-bg-1), 1);
|
|
54
|
-
--color-bg-2: hsla(var(--primary-hue), 10%, var(--lightness-bg-2), 1);
|
|
55
|
-
--color-bg-3: hsla(var(--primary-hue), 30%, var(--lightness-bg-3), 1);
|
|
56
|
-
|
|
57
|
-
/* Interaction state colors */
|
|
58
|
-
--color-primary-hover: hsla(var(--primary-hue), var(--primary-saturation), calc(var(--primary-lightness) + 10%), 1);
|
|
59
|
-
--color-primary-active: hsla(var(--primary-hue), var(--primary-saturation), calc(var(--primary-lightness) + 5%), 1);
|
|
60
|
-
--color-primary-disabled: hsla(var(--primary-hue), var(--primary-saturation), calc(var(--primary-lightness) - 20%), 0.5);
|
|
61
|
-
|
|
62
|
-
--color-secondary-hover: hsla(var(--secondary-hue), var(--secondary-saturation), calc(var(--secondary-lightness) + 10%), 1);
|
|
63
|
-
--color-secondary-active: hsla(var(--secondary-hue), var(--secondary-saturation), calc(var(--secondary-lightness) + 5%), 1);
|
|
64
|
-
--color-secondary-disabled: hsla(var(--secondary-hue), var(--secondary-saturation), calc(var(--secondary-lightness) - 20%), 0.5);
|
|
65
|
-
|
|
66
|
-
--color-accent-hover: hsla(var(--accent-hue), var(--accent-saturation), calc(var(--accent-lightness) + 10%), 1);
|
|
67
|
-
--color-accent-active: hsla(var(--accent-hue), var(--accent-saturation), calc(var(--accent-lightness) + 5%), 1);
|
|
68
|
-
--color-accent-disabled: hsla(var(--accent-hue), var(--accent-saturation), calc(var(--accent-lightness) - 20%), 0.5);
|
|
69
|
-
|
|
70
|
-
--color-success-hover: hsla(var(--success-hue), var(--success-saturation), calc(var(--success-lightness) + 10%), 1);
|
|
71
|
-
--color-success-active: hsla(var(--success-hue), var(--success-saturation), calc(var(--success-lightness) + 5%), 1);
|
|
72
|
-
|
|
73
|
-
--color-warning-hover: hsla(var(--warning-hue), var(--warning-saturation), calc(var(--warning-lightness) + 10%), 1);
|
|
74
|
-
--color-warning-active: hsla(var(--warning-hue), var(--warning-saturation), calc(var(--warning-lightness) + 5%), 1);
|
|
75
|
-
|
|
76
|
-
--color-error-hover: hsla(var(--error-hue), var(--error-saturation), calc(var(--error-lightness) + 10%), 1);
|
|
77
|
-
--color-error-active: hsla(var(--error-hue), var(--error-saturation), calc(var(--error-lightness) + 5%), 1);
|
|
78
|
-
|
|
79
|
-
--color-info-hover: hsla(var(--info-hue), var(--info-saturation), calc(var(--info-lightness) + 10%), 1);
|
|
80
|
-
--color-info-active: hsla(var(--info-hue), var(--info-saturation), calc(var(--info-lightness) + 5%), 1);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@media (prefers-color-scheme: light) {
|
|
84
|
-
:root:not([data-theme]) {
|
|
85
|
-
--lightness-foreground-1: 20%;
|
|
86
|
-
--lightness-foreground-2: 12%;
|
|
87
|
-
--lightness-foreground-3: 4%;
|
|
88
|
-
--lightness-foreground-4: 8%;
|
|
89
|
-
--lightness-foreground-5: 16%;
|
|
90
|
-
--lightness-foreground-6: 24%;
|
|
91
|
-
|
|
92
|
-
--lightness-bg-1: 80%;
|
|
93
|
-
--lightness-bg-2: 88%;
|
|
94
|
-
--lightness-bg-3: 96%;
|
|
95
|
-
|
|
96
|
-
/* Base colors */
|
|
97
|
-
--color-primary: hsla(var(--primary-hue), var(--primary-saturation), var(--primary-lightness), 1);
|
|
98
|
-
--color-on-primary: hsla(var(--primary-hue), 0%, 100%, 1);
|
|
99
|
-
|
|
100
|
-
--color-secondary: hsla(var(--secondary-hue), var(--secondary-saturation), var(--secondary-lightness), 1);
|
|
101
|
-
--color-on-secondary: hsla(var(--secondary-hue), 0%, 100%, 1);
|
|
102
|
-
|
|
103
|
-
--color-tertiary: var(--color-secondary);
|
|
104
|
-
--color-on-tertiary: var(--color-foreground-1);
|
|
105
|
-
|
|
106
|
-
--color-accent: hsla(var(--accent-hue), var(--accent-saturation), var(--accent-lightness), 1);
|
|
107
|
-
--color-on-accent: hsla(var(--accent-hue), 0%, 100%, 1);
|
|
108
|
-
|
|
109
|
-
/* Status colors */
|
|
110
|
-
--color-success: hsla(var(--success-hue), var(--success-saturation), 50%, 1);
|
|
111
|
-
--color-on-success: hsla(var(--success-hue), 0%, 100%, 1);
|
|
112
|
-
|
|
113
|
-
--color-warning: hsla(var(--warning-hue), var(--warning-saturation), 50%, 1);
|
|
114
|
-
--color-on-warning: hsla(var(--warning-hue), 0%, 100%, 1);
|
|
115
|
-
|
|
116
|
-
--color-error: hsla(var(--error-hue), var(--error-saturation), 50%, 1);
|
|
117
|
-
--color-on-error: hsla(var(--error-hue), 0%, 100%, 1);
|
|
118
|
-
|
|
119
|
-
--color-info: hsla(var(--info-hue), var(--info-saturation), 50%, 1);
|
|
120
|
-
--color-on-info: hsla(var(--info-hue), 0%, 100%, 1);
|
|
121
|
-
|
|
122
|
-
/* Foreground & background */
|
|
123
|
-
--color-foreground-1: hsla(0, 0%, var(--lightness-foreground-1), 1);
|
|
124
|
-
--color-foreground-2: hsla(0, 0%, var(--lightness-foreground-2), 1);
|
|
125
|
-
--color-foreground-3: hsla(0, 0%, var(--lightness-foreground-3), 1);
|
|
126
|
-
--color-foreground-4: hsla(0, 0%, var(--lightness-foreground-4), 1);
|
|
127
|
-
--color-foreground-5: hsla(0, 0%, var(--lightness-foreground-5), 1);
|
|
128
|
-
--color-foreground-6: hsla(0, 0%, var(--lightness-foreground-6), 1);
|
|
129
|
-
|
|
130
|
-
--color-bg-1: hsla(0, 0%, var(--lightness-bg-1), 1);
|
|
131
|
-
--color-bg-2: hsla(0, 0%, var(--lightness-bg-2), 1);
|
|
132
|
-
--color-bg-3: hsla(0, 0%, var(--lightness-bg-3), 1);
|
|
133
|
-
|
|
134
|
-
/* Interaction state colors */
|
|
135
|
-
--color-primary-hover: hsla(var(--primary-hue), var(--primary-saturation), var(--primary-lightness-hover), 1);
|
|
136
|
-
--color-primary-active: hsla(var(--primary-hue), var(--primary-saturation), var(--primary-lightness-active), 1);
|
|
137
|
-
--color-primary-disabled: hsla(var(--primary-hue), var(--primary-saturation), var(--primary-lightness-disabled), 0.5);
|
|
138
|
-
|
|
139
|
-
--color-secondary-hover: hsla(var(--secondary-hue), var(--secondary-saturation), var(--secondary-lightness-hover), 1);
|
|
140
|
-
--color-secondary-active: hsla(var(--secondary-hue), var(--secondary-saturation), var(--secondary-lightness-active), 1);
|
|
141
|
-
--color-secondary-disabled: hsla(var(--secondary-hue), var(--secondary-saturation), var(--secondary-lightness-disabled), 0.5);
|
|
142
|
-
|
|
143
|
-
--color-accent-hover: hsla(var(--accent-hue), var(--accent-saturation), var(--accent-lightness-hover), 1);
|
|
144
|
-
--color-accent-active: hsla(var(--accent-hue), var(--accent-saturation), var(--accent-lightness-active), 1);
|
|
145
|
-
--color-accent-disabled: hsla(var(--accent-hue), var(--accent-saturation), var(--accent-lightness-disabled), 0.5);
|
|
146
|
-
}
|
|
147
|
-
}
|
package/src/style/semantic.css
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Semantic Color Mappings
|
|
3
|
-
* Maps base colors into semantic roles for components
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
:root {
|
|
7
|
-
/* Text aliases */
|
|
8
|
-
--color-text-primary: var(--color-foreground-1);
|
|
9
|
-
--color-text-secondary: var(--color-foreground-2);
|
|
10
|
-
--color-text-tertiary: var(--color-foreground-3);
|
|
11
|
-
|
|
12
|
-
--color-primary-dark: var(--color-primary-active);
|
|
13
|
-
--color-surface-variant: var(--color-bg-3);
|
|
14
|
-
--color-outline: var(--color-foreground-2);
|
|
15
|
-
|
|
16
|
-
/* Semantic roles: surfaces */
|
|
17
|
-
--color-surface-primary: var(--color-primary);
|
|
18
|
-
--color-surface-secondary: var(--color-secondary);
|
|
19
|
-
--color-on-surface-primary: var(--color-on-primary);
|
|
20
|
-
--color-on-surface-secondary: var(--color-on-secondary);
|
|
21
|
-
|
|
22
|
-
/* Semantic roles: status backgrounds */
|
|
23
|
-
--color-status-error: var(--color-error);
|
|
24
|
-
--color-status-success: var(--color-success);
|
|
25
|
-
--color-status-warning: var(--color-warning);
|
|
26
|
-
--color-status-info: var(--color-info);
|
|
27
|
-
|
|
28
|
-
/* Semantic roles: status on-status (text on status backgrounds) */
|
|
29
|
-
--color-on-status-error: var(--color-on-error);
|
|
30
|
-
--color-on-status-success: var(--color-on-success);
|
|
31
|
-
--color-on-status-warning: var(--color-on-warning);
|
|
32
|
-
--color-on-status-info: var(--color-on-info);
|
|
33
|
-
|
|
34
|
-
/* Semantic roles: actions */
|
|
35
|
-
--color-action-primary: var(--color-accent);
|
|
36
|
-
--color-on-action-primary: var(--color-on-accent);
|
|
37
|
-
--color-action-primary-hover: var(--color-accent-hover);
|
|
38
|
-
--color-action-primary-active: var(--color-accent-active);
|
|
39
|
-
--color-action-primary-disabled: var(--color-accent-disabled);
|
|
40
|
-
|
|
41
|
-
--color-action-secondary: var(--color-secondary);
|
|
42
|
-
--color-on-action-secondary: var(--color-on-secondary);
|
|
43
|
-
--color-action-secondary-hover: var(--color-secondary-hover);
|
|
44
|
-
--color-action-secondary-active: var(--color-secondary-active);
|
|
45
|
-
--color-action-secondary-disabled: var(--color-secondary-disabled);
|
|
46
|
-
|
|
47
|
-
--color-action-tertiary: var(--color-tertiary);
|
|
48
|
-
--color-on-action-tertiary: var(--color-on-tertiary);
|
|
49
|
-
--color-action-tertiary-hover: var(--color-tertiary-hover);
|
|
50
|
-
--color-action-tertiary-active: var(--color-tertiary-active);
|
|
51
|
-
--color-action-tertiary-disabled: var(--color-tertiary-disabled);
|
|
52
|
-
}
|