@juice-js/design-tokens 3.0.0-alpha.1 → 3.0.0-alpha.2

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 CHANGED
@@ -36,6 +36,9 @@ Generated by `build.mjs`; do not edit. Layers: Tier 1 raw, Tier 2 system, Tier 3
36
36
  | `--juice-color-info-subtle` | `var(--juice-ref-blue-50)` | `var(--juice-ref-blue-950)` |
37
37
  | `--juice-color-disabled-bg` | `var(--juice-ref-neutral-100)` | `var(--juice-ref-neutral-800)` |
38
38
  | `--juice-color-disabled-text` | `var(--juice-ref-neutral-500)` | `var(--juice-ref-neutral-500)` |
39
+ | `--juice-color-control-border` | `#8e8e97` | `#76767f` |
40
+ | `--juice-color-disabled-fill` | `var(--juice-ref-neutral-400)` | `var(--juice-ref-neutral-600)` |
41
+ | `--juice-color-disabled-on-fill` | `#ffffff` | `var(--juice-ref-neutral-300)` |
39
42
  | `--juice-shadow-color` | `rgb(9 9 11 / 0.1)` | `rgb(0 0 0 / 0.5)` |
40
43
  | `--juice-shadow-ring` | `rgb(9 9 11 / 0.06)` | `rgb(255 255 255 / 0.08)` |
41
44
 
@@ -150,13 +153,28 @@ Generated by `build.mjs`; do not edit. Layers: Tier 1 raw, Tier 2 system, Tier 3
150
153
  | `--juice-listbox-option-height` | `var(--juice-control-height-md)` |
151
154
  | `--juice-listbox-z` | `var(--juice-z-dropdown)` |
152
155
  | `--juice-checkbox-size` | `var(--juice-space-4)` |
156
+ | `--juice-checkbox-radius` | `var(--juice-radius-sm)` |
153
157
  | `--juice-checkbox-bg` | `var(--juice-color-surface)` |
154
- | `--juice-checkbox-border` | `var(--juice-color-border-strong)` |
158
+ | `--juice-checkbox-border` | `var(--juice-color-control-border)` |
159
+ | `--juice-checkbox-hover-border` | `var(--juice-color-text-subtle)` |
160
+ | `--juice-checkbox-active-bg` | `var(--juice-color-surface-sunken)` |
155
161
  | `--juice-checkbox-checked-bg` | `var(--juice-color-accent)` |
