@juice-js/design-tokens 3.0.0-alpha.1 → 3.0.0-alpha.3
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/MAPPING.md +84 -18
- package/README.md +33 -0
- package/css/juice.css +92 -18
- package/package.json +2 -2
- package/scss/_tokens.scss +92 -18
- package/tailwind/theme.css +15 -0
package/MAPPING.md
CHANGED
|
@@ -22,9 +22,11 @@ Generated by `build.mjs`; do not edit. Layers: Tier 1 raw, Tier 2 system, Tier 3
|
|
|
22
22
|
| `--juice-color-text-subtle` | `var(--juice-ref-neutral-500)` | `var(--juice-ref-neutral-400)` |
|
|
23
23
|
| `--juice-color-text-on-accent` | `#ffffff` | `var(--juice-ref-neutral-950)` |
|
|
24
24
|
| `--juice-color-accent` | `var(--juice-ref-accent-600)` | `var(--juice-ref-accent-400)` |
|
|
25
|
-
| `--juice-color-accent-hover` | `var(--juice-ref-accent-700)` | `var(--juice-ref-accent-
|
|
26
|
-
| `--juice-color-accent-active` | `var(--juice-ref-accent-800)` | `var(--juice-ref-accent-
|
|
25
|
+
| `--juice-color-accent-hover` | `var(--juice-ref-accent-700)` | `var(--juice-ref-accent-350)` |
|
|
26
|
+
| `--juice-color-accent-active` | `var(--juice-ref-accent-800)` | `var(--juice-ref-accent-450)` |
|
|
27
|
+
| `--juice-color-accent-hover-subtle` | `var(--juice-ref-accent-700)` | `var(--juice-ref-accent-350)` |
|
|
27
28
|
| `--juice-color-accent-subtle` | `var(--juice-ref-accent-100)` | `var(--juice-ref-accent-950)` |
|
|
29
|
+
| `--juice-color-accent-emphasis` | `var(--juice-ref-accent-800)` | `var(--juice-ref-accent-200)` |
|
|
28
30
|
| `--juice-color-focus-ring` | `var(--juice-ref-accent-600)` | `var(--juice-ref-accent-400)` |
|
|
29
31
|
| `--juice-color-ok` | `var(--juice-ref-green-700)` | `var(--juice-ref-green-400)` |
|
|
30
32
|
| `--juice-color-warn` | `var(--juice-ref-amber-700)` | `var(--juice-ref-amber-400)` |
|
|
@@ -36,6 +38,19 @@ Generated by `build.mjs`; do not edit. Layers: Tier 1 raw, Tier 2 system, Tier 3
|
|
|
36
38
|
| `--juice-color-info-subtle` | `var(--juice-ref-blue-50)` | `var(--juice-ref-blue-950)` |
|
|
37
39
|
| `--juice-color-disabled-bg` | `var(--juice-ref-neutral-100)` | `var(--juice-ref-neutral-800)` |
|
|
38
40
|
| `--juice-color-disabled-text` | `var(--juice-ref-neutral-500)` | `var(--juice-ref-neutral-500)` |
|
|
41
|
+
| `--juice-color-control-border` | `#8e8e97` | `#76767f` |
|
|
42
|
+
| `--juice-color-disabled-fill` | `var(--juice-ref-neutral-400)` | `var(--juice-ref-neutral-600)` |
|
|
43
|
+
| `--juice-color-disabled-on-fill` | `#ffffff` | `var(--juice-ref-neutral-300)` |
|
|
44
|
+
| `--juice-color-control-hover-bg` | `var(--juice-ref-neutral-100)` | `var(--juice-ref-neutral-800)` |
|
|
45
|
+
| `--juice-color-control-active-bg` | `var(--juice-ref-neutral-200)` | `var(--juice-ref-neutral-700)` |
|
|
46
|
+
| `--juice-color-control-border-hover` | `var(--juice-ref-neutral-500)` | `var(--juice-ref-neutral-400)` |
|
|
47
|
+
| `--juice-color-bad-hover` | `var(--juice-ref-red-800)` | `#fa8b8b` |
|
|
48
|
+
| `--juice-color-bad-active` | `var(--juice-ref-red-900)` | `#f45b5b` |
|
|
49
|
+
| `--juice-color-focus-halo` | `var(--juice-ref-accent-200)` | `var(--juice-ref-accent-900)` |
|
|
50
|
+
| `--juice-color-bad-halo` | `var(--juice-ref-red-200)` | `var(--juice-ref-red-900)` |
|
|
51
|
+
| `--juice-color-warn-halo` | `var(--juice-ref-amber-200)` | `var(--juice-ref-amber-900)` |
|
|
52
|
+
| `--juice-color-ok-halo` | `var(--juice-ref-green-200)` | `var(--juice-ref-green-900)` |
|
|
53
|
+
| `--juice-color-item-hover` | `var(--juice-ref-neutral-100)` | `var(--juice-ref-neutral-700)` |
|
|
39
54
|
| `--juice-shadow-color` | `rgb(9 9 11 / 0.1)` | `rgb(0 0 0 / 0.5)` |
|
|
40
55
|
| `--juice-shadow-ring` | `rgb(9 9 11 / 0.06)` | `rgb(255 255 255 / 0.08)` |
|
|
41
56
|
|
|
@@ -110,12 +125,17 @@ Generated by `build.mjs`; do not edit. Layers: Tier 1 raw, Tier 2 system, Tier 3
|
|
|
110
125
|
| `--juice-button-active-bg` | `var(--juice-color-accent-active)` |
|
|
111
126
|
| `--juice-button-secondary-bg` | `var(--juice-color-surface)` |
|
|
112
127
|
| `--juice-button-secondary-fg` | `var(--juice-color-text)` |
|
|
113
|
-
| `--juice-button-secondary-border` | `var(--juice-color-border
|
|
114
|
-
| `--juice-button-secondary-hover-bg` | `var(--juice-color-
|
|
128
|
+
| `--juice-button-secondary-border` | `var(--juice-color-control-border)` |
|
|
129
|
+
| `--juice-button-secondary-hover-bg` | `var(--juice-color-control-hover-bg)` |
|
|
130
|
+
| `--juice-button-secondary-hover-border` | `var(--juice-color-control-border-hover)` |
|
|
131
|
+
| `--juice-button-secondary-active-bg` | `var(--juice-color-control-active-bg)` |
|
|
115
132
|
| `--juice-button-ghost-fg` | `var(--juice-color-text)` |
|
|
116
|
-
| `--juice-button-ghost-hover-bg` | `var(--juice-color-
|
|
133
|
+
| `--juice-button-ghost-hover-bg` | `var(--juice-color-control-hover-bg)` |
|
|
134
|
+
| `--juice-button-ghost-active-bg` | `var(--juice-color-control-active-bg)` |
|
|
117
135
|
| `--juice-button-danger-bg` | `var(--juice-color-bad)` |
|
|
118
136
|
| `--juice-button-danger-fg` | `var(--juice-color-text-on-accent)` |
|
|
137
|
+
| `--juice-button-danger-hover-bg` | `var(--juice-color-bad-hover)` |
|
|
138
|
+
| `--juice-button-danger-active-bg` | `var(--juice-color-bad-active)` |
|
|
119
139
|
| `--juice-button-disabled-bg` | `var(--juice-color-disabled-bg)` |
|
|
120
140
|
| `--juice-button-disabled-fg` | `var(--juice-color-disabled-text)` |
|
|
121
141
|
| `--juice-button-radius` | `var(--juice-radius-md)` |
|
|
@@ -124,39 +144,85 @@ Generated by `build.mjs`; do not edit. Layers: Tier 1 raw, Tier 2 system, Tier 3
|
|
|
124
144
|
| `--juice-button-focus-ring` | `var(--juice-color-focus-ring)` |
|
|
125
145
|
| `--juice-field-bg` | `var(--juice-color-surface)` |
|
|
126
146
|
| `--juice-field-fg` | `var(--juice-color-text)` |
|
|
127
|
-
| `--juice-field-border` | `var(--juice-color-border
|
|
128
|
-
| `--juice-field-border-hover` | `var(--juice-color-
|
|
129
|
-
| `--juice-field-border-focus` | `var(--juice-color-
|
|
147
|
+
| `--juice-field-border` | `var(--juice-color-control-border)` |
|
|
148
|
+
| `--juice-field-border-hover` | `var(--juice-color-control-border-hover)` |
|
|
149
|
+
| `--juice-field-border-focus` | `var(--juice-color-accent)` |
|
|
150
|
+
| `--juice-field-focus-halo` | `var(--juice-color-focus-halo)` |
|
|
130
151
|
| `--juice-field-placeholder` | `var(--juice-color-text-subtle)` |
|
|
152
|
+
| `--juice-field-readonly-bg` | `var(--juice-color-bg)` |
|
|
153
|
+
| `--juice-field-readonly-border` | `var(--juice-color-border)` |
|
|
154
|
+
| `--juice-field-disabled-bg` | `var(--juice-color-disabled-bg)` |
|
|
155
|
+
| `--juice-field-disabled-border` | `var(--juice-color-border)` |
|
|
156
|
+
| `--juice-field-disabled-fg` | `var(--juice-color-disabled-text)` |
|
|
131
157
|
| `--juice-field-label` | `var(--juice-color-text)` |
|
|
132
158
|
| `--juice-field-hint` | `var(--juice-color-text-muted)` |
|
|
133
159
|
| `--juice-field-error` | `var(--juice-color-bad)` |
|
|
134
|
-
| `--juice-field-
|
|
135
|
-
| `--juice-field-
|
|
160
|
+
| `--juice-field-warning` | `var(--juice-color-warn)` |
|
|
161
|
+
| `--juice-field-success` | `var(--juice-color-ok)` |
|
|
162
|
+
| `--juice-field-error-halo` | `var(--juice-color-bad-halo)` |
|
|
163
|
+
| `--juice-field-warning-halo` | `var(--juice-color-warn-halo)` |
|
|
164
|
+
| `--juice-field-success-halo` | `var(--juice-color-ok-halo)` |
|
|
165
|
+
| `--juice-field-counter-fg` | `var(--juice-color-text-subtle)` |
|
|
136
166
|
| `--juice-field-radius` | `var(--juice-radius-md)` |
|
|
137
167
|
| `--juice-field-height` | `var(--juice-control-height-md)` |
|
|
138
168
|
| `--juice-field-padding-x` | `var(--juice-control-padding-x)` |
|
|
169
|
+
| `--juice-field-textarea-padding-y` | `6px` |
|
|
170
|
+
| `--juice-field-textarea-min-height` | `5rem` |
|
|
171
|
+
| `--juice-field-font-size` | `var(--juice-text-md)` |
|
|
172
|
+
| `--juice-field-line-height` | `1.25rem` |
|
|
173
|
+
| `--juice-field-label-font-size` | `var(--juice-text-sm)` |
|
|
174
|
+
| `--juice-field-label-font-weight` | `var(--juice-weight-medium)` |
|
|
175
|
+
| `--juice-field-message-font-size` | `var(--juice-text-xs)` |
|
|
176
|
+
| `--juice-field-message-line-height` | `1rem` |
|
|
177
|
+
| `--juice-field-label-gap` | `var(--juice-space-2)` |
|
|
178
|
+
| `--juice-field-message-gap` | `var(--juice-space-2)` |
|
|
139
179
|
| `--juice-field-gap` | `var(--juice-density-gap)` |
|
|
180
|
+
| `--juice-field-stack-gap` | `var(--juice-space-5)` |
|
|
181
|
+
| `--juice-field-duration` | `var(--juice-duration-fast)` |
|
|
182
|
+
| `--juice-field-ease` | `var(--juice-ease-standard)` |
|
|
140
183
|
| `--juice-listbox-bg` | `var(--juice-color-surface-raised)` |
|
|
141
184
|
| `--juice-listbox-fg` | `var(--juice-color-text)` |
|
|
142
185
|
| `--juice-listbox-border` | `var(--juice-color-border)` |
|
|
143
|
-
| `--juice-listbox-shadow` | `var(--juice-shadow-
|
|
186
|
+
| `--juice-listbox-shadow` | `var(--juice-shadow-3)` |
|
|
144
187
|
| `--juice-listbox-radius` | `var(--juice-radius-lg)` |
|
|
145
|
-
| `--juice-listbox-
|
|
146
|
-
| `--juice-listbox-
|
|
147
|
-
| `--juice-listbox-
|
|
188
|
+
| `--juice-listbox-padding` | `var(--juice-space-1)` |
|
|
189
|
+
| `--juice-listbox-offset` | `var(--juice-space-1)` |
|
|
190
|
+
| `--juice-listbox-max-height` | `18rem` |
|
|
191
|
+
| `--juice-listbox-option-hover-bg` | `var(--juice-color-item-hover)` |
|
|
192
|
+
| `--juice-listbox-option-active-bg` | `var(--juice-color-item-hover)` |
|
|
193
|
+
| `--juice-listbox-option-selected-bg` | `transparent` |
|
|
148
194
|
| `--juice-listbox-option-selected-fg` | `var(--juice-color-text)` |
|
|
195
|
+
| `--juice-listbox-option-check` | `var(--juice-color-accent)` |
|
|
149
196
|
| `--juice-listbox-option-disabled-fg` | `var(--juice-color-disabled-text)` |
|
|
150
197
|
| `--juice-listbox-option-height` | `var(--juice-control-height-md)` |
|
|
198
|
+
| `--juice-listbox-option-padding-x` | `var(--juice-space-2)` |
|
|
199
|
+
| `--juice-listbox-option-radius` | `var(--juice-radius-sm)` |
|
|
200
|
+
| `--juice-listbox-option-gap` | `var(--juice-space-2)` |
|
|
201
|
+
| `--juice-listbox-chevron` | `var(--juice-color-text-subtle)` |
|
|
151
202
|
| `--juice-listbox-z` | `var(--juice-z-dropdown)` |
|
|
152
203
|
| `--juice-checkbox-size` | `var(--juice-space-4)` |
|
|
204
|
+
| `--juice-checkbox-radius` | `var(--juice-radius-sm)` |
|
|
153
205
|
| `--juice-checkbox-bg` | `var(--juice-color-surface)` |
|
|
154
|
-
| `--juice-checkbox-border` | `var(--juice-color-border
|
|
206
|
+
| `--juice-checkbox-border` | `var(--juice-color-control-border)` |
|
|
207
|
+
| `--juice-checkbox-hover-border` | `var(--juice-color-control-border-hover)` |
|
|
208
|
+
| `--juice-checkbox-active-bg` | `var(--juice-color-control-active-bg)` |
|
|
155
209
|
| `--juice-checkbox-checked-bg` | `var(--juice-color-accent)` |
|
|
210
|
+
| `--juice-checkbox-checked-hover-bg` | `var(--juice-color-accent-hover-subtle)` |
|
|
211
|
+
| `--juice-checkbox-checked-active-bg` | `var(--juice-color-accent-active)` |
|
|
156
212
|
| `--juice-checkbox-checked-fg` | `var(--juice-color-text-on-accent)` |
|
|
157
|
-
| `--juice-checkbox-hover-border` | `var(--juice-color-text-subtle)` |
|
|
158
|
-
| `--juice-checkbox-radius` | `var(--juice-radius-sm)` |
|
|
159
213
|
| `--juice-checkbox-disabled-bg` | `var(--juice-color-disabled-bg)` |
|
|
214
|
+
| `--juice-checkbox-disabled-border` | `var(--juice-color-border)` |
|
|
215
|
+
| `--juice-checkbox-disabled-checked-bg` | `var(--juice-color-disabled-fill)` |
|
|
216
|
+
| `--juice-checkbox-disabled-checked-fg` | `var(--juice-color-disabled-on-fill)` |
|
|
217
|
+
| `--juice-checkbox-focus-ring` | `var(--juice-color-focus-ring)` |
|
|
218
|
+
| `--juice-checkbox-label-fg` | `var(--juice-color-text)` |
|
|
219
|
+
| `--juice-checkbox-label-disabled-fg` | `var(--juice-color-disabled-text)` |
|
|
220
|
+
| `--juice-checkbox-label-gap` | `var(--juice-space-2)` |
|
|
221
|
+
| `--juice-checkbox-label-font-size` | `var(--juice-text-md)` |
|
|
222
|
+
| `--juice-checkbox-label-font-weight` | `var(--juice-weight-regular)` |
|
|
223
|
+
| `--juice-checkbox-label-line-height` | `var(--juice-leading-normal)` |
|
|
224
|
+
| `--juice-checkbox-duration` | `var(--juice-duration-fast)` |
|
|
225
|
+
| `--juice-checkbox-ease` | `var(--juice-ease-standard)` |
|
|
160
226
|
| `--juice-badge-radius` | `var(--juice-radius-full)` |
|
|
161
227
|
| `--juice-badge-padding-x` | `var(--juice-space-2)` |
|
|
162
228
|
| `--juice-badge-font-size` | `var(--juice-text-xs)` |
|
|
@@ -164,7 +230,7 @@ Generated by `build.mjs`; do not edit. Layers: Tier 1 raw, Tier 2 system, Tier 3
|
|
|
164
230
|
| `--juice-badge-neutral-bg` | `var(--juice-color-surface-sunken)` |
|
|
165
231
|
| `--juice-badge-neutral-fg` | `var(--juice-color-text-muted)` |
|
|
166
232
|
| `--juice-badge-accent-bg` | `var(--juice-color-accent-subtle)` |
|
|
167
|
-
| `--juice-badge-accent-fg` | `var(--juice-color-accent-
|
|
233
|
+
| `--juice-badge-accent-fg` | `var(--juice-color-accent-emphasis)` |
|
|
168
234
|
| `--juice-badge-ok-bg` | `var(--juice-color-ok-subtle)` |
|
|
169
235
|
| `--juice-badge-ok-fg` | `var(--juice-color-ok)` |
|
|
170
236
|
| `--juice-badge-warn-bg` | `var(--juice-color-warn-subtle)` |
|
package/README.md
CHANGED
|
@@ -40,6 +40,39 @@ Values are case-sensitive (`Teal` does not match). An unknown value falls back t
|
|
|
40
40
|
|
|
41
41
|
Under `prefers-reduced-motion: reduce` every `--juice-duration-*` is `0ms`. Shadows use light-dark() colours, so they need no dark overrides.
|
|
42
42
|
|
|
43
|
+
## Interaction tokens
|
|
44
|
+
|
|
45
|
+
One rule per kind of control, not one colour shift everywhere. Every pair below is checked by the contrast tests in all
|
|
46
|
+
three accents and both themes, and shown live with its measured ratio in Storybook (Foundations / Interaction).
|
|
47
|
+
|
|
48
|
+
| Control | Rest | Hover | Pressed | Focus | Disabled |
|
|
49
|
+
|---|---|---|---|---|---|
|
|
50
|
+
| Filled (primary, danger) | `accent` / `bad` | `accent-hover` / `bad-hover` | `accent-active` / `bad-active` | `focus-ring`, 2px, 2px out | `disabled-bg`, `disabled-text` |
|
|
51
|
+
| Outlined (secondary) | `surface`, `control-border` | `control-hover-bg`, `control-border-hover` | `control-active-bg` | `focus-ring` | `disabled-bg` |
|
|
52
|
+
| Ghost, icon button | transparent | `control-hover-bg` | `control-active-bg` | `focus-ring` | `disabled-text` |
|
|
53
|
+
| Checkbox, checked | `accent` | `accent-hover-subtle` | `accent-active` | `focus-ring` | `disabled-fill` + `disabled-on-fill` |
|
|
54
|
+
| Checkbox, unchecked | `control-border` | `control-border-hover` | `control-active-bg` | `focus-ring` | `disabled-bg`, `border` |
|
|
55
|
+
| Input, select trigger | `control-border` | `control-border-hover` (neutral) | none | `accent` edge + `focus-halo` | `disabled-bg`, `border` |
|
|
56
|
+
| List option | transparent | `item-hover` (neutral) | selects | keyboard highlight = `item-hover` | `disabled-text` |
|
|
57
|
+
|
|
58
|
+
Values, light then dark (`a` is the active accent ramp, `n` neutral):
|
|
59
|
+
|
|
60
|
+
| Token | Light | Dark | Why |
|
|
61
|
+
|---|---|---|---|
|
|
62
|
+
| `accent` | a600 | a400 | rest |
|
|
63
|
+
| `accent-hover` | a700 | a350 | light deepens; dark lightens by a half step, so hover gains prominence without glare |
|
|
64
|
+
| `accent-active` | a800 | a450 | press always deepens; a full 500 behind dark text fails AA for indigo (4.3:1), the half step keeps 5.5:1 |
|
|
65
|
+
| `accent-hover-subtle` | a700 | a350 | small marks (checkbox); its own token so it can stay quieter than a button |
|
|
66
|
+
| `accent-emphasis` | a800 | a200 | accent text on `accent-subtle` (badges); never used as a press colour |
|
|
67
|
+
| `bad-hover` / `bad-active` | red800 / red900 | red 350 / red 450 | danger follows the accent rule |
|
|
68
|
+
| `control-hover-bg` / `control-active-bg` | n100 / n200 | n800 / n700 | one neutral surface step per state |
|
|
69
|
+
| `control-border` / `control-border-hover` | #8e8e97 / n500 | #76767f / n400 | 3:1 edge at rest; hover moves toward the text |
|
|
70
|
+
| `item-hover` | n100 | n700 | neutral, so it never competes with the selected check |
|
|
71
|
+
| `focus-ring` / `focus-halo` | a600 / a200 | a400 / a900 | focus is shown by the ring (or accent edge + halo on fields), independent of hover |
|
|
72
|
+
|
|
73
|
+
The 350 and 450 half steps exist for the accent ramps only (`--juice-ref-accent-350`, `--juice-ref-accent-450`), mixed
|
|
74
|
+
evenly from the neighbouring steps.
|
|
75
|
+
|
|
43
76
|
## Material bridge
|
|
44
77
|
|
|
45
78
|
`tokens.material-bridge()` only writes `--mat-sys-*` (colour, typography, shape, elevation, state layers) and never `@use`s Material. Include it after layout 2.x `theme()`: `:root` beats theme()'s `html`, and `:root[data-juice-palette]` beats its `[data-juice-palette]` blocks.
|
package/css/juice.css
CHANGED
|
@@ -102,6 +102,8 @@
|
|
|
102
102
|
--juice-ref-accent-800: var(--juice-ref-indigo-800);
|
|
103
103
|
--juice-ref-accent-900: var(--juice-ref-indigo-900);
|
|
104
104
|
--juice-ref-accent-950: var(--juice-ref-indigo-950);
|
|
105
|
+
--juice-ref-accent-350: #93a0fa;
|
|
106
|
+
--juice-ref-accent-450: #7279f5;
|
|
105
107
|
/* Tier 2: colours, light-dark() pairs that follow color-scheme */
|
|
106
108
|
--juice-color-bg: light-dark(var(--juice-ref-neutral-50), var(--juice-ref-neutral-950));
|
|
107
109
|
--juice-color-surface: light-dark(#ffffff, var(--juice-ref-neutral-900));
|
|
@@ -115,9 +117,11 @@
|
|
|
115
117
|
--juice-color-text-subtle: light-dark(var(--juice-ref-neutral-500), var(--juice-ref-neutral-400));
|
|
116
118
|
--juice-color-text-on-accent: light-dark(#ffffff, var(--juice-ref-neutral-950));
|
|
117
119
|
--juice-color-accent: light-dark(var(--juice-ref-accent-600), var(--juice-ref-accent-400));
|
|
118
|
-
--juice-color-accent-hover: light-dark(var(--juice-ref-accent-700), var(--juice-ref-accent-
|
|
119
|
-
--juice-color-accent-active: light-dark(var(--juice-ref-accent-800), var(--juice-ref-accent-
|
|
120
|
+
--juice-color-accent-hover: light-dark(var(--juice-ref-accent-700), var(--juice-ref-accent-350));
|
|
121
|
+
--juice-color-accent-active: light-dark(var(--juice-ref-accent-800), var(--juice-ref-accent-450));
|
|
122
|
+
--juice-color-accent-hover-subtle: light-dark(var(--juice-ref-accent-700), var(--juice-ref-accent-350));
|
|
120
123
|
--juice-color-accent-subtle: light-dark(var(--juice-ref-accent-100), var(--juice-ref-accent-950));
|
|
124
|
+
--juice-color-accent-emphasis: light-dark(var(--juice-ref-accent-800), var(--juice-ref-accent-200));
|
|
121
125
|
--juice-color-focus-ring: light-dark(var(--juice-ref-accent-600), var(--juice-ref-accent-400));
|
|
122
126
|
--juice-color-ok: light-dark(var(--juice-ref-green-700), var(--juice-ref-green-400));
|
|
123
127
|
--juice-color-warn: light-dark(var(--juice-ref-amber-700), var(--juice-ref-amber-400));
|
|
@@ -129,6 +133,19 @@
|
|
|
129
133
|
--juice-color-info-subtle: light-dark(var(--juice-ref-blue-50), var(--juice-ref-blue-950));
|
|
130
134
|
--juice-color-disabled-bg: light-dark(var(--juice-ref-neutral-100), var(--juice-ref-neutral-800));
|
|
131
135
|
--juice-color-disabled-text: light-dark(var(--juice-ref-neutral-500), var(--juice-ref-neutral-500));
|
|
136
|
+
--juice-color-control-border: light-dark(#8e8e97, #76767f);
|
|
137
|
+
--juice-color-disabled-fill: light-dark(var(--juice-ref-neutral-400), var(--juice-ref-neutral-600));
|
|
138
|
+
--juice-color-disabled-on-fill: light-dark(#ffffff, var(--juice-ref-neutral-300));
|
|
139
|
+
--juice-color-control-hover-bg: light-dark(var(--juice-ref-neutral-100), var(--juice-ref-neutral-800));
|
|
140
|
+
--juice-color-control-active-bg: light-dark(var(--juice-ref-neutral-200), var(--juice-ref-neutral-700));
|
|
141
|
+
--juice-color-control-border-hover: light-dark(var(--juice-ref-neutral-500), var(--juice-ref-neutral-400));
|
|
142
|
+
--juice-color-bad-hover: light-dark(var(--juice-ref-red-800), #fa8b8b);
|
|
143
|
+
--juice-color-bad-active: light-dark(var(--juice-ref-red-900), #f45b5b);
|
|
144
|
+
--juice-color-focus-halo: light-dark(var(--juice-ref-accent-200), var(--juice-ref-accent-900));
|
|
145
|
+
--juice-color-bad-halo: light-dark(var(--juice-ref-red-200), var(--juice-ref-red-900));
|
|
146
|
+
--juice-color-warn-halo: light-dark(var(--juice-ref-amber-200), var(--juice-ref-amber-900));
|
|
147
|
+
--juice-color-ok-halo: light-dark(var(--juice-ref-green-200), var(--juice-ref-green-900));
|
|
148
|
+
--juice-color-item-hover: light-dark(var(--juice-ref-neutral-100), var(--juice-ref-neutral-700));
|
|
132
149
|
--juice-shadow-color: light-dark(rgb(9 9 11 / 0.1), rgb(0 0 0 / 0.5));
|
|
133
150
|
--juice-shadow-ring: light-dark(rgb(9 9 11 / 0.06), rgb(255 255 255 / 0.08));
|
|
134
151
|
/* Tier 2: space, radius, shadow, motion, type, layers */
|
|
@@ -193,12 +210,17 @@
|
|
|
193
210
|
--juice-button-active-bg: var(--juice-color-accent-active);
|
|
194
211
|
--juice-button-secondary-bg: var(--juice-color-surface);
|
|
195
212
|
--juice-button-secondary-fg: var(--juice-color-text);
|
|
196
|
-
--juice-button-secondary-border: var(--juice-color-border
|
|
197
|
-
--juice-button-secondary-hover-bg: var(--juice-color-
|
|
213
|
+
--juice-button-secondary-border: var(--juice-color-control-border);
|
|
214
|
+
--juice-button-secondary-hover-bg: var(--juice-color-control-hover-bg);
|
|
215
|
+
--juice-button-secondary-hover-border: var(--juice-color-control-border-hover);
|
|
216
|
+
--juice-button-secondary-active-bg: var(--juice-color-control-active-bg);
|
|
198
217
|
--juice-button-ghost-fg: var(--juice-color-text);
|
|
199
|
-
--juice-button-ghost-hover-bg: var(--juice-color-
|
|
218
|
+
--juice-button-ghost-hover-bg: var(--juice-color-control-hover-bg);
|
|
219
|
+
--juice-button-ghost-active-bg: var(--juice-color-control-active-bg);
|
|
200
220
|
--juice-button-danger-bg: var(--juice-color-bad);
|
|
201
221
|
--juice-button-danger-fg: var(--juice-color-text-on-accent);
|
|
222
|
+
--juice-button-danger-hover-bg: var(--juice-color-bad-hover);
|
|
223
|
+
--juice-button-danger-active-bg: var(--juice-color-bad-active);
|
|
202
224
|
--juice-button-disabled-bg: var(--juice-color-disabled-bg);
|
|
203
225
|
--juice-button-disabled-fg: var(--juice-color-disabled-text);
|
|
204
226
|
--juice-button-radius: var(--juice-radius-md);
|
|
@@ -207,39 +229,85 @@
|
|
|
207
229
|
--juice-button-focus-ring: var(--juice-color-focus-ring);
|
|
208
230
|
--juice-field-bg: var(--juice-color-surface);
|
|
209
231
|
--juice-field-fg: var(--juice-color-text);
|
|
210
|
-
--juice-field-border: var(--juice-color-border
|
|
211
|
-
--juice-field-border-hover: var(--juice-color-
|
|
212
|
-
--juice-field-border-focus: var(--juice-color-
|
|
232
|
+
--juice-field-border: var(--juice-color-control-border);
|
|
233
|
+
--juice-field-border-hover: var(--juice-color-control-border-hover);
|
|
234
|
+
--juice-field-border-focus: var(--juice-color-accent);
|
|
235
|
+
--juice-field-focus-halo: var(--juice-color-focus-halo);
|
|
213
236
|
--juice-field-placeholder: var(--juice-color-text-subtle);
|
|
237
|
+
--juice-field-readonly-bg: var(--juice-color-bg);
|
|
238
|
+
--juice-field-readonly-border: var(--juice-color-border);
|
|
239
|
+
--juice-field-disabled-bg: var(--juice-color-disabled-bg);
|
|
240
|
+
--juice-field-disabled-border: var(--juice-color-border);
|
|
241
|
+
--juice-field-disabled-fg: var(--juice-color-disabled-text);
|
|
214
242
|
--juice-field-label: var(--juice-color-text);
|
|
215
243
|
--juice-field-hint: var(--juice-color-text-muted);
|
|
216
244
|
--juice-field-error: var(--juice-color-bad);
|
|
217
|
-
--juice-field-
|
|
218
|
-
--juice-field-
|
|
245
|
+
--juice-field-warning: var(--juice-color-warn);
|
|
246
|
+
--juice-field-success: var(--juice-color-ok);
|
|
247
|
+
--juice-field-error-halo: var(--juice-color-bad-halo);
|
|
248
|
+
--juice-field-warning-halo: var(--juice-color-warn-halo);
|
|
249
|
+
--juice-field-success-halo: var(--juice-color-ok-halo);
|
|
250
|
+
--juice-field-counter-fg: var(--juice-color-text-subtle);
|
|
219
251
|
--juice-field-radius: var(--juice-radius-md);
|
|
220
252
|
--juice-field-height: var(--juice-control-height-md);
|
|
221
253
|
--juice-field-padding-x: var(--juice-control-padding-x);
|
|
254
|
+
--juice-field-textarea-padding-y: 6px;
|
|
255
|
+
--juice-field-textarea-min-height: 5rem;
|
|
256
|
+
--juice-field-font-size: var(--juice-text-md);
|
|
257
|
+
--juice-field-line-height: 1.25rem;
|
|
258
|
+
--juice-field-label-font-size: var(--juice-text-sm);
|
|
259
|
+
--juice-field-label-font-weight: var(--juice-weight-medium);
|
|
260
|
+
--juice-field-message-font-size: var(--juice-text-xs);
|
|
261
|
+
--juice-field-message-line-height: 1rem;
|
|
262
|
+
--juice-field-label-gap: var(--juice-space-2);
|
|
263
|
+
--juice-field-message-gap: var(--juice-space-2);
|
|
222
264
|
--juice-field-gap: var(--juice-density-gap);
|
|
265
|
+
--juice-field-stack-gap: var(--juice-space-5);
|
|
266
|
+
--juice-field-duration: var(--juice-duration-fast);
|
|
267
|
+
--juice-field-ease: var(--juice-ease-standard);
|
|
223
268
|
--juice-listbox-bg: var(--juice-color-surface-raised);
|
|
224
269
|
--juice-listbox-fg: var(--juice-color-text);
|
|
225
270
|
--juice-listbox-border: var(--juice-color-border);
|
|
226
|
-
--juice-listbox-shadow: var(--juice-shadow-
|
|
271
|
+
--juice-listbox-shadow: var(--juice-shadow-3);
|
|
227
272
|
--juice-listbox-radius: var(--juice-radius-lg);
|
|
228
|
-
--juice-listbox-
|
|
229
|
-
--juice-listbox-
|
|
230
|
-
--juice-listbox-
|
|
273
|
+
--juice-listbox-padding: var(--juice-space-1);
|
|
274
|
+
--juice-listbox-offset: var(--juice-space-1);
|
|
275
|
+
--juice-listbox-max-height: 18rem;
|
|
276
|
+
--juice-listbox-option-hover-bg: var(--juice-color-item-hover);
|
|
277
|
+
--juice-listbox-option-active-bg: var(--juice-color-item-hover);
|
|
278
|
+
--juice-listbox-option-selected-bg: transparent;
|
|
231
279
|
--juice-listbox-option-selected-fg: var(--juice-color-text);
|
|
280
|
+
--juice-listbox-option-check: var(--juice-color-accent);
|
|
232
281
|
--juice-listbox-option-disabled-fg: var(--juice-color-disabled-text);
|
|
233
282
|
--juice-listbox-option-height: var(--juice-control-height-md);
|
|
283
|
+
--juice-listbox-option-padding-x: var(--juice-space-2);
|
|
284
|
+
--juice-listbox-option-radius: var(--juice-radius-sm);
|
|
285
|
+
--juice-listbox-option-gap: var(--juice-space-2);
|
|
286
|
+
--juice-listbox-chevron: var(--juice-color-text-subtle);
|
|
234
287
|
--juice-listbox-z: var(--juice-z-dropdown);
|
|
235
288
|
--juice-checkbox-size: var(--juice-space-4);
|
|
289
|
+
--juice-checkbox-radius: var(--juice-radius-sm);
|
|
236
290
|
--juice-checkbox-bg: var(--juice-color-surface);
|
|
237
|
-
--juice-checkbox-border: var(--juice-color-border
|
|
291
|
+
--juice-checkbox-border: var(--juice-color-control-border);
|
|
292
|
+
--juice-checkbox-hover-border: var(--juice-color-control-border-hover);
|
|
293
|
+
--juice-checkbox-active-bg: var(--juice-color-control-active-bg);
|
|
238
294
|
--juice-checkbox-checked-bg: var(--juice-color-accent);
|
|
295
|
+
--juice-checkbox-checked-hover-bg: var(--juice-color-accent-hover-subtle);
|
|
296
|
+
--juice-checkbox-checked-active-bg: var(--juice-color-accent-active);
|
|
239
297
|
--juice-checkbox-checked-fg: var(--juice-color-text-on-accent);
|
|
240
|
-
--juice-checkbox-hover-border: var(--juice-color-text-subtle);
|
|
241
|
-
--juice-checkbox-radius: var(--juice-radius-sm);
|
|
242
298
|
--juice-checkbox-disabled-bg: var(--juice-color-disabled-bg);
|
|
299
|
+
--juice-checkbox-disabled-border: var(--juice-color-border);
|
|
300
|
+
--juice-checkbox-disabled-checked-bg: var(--juice-color-disabled-fill);
|
|
301
|
+
--juice-checkbox-disabled-checked-fg: var(--juice-color-disabled-on-fill);
|
|
302
|
+
--juice-checkbox-focus-ring: var(--juice-color-focus-ring);
|
|
303
|
+
--juice-checkbox-label-fg: var(--juice-color-text);
|
|
304
|
+
--juice-checkbox-label-disabled-fg: var(--juice-color-disabled-text);
|
|
305
|
+
--juice-checkbox-label-gap: var(--juice-space-2);
|
|
306
|
+
--juice-checkbox-label-font-size: var(--juice-text-md);
|
|
307
|
+
--juice-checkbox-label-font-weight: var(--juice-weight-regular);
|
|
308
|
+
--juice-checkbox-label-line-height: var(--juice-leading-normal);
|
|
309
|
+
--juice-checkbox-duration: var(--juice-duration-fast);
|
|
310
|
+
--juice-checkbox-ease: var(--juice-ease-standard);
|
|
243
311
|
--juice-badge-radius: var(--juice-radius-full);
|
|
244
312
|
--juice-badge-padding-x: var(--juice-space-2);
|
|
245
313
|
--juice-badge-font-size: var(--juice-text-xs);
|
|
@@ -247,7 +315,7 @@
|
|
|
247
315
|
--juice-badge-neutral-bg: var(--juice-color-surface-sunken);
|
|
248
316
|
--juice-badge-neutral-fg: var(--juice-color-text-muted);
|
|
249
317
|
--juice-badge-accent-bg: var(--juice-color-accent-subtle);
|
|
250
|
-
--juice-badge-accent-fg: var(--juice-color-accent-
|
|
318
|
+
--juice-badge-accent-fg: var(--juice-color-accent-emphasis);
|
|
251
319
|
--juice-badge-ok-bg: var(--juice-color-ok-subtle);
|
|
252
320
|
--juice-badge-ok-fg: var(--juice-color-ok);
|
|
253
321
|
--juice-badge-warn-bg: var(--juice-color-warn-subtle);
|
|
@@ -324,6 +392,8 @@ body.dark {
|
|
|
324
392
|
--juice-ref-accent-800: var(--juice-ref-teal-800);
|
|
325
393
|
--juice-ref-accent-900: var(--juice-ref-teal-900);
|
|
326
394
|
--juice-ref-accent-950: var(--juice-ref-teal-950);
|
|
395
|
+
--juice-ref-accent-350: #48cbba;
|
|
396
|
+
--juice-ref-accent-450: #20aa99;
|
|
327
397
|
}
|
|
328
398
|
:root[data-accent="violet"],
|
|
329
399
|
:root[data-juice-palette="violet"] {
|
|
@@ -338,6 +408,8 @@ body.dark {
|
|
|
338
408
|
--juice-ref-accent-800: var(--juice-ref-violet-800);
|
|
339
409
|
--juice-ref-accent-900: var(--juice-ref-violet-900);
|
|
340
410
|
--juice-ref-accent-950: var(--juice-ref-violet-950);
|
|
411
|
+
--juice-ref-accent-350: #b6a0fc;
|
|
412
|
+
--juice-ref-accent-450: #9974f8;
|
|
341
413
|
}
|
|
342
414
|
:root[data-accent="indigo"],
|
|
343
415
|
:root[data-juice-palette="indigo"] {
|
|
@@ -352,6 +424,8 @@ body.dark {
|
|
|
352
424
|
--juice-ref-accent-800: var(--juice-ref-indigo-800);
|
|
353
425
|
--juice-ref-accent-900: var(--juice-ref-indigo-900);
|
|
354
426
|
--juice-ref-accent-950: var(--juice-ref-indigo-950);
|
|
427
|
+
--juice-ref-accent-350: #93a0fa;
|
|
428
|
+
--juice-ref-accent-450: #7279f5;
|
|
355
429
|
}
|
|
356
430
|
:root[data-density="compact"] {
|
|
357
431
|
--juice-control-height-sm: 1.5rem;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juice-js/design-tokens",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.3",
|
|
4
4
|
"description": "Juice design tokens: CSS custom properties, SCSS, Material bridge and Tailwind theme",
|
|
5
|
-
"author": "
|
|
5
|
+
"author": "Pavellis Labs <dev@pavellis.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bugs": {
|
|
8
8
|
"url": "https://github.com/PavellisLabs/juice-layout/issues"
|
package/scss/_tokens.scss
CHANGED
|
@@ -103,6 +103,8 @@
|
|
|
103
103
|
--juice-ref-accent-800: var(--juice-ref-indigo-800);
|
|
104
104
|
--juice-ref-accent-900: var(--juice-ref-indigo-900);
|
|
105
105
|
--juice-ref-accent-950: var(--juice-ref-indigo-950);
|
|
106
|
+
--juice-ref-accent-350: #93a0fa;
|
|
107
|
+
--juice-ref-accent-450: #7279f5;
|
|
106
108
|
/* Tier 2: colours, light-dark() pairs that follow color-scheme */
|
|
107
109
|
--juice-color-bg: light-dark(var(--juice-ref-neutral-50), var(--juice-ref-neutral-950));
|
|
108
110
|
--juice-color-surface: light-dark(#ffffff, var(--juice-ref-neutral-900));
|
|
@@ -116,9 +118,11 @@
|
|
|
116
118
|
--juice-color-text-subtle: light-dark(var(--juice-ref-neutral-500), var(--juice-ref-neutral-400));
|
|
117
119
|
--juice-color-text-on-accent: light-dark(#ffffff, var(--juice-ref-neutral-950));
|
|
118
120
|
--juice-color-accent: light-dark(var(--juice-ref-accent-600), var(--juice-ref-accent-400));
|
|
119
|
-
--juice-color-accent-hover: light-dark(var(--juice-ref-accent-700), var(--juice-ref-accent-
|
|
120
|
-
--juice-color-accent-active: light-dark(var(--juice-ref-accent-800), var(--juice-ref-accent-
|
|
121
|
+
--juice-color-accent-hover: light-dark(var(--juice-ref-accent-700), var(--juice-ref-accent-350));
|
|
122
|
+
--juice-color-accent-active: light-dark(var(--juice-ref-accent-800), var(--juice-ref-accent-450));
|
|
123
|
+
--juice-color-accent-hover-subtle: light-dark(var(--juice-ref-accent-700), var(--juice-ref-accent-350));
|
|
121
124
|
--juice-color-accent-subtle: light-dark(var(--juice-ref-accent-100), var(--juice-ref-accent-950));
|
|
125
|
+
--juice-color-accent-emphasis: light-dark(var(--juice-ref-accent-800), var(--juice-ref-accent-200));
|
|
122
126
|
--juice-color-focus-ring: light-dark(var(--juice-ref-accent-600), var(--juice-ref-accent-400));
|
|
123
127
|
--juice-color-ok: light-dark(var(--juice-ref-green-700), var(--juice-ref-green-400));
|
|
124
128
|
--juice-color-warn: light-dark(var(--juice-ref-amber-700), var(--juice-ref-amber-400));
|
|
@@ -130,6 +134,19 @@
|
|
|
130
134
|
--juice-color-info-subtle: light-dark(var(--juice-ref-blue-50), var(--juice-ref-blue-950));
|
|
131
135
|
--juice-color-disabled-bg: light-dark(var(--juice-ref-neutral-100), var(--juice-ref-neutral-800));
|
|
132
136
|
--juice-color-disabled-text: light-dark(var(--juice-ref-neutral-500), var(--juice-ref-neutral-500));
|
|
137
|
+
--juice-color-control-border: light-dark(#8e8e97, #76767f);
|
|
138
|
+
--juice-color-disabled-fill: light-dark(var(--juice-ref-neutral-400), var(--juice-ref-neutral-600));
|
|
139
|
+
--juice-color-disabled-on-fill: light-dark(#ffffff, var(--juice-ref-neutral-300));
|
|
140
|
+
--juice-color-control-hover-bg: light-dark(var(--juice-ref-neutral-100), var(--juice-ref-neutral-800));
|
|
141
|
+
--juice-color-control-active-bg: light-dark(var(--juice-ref-neutral-200), var(--juice-ref-neutral-700));
|
|
142
|
+
--juice-color-control-border-hover: light-dark(var(--juice-ref-neutral-500), var(--juice-ref-neutral-400));
|
|
143
|
+
--juice-color-bad-hover: light-dark(var(--juice-ref-red-800), #fa8b8b);
|
|
144
|
+
--juice-color-bad-active: light-dark(var(--juice-ref-red-900), #f45b5b);
|
|
145
|
+
--juice-color-focus-halo: light-dark(var(--juice-ref-accent-200), var(--juice-ref-accent-900));
|
|
146
|
+
--juice-color-bad-halo: light-dark(var(--juice-ref-red-200), var(--juice-ref-red-900));
|
|
147
|
+
--juice-color-warn-halo: light-dark(var(--juice-ref-amber-200), var(--juice-ref-amber-900));
|
|
148
|
+
--juice-color-ok-halo: light-dark(var(--juice-ref-green-200), var(--juice-ref-green-900));
|
|
149
|
+
--juice-color-item-hover: light-dark(var(--juice-ref-neutral-100), var(--juice-ref-neutral-700));
|
|
133
150
|
--juice-shadow-color: light-dark(rgb(9 9 11 / 0.1), rgb(0 0 0 / 0.5));
|
|
134
151
|
--juice-shadow-ring: light-dark(rgb(9 9 11 / 0.06), rgb(255 255 255 / 0.08));
|
|
135
152
|
/* Tier 2: space, radius, shadow, motion, type, layers */
|
|
@@ -194,12 +211,17 @@
|
|
|
194
211
|
--juice-button-active-bg: var(--juice-color-accent-active);
|
|
195
212
|
--juice-button-secondary-bg: var(--juice-color-surface);
|
|
196
213
|
--juice-button-secondary-fg: var(--juice-color-text);
|
|
197
|
-
--juice-button-secondary-border: var(--juice-color-border
|
|
198
|
-
--juice-button-secondary-hover-bg: var(--juice-color-
|
|
214
|
+
--juice-button-secondary-border: var(--juice-color-control-border);
|
|
215
|
+
--juice-button-secondary-hover-bg: var(--juice-color-control-hover-bg);
|
|
216
|
+
--juice-button-secondary-hover-border: var(--juice-color-control-border-hover);
|
|
217
|
+
--juice-button-secondary-active-bg: var(--juice-color-control-active-bg);
|
|
199
218
|
--juice-button-ghost-fg: var(--juice-color-text);
|
|
200
|
-
--juice-button-ghost-hover-bg: var(--juice-color-
|
|
219
|
+
--juice-button-ghost-hover-bg: var(--juice-color-control-hover-bg);
|
|
220
|
+
--juice-button-ghost-active-bg: var(--juice-color-control-active-bg);
|
|
201
221
|
--juice-button-danger-bg: var(--juice-color-bad);
|
|
202
222
|
--juice-button-danger-fg: var(--juice-color-text-on-accent);
|
|
223
|
+
--juice-button-danger-hover-bg: var(--juice-color-bad-hover);
|
|
224
|
+
--juice-button-danger-active-bg: var(--juice-color-bad-active);
|
|
203
225
|
--juice-button-disabled-bg: var(--juice-color-disabled-bg);
|
|
204
226
|
--juice-button-disabled-fg: var(--juice-color-disabled-text);
|
|
205
227
|
--juice-button-radius: var(--juice-radius-md);
|
|
@@ -208,39 +230,85 @@
|
|
|
208
230
|
--juice-button-focus-ring: var(--juice-color-focus-ring);
|
|
209
231
|
--juice-field-bg: var(--juice-color-surface);
|
|
210
232
|
--juice-field-fg: var(--juice-color-text);
|
|
211
|
-
--juice-field-border: var(--juice-color-border
|
|
212
|
-
--juice-field-border-hover: var(--juice-color-
|
|
213
|
-
--juice-field-border-focus: var(--juice-color-
|
|
233
|
+
--juice-field-border: var(--juice-color-control-border);
|
|
234
|
+
--juice-field-border-hover: var(--juice-color-control-border-hover);
|
|
235
|
+
--juice-field-border-focus: var(--juice-color-accent);
|
|
236
|
+
--juice-field-focus-halo: var(--juice-color-focus-halo);
|
|
214
237
|
--juice-field-placeholder: var(--juice-color-text-subtle);
|
|
238
|
+
--juice-field-readonly-bg: var(--juice-color-bg);
|
|
239
|
+
--juice-field-readonly-border: var(--juice-color-border);
|
|
240
|
+
--juice-field-disabled-bg: var(--juice-color-disabled-bg);
|
|
241
|
+
--juice-field-disabled-border: var(--juice-color-border);
|
|
242
|
+
--juice-field-disabled-fg: var(--juice-color-disabled-text);
|
|
215
243
|
--juice-field-label: var(--juice-color-text);
|
|
216
244
|
--juice-field-hint: var(--juice-color-text-muted);
|
|
217
245
|
--juice-field-error: var(--juice-color-bad);
|
|
218
|
-
--juice-field-
|
|
219
|
-
--juice-field-
|
|
246
|
+
--juice-field-warning: var(--juice-color-warn);
|
|
247
|
+
--juice-field-success: var(--juice-color-ok);
|
|
248
|
+
--juice-field-error-halo: var(--juice-color-bad-halo);
|
|
249
|
+
--juice-field-warning-halo: var(--juice-color-warn-halo);
|
|
250
|
+
--juice-field-success-halo: var(--juice-color-ok-halo);
|
|
251
|
+
--juice-field-counter-fg: var(--juice-color-text-subtle);
|
|
220
252
|
--juice-field-radius: var(--juice-radius-md);
|
|
221
253
|
--juice-field-height: var(--juice-control-height-md);
|
|
222
254
|
--juice-field-padding-x: var(--juice-control-padding-x);
|
|
255
|
+
--juice-field-textarea-padding-y: 6px;
|
|
256
|
+
--juice-field-textarea-min-height: 5rem;
|
|
257
|
+
--juice-field-font-size: var(--juice-text-md);
|
|
258
|
+
--juice-field-line-height: 1.25rem;
|
|
259
|
+
--juice-field-label-font-size: var(--juice-text-sm);
|
|
260
|
+
--juice-field-label-font-weight: var(--juice-weight-medium);
|
|
261
|
+
--juice-field-message-font-size: var(--juice-text-xs);
|
|
262
|
+
--juice-field-message-line-height: 1rem;
|
|
263
|
+
--juice-field-label-gap: var(--juice-space-2);
|
|
264
|
+
--juice-field-message-gap: var(--juice-space-2);
|
|
223
265
|
--juice-field-gap: var(--juice-density-gap);
|
|
266
|
+
--juice-field-stack-gap: var(--juice-space-5);
|
|
267
|
+
--juice-field-duration: var(--juice-duration-fast);
|
|
268
|
+
--juice-field-ease: var(--juice-ease-standard);
|
|
224
269
|
--juice-listbox-bg: var(--juice-color-surface-raised);
|
|
225
270
|
--juice-listbox-fg: var(--juice-color-text);
|
|
226
271
|
--juice-listbox-border: var(--juice-color-border);
|
|
227
|
-
--juice-listbox-shadow: var(--juice-shadow-
|
|
272
|
+
--juice-listbox-shadow: var(--juice-shadow-3);
|
|
228
273
|
--juice-listbox-radius: var(--juice-radius-lg);
|
|
229
|
-
--juice-listbox-
|
|
230
|
-
--juice-listbox-
|
|
231
|
-
--juice-listbox-
|
|
274
|
+
--juice-listbox-padding: var(--juice-space-1);
|
|
275
|
+
--juice-listbox-offset: var(--juice-space-1);
|
|
276
|
+
--juice-listbox-max-height: 18rem;
|
|
277
|
+
--juice-listbox-option-hover-bg: var(--juice-color-item-hover);
|
|
278
|
+
--juice-listbox-option-active-bg: var(--juice-color-item-hover);
|
|
279
|
+
--juice-listbox-option-selected-bg: transparent;
|
|
232
280
|
--juice-listbox-option-selected-fg: var(--juice-color-text);
|
|
281
|
+
--juice-listbox-option-check: var(--juice-color-accent);
|
|
233
282
|
--juice-listbox-option-disabled-fg: var(--juice-color-disabled-text);
|
|
234
283
|
--juice-listbox-option-height: var(--juice-control-height-md);
|
|
284
|
+
--juice-listbox-option-padding-x: var(--juice-space-2);
|
|
285
|
+
--juice-listbox-option-radius: var(--juice-radius-sm);
|
|
286
|
+
--juice-listbox-option-gap: var(--juice-space-2);
|
|
287
|
+
--juice-listbox-chevron: var(--juice-color-text-subtle);
|
|
235
288
|
--juice-listbox-z: var(--juice-z-dropdown);
|
|
236
289
|
--juice-checkbox-size: var(--juice-space-4);
|
|
290
|
+
--juice-checkbox-radius: var(--juice-radius-sm);
|
|
237
291
|
--juice-checkbox-bg: var(--juice-color-surface);
|
|
238
|
-
--juice-checkbox-border: var(--juice-color-border
|
|
292
|
+
--juice-checkbox-border: var(--juice-color-control-border);
|
|
293
|
+
--juice-checkbox-hover-border: var(--juice-color-control-border-hover);
|
|
294
|
+
--juice-checkbox-active-bg: var(--juice-color-control-active-bg);
|
|
239
295
|
--juice-checkbox-checked-bg: var(--juice-color-accent);
|
|
296
|
+
--juice-checkbox-checked-hover-bg: var(--juice-color-accent-hover-subtle);
|
|
297
|
+
--juice-checkbox-checked-active-bg: var(--juice-color-accent-active);
|
|
240
298
|
--juice-checkbox-checked-fg: var(--juice-color-text-on-accent);
|
|
241
|
-
--juice-checkbox-hover-border: var(--juice-color-text-subtle);
|
|
242
|
-
--juice-checkbox-radius: var(--juice-radius-sm);
|
|
243
299
|
--juice-checkbox-disabled-bg: var(--juice-color-disabled-bg);
|
|
300
|
+
--juice-checkbox-disabled-border: var(--juice-color-border);
|
|
301
|
+
--juice-checkbox-disabled-checked-bg: var(--juice-color-disabled-fill);
|
|
302
|
+
--juice-checkbox-disabled-checked-fg: var(--juice-color-disabled-on-fill);
|
|
303
|
+
--juice-checkbox-focus-ring: var(--juice-color-focus-ring);
|
|
304
|
+
--juice-checkbox-label-fg: var(--juice-color-text);
|
|
305
|
+
--juice-checkbox-label-disabled-fg: var(--juice-color-disabled-text);
|
|
306
|
+
--juice-checkbox-label-gap: var(--juice-space-2);
|
|
307
|
+
--juice-checkbox-label-font-size: var(--juice-text-md);
|
|
308
|
+
--juice-checkbox-label-font-weight: var(--juice-weight-regular);
|
|
309
|
+
--juice-checkbox-label-line-height: var(--juice-leading-normal);
|
|
310
|
+
--juice-checkbox-duration: var(--juice-duration-fast);
|
|
311
|
+
--juice-checkbox-ease: var(--juice-ease-standard);
|
|
244
312
|
--juice-badge-radius: var(--juice-radius-full);
|
|
245
313
|
--juice-badge-padding-x: var(--juice-space-2);
|
|
246
314
|
--juice-badge-font-size: var(--juice-text-xs);
|
|
@@ -248,7 +316,7 @@
|
|
|
248
316
|
--juice-badge-neutral-bg: var(--juice-color-surface-sunken);
|
|
249
317
|
--juice-badge-neutral-fg: var(--juice-color-text-muted);
|
|
250
318
|
--juice-badge-accent-bg: var(--juice-color-accent-subtle);
|
|
251
|
-
--juice-badge-accent-fg: var(--juice-color-accent-
|
|
319
|
+
--juice-badge-accent-fg: var(--juice-color-accent-emphasis);
|
|
252
320
|
--juice-badge-ok-bg: var(--juice-color-ok-subtle);
|
|
253
321
|
--juice-badge-ok-fg: var(--juice-color-ok);
|
|
254
322
|
--juice-badge-warn-bg: var(--juice-color-warn-subtle);
|
|
@@ -325,6 +393,8 @@ body.dark {
|
|
|
325
393
|
--juice-ref-accent-800: var(--juice-ref-teal-800);
|
|
326
394
|
--juice-ref-accent-900: var(--juice-ref-teal-900);
|
|
327
395
|
--juice-ref-accent-950: var(--juice-ref-teal-950);
|
|
396
|
+
--juice-ref-accent-350: #48cbba;
|
|
397
|
+
--juice-ref-accent-450: #20aa99;
|
|
328
398
|
}
|
|
329
399
|
:root[data-accent="violet"],
|
|
330
400
|
:root[data-juice-palette="violet"] {
|
|
@@ -339,6 +409,8 @@ body.dark {
|
|
|
339
409
|
--juice-ref-accent-800: var(--juice-ref-violet-800);
|
|
340
410
|
--juice-ref-accent-900: var(--juice-ref-violet-900);
|
|
341
411
|
--juice-ref-accent-950: var(--juice-ref-violet-950);
|
|
412
|
+
--juice-ref-accent-350: #b6a0fc;
|
|
413
|
+
--juice-ref-accent-450: #9974f8;
|
|
342
414
|
}
|
|
343
415
|
:root[data-accent="indigo"],
|
|
344
416
|
:root[data-juice-palette="indigo"] {
|
|
@@ -353,6 +425,8 @@ body.dark {
|
|
|
353
425
|
--juice-ref-accent-800: var(--juice-ref-indigo-800);
|
|
354
426
|
--juice-ref-accent-900: var(--juice-ref-indigo-900);
|
|
355
427
|
--juice-ref-accent-950: var(--juice-ref-indigo-950);
|
|
428
|
+
--juice-ref-accent-350: #93a0fa;
|
|
429
|
+
--juice-ref-accent-450: #7279f5;
|
|
356
430
|
}
|
|
357
431
|
:root[data-density="compact"] {
|
|
358
432
|
--juice-control-height-sm: 1.5rem;
|
package/tailwind/theme.css
CHANGED
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
--color-accent: var(--juice-color-accent);
|
|
16
16
|
--color-accent-hover: var(--juice-color-accent-hover);
|
|
17
17
|
--color-accent-active: var(--juice-color-accent-active);
|
|
18
|
+
--color-accent-hover-subtle: var(--juice-color-accent-hover-subtle);
|
|
18
19
|
--color-accent-subtle: var(--juice-color-accent-subtle);
|
|
20
|
+
--color-accent-emphasis: var(--juice-color-accent-emphasis);
|
|
19
21
|
--color-focus-ring: var(--juice-color-focus-ring);
|
|
20
22
|
--color-ok: var(--juice-color-ok);
|
|
21
23
|
--color-warn: var(--juice-color-warn);
|
|
@@ -27,6 +29,19 @@
|
|
|
27
29
|
--color-info-subtle: var(--juice-color-info-subtle);
|
|
28
30
|
--color-disabled-bg: var(--juice-color-disabled-bg);
|
|
29
31
|
--color-disabled-text: var(--juice-color-disabled-text);
|
|
32
|
+
--color-control-border: var(--juice-color-control-border);
|
|
33
|
+
--color-disabled-fill: var(--juice-color-disabled-fill);
|
|
34
|
+
--color-disabled-on-fill: var(--juice-color-disabled-on-fill);
|
|
35
|
+
--color-control-hover-bg: var(--juice-color-control-hover-bg);
|
|
36
|
+
--color-control-active-bg: var(--juice-color-control-active-bg);
|
|
37
|
+
--color-control-border-hover: var(--juice-color-control-border-hover);
|
|
38
|
+
--color-bad-hover: var(--juice-color-bad-hover);
|
|
39
|
+
--color-bad-active: var(--juice-color-bad-active);
|
|
40
|
+
--color-focus-halo: var(--juice-color-focus-halo);
|
|
41
|
+
--color-bad-halo: var(--juice-color-bad-halo);
|
|
42
|
+
--color-warn-halo: var(--juice-color-warn-halo);
|
|
43
|
+
--color-ok-halo: var(--juice-color-ok-halo);
|
|
44
|
+
--color-item-hover: var(--juice-color-item-hover);
|
|
30
45
|
--spacing: 4px;
|
|
31
46
|
--spacing-1: var(--juice-space-1);
|
|
32
47
|
--spacing-2: var(--juice-space-2);
|