@citrusworx/juiceui 0.4.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -8
- package/dist/index.css +24531 -23563
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1014 -44
- package/dist/js/juice.d.ts +8 -0
- package/dist/js/src/drawer/drawer-runtime.d.ts +30 -0
- package/dist/js/src/modal/modal-runtime.d.ts +30 -0
- package/dist/js/src/popover/popover-runtime.d.ts +56 -0
- package/dist/js/src/toast/toast-runtime.d.ts +45 -0
- package/dist/themes/aquaflux.css +311 -0
- package/dist/themes/citrusmint.css +297 -0
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/kiwipress.css +290 -7
- package/dist/themes/tide.css +709 -0
- package/package.json +12 -3
|
@@ -47,6 +47,123 @@
|
|
|
47
47
|
--juice-tabs-indicator: var(--cm-tabs-indicator);
|
|
48
48
|
--juice-tabs-list-rule: var(--cm-tabs-list-rule);
|
|
49
49
|
--juice-tabs-focus-ring: var(--cm-tabs-focus-ring);
|
|
50
|
+
/* Surface tone roles — thinner --cm-* set; no dedicated frost token,
|
|
51
|
+
so soft mixes --cm-surface to the unthemed frost alpha. */
|
|
52
|
+
--juice-surface-soft-bg: color-mix(in srgb, var(--cm-surface) 88%, transparent);
|
|
53
|
+
--juice-surface-soft-border: var(--cm-border);
|
|
54
|
+
--juice-surface-soft-shadow: 0 18px 40px -28px rgba(0, 102, 1.7, 0.18);
|
|
55
|
+
--juice-surface-soft-blur: 10px;
|
|
56
|
+
--juice-surface-strong-bg: var(--cm-surface);
|
|
57
|
+
--juice-surface-strong-border: var(--cm-border);
|
|
58
|
+
--juice-surface-strong-shadow: 0 22px 48px -22px rgba(0, 102, 1.7, 0.22);
|
|
59
|
+
--juice-surface-strong-blur: 0px;
|
|
60
|
+
--juice-surface-muted-bg: var(--cm-surface-muted);
|
|
61
|
+
--juice-surface-muted-border: var(--cm-border);
|
|
62
|
+
--juice-surface-muted-shadow: none;
|
|
63
|
+
--juice-surface-muted-blur: 0px;
|
|
64
|
+
/* Border strength — no --cm-border-strong; bold mixes heading for contrast. */
|
|
65
|
+
--juice-border-strength-soft-width: 1px;
|
|
66
|
+
--juice-border-strength-soft-color: var(--cm-border);
|
|
67
|
+
--juice-border-strength-bold-width: 2px;
|
|
68
|
+
--juice-border-strength-bold-color: color-mix(in srgb, var(--cm-heading) 22%, transparent);
|
|
69
|
+
/* Shadow tone — same green family (wintergreen cool / lime warm). */
|
|
70
|
+
--juice-shadow-tone-cool-color: rgba(0.3825, 76.1175, 40.7745, 0.2);
|
|
71
|
+
--juice-shadow-tone-cool-shadow: 0 18px 40px -28px rgba(0.3825, 76.1175, 40.7745, 0.2);
|
|
72
|
+
--juice-shadow-tone-warm-color: rgba(40.29, 86.7, 15.3, 0.2);
|
|
73
|
+
--juice-shadow-tone-warm-shadow: 0 18px 40px -28px rgba(40.29, 86.7, 15.3, 0.2);
|
|
74
|
+
/* Overlay — frost veil / muted green tint; thinner --cm-* set. */
|
|
75
|
+
--juice-overlay-frost-wash: color-mix(in srgb, var(--cm-surface) 42%, transparent);
|
|
76
|
+
--juice-overlay-frost-layer: linear-gradient(var(--juice-overlay-frost-wash), var(--juice-overlay-frost-wash));
|
|
77
|
+
--juice-overlay-tint-wash: color-mix(in srgb, var(--cm-surface-muted) 40%, transparent);
|
|
78
|
+
--juice-overlay-tint-layer: linear-gradient(var(--juice-overlay-tint-wash), var(--juice-overlay-tint-wash));
|
|
79
|
+
/* Modal chrome — thinner --cm-* set; heading stands in for accent.
|
|
80
|
+
Close is a surface control, not heading-fill CTA. */
|
|
81
|
+
--cm-modal-overlay: color-mix(in srgb, var(--cm-heading) 55%, transparent);
|
|
82
|
+
--cm-modal-panel: var(--cm-surface);
|
|
83
|
+
--cm-modal-panel-border: var(--cm-border);
|
|
84
|
+
--cm-modal-panel-shadow: 0 22px 48px -22px color-mix(in srgb, var(--cm-heading) 22%, transparent);
|
|
85
|
+
--cm-modal-close: var(--cm-surface);
|
|
86
|
+
--cm-modal-close-color: var(--cm-heading);
|
|
87
|
+
--cm-modal-close-hover: var(--cm-surface-muted);
|
|
88
|
+
--cm-modal-focus-ring: var(--cm-heading);
|
|
89
|
+
--juice-modal-overlay: var(--cm-modal-overlay);
|
|
90
|
+
--juice-modal-panel: var(--cm-modal-panel);
|
|
91
|
+
--juice-modal-panel-border: var(--cm-modal-panel-border);
|
|
92
|
+
--juice-modal-panel-shadow: var(--cm-modal-panel-shadow);
|
|
93
|
+
--juice-modal-close: var(--cm-modal-close);
|
|
94
|
+
--juice-modal-close-color: var(--cm-modal-close-color);
|
|
95
|
+
--juice-modal-close-hover: var(--cm-modal-close-hover);
|
|
96
|
+
--juice-modal-focus-ring: var(--cm-modal-focus-ring);
|
|
97
|
+
/* Drawer chrome — thinner --cm-* set; heading stands in for accent.
|
|
98
|
+
Close is a surface control, not heading-fill CTA. */
|
|
99
|
+
--cm-drawer-overlay: color-mix(in srgb, var(--cm-heading) 55%, transparent);
|
|
100
|
+
--cm-drawer-panel: var(--cm-surface);
|
|
101
|
+
--cm-drawer-panel-border: var(--cm-border);
|
|
102
|
+
--cm-drawer-panel-shadow: 0 22px 48px -22px color-mix(in srgb, var(--cm-heading) 22%, transparent);
|
|
103
|
+
--cm-drawer-close: var(--cm-surface);
|
|
104
|
+
--cm-drawer-close-color: var(--cm-heading);
|
|
105
|
+
--cm-drawer-close-hover: var(--cm-surface-muted);
|
|
106
|
+
--cm-drawer-focus-ring: var(--cm-heading);
|
|
107
|
+
--juice-drawer-overlay: var(--cm-drawer-overlay);
|
|
108
|
+
--juice-drawer-panel: var(--cm-drawer-panel);
|
|
109
|
+
--juice-drawer-panel-border: var(--cm-drawer-panel-border);
|
|
110
|
+
--juice-drawer-panel-shadow: var(--cm-drawer-panel-shadow);
|
|
111
|
+
--juice-drawer-close: var(--cm-drawer-close);
|
|
112
|
+
--juice-drawer-close-color: var(--cm-drawer-close-color);
|
|
113
|
+
--juice-drawer-close-hover: var(--cm-drawer-close-hover);
|
|
114
|
+
--juice-drawer-focus-ring: var(--cm-drawer-focus-ring);
|
|
115
|
+
/* Toast chrome — thinner --cm-* set plus wintergreen/lime already
|
|
116
|
+
used for shadow tone. Close is a surface control, not heading-fill. */
|
|
117
|
+
--cm-toast-panel: var(--cm-surface);
|
|
118
|
+
--cm-toast-panel-border: var(--cm-border);
|
|
119
|
+
--cm-toast-panel-shadow: 0 18px 40px -24px color-mix(in srgb, var(--cm-heading) 22%, transparent);
|
|
120
|
+
--cm-toast-ink: var(--cm-text);
|
|
121
|
+
--cm-toast-close: var(--cm-surface);
|
|
122
|
+
--cm-toast-close-color: var(--cm-heading);
|
|
123
|
+
--cm-toast-close-hover: var(--cm-surface-muted);
|
|
124
|
+
--cm-toast-focus-ring: var(--cm-heading);
|
|
125
|
+
--cm-toast-success: var(--cm-heading);
|
|
126
|
+
--cm-toast-success-soft: var(--cm-surface-muted);
|
|
127
|
+
--cm-toast-error: hsl(152, 99%, 15%);
|
|
128
|
+
--cm-toast-error-soft: color-mix(in srgb, hsl(152, 99%, 15%) 10%, var(--cm-surface));
|
|
129
|
+
--cm-toast-info: var(--cm-text-muted);
|
|
130
|
+
--cm-toast-info-soft: color-mix(in srgb, var(--cm-text-muted) 12%, var(--cm-surface));
|
|
131
|
+
--cm-toast-warning: hsl(99, 70%, 20%);
|
|
132
|
+
--cm-toast-warning-soft: color-mix(in srgb, hsl(99, 70%, 20%) 10%, var(--cm-surface));
|
|
133
|
+
--juice-toast-panel: var(--cm-toast-panel);
|
|
134
|
+
--juice-toast-panel-border: var(--cm-toast-panel-border);
|
|
135
|
+
--juice-toast-panel-shadow: var(--cm-toast-panel-shadow);
|
|
136
|
+
--juice-toast-ink: var(--cm-toast-ink);
|
|
137
|
+
--juice-toast-close: var(--cm-toast-close);
|
|
138
|
+
--juice-toast-close-color: var(--cm-toast-close-color);
|
|
139
|
+
--juice-toast-close-hover: var(--cm-toast-close-hover);
|
|
140
|
+
--juice-toast-focus-ring: var(--cm-toast-focus-ring);
|
|
141
|
+
--juice-toast-success: var(--cm-toast-success);
|
|
142
|
+
--juice-toast-success-soft: var(--cm-toast-success-soft);
|
|
143
|
+
--juice-toast-error: var(--cm-toast-error);
|
|
144
|
+
--juice-toast-error-soft: var(--cm-toast-error-soft);
|
|
145
|
+
--juice-toast-info: var(--cm-toast-info);
|
|
146
|
+
--juice-toast-info-soft: var(--cm-toast-info-soft);
|
|
147
|
+
--juice-toast-warning: var(--cm-toast-warning);
|
|
148
|
+
--juice-toast-warning-soft: var(--cm-toast-warning-soft);
|
|
149
|
+
/* Popover chrome — thinner --cm-* set. Close is a surface control,
|
|
150
|
+
not heading-fill. Distinct from modal/drawer/toast. */
|
|
151
|
+
--cm-popover-panel: var(--cm-surface);
|
|
152
|
+
--cm-popover-panel-border: var(--cm-border);
|
|
153
|
+
--cm-popover-panel-shadow: 0 18px 40px -24px color-mix(in srgb, var(--cm-heading) 22%, transparent);
|
|
154
|
+
--cm-popover-ink: var(--cm-text);
|
|
155
|
+
--cm-popover-close: var(--cm-surface);
|
|
156
|
+
--cm-popover-close-color: var(--cm-heading);
|
|
157
|
+
--cm-popover-close-hover: var(--cm-surface-muted);
|
|
158
|
+
--cm-popover-focus-ring: var(--cm-heading);
|
|
159
|
+
--juice-popover-panel: var(--cm-popover-panel);
|
|
160
|
+
--juice-popover-panel-border: var(--cm-popover-panel-border);
|
|
161
|
+
--juice-popover-panel-shadow: var(--cm-popover-panel-shadow);
|
|
162
|
+
--juice-popover-ink: var(--cm-popover-ink);
|
|
163
|
+
--juice-popover-close: var(--cm-popover-close);
|
|
164
|
+
--juice-popover-close-color: var(--cm-popover-close-color);
|
|
165
|
+
--juice-popover-close-hover: var(--cm-popover-close-hover);
|
|
166
|
+
--juice-popover-focus-ring: var(--cm-popover-focus-ring);
|
|
50
167
|
background-color: var(--cm-page);
|
|
51
168
|
color: var(--cm-text);
|
|
52
169
|
font-family: var(--cm-body-font);
|
|
@@ -177,4 +294,184 @@
|
|
|
177
294
|
|
|
178
295
|
[theme=citrusmint] [tab-panel] {
|
|
179
296
|
color: var(--cm-text);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/* Modal chrome. Generic Citrusmint buttons use heading fill;
|
|
300
|
+
[modal-close] stays a surface control. Runtime is slice B. */
|
|
301
|
+
[theme=citrusmint] [modal-overlay] {
|
|
302
|
+
background-color: var(--juice-modal-overlay);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
[theme=citrusmint] [modal]:not([surfaceTone]) {
|
|
306
|
+
background-color: var(--juice-modal-panel);
|
|
307
|
+
border: 1px solid var(--juice-modal-panel-border);
|
|
308
|
+
box-shadow: var(--juice-modal-panel-shadow);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
[theme=citrusmint] button[modal-close],
|
|
312
|
+
[theme=citrusmint] [modal-close] {
|
|
313
|
+
background-color: var(--juice-modal-close);
|
|
314
|
+
color: var(--juice-modal-close-color);
|
|
315
|
+
box-shadow: none;
|
|
316
|
+
transform: none;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
[theme=citrusmint] button[modal-close]:hover,
|
|
320
|
+
[theme=citrusmint] [modal-close]:hover {
|
|
321
|
+
background-color: var(--juice-modal-close-hover);
|
|
322
|
+
color: var(--juice-modal-close-color);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
[theme=citrusmint] button[modal-close]:focus-visible,
|
|
326
|
+
[theme=citrusmint] [modal-close]:focus-visible {
|
|
327
|
+
outline: 2px solid var(--juice-modal-focus-ring);
|
|
328
|
+
outline-offset: 2px;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* Drawer chrome. Generic Citrusmint buttons use heading fill;
|
|
332
|
+
[drawer-close] stays a surface control. Runtime is later. */
|
|
333
|
+
[theme=citrusmint] [drawer-overlay] {
|
|
334
|
+
background-color: var(--juice-drawer-overlay);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
[theme=citrusmint] [drawer]:not([surfaceTone]) {
|
|
338
|
+
background-color: var(--juice-drawer-panel);
|
|
339
|
+
border: 1px solid var(--juice-drawer-panel-border);
|
|
340
|
+
box-shadow: var(--juice-drawer-panel-shadow);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
[theme=citrusmint] button[drawer-close],
|
|
344
|
+
[theme=citrusmint] [drawer-close] {
|
|
345
|
+
background-color: var(--juice-drawer-close);
|
|
346
|
+
color: var(--juice-drawer-close-color);
|
|
347
|
+
box-shadow: none;
|
|
348
|
+
transform: none;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
[theme=citrusmint] button[drawer-close]:hover,
|
|
352
|
+
[theme=citrusmint] [drawer-close]:hover {
|
|
353
|
+
background-color: var(--juice-drawer-close-hover);
|
|
354
|
+
color: var(--juice-drawer-close-color);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
[theme=citrusmint] button[drawer-close]:focus-visible,
|
|
358
|
+
[theme=citrusmint] [drawer-close]:focus-visible {
|
|
359
|
+
outline: 2px solid var(--juice-drawer-focus-ring);
|
|
360
|
+
outline-offset: 2px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* Toast chrome. Generic Citrusmint buttons use heading fill;
|
|
364
|
+
[toast-close] stays a surface control. Runtime is later. */
|
|
365
|
+
[theme=citrusmint] [toast]:not([surfaceTone]) {
|
|
366
|
+
background-color: var(--juice-toast-panel);
|
|
367
|
+
border: 1px solid var(--juice-toast-panel-border);
|
|
368
|
+
box-shadow: var(--juice-toast-panel-shadow);
|
|
369
|
+
color: var(--juice-toast-ink);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
[theme=citrusmint] [toast-title],
|
|
373
|
+
[theme=citrusmint] [toast-body] {
|
|
374
|
+
color: var(--juice-toast-ink);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
[theme=citrusmint] [toast=success]:not([surfaceTone]) {
|
|
378
|
+
background-color: var(--juice-toast-success-soft);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
[theme=citrusmint] [toast=success] {
|
|
382
|
+
border-left-color: var(--juice-toast-success);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
[theme=citrusmint] [toast=success] [toast-title] {
|
|
386
|
+
color: var(--juice-toast-success);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
[theme=citrusmint] [toast=error]:not([surfaceTone]) {
|
|
390
|
+
background-color: var(--juice-toast-error-soft);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
[theme=citrusmint] [toast=error] {
|
|
394
|
+
border-left-color: var(--juice-toast-error);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
[theme=citrusmint] [toast=error] [toast-title] {
|
|
398
|
+
color: var(--juice-toast-error);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
[theme=citrusmint] [toast=info]:not([surfaceTone]) {
|
|
402
|
+
background-color: var(--juice-toast-info-soft);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
[theme=citrusmint] [toast=info] {
|
|
406
|
+
border-left-color: var(--juice-toast-info);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
[theme=citrusmint] [toast=info] [toast-title] {
|
|
410
|
+
color: var(--juice-toast-info);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
[theme=citrusmint] [toast=warning]:not([surfaceTone]) {
|
|
414
|
+
background-color: var(--juice-toast-warning-soft);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
[theme=citrusmint] [toast=warning] {
|
|
418
|
+
border-left-color: var(--juice-toast-warning);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
[theme=citrusmint] [toast=warning] [toast-title] {
|
|
422
|
+
color: var(--juice-toast-warning);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
[theme=citrusmint] button[toast-close],
|
|
426
|
+
[theme=citrusmint] [toast-close] {
|
|
427
|
+
background-color: var(--juice-toast-close);
|
|
428
|
+
color: var(--juice-toast-close-color);
|
|
429
|
+
box-shadow: none;
|
|
430
|
+
transform: none;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
[theme=citrusmint] button[toast-close]:hover,
|
|
434
|
+
[theme=citrusmint] [toast-close]:hover {
|
|
435
|
+
background-color: var(--juice-toast-close-hover);
|
|
436
|
+
color: var(--juice-toast-close-color);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
[theme=citrusmint] button[toast-close]:focus-visible,
|
|
440
|
+
[theme=citrusmint] [toast-close]:focus-visible {
|
|
441
|
+
outline: 2px solid var(--juice-toast-focus-ring);
|
|
442
|
+
outline-offset: 2px;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* Popover chrome. Generic Citrusmint buttons use heading fill;
|
|
446
|
+
[popover-close] stays a surface control. Runtime is later. */
|
|
447
|
+
[theme=citrusmint] [popover-panel]:not([surfaceTone]) {
|
|
448
|
+
background-color: var(--juice-popover-panel);
|
|
449
|
+
border: 1px solid var(--juice-popover-panel-border);
|
|
450
|
+
box-shadow: var(--juice-popover-panel-shadow);
|
|
451
|
+
color: var(--juice-popover-ink);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
[theme=citrusmint] [popover-header],
|
|
455
|
+
[theme=citrusmint] [popover-body] {
|
|
456
|
+
color: var(--juice-popover-ink);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
[theme=citrusmint] button[popover-close],
|
|
460
|
+
[theme=citrusmint] [popover-close] {
|
|
461
|
+
background-color: var(--juice-popover-close);
|
|
462
|
+
color: var(--juice-popover-close-color);
|
|
463
|
+
box-shadow: none;
|
|
464
|
+
transform: none;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
[theme=citrusmint] button[popover-close]:hover,
|
|
468
|
+
[theme=citrusmint] [popover-close]:hover {
|
|
469
|
+
background-color: var(--juice-popover-close-hover);
|
|
470
|
+
color: var(--juice-popover-close-color);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
[theme=citrusmint] button[popover-close]:focus-visible,
|
|
474
|
+
[theme=citrusmint] [popover-close]:focus-visible {
|
|
475
|
+
outline: 2px solid var(--juice-popover-focus-ring);
|
|
476
|
+
outline-offset: 2px;
|
|
180
477
|
}
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Theme metadata for JS consumers is not part of the Beta public API.
|
|
3
3
|
* Theme contracts live beside SCSS as `<themeId>.yaml` under `src/themes/<themeId>/`.
|
|
4
4
|
* Draft themes live under `src/themes/_draft/` and are not imported from juice.scss.
|
|
5
|
-
* Draft SCSS
|
|
5
|
+
* Draft SCSS compiles to `dist/themes/_draft/` for local demos.
|
|
6
6
|
* Those files are blocked from package `exports` and omitted from the published tarball.
|
|
7
7
|
*/
|
|
8
8
|
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*
|
|
3
3
|
KiwiPress is a Juice theme.
|
|
4
4
|
The theme paints Juice's component primitives — it does not define them.
|
|
5
|
-
Structure (hero, card, cta, panel, modal, badge, stat, workflow, search-panel,
|
|
5
|
+
Structure (hero, card, cta, panel, modal, drawer, toast, popover, badge, stat, workflow, search-panel,
|
|
6
6
|
tabs, plan, section-header) lives in src/components. The theme only owns:
|
|
7
7
|
- color relationships
|
|
8
8
|
- typography voice
|
|
@@ -86,6 +86,124 @@
|
|
|
86
86
|
--juice-tabs-indicator: var(--kw-tabs-indicator);
|
|
87
87
|
--juice-tabs-list-rule: var(--kw-tabs-list-rule);
|
|
88
88
|
--juice-tabs-focus-ring: var(--kw-tabs-focus-ring);
|
|
89
|
+
/* Surface tone roles — --kw-surface-strong is the frosted nav fill;
|
|
90
|
+
juice strong uses the opaque --kw-surface panel. */
|
|
91
|
+
--juice-surface-soft-bg: var(--kw-surface-strong);
|
|
92
|
+
--juice-surface-soft-border: var(--kw-border);
|
|
93
|
+
--juice-surface-soft-shadow: 0 18px 40px -28px var(--kw-shadow);
|
|
94
|
+
--juice-surface-soft-blur: 10px;
|
|
95
|
+
--juice-surface-strong-bg: var(--kw-surface);
|
|
96
|
+
--juice-surface-strong-border: var(--kw-border-strong);
|
|
97
|
+
--juice-surface-strong-shadow: 0 22px 48px -22px var(--kw-shadow-strong);
|
|
98
|
+
--juice-surface-strong-blur: 0px;
|
|
99
|
+
--juice-surface-muted-bg: var(--kw-surface-muted);
|
|
100
|
+
--juice-surface-muted-border: var(--kw-border);
|
|
101
|
+
--juice-surface-muted-shadow: none;
|
|
102
|
+
--juice-surface-muted-blur: 0px;
|
|
103
|
+
/* Border strength — existing --kw-border tokens; 1px hairline vs 2px rule. */
|
|
104
|
+
--juice-border-strength-soft-width: 1px;
|
|
105
|
+
--juice-border-strength-soft-color: var(--kw-border);
|
|
106
|
+
--juice-border-strength-bold-width: 2px;
|
|
107
|
+
--juice-border-strength-bold-color: var(--kw-border-strong);
|
|
108
|
+
/* Shadow tone — cornflower tier vs marmalade warm; no new hue family. */
|
|
109
|
+
--juice-shadow-tone-cool-color: color-mix(in srgb, var(--kw-tier-content) 18%, transparent);
|
|
110
|
+
--juice-shadow-tone-cool-shadow: 0 18px 40px -28px color-mix(in srgb, var(--kw-tier-content) 18%, transparent);
|
|
111
|
+
--juice-shadow-tone-warm-color: color-mix(in srgb, var(--kw-warm) 18%, transparent);
|
|
112
|
+
--juice-shadow-tone-warm-shadow: 0 18px 40px -28px color-mix(in srgb, var(--kw-warm) 18%, transparent);
|
|
113
|
+
/* Overlay — frost veil / kiwi tint wash; existing tokens only. */
|
|
114
|
+
--juice-overlay-frost-wash: color-mix(in srgb, var(--kw-surface) 42%, transparent);
|
|
115
|
+
--juice-overlay-frost-layer: linear-gradient(var(--juice-overlay-frost-wash), var(--juice-overlay-frost-wash));
|
|
116
|
+
--juice-overlay-tint-wash: color-mix(in srgb, var(--kw-accent-tint) 40%, transparent);
|
|
117
|
+
--juice-overlay-tint-layer: linear-gradient(var(--juice-overlay-tint-wash), var(--juice-overlay-tint-wash));
|
|
118
|
+
/* Modal chrome — dimming scrim + elevated panel from existing tokens.
|
|
119
|
+
Close is a surface control, not the kiwi CTA. */
|
|
120
|
+
--kw-modal-overlay: color-mix(in srgb, var(--kw-surface-deep) 75%, transparent);
|
|
121
|
+
--kw-modal-panel: var(--kw-surface);
|
|
122
|
+
--kw-modal-panel-border: var(--kw-border);
|
|
123
|
+
--kw-modal-panel-shadow: 0 24px 56px -24px var(--kw-shadow-strong);
|
|
124
|
+
--kw-modal-close: var(--kw-surface);
|
|
125
|
+
--kw-modal-close-color: var(--kw-heading);
|
|
126
|
+
--kw-modal-close-hover: var(--kw-surface-muted);
|
|
127
|
+
--kw-modal-focus-ring: var(--kw-accent);
|
|
128
|
+
--juice-modal-overlay: var(--kw-modal-overlay);
|
|
129
|
+
--juice-modal-panel: var(--kw-modal-panel);
|
|
130
|
+
--juice-modal-panel-border: var(--kw-modal-panel-border);
|
|
131
|
+
--juice-modal-panel-shadow: var(--kw-modal-panel-shadow);
|
|
132
|
+
--juice-modal-close: var(--kw-modal-close);
|
|
133
|
+
--juice-modal-close-color: var(--kw-modal-close-color);
|
|
134
|
+
--juice-modal-close-hover: var(--kw-modal-close-hover);
|
|
135
|
+
--juice-modal-focus-ring: var(--kw-modal-focus-ring);
|
|
136
|
+
/* Drawer chrome — dimming scrim + edge panel from existing tokens.
|
|
137
|
+
Close is a surface control, not the kiwi CTA. */
|
|
138
|
+
--kw-drawer-overlay: color-mix(in srgb, var(--kw-surface-deep) 75%, transparent);
|
|
139
|
+
--kw-drawer-panel: var(--kw-surface);
|
|
140
|
+
--kw-drawer-panel-border: var(--kw-border);
|
|
141
|
+
--kw-drawer-panel-shadow: 0 24px 56px -24px var(--kw-shadow-strong);
|
|
142
|
+
--kw-drawer-close: var(--kw-surface);
|
|
143
|
+
--kw-drawer-close-color: var(--kw-heading);
|
|
144
|
+
--kw-drawer-close-hover: var(--kw-surface-muted);
|
|
145
|
+
--kw-drawer-focus-ring: var(--kw-accent);
|
|
146
|
+
--juice-drawer-overlay: var(--kw-drawer-overlay);
|
|
147
|
+
--juice-drawer-panel: var(--kw-drawer-panel);
|
|
148
|
+
--juice-drawer-panel-border: var(--kw-drawer-panel-border);
|
|
149
|
+
--juice-drawer-panel-shadow: var(--kw-drawer-panel-shadow);
|
|
150
|
+
--juice-drawer-close: var(--kw-drawer-close);
|
|
151
|
+
--juice-drawer-close-color: var(--kw-drawer-close-color);
|
|
152
|
+
--juice-drawer-close-hover: var(--kw-drawer-close-hover);
|
|
153
|
+
--juice-drawer-focus-ring: var(--kw-drawer-focus-ring);
|
|
154
|
+
/* Toast chrome — non-modal stack + panel from existing tokens.
|
|
155
|
+
Close is a surface control, not the kiwi CTA. Status remaps
|
|
156
|
+
kiwi / cornflower / marmalade identity (no new hue family). */
|
|
157
|
+
--kw-toast-panel: var(--kw-surface);
|
|
158
|
+
--kw-toast-panel-border: var(--kw-border);
|
|
159
|
+
--kw-toast-panel-shadow: 0 18px 40px -24px var(--kw-shadow-strong);
|
|
160
|
+
--kw-toast-ink: var(--kw-text);
|
|
161
|
+
--kw-toast-close: var(--kw-surface);
|
|
162
|
+
--kw-toast-close-color: var(--kw-heading);
|
|
163
|
+
--kw-toast-close-hover: var(--kw-surface-muted);
|
|
164
|
+
--kw-toast-focus-ring: var(--kw-accent);
|
|
165
|
+
--kw-toast-success: var(--kw-accent);
|
|
166
|
+
--kw-toast-success-soft: var(--kw-accent-soft);
|
|
167
|
+
--kw-toast-error: var(--kw-surface-deep);
|
|
168
|
+
--kw-toast-error-soft: color-mix(in srgb, var(--kw-surface-deep) 10%, var(--kw-surface));
|
|
169
|
+
--kw-toast-info: var(--kw-tier-content);
|
|
170
|
+
--kw-toast-info-soft: var(--kw-tier-content-soft);
|
|
171
|
+
--kw-toast-warning: var(--kw-warm);
|
|
172
|
+
--kw-toast-warning-soft: var(--kw-warm-soft);
|
|
173
|
+
--juice-toast-panel: var(--kw-toast-panel);
|
|
174
|
+
--juice-toast-panel-border: var(--kw-toast-panel-border);
|
|
175
|
+
--juice-toast-panel-shadow: var(--kw-toast-panel-shadow);
|
|
176
|
+
--juice-toast-ink: var(--kw-toast-ink);
|
|
177
|
+
--juice-toast-close: var(--kw-toast-close);
|
|
178
|
+
--juice-toast-close-color: var(--kw-toast-close-color);
|
|
179
|
+
--juice-toast-close-hover: var(--kw-toast-close-hover);
|
|
180
|
+
--juice-toast-focus-ring: var(--kw-toast-focus-ring);
|
|
181
|
+
--juice-toast-success: var(--kw-toast-success);
|
|
182
|
+
--juice-toast-success-soft: var(--kw-toast-success-soft);
|
|
183
|
+
--juice-toast-error: var(--kw-toast-error);
|
|
184
|
+
--juice-toast-error-soft: var(--kw-toast-error-soft);
|
|
185
|
+
--juice-toast-info: var(--kw-toast-info);
|
|
186
|
+
--juice-toast-info-soft: var(--kw-toast-info-soft);
|
|
187
|
+
--juice-toast-warning: var(--kw-toast-warning);
|
|
188
|
+
--juice-toast-warning-soft: var(--kw-toast-warning-soft);
|
|
189
|
+
/* Popover chrome — anchored floating panel from existing tokens.
|
|
190
|
+
Close is a surface control, not the kiwi CTA. */
|
|
191
|
+
--kw-popover-panel: var(--kw-surface);
|
|
192
|
+
--kw-popover-panel-border: var(--kw-border);
|
|
193
|
+
--kw-popover-panel-shadow: 0 18px 40px -24px var(--kw-shadow-strong);
|
|
194
|
+
--kw-popover-ink: var(--kw-text);
|
|
195
|
+
--kw-popover-close: var(--kw-surface);
|
|
196
|
+
--kw-popover-close-color: var(--kw-heading);
|
|
197
|
+
--kw-popover-close-hover: var(--kw-surface-muted);
|
|
198
|
+
--kw-popover-focus-ring: var(--kw-accent);
|
|
199
|
+
--juice-popover-panel: var(--kw-popover-panel);
|
|
200
|
+
--juice-popover-panel-border: var(--kw-popover-panel-border);
|
|
201
|
+
--juice-popover-panel-shadow: var(--kw-popover-panel-shadow);
|
|
202
|
+
--juice-popover-ink: var(--kw-popover-ink);
|
|
203
|
+
--juice-popover-close: var(--kw-popover-close);
|
|
204
|
+
--juice-popover-close-color: var(--kw-popover-close-color);
|
|
205
|
+
--juice-popover-close-hover: var(--kw-popover-close-hover);
|
|
206
|
+
--juice-popover-focus-ring: var(--kw-popover-focus-ring);
|
|
89
207
|
background-color: var(--kw-page);
|
|
90
208
|
color: var(--kw-text);
|
|
91
209
|
font-family: var(--kw-body-font);
|
|
@@ -1252,28 +1370,193 @@
|
|
|
1252
1370
|
color: var(--kw-text-soft);
|
|
1253
1371
|
}
|
|
1254
1372
|
|
|
1255
|
-
/* Modal
|
|
1373
|
+
/* Modal chrome. Generic KiwiPress buttons are kiwi CTAs;
|
|
1374
|
+
[modal-close] stays a surface control. Motion stays theme-local. */
|
|
1256
1375
|
[theme=kiwipress] [modal-overlay] {
|
|
1257
|
-
background-color:
|
|
1376
|
+
background-color: var(--juice-modal-overlay);
|
|
1258
1377
|
animation: kw-fadeIn 0.2s ease-out;
|
|
1259
1378
|
}
|
|
1260
1379
|
|
|
1261
|
-
[theme=kiwipress] [modal] {
|
|
1262
|
-
background-color: var(--
|
|
1380
|
+
[theme=kiwipress] [modal]:not([surfaceTone]) {
|
|
1381
|
+
background-color: var(--juice-modal-panel);
|
|
1382
|
+
border: 1px solid var(--juice-modal-panel-border);
|
|
1383
|
+
box-shadow: var(--juice-modal-panel-shadow);
|
|
1263
1384
|
animation: kw-slideUp 0.3s ease-out;
|
|
1264
1385
|
}
|
|
1265
1386
|
|
|
1387
|
+
[theme=kiwipress] button[modal-close],
|
|
1266
1388
|
[theme=kiwipress] [modal-close] {
|
|
1267
|
-
background-
|
|
1389
|
+
background-image: none;
|
|
1390
|
+
background-color: var(--juice-modal-close);
|
|
1391
|
+
color: var(--juice-modal-close-color);
|
|
1268
1392
|
box-shadow: 0 2px 8px var(--kw-shadow);
|
|
1393
|
+
transform: none;
|
|
1269
1394
|
transition: background-color 0.2s, transform 0.2s;
|
|
1270
1395
|
}
|
|
1271
1396
|
|
|
1397
|
+
[theme=kiwipress] button[modal-close]:hover,
|
|
1272
1398
|
[theme=kiwipress] [modal-close]:hover {
|
|
1273
|
-
background-color: var(--
|
|
1399
|
+
background-color: var(--juice-modal-close-hover);
|
|
1274
1400
|
transform: rotate(90deg);
|
|
1275
1401
|
}
|
|
1276
1402
|
|
|
1403
|
+
[theme=kiwipress] button[modal-close]:focus-visible,
|
|
1404
|
+
[theme=kiwipress] [modal-close]:focus-visible {
|
|
1405
|
+
outline: 2px solid var(--juice-modal-focus-ring);
|
|
1406
|
+
outline-offset: 2px;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
/* Drawer chrome. Generic KiwiPress buttons are kiwi CTAs;
|
|
1410
|
+
[drawer-close] stays a surface control. */
|
|
1411
|
+
[theme=kiwipress] [drawer-overlay] {
|
|
1412
|
+
background-color: var(--juice-drawer-overlay);
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
[theme=kiwipress] [drawer]:not([surfaceTone]) {
|
|
1416
|
+
background-color: var(--juice-drawer-panel);
|
|
1417
|
+
border: 1px solid var(--juice-drawer-panel-border);
|
|
1418
|
+
box-shadow: var(--juice-drawer-panel-shadow);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
[theme=kiwipress] button[drawer-close],
|
|
1422
|
+
[theme=kiwipress] [drawer-close] {
|
|
1423
|
+
background-image: none;
|
|
1424
|
+
background-color: var(--juice-drawer-close);
|
|
1425
|
+
color: var(--juice-drawer-close-color);
|
|
1426
|
+
box-shadow: none;
|
|
1427
|
+
transform: none;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
[theme=kiwipress] button[drawer-close]:hover,
|
|
1431
|
+
[theme=kiwipress] [drawer-close]:hover {
|
|
1432
|
+
background-color: var(--juice-drawer-close-hover);
|
|
1433
|
+
transform: none;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
[theme=kiwipress] button[drawer-close]:focus-visible,
|
|
1437
|
+
[theme=kiwipress] [drawer-close]:focus-visible {
|
|
1438
|
+
outline: 2px solid var(--juice-drawer-focus-ring);
|
|
1439
|
+
outline-offset: 2px;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
/* Toast chrome. Generic KiwiPress buttons are kiwi CTAs;
|
|
1443
|
+
[toast-close] stays a surface control. */
|
|
1444
|
+
[theme=kiwipress] [toast]:not([surfaceTone]) {
|
|
1445
|
+
background-color: var(--juice-toast-panel);
|
|
1446
|
+
border: 1px solid var(--juice-toast-panel-border);
|
|
1447
|
+
box-shadow: var(--juice-toast-panel-shadow);
|
|
1448
|
+
color: var(--juice-toast-ink);
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
[theme=kiwipress] [toast-title],
|
|
1452
|
+
[theme=kiwipress] [toast-body] {
|
|
1453
|
+
color: var(--juice-toast-ink);
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
[theme=kiwipress] [toast=success]:not([surfaceTone]) {
|
|
1457
|
+
background-color: var(--juice-toast-success-soft);
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
[theme=kiwipress] [toast=success] {
|
|
1461
|
+
border-left-color: var(--juice-toast-success);
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
[theme=kiwipress] [toast=success] [toast-title] {
|
|
1465
|
+
color: var(--juice-toast-success);
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
[theme=kiwipress] [toast=error]:not([surfaceTone]) {
|
|
1469
|
+
background-color: var(--juice-toast-error-soft);
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
[theme=kiwipress] [toast=error] {
|
|
1473
|
+
border-left-color: var(--juice-toast-error);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
[theme=kiwipress] [toast=error] [toast-title] {
|
|
1477
|
+
color: var(--juice-toast-error);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
[theme=kiwipress] [toast=info]:not([surfaceTone]) {
|
|
1481
|
+
background-color: var(--juice-toast-info-soft);
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
[theme=kiwipress] [toast=info] {
|
|
1485
|
+
border-left-color: var(--juice-toast-info);
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
[theme=kiwipress] [toast=info] [toast-title] {
|
|
1489
|
+
color: var(--juice-toast-info);
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
[theme=kiwipress] [toast=warning]:not([surfaceTone]) {
|
|
1493
|
+
background-color: var(--juice-toast-warning-soft);
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
[theme=kiwipress] [toast=warning] {
|
|
1497
|
+
border-left-color: var(--juice-toast-warning);
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
[theme=kiwipress] [toast=warning] [toast-title] {
|
|
1501
|
+
color: var(--juice-toast-warning);
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
[theme=kiwipress] button[toast-close],
|
|
1505
|
+
[theme=kiwipress] [toast-close] {
|
|
1506
|
+
background-image: none;
|
|
1507
|
+
background-color: var(--juice-toast-close);
|
|
1508
|
+
color: var(--juice-toast-close-color);
|
|
1509
|
+
box-shadow: none;
|
|
1510
|
+
transform: none;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
[theme=kiwipress] button[toast-close]:hover,
|
|
1514
|
+
[theme=kiwipress] [toast-close]:hover {
|
|
1515
|
+
background-color: var(--juice-toast-close-hover);
|
|
1516
|
+
transform: none;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
[theme=kiwipress] button[toast-close]:focus-visible,
|
|
1520
|
+
[theme=kiwipress] [toast-close]:focus-visible {
|
|
1521
|
+
outline: 2px solid var(--juice-toast-focus-ring);
|
|
1522
|
+
outline-offset: 2px;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
/* Popover chrome. Generic KiwiPress buttons are kiwi CTAs;
|
|
1526
|
+
[popover-close] stays a surface control. */
|
|
1527
|
+
[theme=kiwipress] [popover-panel]:not([surfaceTone]) {
|
|
1528
|
+
background-color: var(--juice-popover-panel);
|
|
1529
|
+
border: 1px solid var(--juice-popover-panel-border);
|
|
1530
|
+
box-shadow: var(--juice-popover-panel-shadow);
|
|
1531
|
+
color: var(--juice-popover-ink);
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
[theme=kiwipress] [popover-header],
|
|
1535
|
+
[theme=kiwipress] [popover-body] {
|
|
1536
|
+
color: var(--juice-popover-ink);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
[theme=kiwipress] button[popover-close],
|
|
1540
|
+
[theme=kiwipress] [popover-close] {
|
|
1541
|
+
background-image: none;
|
|
1542
|
+
background-color: var(--juice-popover-close);
|
|
1543
|
+
color: var(--juice-popover-close-color);
|
|
1544
|
+
box-shadow: none;
|
|
1545
|
+
transform: none;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
[theme=kiwipress] button[popover-close]:hover,
|
|
1549
|
+
[theme=kiwipress] [popover-close]:hover {
|
|
1550
|
+
background-color: var(--juice-popover-close-hover);
|
|
1551
|
+
transform: none;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
[theme=kiwipress] button[popover-close]:focus-visible,
|
|
1555
|
+
[theme=kiwipress] [popover-close]:focus-visible {
|
|
1556
|
+
outline: 2px solid var(--juice-popover-focus-ring);
|
|
1557
|
+
outline-offset: 2px;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1277
1560
|
/* Accordion wrappers are structural, not default section surfaces.
|
|
1278
1561
|
Generic KiwiPress buttons are kiwi CTAs; triggers stay surface controls. */
|
|
1279
1562
|
[theme=kiwipress] :where([accordion]) {
|