162
+ | `--juice-checkbox-checked-hover-bg` | `var(--juice-color-accent-hover)` |
163
+ | `--juice-checkbox-checked-active-bg` | `var(--juice-color-accent-active)` |
156
164
  | `--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
165
  | `--juice-checkbox-disabled-bg` | `var(--juice-color-disabled-bg)` |
166
+ | `--juice-checkbox-disabled-border` | `var(--juice-color-border)` |
167
+ | `--juice-checkbox-disabled-checked-bg` | `var(--juice-color-disabled-fill)` |
168
+ | `--juice-checkbox-disabled-checked-fg` | `var(--juice-color-disabled-on-fill)` |
169
+ | `--juice-checkbox-focus-ring` | `var(--juice-color-focus-ring)` |
170
+ | `--juice-checkbox-label-fg` | `var(--juice-color-text)` |
171
+ | `--juice-checkbox-label-disabled-fg` | `var(--juice-color-disabled-text)` |
172
+ | `--juice-checkbox-label-gap` | `var(--juice-space-2)` |
173
+ | `--juice-checkbox-label-font-size` | `var(--juice-text-md)` |
174
+ | `--juice-checkbox-label-font-weight` | `var(--juice-weight-regular)` |
175
+ | `--juice-checkbox-label-line-height` | `var(--juice-leading-normal)` |
176
+ | `--juice-checkbox-duration` | `var(--juice-duration-fast)` |
177
+ | `--juice-checkbox-ease` | `var(--juice-ease-standard)` |
160
178
  | `--juice-badge-radius` | `var(--juice-radius-full)` |
161
179
  | `--juice-badge-padding-x` | `var(--juice-space-2)` |
162
180
  | `--juice-badge-font-size` | `var(--juice-text-xs)` |
package/css/juice.css CHANGED
@@ -129,6 +129,9 @@
129
129
  --juice-color-info-subtle: light-dark(var(--juice-ref-blue-50), var(--juice-ref-blue-950));
130
130
  --juice-color-disabled-bg: light-dark(var(--juice-ref-neutral-100), var(--juice-ref-neutral-800));
131
131
  --juice-color-disabled-text: light-dark(var(--juice-ref-neutral-500), var(--juice-ref-neutral-500));
132
+ --juice-color-control-border: light-dark(#8e8e97, #76767f);
133
+ --juice-color-disabled-fill: light-dark(var(--juice-ref-neutral-400), var(--juice-ref-neutral-600));
134
+ --juice-color-disabled-on-fill: light-dark(#ffffff, var(--juice-ref-neutral-300));
132
135
  --juice-shadow-color: light-dark(rgb(9 9 11 / 0.1), rgb(0 0 0 / 0.5));
133
136
  --juice-shadow-ring: light-dark(rgb(9 9 11 / 0.06), rgb(255 255 255 / 0.08));
134
137
  /* Tier 2: space, radius, shadow, motion, type, layers */
@@ -233,13 +236,28 @@
233
236
  --juice-listbox-option-height: var(--juice-control-height-md);
234
237
  --juice-listbox-z: var(--juice-z-dropdown);
235
238
  --juice-checkbox-size: var(--juice-space-4);
239
+ --juice-checkbox-radius: var(--juice-radius-sm);
236
240
  --juice-checkbox-bg: var(--juice-color-surface);
237
- --juice-checkbox-border: var(--juice-color-border-strong);
241
+ --juice-checkbox-border: var(--juice-color-control-border);
242
+ --juice-checkbox-hover-border: var(--juice-color-text-subtle);
243
+ --juice-checkbox-active-bg: var(--juice-color-surface-sunken);
238
244
  --juice-checkbox-checked-bg: var(--juice-color-accent);
245
+ --juice-checkbox-checked-hover-bg: var(--juice-color-accent-hover);
246
+ --juice-checkbox-checked-active-bg: var(--juice-color-accent-active);
239
247
  --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
248
  --juice-checkbox-disabled-bg: var(--juice-color-disabled-bg);
249
+ --juice-checkbox-disabled-border: var(--juice-color-border);
250
+ --juice-checkbox-disabled-checked-bg: var(--juice-color-disabled-fill);
251
+ --juice-checkbox-disabled-checked-fg: var(--juice-color-disabled-on-fill);
252
+ --juice-checkbox-focus-ring: var(--juice-color-focus-ring);
253
+ --juice-checkbox-label-fg: var(--juice-color-text);
254
+ --juice-checkbox-label-disabled-fg: var(--juice-color-disabled-text);
255
+ --juice-checkbox-label-gap: var(--juice-space-2);
256
+ --juice-checkbox-label-font-size: var(--juice-text-md);
257
+ --juice-checkbox-label-font-weight: var(--juice-weight-regular);
258
+ --juice-checkbox-label-line-height: var(--juice-leading-normal);
259
+ --juice-checkbox-duration: var(--juice-duration-fast);
260
+ --juice-checkbox-ease: var(--juice-ease-standard);
243
261
  --juice-badge-radius: var(--juice-radius-full);
244
262
  --juice-badge-padding-x: var(--juice-space-2);
245
263
  --juice-badge-font-size: var(--juice-text-xs);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@juice-js/design-tokens",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-alpha.2",
4
4
  "description": "Juice design tokens: CSS custom properties, SCSS, Material bridge and Tailwind theme",
5
- "author": "jack@creatorflow.io",
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
@@ -130,6 +130,9 @@
130
130
  --juice-color-info-subtle: light-dark(var(--juice-ref-blue-50), var(--juice-ref-blue-950));
131
131
  --juice-color-disabled-bg: light-dark(var(--juice-ref-neutral-100), var(--juice-ref-neutral-800));
132
132
  --juice-color-disabled-text: light-dark(var(--juice-ref-neutral-500), var(--juice-ref-neutral-500));
133
+ --juice-color-control-border: light-dark(#8e8e97, #76767f);
134
+ --juice-color-disabled-fill: light-dark(var(--juice-ref-neutral-400), var(--juice-ref-neutral-600));
135
+ --juice-color-disabled-on-fill: light-dark(#ffffff, var(--juice-ref-neutral-300));
133
136
  --juice-shadow-color: light-dark(rgb(9 9 11 / 0.1), rgb(0 0 0 / 0.5));
134
137
  --juice-shadow-ring: light-dark(rgb(9 9 11 / 0.06), rgb(255 255 255 / 0.08));
135
138
  /* Tier 2: space, radius, shadow, motion, type, layers */
@@ -234,13 +237,28 @@
234
237
  --juice-listbox-option-height: var(--juice-control-height-md);
235
238
  --juice-listbox-z: var(--juice-z-dropdown);
236
239
  --juice-checkbox-size: var(--juice-space-4);
240
+ --juice-checkbox-radius: var(--juice-radius-sm);
237
241
  --juice-checkbox-bg: var(--juice-color-surface);
238
- --juice-checkbox-border: var(--juice-color-border-strong);
242
+ --juice-checkbox-border: var(--juice-color-control-border);
243
+ --juice-checkbox-hover-border: var(--juice-color-text-subtle);
244
+ --juice-checkbox-active-bg: var(--juice-color-surface-sunken);
239
245
  --juice-checkbox-checked-bg: var(--juice-color-accent);
246
+ --juice-checkbox-checked-hover-bg: var(--juice-color-accent-hover);
247
+ --juice-checkbox-checked-active-bg: var(--juice-color-accent-active);
240
248
  --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
249
  --juice-checkbox-disabled-bg: var(--juice-color-disabled-bg);
250
+ --juice-checkbox-disabled-border: var(--juice-color-border);
251
+ --juice-checkbox-disabled-checked-bg: var(--juice-color-disabled-fill);
252
+ --juice-checkbox-disabled-checked-fg: var(--juice-color-disabled-on-fill);
253
+ --juice-checkbox-focus-ring: var(--juice-color-focus-ring);
254
+ --juice-checkbox-label-fg: var(--juice-color-text);
255
+ --juice-checkbox-label-disabled-fg: var(--juice-color-disabled-text);
256
+ --juice-checkbox-label-gap: var(--juice-space-2);
257
+ --juice-checkbox-label-font-size: var(--juice-text-md);
258
+ --juice-checkbox-label-font-weight: var(--juice-weight-regular);
259
+ --juice-checkbox-label-line-height: var(--juice-leading-normal);
260
+ --juice-checkbox-duration: var(--juice-duration-fast);
261
+ --juice-checkbox-ease: var(--juice-ease-standard);
244
262
  --juice-badge-radius: var(--juice-radius-full);
245
263
  --juice-badge-padding-x: var(--juice-space-2);
246
264
  --juice-badge-font-size: var(--juice-text-xs);
@@ -27,6 +27,9 @@
27
27
  --color-info-subtle: var(--juice-color-info-subtle);
28
28
  --color-disabled-bg: var(--juice-color-disabled-bg);
29
29
  --color-disabled-text: var(--juice-color-disabled-text);
30
+ --color-control-border: var(--juice-color-control-border);
31
+ --color-disabled-fill: var(--juice-color-disabled-fill);
32
+ --color-disabled-on-fill: var(--juice-color-disabled-on-fill);
30
33
  --spacing: 4px;
31
34
  --spacing-1: var(--juice-space-1);
32
35
  --spacing-2: var(--juice-space-2);