@okja/chi-tokens 0.3.10 → 0.4.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/dist/colors/blue.css +180 -0
- package/dist/colors/grayscale.css +162 -0
- package/dist/colors/purple.css +180 -0
- package/dist/tokens.css +327 -0
- package/package.json +20 -15
- package/src/colors/blue.json +0 -85
- package/src/colors/grayscale.json +0 -76
- package/src/colors/purple.json +0 -85
- package/src/tokens.json +0 -144
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chi Design System - Blue Color Scale
|
|
3
|
+
* Rebate Arc v1 - Corporate Blue
|
|
4
|
+
* Classic healthcare/corporate blue color scheme
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
/* Primary Colors - Corporate Blue (#0066CC / IBM-style blue) */
|
|
9
|
+
--chi-color-primary: oklch(52% 0.14 250deg);
|
|
10
|
+
--chi-color-on-primary: oklch(100% 0 0deg);
|
|
11
|
+
--chi-color-primary-container: oklch(85% 0.08 250deg);
|
|
12
|
+
--chi-color-on-primary-container: oklch(20% 0.14 250deg);
|
|
13
|
+
|
|
14
|
+
/* Secondary Colors - Steel Blue/Gray */
|
|
15
|
+
--chi-color-secondary: oklch(50% 0.05 245deg);
|
|
16
|
+
--chi-color-on-secondary: oklch(100% 0 0deg);
|
|
17
|
+
--chi-color-secondary-container: oklch(88% 0.03 245deg);
|
|
18
|
+
--chi-color-on-secondary-container: oklch(20% 0.05 245deg);
|
|
19
|
+
|
|
20
|
+
/* Tertiary Colors - Teal/Cyan accent */
|
|
21
|
+
--chi-color-tertiary: oklch(58% 0.12 195deg);
|
|
22
|
+
--chi-color-on-tertiary: oklch(100% 0 0deg);
|
|
23
|
+
--chi-color-tertiary-container: oklch(88% 0.06 195deg);
|
|
24
|
+
--chi-color-on-tertiary-container: oklch(22% 0.12 195deg);
|
|
25
|
+
|
|
26
|
+
/* Error Colors - Red */
|
|
27
|
+
--chi-color-error: oklch(66.4% 0.195 29deg);
|
|
28
|
+
--chi-color-on-error: oklch(20% 0.05 29deg);
|
|
29
|
+
--chi-color-error-container: oklch(92% 0.05 29deg);
|
|
30
|
+
--chi-color-on-error-container: oklch(20% 0.05 29deg);
|
|
31
|
+
|
|
32
|
+
/* Surface & Background Colors - Cooler tone */
|
|
33
|
+
--chi-color-background: oklch(99% 0.003 245deg);
|
|
34
|
+
--chi-color-on-background: oklch(12% 0.003 245deg);
|
|
35
|
+
--chi-color-surface: oklch(99% 0.003 245deg);
|
|
36
|
+
--chi-color-on-surface: oklch(12% 0.003 245deg);
|
|
37
|
+
--chi-color-surface-variant: oklch(92% 0.01 245deg);
|
|
38
|
+
--chi-color-on-surface-variant: oklch(32% 0.02 245deg);
|
|
39
|
+
|
|
40
|
+
/* Surface Elevation Levels */
|
|
41
|
+
--chi-color-surface-0: oklch(100% 0 0deg);
|
|
42
|
+
--chi-color-surface-1: oklch(98% 0.005 245deg);
|
|
43
|
+
--chi-color-surface-2: oklch(96% 0.005 245deg);
|
|
44
|
+
--chi-color-surface-3: oklch(94% 0.005 245deg);
|
|
45
|
+
--chi-color-surface-4: oklch(92% 0.005 245deg);
|
|
46
|
+
--chi-color-surface-5: oklch(92% 0.005 245deg);
|
|
47
|
+
|
|
48
|
+
/* Container Colors */
|
|
49
|
+
--chi-color-surface-container: oklch(96% 0.005 245deg);
|
|
50
|
+
--chi-color-surface-container-low: oklch(98% 0.003 245deg);
|
|
51
|
+
--chi-color-surface-container-high: oklch(94% 0.005 245deg);
|
|
52
|
+
--chi-color-surface-container-highest: oklch(92% 0.005 245deg);
|
|
53
|
+
|
|
54
|
+
/* Inverse Colors */
|
|
55
|
+
--chi-color-inverse-surface: oklch(20% 0 0deg);
|
|
56
|
+
--chi-color-inverse-on-surface: oklch(96% 0.003 245deg);
|
|
57
|
+
--chi-color-inverse-primary: oklch(80% 0.08 250deg);
|
|
58
|
+
|
|
59
|
+
/* Outline Colors */
|
|
60
|
+
--chi-color-outline: oklch(48% 0.01 245deg);
|
|
61
|
+
--chi-color-outline-variant: oklch(92% 0.01 245deg);
|
|
62
|
+
--chi-color-divider: oklch(48% 0.01 245deg);
|
|
63
|
+
|
|
64
|
+
/* Scrim and shadow */
|
|
65
|
+
--chi-color-scrim: oklch(0% 0 0deg);
|
|
66
|
+
--chi-color-shadow: oklch(0% 0 0deg);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Dark mode overrides */
|
|
70
|
+
|
|
71
|
+
@media (prefers-color-scheme: dark) {
|
|
72
|
+
:root {
|
|
73
|
+
/* Dark Primary Colors */
|
|
74
|
+
--chi-color-primary: oklch(75% 0.1 250deg);
|
|
75
|
+
--chi-color-on-primary: oklch(15% 0.14 250deg);
|
|
76
|
+
--chi-color-primary-container: oklch(30% 0.14 250deg);
|
|
77
|
+
--chi-color-on-primary-container: oklch(88% 0.08 250deg);
|
|
78
|
+
|
|
79
|
+
/* Dark Secondary Colors */
|
|
80
|
+
--chi-color-secondary: oklch(68% 0.04 245deg);
|
|
81
|
+
--chi-color-on-secondary: oklch(12% 0.05 245deg);
|
|
82
|
+
--chi-color-secondary-container: oklch(28% 0.05 245deg);
|
|
83
|
+
--chi-color-on-secondary-container: oklch(88% 0.03 245deg);
|
|
84
|
+
|
|
85
|
+
/* Dark Tertiary Colors */
|
|
86
|
+
--chi-color-tertiary: oklch(72% 0.09 195deg);
|
|
87
|
+
--chi-color-on-tertiary: oklch(18% 0.12 195deg);
|
|
88
|
+
--chi-color-tertiary-container: oklch(32% 0.12 195deg);
|
|
89
|
+
--chi-color-on-tertiary-container: oklch(90% 0.06 195deg);
|
|
90
|
+
|
|
91
|
+
/* Dark Error Colors */
|
|
92
|
+
--chi-color-error: oklch(68.5% 0.195 29deg);
|
|
93
|
+
--chi-color-on-error: oklch(20% 0.05 29deg);
|
|
94
|
+
--chi-color-error-container: oklch(66.4% 0.195 29deg);
|
|
95
|
+
--chi-color-on-error-container: oklch(92% 0.05 29deg);
|
|
96
|
+
|
|
97
|
+
/* Dark Surface & Background */
|
|
98
|
+
--chi-color-background: oklch(9% 0.003 245deg);
|
|
99
|
+
--chi-color-on-background: oklch(92% 0.003 245deg);
|
|
100
|
+
--chi-color-surface: oklch(7% 0.003 245deg);
|
|
101
|
+
--chi-color-on-surface: oklch(92% 0.003 245deg);
|
|
102
|
+
--chi-color-surface-variant: oklch(30% 0.02 245deg);
|
|
103
|
+
--chi-color-on-surface-variant: oklch(82% 0.01 245deg);
|
|
104
|
+
|
|
105
|
+
/* Dark Surface Elevation Levels */
|
|
106
|
+
--chi-color-surface-0: oklch(7% 0.003 245deg);
|
|
107
|
+
--chi-color-surface-1: oklch(12% 0.003 245deg);
|
|
108
|
+
--chi-color-surface-2: oklch(15% 0.003 245deg);
|
|
109
|
+
--chi-color-surface-3: oklch(18% 0.003 245deg);
|
|
110
|
+
--chi-color-surface-4: oklch(22% 0.003 245deg);
|
|
111
|
+
--chi-color-surface-5: oklch(22% 0.003 245deg);
|
|
112
|
+
|
|
113
|
+
/* Dark Container Colors */
|
|
114
|
+
--chi-color-surface-container: oklch(15% 0.003 245deg);
|
|
115
|
+
--chi-color-surface-container-low: oklch(12% 0.003 245deg);
|
|
116
|
+
--chi-color-surface-container-high: oklch(18% 0.003 245deg);
|
|
117
|
+
--chi-color-surface-container-highest: oklch(22% 0.003 245deg);
|
|
118
|
+
|
|
119
|
+
/* Dark Inverse Colors */
|
|
120
|
+
--chi-color-inverse-surface: oklch(92% 0.003 245deg);
|
|
121
|
+
--chi-color-inverse-on-surface: oklch(20% 0.003 245deg);
|
|
122
|
+
--chi-color-inverse-primary: oklch(52% 0.14 250deg);
|
|
123
|
+
|
|
124
|
+
/* Dark Outline Colors */
|
|
125
|
+
--chi-color-outline: oklch(60% 0.01 245deg);
|
|
126
|
+
--chi-color-outline-variant: oklch(30% 0.02 245deg);
|
|
127
|
+
--chi-color-divider: oklch(60% 0.01 245deg);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Explicit dark theme */
|
|
132
|
+
|
|
133
|
+
[data-theme='dark'] {
|
|
134
|
+
--chi-color-primary: oklch(75% 0.1 250deg);
|
|
135
|
+
--chi-color-on-primary: oklch(15% 0.14 250deg);
|
|
136
|
+
--chi-color-primary-container: oklch(30% 0.14 250deg);
|
|
137
|
+
--chi-color-on-primary-container: oklch(88% 0.08 250deg);
|
|
138
|
+
|
|
139
|
+
--chi-color-secondary: oklch(68% 0.04 245deg);
|
|
140
|
+
--chi-color-on-secondary: oklch(12% 0.05 245deg);
|
|
141
|
+
--chi-color-secondary-container: oklch(28% 0.05 245deg);
|
|
142
|
+
--chi-color-on-secondary-container: oklch(88% 0.03 245deg);
|
|
143
|
+
|
|
144
|
+
--chi-color-tertiary: oklch(72% 0.09 195deg);
|
|
145
|
+
--chi-color-on-tertiary: oklch(18% 0.12 195deg);
|
|
146
|
+
--chi-color-tertiary-container: oklch(32% 0.12 195deg);
|
|
147
|
+
--chi-color-on-tertiary-container: oklch(90% 0.06 195deg);
|
|
148
|
+
|
|
149
|
+
--chi-color-error: oklch(68.5% 0.195 29deg);
|
|
150
|
+
--chi-color-on-error: oklch(20% 0.05 29deg);
|
|
151
|
+
--chi-color-error-container: oklch(66.4% 0.195 29deg);
|
|
152
|
+
--chi-color-on-error-container: oklch(92% 0.05 29deg);
|
|
153
|
+
|
|
154
|
+
--chi-color-background: oklch(9% 0.003 245deg);
|
|
155
|
+
--chi-color-on-background: oklch(92% 0.003 245deg);
|
|
156
|
+
--chi-color-surface: oklch(7% 0.003 245deg);
|
|
157
|
+
--chi-color-on-surface: oklch(92% 0.003 245deg);
|
|
158
|
+
--chi-color-surface-variant: oklch(30% 0.02 245deg);
|
|
159
|
+
--chi-color-on-surface-variant: oklch(82% 0.01 245deg);
|
|
160
|
+
|
|
161
|
+
--chi-color-surface-0: oklch(7% 0.003 245deg);
|
|
162
|
+
--chi-color-surface-1: oklch(12% 0.003 245deg);
|
|
163
|
+
--chi-color-surface-2: oklch(15% 0.003 245deg);
|
|
164
|
+
--chi-color-surface-3: oklch(18% 0.003 245deg);
|
|
165
|
+
--chi-color-surface-4: oklch(22% 0.003 245deg);
|
|
166
|
+
--chi-color-surface-5: oklch(22% 0.003 245deg);
|
|
167
|
+
|
|
168
|
+
--chi-color-surface-container: oklch(15% 0.003 245deg);
|
|
169
|
+
--chi-color-surface-container-low: oklch(12% 0.003 245deg);
|
|
170
|
+
--chi-color-surface-container-high: oklch(18% 0.003 245deg);
|
|
171
|
+
--chi-color-surface-container-highest: oklch(22% 0.003 245deg);
|
|
172
|
+
|
|
173
|
+
--chi-color-inverse-surface: oklch(92% 0.003 245deg);
|
|
174
|
+
--chi-color-inverse-on-surface: oklch(20% 0.003 245deg);
|
|
175
|
+
--chi-color-inverse-primary: oklch(52% 0.14 250deg);
|
|
176
|
+
|
|
177
|
+
--chi-color-outline: oklch(60% 0.01 245deg);
|
|
178
|
+
--chi-color-outline-variant: oklch(30% 0.02 245deg);
|
|
179
|
+
--chi-color-divider: oklch(60% 0.01 245deg);
|
|
180
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chi Design System - Grayscale Color Scale
|
|
3
|
+
* Default theme colors (migrated from theme-light/dark)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
/* Primary colors - grayscale with slight blue tint */
|
|
8
|
+
--chi-color-primary: oklch(49.4% 0.163 264.05deg);
|
|
9
|
+
--chi-color-on-primary: oklch(100% 0 0deg);
|
|
10
|
+
--chi-color-primary-container: oklch(79.7% 0.105 264.05deg);
|
|
11
|
+
--chi-color-on-primary-container: oklch(20% 0.163 264.05deg);
|
|
12
|
+
|
|
13
|
+
/* Secondary colors - grayscale with purple tint */
|
|
14
|
+
--chi-color-secondary: oklch(61.8% 0.15 314.05deg);
|
|
15
|
+
--chi-color-on-secondary: oklch(100% 0 0deg);
|
|
16
|
+
--chi-color-secondary-container: oklch(85.1% 0.08 314.05deg);
|
|
17
|
+
--chi-color-on-secondary-container: oklch(25.1% 0.15 314.05deg);
|
|
18
|
+
|
|
19
|
+
/* Tertiary colors - grayscale with warm tint */
|
|
20
|
+
--chi-color-tertiary: oklch(70.4% 0.15 29.23deg);
|
|
21
|
+
--chi-color-on-tertiary: oklch(100% 0 0deg);
|
|
22
|
+
--chi-color-tertiary-container: oklch(90.2% 0.08 29.23deg);
|
|
23
|
+
--chi-color-on-tertiary-container: oklch(30.2% 0.15 29.23deg);
|
|
24
|
+
|
|
25
|
+
/* Error colors */
|
|
26
|
+
--chi-color-error: oklch(62.8% 0.258 29.23deg);
|
|
27
|
+
--chi-color-on-error: oklch(100% 0 0deg);
|
|
28
|
+
--chi-color-error-container: oklch(90.2% 0.08 29.23deg);
|
|
29
|
+
--chi-color-on-error-container: oklch(30.2% 0.15 29.23deg);
|
|
30
|
+
|
|
31
|
+
/* Surface colors */
|
|
32
|
+
--chi-color-surface: oklch(99.1% 0.005 264.05deg);
|
|
33
|
+
--chi-color-on-surface: oklch(20% 0.005 264.05deg);
|
|
34
|
+
--chi-color-surface-variant: oklch(92.5% 0.02 264.05deg);
|
|
35
|
+
--chi-color-on-surface-variant: oklch(30% 0.02 264.05deg);
|
|
36
|
+
--chi-color-surface-container: oklch(96.1% 0.01 264.05deg);
|
|
37
|
+
--chi-color-surface-container-low: oklch(98.1% 0.005 264.05deg);
|
|
38
|
+
--chi-color-surface-container-high: oklch(94.1% 0.01 264.05deg);
|
|
39
|
+
--chi-color-surface-container-highest: oklch(92.1% 0.01 264.05deg);
|
|
40
|
+
|
|
41
|
+
/* Surface elevation aliases */
|
|
42
|
+
--chi-color-surface-0: var(--chi-color-surface);
|
|
43
|
+
--chi-color-surface-1: oklch(97.1% 0.01 264.05deg);
|
|
44
|
+
--chi-color-surface-2: var(--chi-color-surface-container-high);
|
|
45
|
+
--chi-color-surface-3: oklch(92.1% 0.01 264.05deg);
|
|
46
|
+
--chi-color-surface-4: oklch(91.1% 0.01 264.05deg);
|
|
47
|
+
--chi-color-surface-5: oklch(90.1% 0.01 264.05deg);
|
|
48
|
+
|
|
49
|
+
/* Background */
|
|
50
|
+
--chi-color-background: var(--chi-color-surface);
|
|
51
|
+
--chi-color-on-background: var(--chi-color-on-surface);
|
|
52
|
+
|
|
53
|
+
/* Outlines */
|
|
54
|
+
--chi-color-outline: oklch(50% 0.02 264.05deg);
|
|
55
|
+
--chi-color-outline-variant: oklch(80% 0.02 264.05deg);
|
|
56
|
+
--chi-color-divider: var(--chi-color-outline-variant);
|
|
57
|
+
|
|
58
|
+
/* Inverse colors */
|
|
59
|
+
--chi-color-inverse-surface: oklch(25% 0.01 264.05deg);
|
|
60
|
+
--chi-color-inverse-on-surface: oklch(95% 0.005 264.05deg);
|
|
61
|
+
--chi-color-inverse-primary: oklch(79.7% 0.105 264.05deg);
|
|
62
|
+
|
|
63
|
+
/* Scrim and shadow */
|
|
64
|
+
--chi-color-scrim: oklch(0% 0 0deg);
|
|
65
|
+
--chi-color-shadow: oklch(0% 0 0deg);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Dark mode overrides */
|
|
69
|
+
|
|
70
|
+
@media (prefers-color-scheme: dark) {
|
|
71
|
+
:root {
|
|
72
|
+
--chi-color-primary: oklch(79.7% 0.105 264.05deg);
|
|
73
|
+
--chi-color-on-primary: oklch(30% 0.163 264.05deg);
|
|
74
|
+
--chi-color-primary-container: oklch(35% 0.163 264.05deg);
|
|
75
|
+
--chi-color-on-primary-container: oklch(90% 0.105 264.05deg);
|
|
76
|
+
|
|
77
|
+
--chi-color-secondary: oklch(75.1% 0.08 314.05deg);
|
|
78
|
+
--chi-color-on-secondary: oklch(35.1% 0.15 314.05deg);
|
|
79
|
+
--chi-color-secondary-container: oklch(40.1% 0.15 314.05deg);
|
|
80
|
+
--chi-color-on-secondary-container: oklch(90.1% 0.08 314.05deg);
|
|
81
|
+
|
|
82
|
+
--chi-color-tertiary: oklch(80.2% 0.08 29.23deg);
|
|
83
|
+
--chi-color-on-tertiary: oklch(40.2% 0.15 29.23deg);
|
|
84
|
+
--chi-color-tertiary-container: oklch(45.2% 0.15 29.23deg);
|
|
85
|
+
--chi-color-on-tertiary-container: oklch(95.2% 0.08 29.23deg);
|
|
86
|
+
|
|
87
|
+
--chi-color-error: oklch(80.2% 0.15 29.23deg);
|
|
88
|
+
--chi-color-on-error: oklch(40.2% 0.258 29.23deg);
|
|
89
|
+
--chi-color-error-container: oklch(45.2% 0.258 29.23deg);
|
|
90
|
+
--chi-color-on-error-container: oklch(95.2% 0.15 29.23deg);
|
|
91
|
+
|
|
92
|
+
--chi-color-surface: oklch(15% 0.005 264.05deg);
|
|
93
|
+
--chi-color-on-surface: oklch(90% 0.005 264.05deg);
|
|
94
|
+
--chi-color-surface-variant: oklch(25% 0.02 264.05deg);
|
|
95
|
+
--chi-color-on-surface-variant: oklch(75% 0.02 264.05deg);
|
|
96
|
+
--chi-color-surface-container: oklch(20% 0.01 264.05deg);
|
|
97
|
+
--chi-color-surface-container-low: oklch(17% 0.005 264.05deg);
|
|
98
|
+
--chi-color-surface-container-high: oklch(25% 0.01 264.05deg);
|
|
99
|
+
--chi-color-surface-container-highest: oklch(30% 0.01 264.05deg);
|
|
100
|
+
|
|
101
|
+
--chi-color-surface-0: var(--chi-color-surface);
|
|
102
|
+
--chi-color-surface-1: oklch(18% 0.01 264.05deg);
|
|
103
|
+
--chi-color-surface-2: oklch(21% 0.01 264.05deg);
|
|
104
|
+
--chi-color-surface-3: oklch(24% 0.01 264.05deg);
|
|
105
|
+
--chi-color-surface-4: oklch(26% 0.01 264.05deg);
|
|
106
|
+
--chi-color-surface-5: oklch(28% 0.01 264.05deg);
|
|
107
|
+
|
|
108
|
+
--chi-color-outline: oklch(60% 0.02 264.05deg);
|
|
109
|
+
--chi-color-outline-variant: oklch(35% 0.02 264.05deg);
|
|
110
|
+
|
|
111
|
+
--chi-color-inverse-surface: oklch(90% 0.005 264.05deg);
|
|
112
|
+
--chi-color-inverse-on-surface: oklch(25% 0.01 264.05deg);
|
|
113
|
+
--chi-color-inverse-primary: oklch(49.4% 0.163 264.05deg);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Explicit dark theme */
|
|
118
|
+
|
|
119
|
+
[data-theme='dark'] {
|
|
120
|
+
--chi-color-primary: oklch(79.7% 0.105 264.05deg);
|
|
121
|
+
--chi-color-on-primary: oklch(30% 0.163 264.05deg);
|
|
122
|
+
--chi-color-primary-container: oklch(35% 0.163 264.05deg);
|
|
123
|
+
--chi-color-on-primary-container: oklch(90% 0.105 264.05deg);
|
|
124
|
+
|
|
125
|
+
--chi-color-secondary: oklch(75.1% 0.08 314.05deg);
|
|
126
|
+
--chi-color-on-secondary: oklch(35.1% 0.15 314.05deg);
|
|
127
|
+
--chi-color-secondary-container: oklch(40.1% 0.15 314.05deg);
|
|
128
|
+
--chi-color-on-secondary-container: oklch(90.1% 0.08 314.05deg);
|
|
129
|
+
|
|
130
|
+
--chi-color-tertiary: oklch(80.2% 0.08 29.23deg);
|
|
131
|
+
--chi-color-on-tertiary: oklch(40.2% 0.15 29.23deg);
|
|
132
|
+
--chi-color-tertiary-container: oklch(45.2% 0.15 29.23deg);
|
|
133
|
+
--chi-color-on-tertiary-container: oklch(95.2% 0.08 29.23deg);
|
|
134
|
+
|
|
135
|
+
--chi-color-error: oklch(80.2% 0.15 29.23deg);
|
|
136
|
+
--chi-color-on-error: oklch(40.2% 0.258 29.23deg);
|
|
137
|
+
--chi-color-error-container: oklch(45.2% 0.258 29.23deg);
|
|
138
|
+
--chi-color-on-error-container: oklch(95.2% 0.15 29.23deg);
|
|
139
|
+
|
|
140
|
+
--chi-color-surface: oklch(15% 0.005 264.05deg);
|
|
141
|
+
--chi-color-on-surface: oklch(90% 0.005 264.05deg);
|
|
142
|
+
--chi-color-surface-variant: oklch(25% 0.02 264.05deg);
|
|
143
|
+
--chi-color-on-surface-variant: oklch(75% 0.02 264.05deg);
|
|
144
|
+
--chi-color-surface-container: oklch(20% 0.01 264.05deg);
|
|
145
|
+
--chi-color-surface-container-low: oklch(17% 0.005 264.05deg);
|
|
146
|
+
--chi-color-surface-container-high: oklch(25% 0.01 264.05deg);
|
|
147
|
+
--chi-color-surface-container-highest: oklch(30% 0.01 264.05deg);
|
|
148
|
+
|
|
149
|
+
--chi-color-surface-0: var(--chi-color-surface);
|
|
150
|
+
--chi-color-surface-1: oklch(18% 0.01 264.05deg);
|
|
151
|
+
--chi-color-surface-2: oklch(21% 0.01 264.05deg);
|
|
152
|
+
--chi-color-surface-3: oklch(24% 0.01 264.05deg);
|
|
153
|
+
--chi-color-surface-4: oklch(26% 0.01 264.05deg);
|
|
154
|
+
--chi-color-surface-5: oklch(28% 0.01 264.05deg);
|
|
155
|
+
|
|
156
|
+
--chi-color-outline: oklch(60% 0.02 264.05deg);
|
|
157
|
+
--chi-color-outline-variant: oklch(35% 0.02 264.05deg);
|
|
158
|
+
|
|
159
|
+
--chi-color-inverse-surface: oklch(90% 0.005 264.05deg);
|
|
160
|
+
--chi-color-inverse-on-surface: oklch(25% 0.01 264.05deg);
|
|
161
|
+
--chi-color-inverse-primary: oklch(49.4% 0.163 264.05deg);
|
|
162
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chi Design System - Purple Color Scale
|
|
3
|
+
* Rebate Arc v2 - Modern Purple
|
|
4
|
+
* Modern, vibrant purple color scheme
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
/* Primary Colors - Purple (#6442d6) */
|
|
9
|
+
--chi-color-primary: oklch(49.4% 0.163 264deg);
|
|
10
|
+
--chi-color-on-primary: oklch(100% 0 0deg);
|
|
11
|
+
--chi-color-primary-container: oklch(79.7% 0.105 264deg);
|
|
12
|
+
--chi-color-on-primary-container: oklch(20% 0.163 264deg);
|
|
13
|
+
|
|
14
|
+
/* Secondary Colors - Blue/Gray (#5d5d74) */
|
|
15
|
+
--chi-color-secondary: oklch(43.8% 0.029 270deg);
|
|
16
|
+
--chi-color-on-secondary: oklch(100% 0 0deg);
|
|
17
|
+
--chi-color-secondary-container: oklch(88.5% 0.029 270deg);
|
|
18
|
+
--chi-color-on-secondary-container: oklch(15.8% 0.029 270deg);
|
|
19
|
+
|
|
20
|
+
/* Tertiary Colors - Pink/Purple */
|
|
21
|
+
--chi-color-tertiary: oklch(60% 0.12 320deg);
|
|
22
|
+
--chi-color-on-tertiary: oklch(100% 0 0deg);
|
|
23
|
+
--chi-color-tertiary-container: oklch(90% 0.08 320deg);
|
|
24
|
+
--chi-color-on-tertiary-container: oklch(20% 0.12 320deg);
|
|
25
|
+
|
|
26
|
+
/* Error Colors - Red (#ff6240) */
|
|
27
|
+
--chi-color-error: oklch(66.4% 0.195 29deg);
|
|
28
|
+
--chi-color-on-error: oklch(20% 0.05 29deg);
|
|
29
|
+
--chi-color-error-container: oklch(92% 0.05 29deg);
|
|
30
|
+
--chi-color-on-error-container: oklch(20% 0.05 29deg);
|
|
31
|
+
|
|
32
|
+
/* Surface & Background Colors */
|
|
33
|
+
--chi-color-background: oklch(99% 0.005 300deg);
|
|
34
|
+
--chi-color-on-background: oklch(12.5% 0.005 300deg);
|
|
35
|
+
--chi-color-surface: oklch(99% 0.005 300deg);
|
|
36
|
+
--chi-color-on-surface: oklch(12.5% 0.005 300deg);
|
|
37
|
+
--chi-color-surface-variant: oklch(91.8% 0.015 300deg);
|
|
38
|
+
--chi-color-on-surface-variant: oklch(33.5% 0.025 270deg);
|
|
39
|
+
|
|
40
|
+
/* Surface Elevation Levels */
|
|
41
|
+
--chi-color-surface-0: oklch(100% 0 0deg);
|
|
42
|
+
--chi-color-surface-1: oklch(97.5% 0.01 300deg);
|
|
43
|
+
--chi-color-surface-2: oklch(95.5% 0.01 300deg);
|
|
44
|
+
--chi-color-surface-3: oklch(93.5% 0.01 300deg);
|
|
45
|
+
--chi-color-surface-4: oklch(91.5% 0.01 300deg);
|
|
46
|
+
--chi-color-surface-5: oklch(91.5% 0.01 300deg);
|
|
47
|
+
|
|
48
|
+
/* Container Colors */
|
|
49
|
+
--chi-color-surface-container: oklch(95.5% 0.01 300deg);
|
|
50
|
+
--chi-color-surface-container-low: oklch(97.5% 0.005 300deg);
|
|
51
|
+
--chi-color-surface-container-high: oklch(93.5% 0.01 300deg);
|
|
52
|
+
--chi-color-surface-container-highest: oklch(91.5% 0.01 300deg);
|
|
53
|
+
|
|
54
|
+
/* Inverse Colors */
|
|
55
|
+
--chi-color-inverse-surface: oklch(22% 0 0deg);
|
|
56
|
+
--chi-color-inverse-on-surface: oklch(96% 0.005 300deg);
|
|
57
|
+
--chi-color-inverse-primary: oklch(79.7% 0.105 264deg);
|
|
58
|
+
|
|
59
|
+
/* Outline Colors */
|
|
60
|
+
--chi-color-outline: oklch(50% 0.01 300deg);
|
|
61
|
+
--chi-color-outline-variant: oklch(91.8% 0.015 300deg);
|
|
62
|
+
--chi-color-divider: oklch(50% 0.01 300deg);
|
|
63
|
+
|
|
64
|
+
/* Scrim and shadow */
|
|
65
|
+
--chi-color-scrim: oklch(0% 0 0deg);
|
|
66
|
+
--chi-color-shadow: oklch(0% 0 0deg);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Dark mode overrides */
|
|
70
|
+
|
|
71
|
+
@media (prefers-color-scheme: dark) {
|
|
72
|
+
:root {
|
|
73
|
+
/* Dark Primary Colors */
|
|
74
|
+
--chi-color-primary: oklch(79.7% 0.105 264deg);
|
|
75
|
+
--chi-color-on-primary: oklch(15% 0.163 264deg);
|
|
76
|
+
--chi-color-primary-container: oklch(44.5% 0.163 264deg);
|
|
77
|
+
--chi-color-on-primary-container: oklch(91% 0.105 264deg);
|
|
78
|
+
|
|
79
|
+
/* Dark Secondary Colors */
|
|
80
|
+
--chi-color-secondary: oklch(67.5% 0.029 270deg);
|
|
81
|
+
--chi-color-on-secondary: oklch(12% 0.029 270deg);
|
|
82
|
+
--chi-color-secondary-container: oklch(32% 0.029 270deg);
|
|
83
|
+
--chi-color-on-secondary-container: oklch(90% 0.029 270deg);
|
|
84
|
+
|
|
85
|
+
/* Dark Tertiary Colors */
|
|
86
|
+
--chi-color-tertiary: oklch(70% 0.08 320deg);
|
|
87
|
+
--chi-color-on-tertiary: oklch(25% 0.12 320deg);
|
|
88
|
+
--chi-color-tertiary-container: oklch(38% 0.08 320deg);
|
|
89
|
+
--chi-color-on-tertiary-container: oklch(93% 0.08 320deg);
|
|
90
|
+
|
|
91
|
+
/* Dark Error Colors */
|
|
92
|
+
--chi-color-error: oklch(68.5% 0.195 29deg);
|
|
93
|
+
--chi-color-on-error: oklch(20% 0.05 29deg);
|
|
94
|
+
--chi-color-error-container: oklch(66.4% 0.195 29deg);
|
|
95
|
+
--chi-color-on-error-container: oklch(92% 0.05 29deg);
|
|
96
|
+
|
|
97
|
+
/* Dark Surface & Background */
|
|
98
|
+
--chi-color-background: oklch(9.5% 0.005 300deg);
|
|
99
|
+
--chi-color-on-background: oklch(91.5% 0.005 300deg);
|
|
100
|
+
--chi-color-surface: oklch(7% 0.005 300deg);
|
|
101
|
+
--chi-color-on-surface: oklch(91.5% 0.005 300deg);
|
|
102
|
+
--chi-color-surface-variant: oklch(33.5% 0.025 270deg);
|
|
103
|
+
--chi-color-on-surface-variant: oklch(82% 0.015 300deg);
|
|
104
|
+
|
|
105
|
+
/* Dark Surface Elevation Levels */
|
|
106
|
+
--chi-color-surface-0: oklch(7% 0.005 300deg);
|
|
107
|
+
--chi-color-surface-1: oklch(12.5% 0.005 300deg);
|
|
108
|
+
--chi-color-surface-2: oklch(15% 0.005 300deg);
|
|
109
|
+
--chi-color-surface-3: oklch(19% 0.005 300deg);
|
|
110
|
+
--chi-color-surface-4: oklch(24% 0.005 300deg);
|
|
111
|
+
--chi-color-surface-5: oklch(24% 0.005 300deg);
|
|
112
|
+
|
|
113
|
+
/* Dark Container Colors */
|
|
114
|
+
--chi-color-surface-container: oklch(15% 0.005 300deg);
|
|
115
|
+
--chi-color-surface-container-low: oklch(12.5% 0.005 300deg);
|
|
116
|
+
--chi-color-surface-container-high: oklch(19% 0.005 300deg);
|
|
117
|
+
--chi-color-surface-container-highest: oklch(24% 0.005 300deg);
|
|
118
|
+
|
|
119
|
+
/* Dark Inverse Colors */
|
|
120
|
+
--chi-color-inverse-surface: oklch(91.5% 0.005 300deg);
|
|
121
|
+
--chi-color-inverse-on-surface: oklch(22.5% 0.005 300deg);
|
|
122
|
+
--chi-color-inverse-primary: oklch(49.4% 0.163 264deg);
|
|
123
|
+
|
|
124
|
+
/* Dark Outline Colors */
|
|
125
|
+
--chi-color-outline: oklch(61% 0.01 300deg);
|
|
126
|
+
--chi-color-outline-variant: oklch(33.5% 0.025 270deg);
|
|
127
|
+
--chi-color-divider: oklch(61% 0.01 300deg);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Explicit dark theme */
|
|
132
|
+
|
|
133
|
+
[data-theme='dark'] {
|
|
134
|
+
--chi-color-primary: oklch(79.7% 0.105 264deg);
|
|
135
|
+
--chi-color-on-primary: oklch(15% 0.163 264deg);
|
|
136
|
+
--chi-color-primary-container: oklch(44.5% 0.163 264deg);
|
|
137
|
+
--chi-color-on-primary-container: oklch(91% 0.105 264deg);
|
|
138
|
+
|
|
139
|
+
--chi-color-secondary: oklch(67.5% 0.029 270deg);
|
|
140
|
+
--chi-color-on-secondary: oklch(12% 0.029 270deg);
|
|
141
|
+
--chi-color-secondary-container: oklch(32% 0.029 270deg);
|
|
142
|
+
--chi-color-on-secondary-container: oklch(90% 0.029 270deg);
|
|
143
|
+
|
|
144
|
+
--chi-color-tertiary: oklch(70% 0.08 320deg);
|
|
145
|
+
--chi-color-on-tertiary: oklch(25% 0.12 320deg);
|
|
146
|
+
--chi-color-tertiary-container: oklch(38% 0.08 320deg);
|
|
147
|
+
--chi-color-on-tertiary-container: oklch(93% 0.08 320deg);
|
|
148
|
+
|
|
149
|
+
--chi-color-error: oklch(68.5% 0.195 29deg);
|
|
150
|
+
--chi-color-on-error: oklch(20% 0.05 29deg);
|
|
151
|
+
--chi-color-error-container: oklch(66.4% 0.195 29deg);
|
|
152
|
+
--chi-color-on-error-container: oklch(92% 0.05 29deg);
|
|
153
|
+
|
|
154
|
+
--chi-color-background: oklch(9.5% 0.005 300deg);
|
|
155
|
+
--chi-color-on-background: oklch(91.5% 0.005 300deg);
|
|
156
|
+
--chi-color-surface: oklch(7% 0.005 300deg);
|
|
157
|
+
--chi-color-on-surface: oklch(91.5% 0.005 300deg);
|
|
158
|
+
--chi-color-surface-variant: oklch(33.5% 0.025 270deg);
|
|
159
|
+
--chi-color-on-surface-variant: oklch(82% 0.015 300deg);
|
|
160
|
+
|
|
161
|
+
--chi-color-surface-0: oklch(7% 0.005 300deg);
|
|
162
|
+
--chi-color-surface-1: oklch(12.5% 0.005 300deg);
|
|
163
|
+
--chi-color-surface-2: oklch(15% 0.005 300deg);
|
|
164
|
+
--chi-color-surface-3: oklch(19% 0.005 300deg);
|
|
165
|
+
--chi-color-surface-4: oklch(24% 0.005 300deg);
|
|
166
|
+
--chi-color-surface-5: oklch(24% 0.005 300deg);
|
|
167
|
+
|
|
168
|
+
--chi-color-surface-container: oklch(15% 0.005 300deg);
|
|
169
|
+
--chi-color-surface-container-low: oklch(12.5% 0.005 300deg);
|
|
170
|
+
--chi-color-surface-container-high: oklch(19% 0.005 300deg);
|
|
171
|
+
--chi-color-surface-container-highest: oklch(24% 0.005 300deg);
|
|
172
|
+
|
|
173
|
+
--chi-color-inverse-surface: oklch(91.5% 0.005 300deg);
|
|
174
|
+
--chi-color-inverse-on-surface: oklch(22.5% 0.005 300deg);
|
|
175
|
+
--chi-color-inverse-primary: oklch(49.4% 0.163 264deg);
|
|
176
|
+
|
|
177
|
+
--chi-color-outline: oklch(61% 0.01 300deg);
|
|
178
|
+
--chi-color-outline-variant: oklch(33.5% 0.025 270deg);
|
|
179
|
+
--chi-color-divider: oklch(61% 0.01 300deg);
|
|
180
|
+
}
|
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chi Design System - Token Base
|
|
3
|
+
* Aggregator that imports all token categories
|
|
4
|
+
* Following Radix Themes pattern
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Chi Design System - Semantic Color Mappings
|
|
9
|
+
* Maps color scales to semantic names
|
|
10
|
+
* This will be populated during color system reorganization
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/* Placeholder - will import individual color scales and create semantic mappings */
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Chi Design System - Cursor Tokens
|
|
17
|
+
* Cursor definitions
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
.chi-themes {
|
|
21
|
+
/* Icon sizes - migrated from system-tokens */
|
|
22
|
+
--chi-icon-size-small: calc(18px * var(--scaling, 1));
|
|
23
|
+
--chi-icon-size-medium: calc(24px * var(--scaling, 1));
|
|
24
|
+
--chi-icon-size-large: calc(36px * var(--scaling, 1));
|
|
25
|
+
--chi-icon-size-xlarge: calc(48px * var(--scaling, 1));
|
|
26
|
+
|
|
27
|
+
/* Cursor styles */
|
|
28
|
+
--cursor-default: default;
|
|
29
|
+
--cursor-pointer: pointer;
|
|
30
|
+
--cursor-not-allowed: not-allowed;
|
|
31
|
+
--cursor-text: text;
|
|
32
|
+
--cursor-move: move;
|
|
33
|
+
--cursor-grab: grab;
|
|
34
|
+
--cursor-grabbing: grabbing;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Chi Design System - Layout Tokens
|
|
39
|
+
* Layout-related tokens (imports scaling + space)
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Chi Design System - Scaling Tokens
|
|
44
|
+
* Global scaling factor for responsive sizing (90%-110%)
|
|
45
|
+
* Following Radix Themes pattern
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
:root {
|
|
49
|
+
/* Default scaling factor - can be overridden with data-scaling attribute */
|
|
50
|
+
--scaling: 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Optional scaling variants (can be enabled via data-scaling attribute) */
|
|
54
|
+
|
|
55
|
+
[data-scaling='90%'] {
|
|
56
|
+
--scaling: 0.9;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-scaling='95%'] {
|
|
60
|
+
--scaling: 0.95;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-scaling='100%'] {
|
|
64
|
+
--scaling: 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-scaling='105%'] {
|
|
68
|
+
--scaling: 1.05;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-scaling='110%'] {
|
|
72
|
+
--scaling: 1.1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Chi Design System - Spacing Tokens
|
|
77
|
+
* Spacing scale following Radix Themes pattern
|
|
78
|
+
* Uses 4px base unit with --scaling support
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
.chi-themes {
|
|
82
|
+
/* Spacing scale (9 steps) - follows 4px/8px base */
|
|
83
|
+
--space-1: calc(4px * var(--scaling, 1));
|
|
84
|
+
--space-2: calc(8px * var(--scaling, 1));
|
|
85
|
+
--space-3: calc(12px * var(--scaling, 1));
|
|
86
|
+
--space-4: calc(16px * var(--scaling, 1));
|
|
87
|
+
--space-5: calc(24px * var(--scaling, 1));
|
|
88
|
+
--space-6: calc(32px * var(--scaling, 1));
|
|
89
|
+
--space-7: calc(40px * var(--scaling, 1));
|
|
90
|
+
--space-8: calc(48px * var(--scaling, 1));
|
|
91
|
+
--space-9: calc(64px * var(--scaling, 1));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.chi-themes {
|
|
95
|
+
/* Container widths */
|
|
96
|
+
--container-1: 448px;
|
|
97
|
+
--container-2: 688px;
|
|
98
|
+
--container-3: 880px;
|
|
99
|
+
--container-4: 1136px;
|
|
100
|
+
|
|
101
|
+
/* Viewport units */
|
|
102
|
+
--viewport-width: 100vw;
|
|
103
|
+
--viewport-height: 100vh;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Chi Design System - Radius Tokens
|
|
108
|
+
* Border radius tokens with scaling support
|
|
109
|
+
* Migrated from shape-corner tokens
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
:root {
|
|
113
|
+
/* Radius factor for variants (none/small/medium/large) */
|
|
114
|
+
--radius-factor: 1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[data-radius='none'] {
|
|
118
|
+
--radius-factor: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-radius='small'] {
|
|
122
|
+
--radius-factor: 0.75;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[data-radius='medium'] {
|
|
126
|
+
--radius-factor: 1;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[data-radius='large'] {
|
|
130
|
+
--radius-factor: 1.5;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.chi-themes {
|
|
134
|
+
/* Border radius scale with scaling and radius factor support */
|
|
135
|
+
--chi-shape-corner-none: 0;
|
|
136
|
+
--chi-shape-corner-extra-small: calc(4px * var(--scaling, 1) * var(--radius-factor, 1));
|
|
137
|
+
--chi-shape-corner-small: calc(8px * var(--scaling, 1) * var(--radius-factor, 1));
|
|
138
|
+
--chi-shape-corner-medium: calc(12px * var(--scaling, 1) * var(--radius-factor, 1));
|
|
139
|
+
--chi-shape-corner-large: calc(16px * var(--scaling, 1) * var(--radius-factor, 1));
|
|
140
|
+
--chi-shape-corner-extra-large: calc(28px * var(--scaling, 1) * var(--radius-factor, 1));
|
|
141
|
+
--chi-shape-corner-full: 9999px;
|
|
142
|
+
|
|
143
|
+
/* Radix-style aliases */
|
|
144
|
+
--radius-1: var(--chi-shape-corner-extra-small);
|
|
145
|
+
--radius-2: var(--chi-shape-corner-small);
|
|
146
|
+
--radius-3: var(--chi-shape-corner-medium);
|
|
147
|
+
--radius-4: var(--chi-shape-corner-large);
|
|
148
|
+
--radius-5: var(--chi-shape-corner-extra-large);
|
|
149
|
+
--radius-full: var(--chi-shape-corner-full);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Chi Design System - Shadow Tokens
|
|
154
|
+
* Elevation/shadow tokens for light and dark themes
|
|
155
|
+
* Migrated from elevation tokens
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
:root {
|
|
159
|
+
/* Light mode shadows (default) */
|
|
160
|
+
--chi-elevation-level0: none;
|
|
161
|
+
--chi-elevation-level1: 0px 1px 2px 0px rgb(0 0 0 / 30%),
|
|
162
|
+
0px 1px 3px 1px rgb(0 0 0 / 15%);
|
|
163
|
+
--chi-elevation-level2: 0px 1px 2px 0px rgb(0 0 0 / 30%),
|
|
164
|
+
0px 2px 6px 2px rgb(0 0 0 / 15%);
|
|
165
|
+
--chi-elevation-level3: 0px 1px 3px 0px rgb(0 0 0 / 30%),
|
|
166
|
+
0px 4px 8px 3px rgb(0 0 0 / 15%);
|
|
167
|
+
--chi-elevation-level4: 0px 2px 3px 0px rgb(0 0 0 / 30%),
|
|
168
|
+
0px 6px 10px 4px rgb(0 0 0 / 15%);
|
|
169
|
+
--chi-elevation-level5: 0px 4px 4px 0px rgb(0 0 0 / 30%),
|
|
170
|
+
0px 8px 12px 6px rgb(0 0 0 / 15%);
|
|
171
|
+
|
|
172
|
+
/* Radix-style aliases */
|
|
173
|
+
--shadow-1: var(--chi-elevation-level1);
|
|
174
|
+
--shadow-2: var(--chi-elevation-level2);
|
|
175
|
+
--shadow-3: var(--chi-elevation-level3);
|
|
176
|
+
--shadow-4: var(--chi-elevation-level4);
|
|
177
|
+
--shadow-5: var(--chi-elevation-level5);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Dark mode shadow adjustments */
|
|
181
|
+
|
|
182
|
+
@media (prefers-color-scheme: dark) {
|
|
183
|
+
:root {
|
|
184
|
+
/* Darker shadows with less opacity for dark mode */
|
|
185
|
+
--chi-elevation-level1: 0px 1px 2px 0px rgb(0 0 0 / 50%),
|
|
186
|
+
0px 1px 3px 1px rgb(0 0 0 / 25%);
|
|
187
|
+
--chi-elevation-level2: 0px 1px 2px 0px rgb(0 0 0 / 50%),
|
|
188
|
+
0px 2px 6px 2px rgb(0 0 0 / 25%);
|
|
189
|
+
--chi-elevation-level3: 0px 1px 3px 0px rgb(0 0 0 / 50%),
|
|
190
|
+
0px 4px 8px 3px rgb(0 0 0 / 25%);
|
|
191
|
+
--chi-elevation-level4: 0px 2px 3px 0px rgb(0 0 0 / 50%),
|
|
192
|
+
0px 6px 10px 4px rgb(0 0 0 / 25%);
|
|
193
|
+
--chi-elevation-level5: 0px 4px 4px 0px rgb(0 0 0 / 50%),
|
|
194
|
+
0px 8px 12px 6px rgb(0 0 0 / 25%);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
[data-theme='dark'] {
|
|
199
|
+
/* Explicit dark theme shadows */
|
|
200
|
+
--chi-elevation-level1: 0px 1px 2px 0px rgb(0 0 0 / 50%),
|
|
201
|
+
0px 1px 3px 1px rgb(0 0 0 / 25%);
|
|
202
|
+
--chi-elevation-level2: 0px 1px 2px 0px rgb(0 0 0 / 50%),
|
|
203
|
+
0px 2px 6px 2px rgb(0 0 0 / 25%);
|
|
204
|
+
--chi-elevation-level3: 0px 1px 3px 0px rgb(0 0 0 / 50%),
|
|
205
|
+
0px 4px 8px 3px rgb(0 0 0 / 25%);
|
|
206
|
+
--chi-elevation-level4: 0px 2px 3px 0px rgb(0 0 0 / 50%),
|
|
207
|
+
0px 6px 10px 4px rgb(0 0 0 / 25%);
|
|
208
|
+
--chi-elevation-level5: 0px 4px 4px 0px rgb(0 0 0 / 50%),
|
|
209
|
+
0px 8px 12px 6px rgb(0 0 0 / 25%);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Chi Design System - Typography Tokens
|
|
214
|
+
* Typography scale with scaling support
|
|
215
|
+
* Migrated from typescale tokens
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
:root {
|
|
219
|
+
/* Base font families - single source of truth */
|
|
220
|
+
--chi-font-family-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
221
|
+
--chi-font-family-serif: georgia, 'Times New Roman', serif;
|
|
222
|
+
--chi-font-family-mono: 'SF Mono', monaco, 'Courier New', monospace;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.chi-themes {
|
|
226
|
+
/* Font sizes with scaling support */
|
|
227
|
+
--font-size-1: calc(12px * var(--scaling, 1));
|
|
228
|
+
--font-size-2: calc(14px * var(--scaling, 1));
|
|
229
|
+
--font-size-3: calc(16px * var(--scaling, 1));
|
|
230
|
+
--font-size-4: calc(18px * var(--scaling, 1));
|
|
231
|
+
--font-size-5: calc(20px * var(--scaling, 1));
|
|
232
|
+
--font-size-6: calc(24px * var(--scaling, 1));
|
|
233
|
+
--font-size-7: calc(28px * var(--scaling, 1));
|
|
234
|
+
--font-size-8: calc(35px * var(--scaling, 1));
|
|
235
|
+
--font-size-9: calc(60px * var(--scaling, 1));
|
|
236
|
+
|
|
237
|
+
/* Font weights */
|
|
238
|
+
--font-weight-light: 300;
|
|
239
|
+
--font-weight-regular: 400;
|
|
240
|
+
--font-weight-medium: 500;
|
|
241
|
+
--font-weight-bold: 700;
|
|
242
|
+
|
|
243
|
+
/* Line heights with scaling support */
|
|
244
|
+
--line-height-1: calc(16px * var(--scaling, 1));
|
|
245
|
+
--line-height-2: calc(20px * var(--scaling, 1));
|
|
246
|
+
--line-height-3: calc(24px * var(--scaling, 1));
|
|
247
|
+
--line-height-4: calc(26px * var(--scaling, 1));
|
|
248
|
+
--line-height-5: calc(28px * var(--scaling, 1));
|
|
249
|
+
--line-height-6: calc(30px * var(--scaling, 1));
|
|
250
|
+
--line-height-7: calc(36px * var(--scaling, 1));
|
|
251
|
+
--line-height-8: calc(40px * var(--scaling, 1));
|
|
252
|
+
--line-height-9: calc(60px * var(--scaling, 1));
|
|
253
|
+
|
|
254
|
+
/* Letter spacing */
|
|
255
|
+
--letter-spacing-1: 0.0025em;
|
|
256
|
+
--letter-spacing-2: 0em;
|
|
257
|
+
--letter-spacing-3: -0.0025em;
|
|
258
|
+
|
|
259
|
+
/* Okja Legacy Typescale - preserving existing tokens for backwards compatibility */
|
|
260
|
+
--chi-typescale-label-medium-font: var(--chi-font-family-sans);
|
|
261
|
+
--chi-typescale-label-medium-size: calc(0.75rem * var(--scaling, 1));
|
|
262
|
+
--chi-typescale-label-medium-weight: 500;
|
|
263
|
+
--chi-typescale-label-medium-line-height: calc(1rem * var(--scaling, 1));
|
|
264
|
+
--chi-typescale-label-medium-tracking: calc(0.0063rem * var(--scaling, 1));
|
|
265
|
+
|
|
266
|
+
--chi-typescale-title-small-font: var(--chi-font-family-sans);
|
|
267
|
+
--chi-typescale-title-small-size: calc(0.875rem * var(--scaling, 1));
|
|
268
|
+
--chi-typescale-title-small-weight: 500;
|
|
269
|
+
--chi-typescale-title-small-line-height: calc(1.25rem * var(--scaling, 1));
|
|
270
|
+
--chi-typescale-title-small-tracking: 0;
|
|
271
|
+
|
|
272
|
+
--chi-typescale-body-medium-font: var(--chi-font-family-sans);
|
|
273
|
+
--chi-typescale-body-medium-size: calc(0.875rem * var(--scaling, 1));
|
|
274
|
+
--chi-typescale-body-medium-weight: 400;
|
|
275
|
+
--chi-typescale-body-medium-line-height: calc(1.25rem * var(--scaling, 1));
|
|
276
|
+
--chi-typescale-body-medium-tracking: 0;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Chi Design System - Motion Tokens
|
|
281
|
+
* Animation duration and easing tokens
|
|
282
|
+
* Migrated from motion tokens in system-tokens
|
|
283
|
+
*/
|
|
284
|
+
|
|
285
|
+
:root {
|
|
286
|
+
/* Durations */
|
|
287
|
+
--chi-motion-duration-short1: 50ms;
|
|
288
|
+
--chi-motion-duration-short2: 100ms;
|
|
289
|
+
--chi-motion-duration-short3: 150ms;
|
|
290
|
+
--chi-motion-duration-short4: 200ms;
|
|
291
|
+
--chi-motion-duration-medium1: 250ms;
|
|
292
|
+
--chi-motion-duration-medium2: 300ms;
|
|
293
|
+
--chi-motion-duration-medium3: 350ms;
|
|
294
|
+
--chi-motion-duration-medium4: 400ms;
|
|
295
|
+
--chi-motion-duration-long1: 450ms;
|
|
296
|
+
--chi-motion-duration-long2: 500ms;
|
|
297
|
+
--chi-motion-duration-long3: 550ms;
|
|
298
|
+
--chi-motion-duration-long4: 600ms;
|
|
299
|
+
--chi-motion-duration-extra-long1: 700ms;
|
|
300
|
+
--chi-motion-duration-extra-long2: 800ms;
|
|
301
|
+
--chi-motion-duration-extra-long3: 900ms;
|
|
302
|
+
--chi-motion-duration-extra-long4: 1000ms;
|
|
303
|
+
|
|
304
|
+
/* Simplified durations (Radix-style aliases) */
|
|
305
|
+
--duration-instant: 0ms;
|
|
306
|
+
--duration-fast: 100ms;
|
|
307
|
+
--duration-normal: 200ms;
|
|
308
|
+
--duration-slow: 300ms;
|
|
309
|
+
--duration-slower: 400ms;
|
|
310
|
+
|
|
311
|
+
/* Easing functions */
|
|
312
|
+
--chi-motion-easing-linear: linear;
|
|
313
|
+
--chi-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
314
|
+
--chi-motion-easing-standard-accelerate: cubic-bezier(0.3, 0, 1, 1);
|
|
315
|
+
--chi-motion-easing-standard-decelerate: cubic-bezier(0, 0, 0, 1);
|
|
316
|
+
--chi-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
|
|
317
|
+
--chi-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
|
|
318
|
+
--chi-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
|
|
319
|
+
|
|
320
|
+
/* Radix-style easing aliases */
|
|
321
|
+
--easing-linear: var(--chi-motion-easing-linear);
|
|
322
|
+
--easing-ease: ease;
|
|
323
|
+
--easing-ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
324
|
+
--easing-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
325
|
+
--easing-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
326
|
+
--easing-emphasized: var(--chi-motion-easing-emphasized);
|
|
327
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okja/chi-tokens",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Design tokens - colors, typography, spacing, radius, shadow, motion",
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "Chi Design System tokens - colors, typography, spacing, radius, shadow, motion",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -17,25 +17,30 @@
|
|
|
17
17
|
"provenance": true
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
|
-
".": "./
|
|
21
|
-
"./
|
|
22
|
-
"./
|
|
23
|
-
"./colors/
|
|
24
|
-
"./colors/grayscale.json": "./src/colors/grayscale.json",
|
|
25
|
-
"./colors/blue": "./src/colors/blue.json",
|
|
26
|
-
"./colors/blue.json": "./src/colors/blue.json",
|
|
27
|
-
"./colors/purple": "./src/colors/purple.json",
|
|
28
|
-
"./colors/purple.json": "./src/colors/purple.json",
|
|
20
|
+
"./tokens.css": "./dist/tokens.css",
|
|
21
|
+
"./colors/grayscale.css": "./dist/colors/grayscale.css",
|
|
22
|
+
"./colors/blue.css": "./dist/colors/blue.css",
|
|
23
|
+
"./colors/purple.css": "./dist/colors/purple.css",
|
|
29
24
|
"./package.json": "./package.json"
|
|
30
25
|
},
|
|
31
26
|
"files": [
|
|
32
|
-
"
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"sideEffects": [
|
|
30
|
+
"**/*.css"
|
|
33
31
|
],
|
|
34
32
|
"scripts": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
33
|
+
"build": "postcss src/base.css -o dist/tokens.css && postcss 'src/colors/*.css' --dir dist/colors --base src/colors",
|
|
34
|
+
"check": "stylelint 'src/**/*.css'",
|
|
35
|
+
"clean": "rm -rf dist"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"
|
|
38
|
+
"postcss": "^8.5.6",
|
|
39
|
+
"postcss-cli": "^11.0.1",
|
|
40
|
+
"postcss-import": "^16.1.1",
|
|
41
|
+
"postcss-nesting": "^13.0.2",
|
|
42
|
+
"postcss-custom-media": "^11.0.6",
|
|
43
|
+
"stylelint": "^16.12.0",
|
|
44
|
+
"stylelint-config-standard": "^37.0.0"
|
|
40
45
|
}
|
|
41
46
|
}
|
package/src/colors/blue.json
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "blue",
|
|
3
|
-
"light": {
|
|
4
|
-
"primary": "oklch(52% 0.14 250)",
|
|
5
|
-
"on-primary": "oklch(100% 0 0)",
|
|
6
|
-
"primary-container": "oklch(85% 0.08 250)",
|
|
7
|
-
"on-primary-container": "oklch(20% 0.14 250)",
|
|
8
|
-
"secondary": "oklch(50% 0.05 245)",
|
|
9
|
-
"on-secondary": "oklch(100% 0 0)",
|
|
10
|
-
"secondary-container": "oklch(88% 0.03 245)",
|
|
11
|
-
"on-secondary-container": "oklch(20% 0.05 245)",
|
|
12
|
-
"tertiary": "oklch(58% 0.12 195)",
|
|
13
|
-
"on-tertiary": "oklch(100% 0 0)",
|
|
14
|
-
"tertiary-container": "oklch(88% 0.06 195)",
|
|
15
|
-
"on-tertiary-container": "oklch(22% 0.12 195)",
|
|
16
|
-
"error": "oklch(66.4% 0.195 29)",
|
|
17
|
-
"on-error": "oklch(20% 0.05 29)",
|
|
18
|
-
"error-container": "oklch(92% 0.05 29)",
|
|
19
|
-
"on-error-container": "oklch(20% 0.05 29)",
|
|
20
|
-
"background": "oklch(99% 0.003 245)",
|
|
21
|
-
"on-background": "oklch(12% 0.003 245)",
|
|
22
|
-
"surface": "oklch(99% 0.003 245)",
|
|
23
|
-
"on-surface": "oklch(12% 0.003 245)",
|
|
24
|
-
"surface-variant": "oklch(92% 0.01 245)",
|
|
25
|
-
"on-surface-variant": "oklch(32% 0.02 245)",
|
|
26
|
-
"surface-0": "oklch(100% 0 0)",
|
|
27
|
-
"surface-1": "oklch(98% 0.005 245)",
|
|
28
|
-
"surface-2": "oklch(96% 0.005 245)",
|
|
29
|
-
"surface-3": "oklch(94% 0.005 245)",
|
|
30
|
-
"surface-4": "oklch(92% 0.005 245)",
|
|
31
|
-
"surface-5": "oklch(92% 0.005 245)",
|
|
32
|
-
"surface-container": "oklch(96% 0.005 245)",
|
|
33
|
-
"surface-container-low": "oklch(98% 0.003 245)",
|
|
34
|
-
"surface-container-high": "oklch(94% 0.005 245)",
|
|
35
|
-
"surface-container-highest": "oklch(92% 0.005 245)",
|
|
36
|
-
"inverse-surface": "oklch(20% 0 0)",
|
|
37
|
-
"inverse-on-surface": "oklch(96% 0.003 245)",
|
|
38
|
-
"inverse-primary": "oklch(80% 0.08 250)",
|
|
39
|
-
"outline": "oklch(48% 0.01 245)",
|
|
40
|
-
"outline-variant": "oklch(92% 0.01 245)",
|
|
41
|
-
"divider": "oklch(48% 0.01 245)",
|
|
42
|
-
"scrim": "oklch(0% 0 0)",
|
|
43
|
-
"shadow": "oklch(0% 0 0)"
|
|
44
|
-
},
|
|
45
|
-
"dark": {
|
|
46
|
-
"primary": "oklch(75% 0.1 250)",
|
|
47
|
-
"on-primary": "oklch(15% 0.14 250)",
|
|
48
|
-
"primary-container": "oklch(30% 0.14 250)",
|
|
49
|
-
"on-primary-container": "oklch(88% 0.08 250)",
|
|
50
|
-
"secondary": "oklch(68% 0.04 245)",
|
|
51
|
-
"on-secondary": "oklch(12% 0.05 245)",
|
|
52
|
-
"secondary-container": "oklch(28% 0.05 245)",
|
|
53
|
-
"on-secondary-container": "oklch(88% 0.03 245)",
|
|
54
|
-
"tertiary": "oklch(72% 0.09 195)",
|
|
55
|
-
"on-tertiary": "oklch(18% 0.12 195)",
|
|
56
|
-
"tertiary-container": "oklch(32% 0.12 195)",
|
|
57
|
-
"on-tertiary-container": "oklch(90% 0.06 195)",
|
|
58
|
-
"error": "oklch(68.5% 0.195 29)",
|
|
59
|
-
"on-error": "oklch(20% 0.05 29)",
|
|
60
|
-
"error-container": "oklch(66.4% 0.195 29)",
|
|
61
|
-
"on-error-container": "oklch(92% 0.05 29)",
|
|
62
|
-
"background": "oklch(9% 0.003 245)",
|
|
63
|
-
"on-background": "oklch(92% 0.003 245)",
|
|
64
|
-
"surface": "oklch(7% 0.003 245)",
|
|
65
|
-
"on-surface": "oklch(92% 0.003 245)",
|
|
66
|
-
"surface-variant": "oklch(30% 0.02 245)",
|
|
67
|
-
"on-surface-variant": "oklch(82% 0.01 245)",
|
|
68
|
-
"surface-0": "oklch(7% 0.003 245)",
|
|
69
|
-
"surface-1": "oklch(12% 0.003 245)",
|
|
70
|
-
"surface-2": "oklch(15% 0.003 245)",
|
|
71
|
-
"surface-3": "oklch(18% 0.003 245)",
|
|
72
|
-
"surface-4": "oklch(22% 0.003 245)",
|
|
73
|
-
"surface-5": "oklch(22% 0.003 245)",
|
|
74
|
-
"surface-container": "oklch(15% 0.003 245)",
|
|
75
|
-
"surface-container-low": "oklch(12% 0.003 245)",
|
|
76
|
-
"surface-container-high": "oklch(18% 0.003 245)",
|
|
77
|
-
"surface-container-highest": "oklch(22% 0.003 245)",
|
|
78
|
-
"inverse-surface": "oklch(92% 0.003 245)",
|
|
79
|
-
"inverse-on-surface": "oklch(20% 0.003 245)",
|
|
80
|
-
"inverse-primary": "oklch(52% 0.14 250)",
|
|
81
|
-
"outline": "oklch(60% 0.01 245)",
|
|
82
|
-
"outline-variant": "oklch(30% 0.02 245)",
|
|
83
|
-
"divider": "oklch(60% 0.01 245)"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "grayscale",
|
|
3
|
-
"light": {
|
|
4
|
-
"primary": "oklch(49.4% 0.163 264.05)",
|
|
5
|
-
"on-primary": "oklch(100% 0 0)",
|
|
6
|
-
"primary-container": "oklch(79.7% 0.105 264.05)",
|
|
7
|
-
"on-primary-container": "oklch(20% 0.163 264.05)",
|
|
8
|
-
"secondary": "oklch(61.8% 0.15 314.05)",
|
|
9
|
-
"on-secondary": "oklch(100% 0 0)",
|
|
10
|
-
"secondary-container": "oklch(85.1% 0.08 314.05)",
|
|
11
|
-
"on-secondary-container": "oklch(25.1% 0.15 314.05)",
|
|
12
|
-
"tertiary": "oklch(70.4% 0.15 29.23)",
|
|
13
|
-
"on-tertiary": "oklch(100% 0 0)",
|
|
14
|
-
"tertiary-container": "oklch(90.2% 0.08 29.23)",
|
|
15
|
-
"on-tertiary-container": "oklch(30.2% 0.15 29.23)",
|
|
16
|
-
"error": "oklch(62.8% 0.258 29.23)",
|
|
17
|
-
"on-error": "oklch(100% 0 0)",
|
|
18
|
-
"error-container": "oklch(90.2% 0.08 29.23)",
|
|
19
|
-
"on-error-container": "oklch(30.2% 0.15 29.23)",
|
|
20
|
-
"surface": "oklch(99.1% 0.005 264.05)",
|
|
21
|
-
"on-surface": "oklch(20% 0.005 264.05)",
|
|
22
|
-
"surface-variant": "oklch(92.5% 0.02 264.05)",
|
|
23
|
-
"on-surface-variant": "oklch(30% 0.02 264.05)",
|
|
24
|
-
"surface-container": "oklch(96.1% 0.01 264.05)",
|
|
25
|
-
"surface-container-low": "oklch(98.1% 0.005 264.05)",
|
|
26
|
-
"surface-container-high": "oklch(94.1% 0.01 264.05)",
|
|
27
|
-
"surface-container-highest": "oklch(92.1% 0.01 264.05)",
|
|
28
|
-
"surface-1": "oklch(97.1% 0.01 264.05)",
|
|
29
|
-
"surface-3": "oklch(92.1% 0.01 264.05)",
|
|
30
|
-
"surface-4": "oklch(91.1% 0.01 264.05)",
|
|
31
|
-
"surface-5": "oklch(90.1% 0.01 264.05)",
|
|
32
|
-
"outline": "oklch(50% 0.02 264.05)",
|
|
33
|
-
"outline-variant": "oklch(80% 0.02 264.05)",
|
|
34
|
-
"inverse-surface": "oklch(25% 0.01 264.05)",
|
|
35
|
-
"inverse-on-surface": "oklch(95% 0.005 264.05)",
|
|
36
|
-
"inverse-primary": "oklch(79.7% 0.105 264.05)",
|
|
37
|
-
"scrim": "oklch(0% 0 0)",
|
|
38
|
-
"shadow": "oklch(0% 0 0)"
|
|
39
|
-
},
|
|
40
|
-
"dark": {
|
|
41
|
-
"primary": "oklch(79.7% 0.105 264.05)",
|
|
42
|
-
"on-primary": "oklch(30% 0.163 264.05)",
|
|
43
|
-
"primary-container": "oklch(35% 0.163 264.05)",
|
|
44
|
-
"on-primary-container": "oklch(90% 0.105 264.05)",
|
|
45
|
-
"secondary": "oklch(75.1% 0.08 314.05)",
|
|
46
|
-
"on-secondary": "oklch(35.1% 0.15 314.05)",
|
|
47
|
-
"secondary-container": "oklch(40.1% 0.15 314.05)",
|
|
48
|
-
"on-secondary-container": "oklch(90.1% 0.08 314.05)",
|
|
49
|
-
"tertiary": "oklch(80.2% 0.08 29.23)",
|
|
50
|
-
"on-tertiary": "oklch(40.2% 0.15 29.23)",
|
|
51
|
-
"tertiary-container": "oklch(45.2% 0.15 29.23)",
|
|
52
|
-
"on-tertiary-container": "oklch(95.2% 0.08 29.23)",
|
|
53
|
-
"error": "oklch(80.2% 0.15 29.23)",
|
|
54
|
-
"on-error": "oklch(40.2% 0.258 29.23)",
|
|
55
|
-
"error-container": "oklch(45.2% 0.258 29.23)",
|
|
56
|
-
"on-error-container": "oklch(95.2% 0.15 29.23)",
|
|
57
|
-
"surface": "oklch(15% 0.005 264.05)",
|
|
58
|
-
"on-surface": "oklch(90% 0.005 264.05)",
|
|
59
|
-
"surface-variant": "oklch(25% 0.02 264.05)",
|
|
60
|
-
"on-surface-variant": "oklch(75% 0.02 264.05)",
|
|
61
|
-
"surface-container": "oklch(20% 0.01 264.05)",
|
|
62
|
-
"surface-container-low": "oklch(17% 0.005 264.05)",
|
|
63
|
-
"surface-container-high": "oklch(25% 0.01 264.05)",
|
|
64
|
-
"surface-container-highest": "oklch(30% 0.01 264.05)",
|
|
65
|
-
"surface-1": "oklch(18% 0.01 264.05)",
|
|
66
|
-
"surface-2": "oklch(21% 0.01 264.05)",
|
|
67
|
-
"surface-3": "oklch(24% 0.01 264.05)",
|
|
68
|
-
"surface-4": "oklch(26% 0.01 264.05)",
|
|
69
|
-
"surface-5": "oklch(28% 0.01 264.05)",
|
|
70
|
-
"outline": "oklch(60% 0.02 264.05)",
|
|
71
|
-
"outline-variant": "oklch(35% 0.02 264.05)",
|
|
72
|
-
"inverse-surface": "oklch(90% 0.005 264.05)",
|
|
73
|
-
"inverse-on-surface": "oklch(25% 0.01 264.05)",
|
|
74
|
-
"inverse-primary": "oklch(49.4% 0.163 264.05)"
|
|
75
|
-
}
|
|
76
|
-
}
|
package/src/colors/purple.json
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "purple",
|
|
3
|
-
"light": {
|
|
4
|
-
"primary": "oklch(49.4% 0.163 264)",
|
|
5
|
-
"on-primary": "oklch(100% 0 0)",
|
|
6
|
-
"primary-container": "oklch(79.7% 0.105 264)",
|
|
7
|
-
"on-primary-container": "oklch(20% 0.163 264)",
|
|
8
|
-
"secondary": "oklch(43.8% 0.029 270)",
|
|
9
|
-
"on-secondary": "oklch(100% 0 0)",
|
|
10
|
-
"secondary-container": "oklch(88.5% 0.029 270)",
|
|
11
|
-
"on-secondary-container": "oklch(15.8% 0.029 270)",
|
|
12
|
-
"tertiary": "oklch(60% 0.12 320)",
|
|
13
|
-
"on-tertiary": "oklch(100% 0 0)",
|
|
14
|
-
"tertiary-container": "oklch(90% 0.08 320)",
|
|
15
|
-
"on-tertiary-container": "oklch(20% 0.12 320)",
|
|
16
|
-
"error": "oklch(66.4% 0.195 29)",
|
|
17
|
-
"on-error": "oklch(20% 0.05 29)",
|
|
18
|
-
"error-container": "oklch(92% 0.05 29)",
|
|
19
|
-
"on-error-container": "oklch(20% 0.05 29)",
|
|
20
|
-
"background": "oklch(99% 0.005 300)",
|
|
21
|
-
"on-background": "oklch(12.5% 0.005 300)",
|
|
22
|
-
"surface": "oklch(99% 0.005 300)",
|
|
23
|
-
"on-surface": "oklch(12.5% 0.005 300)",
|
|
24
|
-
"surface-variant": "oklch(91.8% 0.015 300)",
|
|
25
|
-
"on-surface-variant": "oklch(33.5% 0.025 270)",
|
|
26
|
-
"surface-0": "oklch(100% 0 0)",
|
|
27
|
-
"surface-1": "oklch(97.5% 0.01 300)",
|
|
28
|
-
"surface-2": "oklch(95.5% 0.01 300)",
|
|
29
|
-
"surface-3": "oklch(93.5% 0.01 300)",
|
|
30
|
-
"surface-4": "oklch(91.5% 0.01 300)",
|
|
31
|
-
"surface-5": "oklch(91.5% 0.01 300)",
|
|
32
|
-
"surface-container": "oklch(95.5% 0.01 300)",
|
|
33
|
-
"surface-container-low": "oklch(97.5% 0.005 300)",
|
|
34
|
-
"surface-container-high": "oklch(93.5% 0.01 300)",
|
|
35
|
-
"surface-container-highest": "oklch(91.5% 0.01 300)",
|
|
36
|
-
"inverse-surface": "oklch(22% 0 0)",
|
|
37
|
-
"inverse-on-surface": "oklch(96% 0.005 300)",
|
|
38
|
-
"inverse-primary": "oklch(79.7% 0.105 264)",
|
|
39
|
-
"outline": "oklch(50% 0.01 300)",
|
|
40
|
-
"outline-variant": "oklch(91.8% 0.015 300)",
|
|
41
|
-
"divider": "oklch(50% 0.01 300)",
|
|
42
|
-
"scrim": "oklch(0% 0 0)",
|
|
43
|
-
"shadow": "oklch(0% 0 0)"
|
|
44
|
-
},
|
|
45
|
-
"dark": {
|
|
46
|
-
"primary": "oklch(79.7% 0.105 264)",
|
|
47
|
-
"on-primary": "oklch(15% 0.163 264)",
|
|
48
|
-
"primary-container": "oklch(44.5% 0.163 264)",
|
|
49
|
-
"on-primary-container": "oklch(91% 0.105 264)",
|
|
50
|
-
"secondary": "oklch(67.5% 0.029 270)",
|
|
51
|
-
"on-secondary": "oklch(12% 0.029 270)",
|
|
52
|
-
"secondary-container": "oklch(32% 0.029 270)",
|
|
53
|
-
"on-secondary-container": "oklch(90% 0.029 270)",
|
|
54
|
-
"tertiary": "oklch(70% 0.08 320)",
|
|
55
|
-
"on-tertiary": "oklch(25% 0.12 320)",
|
|
56
|
-
"tertiary-container": "oklch(38% 0.08 320)",
|
|
57
|
-
"on-tertiary-container": "oklch(93% 0.08 320)",
|
|
58
|
-
"error": "oklch(68.5% 0.195 29)",
|
|
59
|
-
"on-error": "oklch(20% 0.05 29)",
|
|
60
|
-
"error-container": "oklch(66.4% 0.195 29)",
|
|
61
|
-
"on-error-container": "oklch(92% 0.05 29)",
|
|
62
|
-
"background": "oklch(9.5% 0.005 300)",
|
|
63
|
-
"on-background": "oklch(91.5% 0.005 300)",
|
|
64
|
-
"surface": "oklch(7% 0.005 300)",
|
|
65
|
-
"on-surface": "oklch(91.5% 0.005 300)",
|
|
66
|
-
"surface-variant": "oklch(33.5% 0.025 270)",
|
|
67
|
-
"on-surface-variant": "oklch(82% 0.015 300)",
|
|
68
|
-
"surface-0": "oklch(7% 0.005 300)",
|
|
69
|
-
"surface-1": "oklch(12.5% 0.005 300)",
|
|
70
|
-
"surface-2": "oklch(15% 0.005 300)",
|
|
71
|
-
"surface-3": "oklch(19% 0.005 300)",
|
|
72
|
-
"surface-4": "oklch(24% 0.005 300)",
|
|
73
|
-
"surface-5": "oklch(24% 0.005 300)",
|
|
74
|
-
"surface-container": "oklch(15% 0.005 300)",
|
|
75
|
-
"surface-container-low": "oklch(12.5% 0.005 300)",
|
|
76
|
-
"surface-container-high": "oklch(19% 0.005 300)",
|
|
77
|
-
"surface-container-highest": "oklch(24% 0.005 300)",
|
|
78
|
-
"inverse-surface": "oklch(91.5% 0.005 300)",
|
|
79
|
-
"inverse-on-surface": "oklch(22.5% 0.005 300)",
|
|
80
|
-
"inverse-primary": "oklch(49.4% 0.163 264)",
|
|
81
|
-
"outline": "oklch(61% 0.01 300)",
|
|
82
|
-
"outline-variant": "oklch(33.5% 0.025 270)",
|
|
83
|
-
"divider": "oklch(61% 0.01 300)"
|
|
84
|
-
}
|
|
85
|
-
}
|
package/src/tokens.json
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"font-family": {
|
|
3
|
-
"sans": "system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
4
|
-
"serif": "georgia, 'Times New Roman', serif",
|
|
5
|
-
"mono": "'SF Mono', monaco, 'Courier New', monospace"
|
|
6
|
-
},
|
|
7
|
-
"font-size": {
|
|
8
|
-
"1": "12px",
|
|
9
|
-
"2": "14px",
|
|
10
|
-
"3": "16px",
|
|
11
|
-
"4": "18px",
|
|
12
|
-
"5": "20px",
|
|
13
|
-
"6": "24px",
|
|
14
|
-
"7": "28px",
|
|
15
|
-
"8": "35px",
|
|
16
|
-
"9": "60px"
|
|
17
|
-
},
|
|
18
|
-
"font-weight": {
|
|
19
|
-
"light": "300",
|
|
20
|
-
"regular": "400",
|
|
21
|
-
"medium": "500",
|
|
22
|
-
"bold": "700"
|
|
23
|
-
},
|
|
24
|
-
"line-height": {
|
|
25
|
-
"1": "16px",
|
|
26
|
-
"2": "20px",
|
|
27
|
-
"3": "24px",
|
|
28
|
-
"4": "26px",
|
|
29
|
-
"5": "28px",
|
|
30
|
-
"6": "30px",
|
|
31
|
-
"7": "36px",
|
|
32
|
-
"8": "40px",
|
|
33
|
-
"9": "60px"
|
|
34
|
-
},
|
|
35
|
-
"letter-spacing": {
|
|
36
|
-
"1": "0.0025em",
|
|
37
|
-
"2": "0",
|
|
38
|
-
"3": "-0.0025em"
|
|
39
|
-
},
|
|
40
|
-
"spacing": {
|
|
41
|
-
"1": "4px",
|
|
42
|
-
"2": "8px",
|
|
43
|
-
"3": "12px",
|
|
44
|
-
"4": "16px",
|
|
45
|
-
"5": "24px",
|
|
46
|
-
"6": "32px",
|
|
47
|
-
"7": "40px",
|
|
48
|
-
"8": "48px",
|
|
49
|
-
"9": "64px"
|
|
50
|
-
},
|
|
51
|
-
"radius": {
|
|
52
|
-
"none": "0",
|
|
53
|
-
"xs": "4px",
|
|
54
|
-
"sm": "8px",
|
|
55
|
-
"md": "12px",
|
|
56
|
-
"lg": "16px",
|
|
57
|
-
"xl": "28px",
|
|
58
|
-
"full": "9999px"
|
|
59
|
-
},
|
|
60
|
-
"shadow": {
|
|
61
|
-
"light": {
|
|
62
|
-
"none": "none",
|
|
63
|
-
"1": "0px 1px 2px 0px rgb(0 0 0 / 30%), 0px 1px 3px 1px rgb(0 0 0 / 15%)",
|
|
64
|
-
"2": "0px 1px 2px 0px rgb(0 0 0 / 30%), 0px 2px 6px 2px rgb(0 0 0 / 15%)",
|
|
65
|
-
"3": "0px 1px 3px 0px rgb(0 0 0 / 30%), 0px 4px 8px 3px rgb(0 0 0 / 15%)",
|
|
66
|
-
"4": "0px 2px 3px 0px rgb(0 0 0 / 30%), 0px 6px 10px 4px rgb(0 0 0 / 15%)",
|
|
67
|
-
"5": "0px 4px 4px 0px rgb(0 0 0 / 30%), 0px 8px 12px 6px rgb(0 0 0 / 15%)"
|
|
68
|
-
},
|
|
69
|
-
"dark": {
|
|
70
|
-
"none": "none",
|
|
71
|
-
"1": "0px 1px 2px 0px rgb(0 0 0 / 50%), 0px 1px 3px 1px rgb(0 0 0 / 25%)",
|
|
72
|
-
"2": "0px 1px 2px 0px rgb(0 0 0 / 50%), 0px 2px 6px 2px rgb(0 0 0 / 25%)",
|
|
73
|
-
"3": "0px 1px 3px 0px rgb(0 0 0 / 50%), 0px 4px 8px 3px rgb(0 0 0 / 25%)",
|
|
74
|
-
"4": "0px 2px 3px 0px rgb(0 0 0 / 50%), 0px 6px 10px 4px rgb(0 0 0 / 25%)",
|
|
75
|
-
"5": "0px 4px 4px 0px rgb(0 0 0 / 50%), 0px 8px 12px 6px rgb(0 0 0 / 25%)"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"duration": {
|
|
79
|
-
"instant": "0ms",
|
|
80
|
-
"short1": "50ms",
|
|
81
|
-
"short2": "100ms",
|
|
82
|
-
"short3": "150ms",
|
|
83
|
-
"short4": "200ms",
|
|
84
|
-
"medium1": "250ms",
|
|
85
|
-
"medium2": "300ms",
|
|
86
|
-
"medium3": "350ms",
|
|
87
|
-
"medium4": "400ms",
|
|
88
|
-
"long1": "450ms",
|
|
89
|
-
"long2": "500ms",
|
|
90
|
-
"long3": "550ms",
|
|
91
|
-
"long4": "600ms",
|
|
92
|
-
"extra-long1": "700ms",
|
|
93
|
-
"extra-long2": "800ms",
|
|
94
|
-
"extra-long3": "900ms",
|
|
95
|
-
"extra-long4": "1000ms"
|
|
96
|
-
},
|
|
97
|
-
"easing": {
|
|
98
|
-
"linear": "linear",
|
|
99
|
-
"ease": "ease",
|
|
100
|
-
"ease-in": "cubic-bezier(0.4, 0, 1, 1)",
|
|
101
|
-
"ease-out": "cubic-bezier(0, 0, 0.2, 1)",
|
|
102
|
-
"ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
103
|
-
"standard": "cubic-bezier(0.2, 0, 0, 1)",
|
|
104
|
-
"standard-accelerate": "cubic-bezier(0.3, 0, 1, 1)",
|
|
105
|
-
"standard-decelerate": "cubic-bezier(0, 0, 0, 1)",
|
|
106
|
-
"emphasized": "cubic-bezier(0.2, 0, 0, 1)",
|
|
107
|
-
"emphasized-accelerate": "cubic-bezier(0.3, 0, 0.8, 0.15)",
|
|
108
|
-
"emphasized-decelerate": "cubic-bezier(0.05, 0.7, 0.1, 1)"
|
|
109
|
-
},
|
|
110
|
-
"container": {
|
|
111
|
-
"1": "448px",
|
|
112
|
-
"2": "688px",
|
|
113
|
-
"3": "880px",
|
|
114
|
-
"4": "1136px"
|
|
115
|
-
},
|
|
116
|
-
"icon-size": {
|
|
117
|
-
"sm": "18px",
|
|
118
|
-
"md": "24px",
|
|
119
|
-
"lg": "36px",
|
|
120
|
-
"xl": "48px"
|
|
121
|
-
},
|
|
122
|
-
"scaling": {
|
|
123
|
-
"90": 0.9,
|
|
124
|
-
"95": 0.95,
|
|
125
|
-
"100": 1,
|
|
126
|
-
"105": 1.05,
|
|
127
|
-
"110": 1.1
|
|
128
|
-
},
|
|
129
|
-
"radius-factor": {
|
|
130
|
-
"none": 0,
|
|
131
|
-
"small": 0.75,
|
|
132
|
-
"medium": 1,
|
|
133
|
-
"large": 1.5
|
|
134
|
-
},
|
|
135
|
-
"cursor": {
|
|
136
|
-
"default": "default",
|
|
137
|
-
"pointer": "pointer",
|
|
138
|
-
"not-allowed": "not-allowed",
|
|
139
|
-
"text": "text",
|
|
140
|
-
"move": "move",
|
|
141
|
-
"grab": "grab",
|
|
142
|
-
"grabbing": "grabbing"
|
|
143
|
-
}
|
|
144
|
-
}
|