@citrusworx/juiceui 0.8.0 → 0.9.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 +47 -3
- package/dist/index.css +2361 -76
- package/dist/index.d.ts +12 -0
- package/dist/index.js +986 -196
- package/dist/js/juice.d.ts +12 -0
- package/dist/js/src/breadcrumb/breadcrumb-runtime.d.ts +64 -0
- package/dist/js/src/checkbox/checkbox-runtime.d.ts +51 -0
- package/dist/js/src/progress/progress-runtime.d.ts +51 -0
- package/dist/js/src/radio/radio-runtime.d.ts +52 -0
- package/dist/js/src/slider/slider-runtime.d.ts +55 -0
- package/dist/js/src/switch/switch-runtime.d.ts +50 -0
- package/dist/themes/aquaflux.css +298 -0
- package/dist/themes/citrusmint.css +260 -0
- package/dist/themes/kiwipress.css +313 -0
- package/dist/themes/tide.css +301 -0
- package/package.json +1 -1
|
@@ -289,6 +289,96 @@
|
|
|
289
289
|
--juice-menu-focus-ring: var(--cm-menu-focus-ring);
|
|
290
290
|
--juice-menu-opener: var(--cm-menu-opener);
|
|
291
291
|
--juice-menu-opener-ink: var(--cm-menu-opener-ink);
|
|
292
|
+
/* Switch chrome — thinner --cm-* set. Heading stands in for accent.
|
|
293
|
+
The host is a surface track, not heading-fill. Distinct from
|
|
294
|
+
checkbox / menuitemcheckbox. */
|
|
295
|
+
--cm-switch-track: var(--cm-surface-muted);
|
|
296
|
+
--cm-switch-track-checked: var(--cm-heading);
|
|
297
|
+
--cm-switch-thumb: var(--cm-surface);
|
|
298
|
+
--cm-switch-thumb-checked: var(--cm-surface);
|
|
299
|
+
--cm-switch-focus-ring: var(--cm-heading);
|
|
300
|
+
--juice-switch-track: var(--cm-switch-track);
|
|
301
|
+
--juice-switch-track-checked: var(--cm-switch-track-checked);
|
|
302
|
+
--juice-switch-thumb: var(--cm-switch-thumb);
|
|
303
|
+
--juice-switch-thumb-checked: var(--cm-switch-thumb-checked);
|
|
304
|
+
--juice-switch-focus-ring: var(--cm-switch-focus-ring);
|
|
305
|
+
/* Slider chrome — thinner --cm-* set. Heading stands in for accent.
|
|
306
|
+
Horizontal only. The track is a surface groove, not heading-fill.
|
|
307
|
+
Distinct from range input, progress, and scrollbar. */
|
|
308
|
+
--cm-slider-track: var(--cm-surface-muted);
|
|
309
|
+
--cm-slider-track-border: var(--cm-border);
|
|
310
|
+
--cm-slider-fill: var(--cm-heading);
|
|
311
|
+
--cm-slider-thumb: var(--cm-surface);
|
|
312
|
+
--cm-slider-thumb-border: var(--cm-border);
|
|
313
|
+
--cm-slider-thumb-shadow: 0 1px 2px color-mix(in srgb, var(--cm-heading) 22%, transparent);
|
|
314
|
+
--cm-slider-focus-ring: var(--cm-heading);
|
|
315
|
+
--juice-slider-track: var(--cm-slider-track);
|
|
316
|
+
--juice-slider-track-border: var(--cm-slider-track-border);
|
|
317
|
+
--juice-slider-fill: var(--cm-slider-fill);
|
|
318
|
+
--juice-slider-thumb: var(--cm-slider-thumb);
|
|
319
|
+
--juice-slider-thumb-border: var(--cm-slider-thumb-border);
|
|
320
|
+
--juice-slider-thumb-shadow: var(--cm-slider-thumb-shadow);
|
|
321
|
+
--juice-slider-focus-ring: var(--cm-slider-focus-ring);
|
|
322
|
+
/* Checkbox chrome — thinner --cm-* set. Heading stands in for accent.
|
|
323
|
+
The host is a surface box, not heading-fill. Binary only. Distinct
|
|
324
|
+
from switch and menuitemcheckbox. */
|
|
325
|
+
--cm-checkbox-control: var(--cm-surface);
|
|
326
|
+
--cm-checkbox-control-checked: var(--cm-heading);
|
|
327
|
+
--cm-checkbox-border: var(--cm-border);
|
|
328
|
+
--cm-checkbox-border-checked: var(--cm-heading);
|
|
329
|
+
--cm-checkbox-mark: var(--cm-surface);
|
|
330
|
+
--cm-checkbox-focus-ring: var(--cm-heading);
|
|
331
|
+
--juice-checkbox-control: var(--cm-checkbox-control);
|
|
332
|
+
--juice-checkbox-control-checked: var(--cm-checkbox-control-checked);
|
|
333
|
+
--juice-checkbox-border: var(--cm-checkbox-border);
|
|
334
|
+
--juice-checkbox-border-checked: var(--cm-checkbox-border-checked);
|
|
335
|
+
--juice-checkbox-mark: var(--cm-checkbox-mark);
|
|
336
|
+
--juice-checkbox-focus-ring: var(--cm-checkbox-focus-ring);
|
|
337
|
+
/* Radio chrome — thinner --cm-* set. Heading stands in for accent.
|
|
338
|
+
The host is a surface disc, not heading-fill. The group is
|
|
339
|
+
layout-only. Distinct from switch and checkbox. */
|
|
340
|
+
--cm-radio-control: var(--cm-surface);
|
|
341
|
+
--cm-radio-control-checked: var(--cm-surface);
|
|
342
|
+
--cm-radio-border: var(--cm-border);
|
|
343
|
+
--cm-radio-border-checked: var(--cm-heading);
|
|
344
|
+
--cm-radio-mark: var(--cm-heading);
|
|
345
|
+
--cm-radio-focus-ring: var(--cm-heading);
|
|
346
|
+
--juice-radio-control: var(--cm-radio-control);
|
|
347
|
+
--juice-radio-control-checked: var(--cm-radio-control-checked);
|
|
348
|
+
--juice-radio-border: var(--cm-radio-border);
|
|
349
|
+
--juice-radio-border-checked: var(--cm-radio-border-checked);
|
|
350
|
+
--juice-radio-mark: var(--cm-radio-mark);
|
|
351
|
+
--juice-radio-focus-ring: var(--cm-radio-focus-ring);
|
|
352
|
+
/* Breadcrumb chrome — thinner --cm-* set. Heading stands in for accent.
|
|
353
|
+
Inline trail, not a site nav bar and not heading-fill. Surface stays
|
|
354
|
+
transparent unless a bar is wanted. Distinct from tabs, wizard steps,
|
|
355
|
+
and pagination. */
|
|
356
|
+
--cm-breadcrumb-ink: var(--cm-text-muted);
|
|
357
|
+
--cm-breadcrumb-ink-current: var(--cm-heading);
|
|
358
|
+
--cm-breadcrumb-ink-hover: var(--cm-heading);
|
|
359
|
+
--cm-breadcrumb-separator: var(--cm-border);
|
|
360
|
+
--cm-breadcrumb-focus-ring: var(--cm-heading);
|
|
361
|
+
--cm-breadcrumb-surface: transparent;
|
|
362
|
+
--juice-breadcrumb-ink: var(--cm-breadcrumb-ink);
|
|
363
|
+
--juice-breadcrumb-ink-current: var(--cm-breadcrumb-ink-current);
|
|
364
|
+
--juice-breadcrumb-ink-hover: var(--cm-breadcrumb-ink-hover);
|
|
365
|
+
--juice-breadcrumb-separator: var(--cm-breadcrumb-separator);
|
|
366
|
+
--juice-breadcrumb-focus-ring: var(--cm-breadcrumb-focus-ring);
|
|
367
|
+
--juice-breadcrumb-surface: var(--cm-breadcrumb-surface);
|
|
368
|
+
/* Progress chrome — thinner --cm-* set. Heading stands in for accent
|
|
369
|
+
on the fill, same as slider. The track is a surface groove, not
|
|
370
|
+
heading-fill. Distinct from slider, spinner, and a native
|
|
371
|
+
<progress> restyle. Inline status — no overlay. */
|
|
372
|
+
--cm-progress-track: var(--cm-surface-muted);
|
|
373
|
+
--cm-progress-track-border: var(--cm-border);
|
|
374
|
+
--cm-progress-fill: var(--cm-heading);
|
|
375
|
+
--cm-progress-ink: var(--cm-text);
|
|
376
|
+
--cm-progress-focus-ring: var(--cm-heading);
|
|
377
|
+
--juice-progress-track: var(--cm-progress-track);
|
|
378
|
+
--juice-progress-track-border: var(--cm-progress-track-border);
|
|
379
|
+
--juice-progress-fill: var(--cm-progress-fill);
|
|
380
|
+
--juice-progress-ink: var(--cm-progress-ink);
|
|
381
|
+
--juice-progress-focus-ring: var(--cm-progress-focus-ring);
|
|
292
382
|
background-color: var(--cm-page);
|
|
293
383
|
color: var(--cm-text);
|
|
294
384
|
font-family: var(--cm-body-font);
|
|
@@ -765,4 +855,174 @@
|
|
|
765
855
|
|
|
766
856
|
[theme=citrusmint] [menu-label] {
|
|
767
857
|
color: var(--juice-menu-ink);
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/* Switch chrome. Beat [theme] :where(button) heading-fill defaults.
|
|
861
|
+
The host is a surface track, not heading-fill. Runtime is later. */
|
|
862
|
+
[theme=citrusmint] button[switch],
|
|
863
|
+
[theme=citrusmint] [switch] {
|
|
864
|
+
background-color: var(--juice-switch-track);
|
|
865
|
+
box-shadow: none;
|
|
866
|
+
transform: none;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
[theme=citrusmint] button[switch][aria-checked=true],
|
|
870
|
+
[theme=citrusmint] [switch][aria-checked=true],
|
|
871
|
+
[theme=citrusmint] [switch]:checked {
|
|
872
|
+
background-color: var(--juice-switch-track-checked);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
[theme=citrusmint] button[switch]:focus-visible,
|
|
876
|
+
[theme=citrusmint] [switch]:focus-visible {
|
|
877
|
+
outline: 2px solid var(--juice-switch-focus-ring);
|
|
878
|
+
outline-offset: 2px;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
/* Slider chrome. Beat [theme] :where(button) heading-fill defaults.
|
|
882
|
+
Horizontal only. The thumb is a surface control, not heading-fill.
|
|
883
|
+
Runtime is later. */
|
|
884
|
+
[theme=citrusmint] button[slider]:not([slider=vertical]),
|
|
885
|
+
[theme=citrusmint] [slider]:not([slider=vertical]) {
|
|
886
|
+
background-color: transparent;
|
|
887
|
+
box-shadow: none;
|
|
888
|
+
transform: none;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
[theme=citrusmint] button[slider-thumb],
|
|
892
|
+
[theme=citrusmint] [slider-thumb] {
|
|
893
|
+
background-color: var(--juice-slider-thumb);
|
|
894
|
+
border-color: var(--juice-slider-thumb-border);
|
|
895
|
+
box-shadow: var(--juice-slider-thumb-shadow);
|
|
896
|
+
transform: translate(-50%, -50%);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
[theme=citrusmint] button[slider-thumb]:hover,
|
|
900
|
+
[theme=citrusmint] [slider-thumb]:hover,
|
|
901
|
+
[theme=citrusmint] button[slider-thumb]:focus-visible,
|
|
902
|
+
[theme=citrusmint] [slider-thumb]:focus-visible {
|
|
903
|
+
background-color: var(--juice-slider-thumb);
|
|
904
|
+
box-shadow: var(--juice-slider-thumb-shadow);
|
|
905
|
+
transform: translate(-50%, -50%);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
[theme=citrusmint] button[slider-thumb]:focus-visible,
|
|
909
|
+
[theme=citrusmint] [slider-thumb]:focus-visible {
|
|
910
|
+
outline: 2px solid var(--juice-slider-focus-ring);
|
|
911
|
+
outline-offset: 2px;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/* Checkbox chrome. Beat [theme] :where(button) heading-fill defaults.
|
|
915
|
+
The host is a surface box, not heading-fill. Binary only. Runtime is later. */
|
|
916
|
+
[theme=citrusmint] button[checkbox],
|
|
917
|
+
[theme=citrusmint] [checkbox] {
|
|
918
|
+
background-color: var(--juice-checkbox-control);
|
|
919
|
+
border-color: var(--juice-checkbox-border);
|
|
920
|
+
box-shadow: none;
|
|
921
|
+
transform: none;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
[theme=citrusmint] button[checkbox][aria-checked=true],
|
|
925
|
+
[theme=citrusmint] [checkbox][aria-checked=true],
|
|
926
|
+
[theme=citrusmint] [checkbox]:checked {
|
|
927
|
+
background-color: var(--juice-checkbox-control-checked);
|
|
928
|
+
border-color: var(--juice-checkbox-border-checked);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
[theme=citrusmint] button[checkbox]:focus-visible,
|
|
932
|
+
[theme=citrusmint] [checkbox]:focus-visible {
|
|
933
|
+
outline: 2px solid var(--juice-checkbox-focus-ring);
|
|
934
|
+
outline-offset: 2px;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
/* Radio chrome. Beat [theme] :where(button) heading-fill defaults.
|
|
938
|
+
The host is a surface disc, not heading-fill. Group layout is author-owned.
|
|
939
|
+
Runtime is later. */
|
|
940
|
+
[theme=citrusmint] button[radio],
|
|
941
|
+
[theme=citrusmint] [radio] {
|
|
942
|
+
background-color: var(--juice-radio-control);
|
|
943
|
+
border-color: var(--juice-radio-border);
|
|
944
|
+
box-shadow: none;
|
|
945
|
+
transform: none;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
[theme=citrusmint] button[radio][aria-checked=true],
|
|
949
|
+
[theme=citrusmint] [radio][aria-checked=true],
|
|
950
|
+
[theme=citrusmint] [radio]:checked {
|
|
951
|
+
background-color: var(--juice-radio-control-checked);
|
|
952
|
+
border-color: var(--juice-radio-border-checked);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
[theme=citrusmint] button[radio]:focus-visible,
|
|
956
|
+
[theme=citrusmint] [radio]:focus-visible {
|
|
957
|
+
outline: 2px solid var(--juice-radio-focus-ring);
|
|
958
|
+
outline-offset: 2px;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/* Breadcrumb chrome. Beat [theme] :where(nav) bars and :where(a) link color.
|
|
962
|
+
Inline trail, not a site nav and not heading-fill. Runtime is later. */
|
|
963
|
+
[theme=citrusmint] [breadcrumb],
|
|
964
|
+
[theme=citrusmint] nav[breadcrumb] {
|
|
965
|
+
background-color: var(--juice-breadcrumb-surface);
|
|
966
|
+
border: none;
|
|
967
|
+
box-shadow: none;
|
|
968
|
+
color: var(--juice-breadcrumb-ink);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
[theme=citrusmint] [breadcrumb] a,
|
|
972
|
+
[theme=citrusmint] [breadcrumb-link],
|
|
973
|
+
[theme=citrusmint] a[breadcrumb-link],
|
|
974
|
+
[theme=citrusmint] button[breadcrumb-link] {
|
|
975
|
+
background-color: transparent;
|
|
976
|
+
color: var(--juice-breadcrumb-ink);
|
|
977
|
+
box-shadow: none;
|
|
978
|
+
transform: none;
|
|
979
|
+
text-decoration: none;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
[theme=citrusmint] [breadcrumb] a:hover,
|
|
983
|
+
[theme=citrusmint] [breadcrumb-link]:hover,
|
|
984
|
+
[theme=citrusmint] a[breadcrumb-link]:hover,
|
|
985
|
+
[theme=citrusmint] button[breadcrumb-link]:hover {
|
|
986
|
+
background-color: transparent;
|
|
987
|
+
color: var(--juice-breadcrumb-ink-hover);
|
|
988
|
+
box-shadow: none;
|
|
989
|
+
transform: none;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
[theme=citrusmint] [breadcrumb] [aria-current=page],
|
|
993
|
+
[theme=citrusmint] [breadcrumb] [aria-current=page] :is(a, [breadcrumb-link]),
|
|
994
|
+
[theme=citrusmint] [breadcrumb-link][aria-current=page] {
|
|
995
|
+
color: var(--juice-breadcrumb-ink-current);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
[theme=citrusmint] [breadcrumb] a:focus-visible,
|
|
999
|
+
[theme=citrusmint] [breadcrumb-link]:focus-visible,
|
|
1000
|
+
[theme=citrusmint] button[breadcrumb-link]:focus-visible {
|
|
1001
|
+
outline: 2px solid var(--juice-breadcrumb-focus-ring);
|
|
1002
|
+
outline-offset: 2px;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/* Progress chrome. Beat generic fills. Heading paints the fill, not a
|
|
1006
|
+
CTA. Runtime is later. */
|
|
1007
|
+
[theme=citrusmint] [progress] {
|
|
1008
|
+
background-color: transparent;
|
|
1009
|
+
border: none;
|
|
1010
|
+
box-shadow: none;
|
|
1011
|
+
color: var(--juice-progress-ink);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
[theme=citrusmint] [progress-fill] {
|
|
1015
|
+
background-color: var(--juice-progress-fill);
|
|
1016
|
+
box-shadow: none;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
[theme=citrusmint] [progress-label] {
|
|
1020
|
+
background-color: transparent;
|
|
1021
|
+
color: var(--juice-progress-ink);
|
|
1022
|
+
box-shadow: none;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
[theme=citrusmint] [progress]:focus-visible {
|
|
1026
|
+
outline: 2px solid var(--juice-progress-focus-ring);
|
|
1027
|
+
outline-offset: 2px;
|
|
768
1028
|
}
|
|
@@ -332,6 +332,93 @@
|
|
|
332
332
|
--juice-menu-focus-ring: var(--kw-menu-focus-ring);
|
|
333
333
|
--juice-menu-opener: var(--kw-menu-opener);
|
|
334
334
|
--juice-menu-opener-ink: var(--kw-menu-opener-ink);
|
|
335
|
+
/* Switch chrome — APG switch from existing tokens. The host is a
|
|
336
|
+
surface track, not a kiwi CTA. Distinct from checkbox / menuitemcheckbox. */
|
|
337
|
+
--kw-switch-track: var(--kw-surface-muted);
|
|
338
|
+
--kw-switch-track-checked: var(--kw-accent);
|
|
339
|
+
--kw-switch-thumb: var(--kw-surface);
|
|
340
|
+
--kw-switch-thumb-checked: var(--kw-page);
|
|
341
|
+
--kw-switch-focus-ring: var(--kw-accent);
|
|
342
|
+
--juice-switch-track: var(--kw-switch-track);
|
|
343
|
+
--juice-switch-track-checked: var(--kw-switch-track-checked);
|
|
344
|
+
--juice-switch-thumb: var(--kw-switch-thumb);
|
|
345
|
+
--juice-switch-thumb-checked: var(--kw-switch-thumb-checked);
|
|
346
|
+
--juice-switch-focus-ring: var(--kw-switch-focus-ring);
|
|
347
|
+
/* Slider chrome — APG slider from existing tokens. Horizontal only.
|
|
348
|
+
The track is a surface groove, not a kiwi CTA. Distinct from range
|
|
349
|
+
input, progress, and scrollbar. */
|
|
350
|
+
--kw-slider-track: var(--kw-surface-muted);
|
|
351
|
+
--kw-slider-track-border: var(--kw-border);
|
|
352
|
+
--kw-slider-fill: var(--kw-accent);
|
|
353
|
+
--kw-slider-thumb: var(--kw-surface);
|
|
354
|
+
--kw-slider-thumb-border: var(--kw-border);
|
|
355
|
+
--kw-slider-thumb-shadow: 0 1px 2px var(--kw-shadow-strong);
|
|
356
|
+
--kw-slider-focus-ring: var(--kw-accent);
|
|
357
|
+
--juice-slider-track: var(--kw-slider-track);
|
|
358
|
+
--juice-slider-track-border: var(--kw-slider-track-border);
|
|
359
|
+
--juice-slider-fill: var(--kw-slider-fill);
|
|
360
|
+
--juice-slider-thumb: var(--kw-slider-thumb);
|
|
361
|
+
--juice-slider-thumb-border: var(--kw-slider-thumb-border);
|
|
362
|
+
--juice-slider-thumb-shadow: var(--kw-slider-thumb-shadow);
|
|
363
|
+
--juice-slider-focus-ring: var(--kw-slider-focus-ring);
|
|
364
|
+
/* Checkbox chrome — APG checkbox from existing tokens. The host is a
|
|
365
|
+
surface box, not a kiwi CTA. Binary only. Distinct from switch and
|
|
366
|
+
menuitemcheckbox. */
|
|
367
|
+
--kw-checkbox-control: var(--kw-surface);
|
|
368
|
+
--kw-checkbox-control-checked: var(--kw-accent);
|
|
369
|
+
--kw-checkbox-border: var(--kw-border);
|
|
370
|
+
--kw-checkbox-border-checked: var(--kw-accent);
|
|
371
|
+
--kw-checkbox-mark: var(--kw-page);
|
|
372
|
+
--kw-checkbox-focus-ring: var(--kw-accent);
|
|
373
|
+
--juice-checkbox-control: var(--kw-checkbox-control);
|
|
374
|
+
--juice-checkbox-control-checked: var(--kw-checkbox-control-checked);
|
|
375
|
+
--juice-checkbox-border: var(--kw-checkbox-border);
|
|
376
|
+
--juice-checkbox-border-checked: var(--kw-checkbox-border-checked);
|
|
377
|
+
--juice-checkbox-mark: var(--kw-checkbox-mark);
|
|
378
|
+
--juice-checkbox-focus-ring: var(--kw-checkbox-focus-ring);
|
|
379
|
+
/* Radio chrome — APG radio from existing tokens. The host is a surface
|
|
380
|
+
disc, not a kiwi CTA. The group is layout-only. Distinct from switch
|
|
381
|
+
and checkbox. */
|
|
382
|
+
--kw-radio-control: var(--kw-surface);
|
|
383
|
+
--kw-radio-control-checked: var(--kw-surface);
|
|
384
|
+
--kw-radio-border: var(--kw-border);
|
|
385
|
+
--kw-radio-border-checked: var(--kw-accent);
|
|
386
|
+
--kw-radio-mark: var(--kw-accent);
|
|
387
|
+
--kw-radio-focus-ring: var(--kw-accent);
|
|
388
|
+
--juice-radio-control: var(--kw-radio-control);
|
|
389
|
+
--juice-radio-control-checked: var(--kw-radio-control-checked);
|
|
390
|
+
--juice-radio-border: var(--kw-radio-border);
|
|
391
|
+
--juice-radio-border-checked: var(--kw-radio-border-checked);
|
|
392
|
+
--juice-radio-mark: var(--kw-radio-mark);
|
|
393
|
+
--juice-radio-focus-ring: var(--kw-radio-focus-ring);
|
|
394
|
+
/* Breadcrumb chrome — APG trail from existing tokens. Inline, not a
|
|
395
|
+
site nav bar and not a kiwi CTA. Surface stays transparent unless a
|
|
396
|
+
bar is wanted. Distinct from tabs, wizard steps, and pagination. */
|
|
397
|
+
--kw-breadcrumb-ink: var(--kw-text-muted);
|
|
398
|
+
--kw-breadcrumb-ink-current: var(--kw-heading);
|
|
399
|
+
--kw-breadcrumb-ink-hover: var(--kw-accent);
|
|
400
|
+
--kw-breadcrumb-separator: var(--kw-border);
|
|
401
|
+
--kw-breadcrumb-focus-ring: var(--kw-accent);
|
|
402
|
+
--kw-breadcrumb-surface: transparent;
|
|
403
|
+
--juice-breadcrumb-ink: var(--kw-breadcrumb-ink);
|
|
404
|
+
--juice-breadcrumb-ink-current: var(--kw-breadcrumb-ink-current);
|
|
405
|
+
--juice-breadcrumb-ink-hover: var(--kw-breadcrumb-ink-hover);
|
|
406
|
+
--juice-breadcrumb-separator: var(--kw-breadcrumb-separator);
|
|
407
|
+
--juice-breadcrumb-focus-ring: var(--kw-breadcrumb-focus-ring);
|
|
408
|
+
--juice-breadcrumb-surface: var(--kw-breadcrumb-surface);
|
|
409
|
+
/* Progress chrome — APG progressbar from existing tokens. The track
|
|
410
|
+
is a surface groove, not a kiwi CTA. Distinct from slider, spinner,
|
|
411
|
+
and a native <progress> restyle. Inline status — no overlay. */
|
|
412
|
+
--kw-progress-track: var(--kw-surface-muted);
|
|
413
|
+
--kw-progress-track-border: var(--kw-border);
|
|
414
|
+
--kw-progress-fill: var(--kw-accent);
|
|
415
|
+
--kw-progress-ink: var(--kw-text);
|
|
416
|
+
--kw-progress-focus-ring: var(--kw-accent);
|
|
417
|
+
--juice-progress-track: var(--kw-progress-track);
|
|
418
|
+
--juice-progress-track-border: var(--kw-progress-track-border);
|
|
419
|
+
--juice-progress-fill: var(--kw-progress-fill);
|
|
420
|
+
--juice-progress-ink: var(--kw-progress-ink);
|
|
421
|
+
--juice-progress-focus-ring: var(--kw-progress-focus-ring);
|
|
335
422
|
background-color: var(--kw-page);
|
|
336
423
|
color: var(--kw-text);
|
|
337
424
|
font-family: var(--kw-body-font);
|
|
@@ -1860,6 +1947,232 @@
|
|
|
1860
1947
|
color: var(--juice-menu-ink);
|
|
1861
1948
|
}
|
|
1862
1949
|
|
|
1950
|
+
/* Switch chrome. Beat [theme] :where(button) CTA defaults.
|
|
1951
|
+
The host is a surface track, not a kiwi CTA. Runtime is later. */
|
|
1952
|
+
[theme=kiwipress] button[switch],
|
|
1953
|
+
[theme=kiwipress] [switch] {
|
|
1954
|
+
background-color: var(--juice-switch-track);
|
|
1955
|
+
box-shadow: none;
|
|
1956
|
+
transform: none;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
[theme=kiwipress] button[switch][aria-checked=true],
|
|
1960
|
+
[theme=kiwipress] [switch][aria-checked=true],
|
|
1961
|
+
[theme=kiwipress] [switch]:checked {
|
|
1962
|
+
background-color: var(--juice-switch-track-checked);
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
[theme=kiwipress] button[switch]:hover,
|
|
1966
|
+
[theme=kiwipress] [switch]:hover,
|
|
1967
|
+
[theme=kiwipress] button[switch]:focus-visible,
|
|
1968
|
+
[theme=kiwipress] [switch]:focus-visible {
|
|
1969
|
+
box-shadow: none;
|
|
1970
|
+
transform: none;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
[theme=kiwipress] button[switch]:focus-visible,
|
|
1974
|
+
[theme=kiwipress] [switch]:focus-visible {
|
|
1975
|
+
outline: 2px solid var(--juice-switch-focus-ring);
|
|
1976
|
+
outline-offset: 2px;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
/* Slider chrome. Beat [theme] :where(button) CTA defaults.
|
|
1980
|
+
Horizontal only. The thumb is a surface control, not a kiwi CTA.
|
|
1981
|
+
Runtime is later. */
|
|
1982
|
+
[theme=kiwipress] button[slider]:not([slider=vertical]),
|
|
1983
|
+
[theme=kiwipress] [slider]:not([slider=vertical]) {
|
|
1984
|
+
background-color: transparent;
|
|
1985
|
+
box-shadow: none;
|
|
1986
|
+
transform: none;
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
[theme=kiwipress] button[slider-thumb],
|
|
1990
|
+
[theme=kiwipress] [slider-thumb] {
|
|
1991
|
+
background-color: var(--juice-slider-thumb);
|
|
1992
|
+
border-color: var(--juice-slider-thumb-border);
|
|
1993
|
+
box-shadow: var(--juice-slider-thumb-shadow);
|
|
1994
|
+
transform: translate(-50%, -50%);
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
[theme=kiwipress] button[slider-thumb]:hover,
|
|
1998
|
+
[theme=kiwipress] [slider-thumb]:hover,
|
|
1999
|
+
[theme=kiwipress] button[slider-thumb]:focus-visible,
|
|
2000
|
+
[theme=kiwipress] [slider-thumb]:focus-visible {
|
|
2001
|
+
background-color: var(--juice-slider-thumb);
|
|
2002
|
+
box-shadow: var(--juice-slider-thumb-shadow);
|
|
2003
|
+
transform: translate(-50%, -50%);
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
[theme=kiwipress] button[slider-thumb]:focus-visible,
|
|
2007
|
+
[theme=kiwipress] [slider-thumb]:focus-visible {
|
|
2008
|
+
outline: 2px solid var(--juice-slider-focus-ring);
|
|
2009
|
+
outline-offset: 2px;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
/* Checkbox chrome. Beat [theme] :where(button) CTA defaults.
|
|
2013
|
+
The host is a surface box, not a kiwi CTA. Binary only. Runtime is later. */
|
|
2014
|
+
[theme=kiwipress] button[checkbox],
|
|
2015
|
+
[theme=kiwipress] [checkbox] {
|
|
2016
|
+
background-color: var(--juice-checkbox-control);
|
|
2017
|
+
border-color: var(--juice-checkbox-border);
|
|
2018
|
+
box-shadow: none;
|
|
2019
|
+
transform: none;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
[theme=kiwipress] button[checkbox][aria-checked=true],
|
|
2023
|
+
[theme=kiwipress] [checkbox][aria-checked=true],
|
|
2024
|
+
[theme=kiwipress] [checkbox]:checked {
|
|
2025
|
+
background-color: var(--juice-checkbox-control-checked);
|
|
2026
|
+
border-color: var(--juice-checkbox-border-checked);
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
[theme=kiwipress] button[checkbox]:hover,
|
|
2030
|
+
[theme=kiwipress] [checkbox]:hover,
|
|
2031
|
+
[theme=kiwipress] button[checkbox]:focus-visible,
|
|
2032
|
+
[theme=kiwipress] [checkbox]:focus-visible {
|
|
2033
|
+
background-color: var(--juice-checkbox-control);
|
|
2034
|
+
box-shadow: none;
|
|
2035
|
+
transform: none;
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
[theme=kiwipress] button[checkbox][aria-checked=true]:hover,
|
|
2039
|
+
[theme=kiwipress] [checkbox][aria-checked=true]:hover,
|
|
2040
|
+
[theme=kiwipress] [checkbox]:checked:hover,
|
|
2041
|
+
[theme=kiwipress] button[checkbox][aria-checked=true]:focus-visible,
|
|
2042
|
+
[theme=kiwipress] [checkbox][aria-checked=true]:focus-visible,
|
|
2043
|
+
[theme=kiwipress] [checkbox]:checked:focus-visible {
|
|
2044
|
+
background-color: var(--juice-checkbox-control-checked);
|
|
2045
|
+
border-color: var(--juice-checkbox-border-checked);
|
|
2046
|
+
box-shadow: none;
|
|
2047
|
+
transform: none;
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
[theme=kiwipress] button[checkbox]:focus-visible,
|
|
2051
|
+
[theme=kiwipress] [checkbox]:focus-visible {
|
|
2052
|
+
outline: 2px solid var(--juice-checkbox-focus-ring);
|
|
2053
|
+
outline-offset: 2px;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
/* Radio chrome. Beat [theme] :where(button) CTA defaults.
|
|
2057
|
+
The host is a surface disc, not a kiwi CTA. Group layout is author-owned.
|
|
2058
|
+
Runtime is later. */
|
|
2059
|
+
[theme=kiwipress] button[radio],
|
|
2060
|
+
[theme=kiwipress] [radio] {
|
|
2061
|
+
background-color: var(--juice-radio-control);
|
|
2062
|
+
border-color: var(--juice-radio-border);
|
|
2063
|
+
box-shadow: none;
|
|
2064
|
+
transform: none;
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
[theme=kiwipress] button[radio][aria-checked=true],
|
|
2068
|
+
[theme=kiwipress] [radio][aria-checked=true],
|
|
2069
|
+
[theme=kiwipress] [radio]:checked {
|
|
2070
|
+
background-color: var(--juice-radio-control-checked);
|
|
2071
|
+
border-color: var(--juice-radio-border-checked);
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
[theme=kiwipress] button[radio]:hover,
|
|
2075
|
+
[theme=kiwipress] [radio]:hover,
|
|
2076
|
+
[theme=kiwipress] button[radio]:focus-visible,
|
|
2077
|
+
[theme=kiwipress] [radio]:focus-visible {
|
|
2078
|
+
background-color: var(--juice-radio-control);
|
|
2079
|
+
box-shadow: none;
|
|
2080
|
+
transform: none;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
[theme=kiwipress] button[radio][aria-checked=true]:hover,
|
|
2084
|
+
[theme=kiwipress] [radio][aria-checked=true]:hover,
|
|
2085
|
+
[theme=kiwipress] [radio]:checked:hover,
|
|
2086
|
+
[theme=kiwipress] button[radio][aria-checked=true]:focus-visible,
|
|
2087
|
+
[theme=kiwipress] [radio][aria-checked=true]:focus-visible,
|
|
2088
|
+
[theme=kiwipress] [radio]:checked:focus-visible {
|
|
2089
|
+
background-color: var(--juice-radio-control-checked);
|
|
2090
|
+
border-color: var(--juice-radio-border-checked);
|
|
2091
|
+
box-shadow: none;
|
|
2092
|
+
transform: none;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
[theme=kiwipress] button[radio]:focus-visible,
|
|
2096
|
+
[theme=kiwipress] [radio]:focus-visible {
|
|
2097
|
+
outline: 2px solid var(--juice-radio-focus-ring);
|
|
2098
|
+
outline-offset: 2px;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
/* Breadcrumb chrome. Beat [theme] :where(nav) bars and :where(a) link color.
|
|
2102
|
+
Inline trail, not a site nav and not a kiwi CTA. Runtime is later. */
|
|
2103
|
+
[theme=kiwipress] [breadcrumb],
|
|
2104
|
+
[theme=kiwipress] nav[breadcrumb] {
|
|
2105
|
+
background-image: none;
|
|
2106
|
+
background-color: var(--juice-breadcrumb-surface);
|
|
2107
|
+
border: none;
|
|
2108
|
+
box-shadow: none;
|
|
2109
|
+
color: var(--juice-breadcrumb-ink);
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
[theme=kiwipress] [breadcrumb] a,
|
|
2113
|
+
[theme=kiwipress] [breadcrumb-link],
|
|
2114
|
+
[theme=kiwipress] a[breadcrumb-link],
|
|
2115
|
+
[theme=kiwipress] button[breadcrumb-link] {
|
|
2116
|
+
background-image: none;
|
|
2117
|
+
background-color: transparent;
|
|
2118
|
+
color: var(--juice-breadcrumb-ink);
|
|
2119
|
+
box-shadow: none;
|
|
2120
|
+
transform: none;
|
|
2121
|
+
text-decoration: none;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
[theme=kiwipress] [breadcrumb] a:hover,
|
|
2125
|
+
[theme=kiwipress] [breadcrumb-link]:hover,
|
|
2126
|
+
[theme=kiwipress] a[breadcrumb-link]:hover,
|
|
2127
|
+
[theme=kiwipress] button[breadcrumb-link]:hover {
|
|
2128
|
+
background-image: none;
|
|
2129
|
+
background-color: transparent;
|
|
2130
|
+
color: var(--juice-breadcrumb-ink-hover);
|
|
2131
|
+
box-shadow: none;
|
|
2132
|
+
transform: none;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
[theme=kiwipress] [breadcrumb] [aria-current=page],
|
|
2136
|
+
[theme=kiwipress] [breadcrumb] [aria-current=page] :is(a, [breadcrumb-link]),
|
|
2137
|
+
[theme=kiwipress] [breadcrumb-link][aria-current=page] {
|
|
2138
|
+
color: var(--juice-breadcrumb-ink-current);
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
[theme=kiwipress] [breadcrumb] a:focus-visible,
|
|
2142
|
+
[theme=kiwipress] [breadcrumb-link]:focus-visible,
|
|
2143
|
+
[theme=kiwipress] button[breadcrumb-link]:focus-visible {
|
|
2144
|
+
outline: 2px solid var(--juice-breadcrumb-focus-ring);
|
|
2145
|
+
outline-offset: 2px;
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
/* Progress chrome. Beat generic fills. The track is a surface groove,
|
|
2149
|
+
not a kiwi CTA. Runtime is later. */
|
|
2150
|
+
[theme=kiwipress] [progress] {
|
|
2151
|
+
background-image: none;
|
|
2152
|
+
background-color: transparent;
|
|
2153
|
+
border: none;
|
|
2154
|
+
box-shadow: none;
|
|
2155
|
+
color: var(--juice-progress-ink);
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
[theme=kiwipress] [progress-fill] {
|
|
2159
|
+
background-image: none;
|
|
2160
|
+
background-color: var(--juice-progress-fill);
|
|
2161
|
+
box-shadow: none;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
[theme=kiwipress] [progress-label] {
|
|
2165
|
+
background-image: none;
|
|
2166
|
+
background-color: transparent;
|
|
2167
|
+
color: var(--juice-progress-ink);
|
|
2168
|
+
box-shadow: none;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
[theme=kiwipress] [progress]:focus-visible {
|
|
2172
|
+
outline: 2px solid var(--juice-progress-focus-ring);
|
|
2173
|
+
outline-offset: 2px;
|
|
2174
|
+
}
|
|
2175
|
+
|
|
1863
2176
|
/* Accordion wrappers are structural, not default section surfaces.
|
|
1864
2177
|
Generic KiwiPress buttons are kiwi CTAs; triggers stay surface controls. */
|
|
1865
2178
|
[theme=kiwipress] :where([accordion]) {
|