@citrusworx/juiceui 0.8.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -289,6 +289,120 @@
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);
382
+ /* Pagination chrome — thinner --cm-* set. Heading stands in for accent
383
+ on the current page, same as slider fill. Page controls are surfaces,
384
+ not heading-fill. The trail stays transparent. Distinct from
385
+ breadcrumb, nav[type="pagination"], tabs, and wizard steps. */
386
+ --cm-pagination-surface: var(--cm-surface);
387
+ --cm-pagination-surface-hover: var(--cm-surface-muted);
388
+ --cm-pagination-surface-current: var(--cm-heading);
389
+ --cm-pagination-ink: var(--cm-text);
390
+ --cm-pagination-ink-hover: var(--cm-heading);
391
+ --cm-pagination-ink-current: var(--cm-surface);
392
+ --cm-pagination-ink-disabled: var(--cm-text-muted);
393
+ --cm-pagination-border: var(--cm-border);
394
+ --cm-pagination-focus-ring: var(--cm-heading);
395
+ --cm-pagination-ellipsis: var(--cm-text-muted);
396
+ --juice-pagination-surface: var(--cm-pagination-surface);
397
+ --juice-pagination-surface-hover: var(--cm-pagination-surface-hover);
398
+ --juice-pagination-surface-current: var(--cm-pagination-surface-current);
399
+ --juice-pagination-ink: var(--cm-pagination-ink);
400
+ --juice-pagination-ink-hover: var(--cm-pagination-ink-hover);
401
+ --juice-pagination-ink-current: var(--cm-pagination-ink-current);
402
+ --juice-pagination-ink-disabled: var(--cm-pagination-ink-disabled);
403
+ --juice-pagination-border: var(--cm-pagination-border);
404
+ --juice-pagination-focus-ring: var(--cm-pagination-focus-ring);
405
+ --juice-pagination-ellipsis: var(--cm-pagination-ellipsis);
292
406
  background-color: var(--cm-page);
293
407
  color: var(--cm-text);
294
408
  font-family: var(--cm-body-font);
@@ -765,4 +879,237 @@
765
879
 
766
880
  [theme=citrusmint] [menu-label] {
767
881
  color: var(--juice-menu-ink);
882
+ }
883
+
884
+ /* Switch chrome. Beat [theme] :where(button) heading-fill defaults.
885
+ The host is a surface track, not heading-fill. Runtime is later. */
886
+ [theme=citrusmint] button[switch],
887
+ [theme=citrusmint] [switch] {
888
+ background-color: var(--juice-switch-track);
889
+ box-shadow: none;
890
+ transform: none;
891
+ }
892
+
893
+ [theme=citrusmint] button[switch][aria-checked=true],
894
+ [theme=citrusmint] [switch][aria-checked=true],
895
+ [theme=citrusmint] [switch]:checked {
896
+ background-color: var(--juice-switch-track-checked);
897
+ }
898
+
899
+ [theme=citrusmint] button[switch]:focus-visible,
900
+ [theme=citrusmint] [switch]:focus-visible {
901
+ outline: 2px solid var(--juice-switch-focus-ring);
902
+ outline-offset: 2px;
903
+ }
904
+
905
+ /* Slider chrome. Beat [theme] :where(button) heading-fill defaults.
906
+ Horizontal only. The thumb is a surface control, not heading-fill.
907
+ Runtime is later. */
908
+ [theme=citrusmint] button[slider]:not([slider=vertical]),
909
+ [theme=citrusmint] [slider]:not([slider=vertical]) {
910
+ background-color: transparent;
911
+ box-shadow: none;
912
+ transform: none;
913
+ }
914
+
915
+ [theme=citrusmint] button[slider-thumb],
916
+ [theme=citrusmint] [slider-thumb] {
917
+ background-color: var(--juice-slider-thumb);
918
+ border-color: var(--juice-slider-thumb-border);
919
+ box-shadow: var(--juice-slider-thumb-shadow);
920
+ transform: translate(-50%, -50%);
921
+ }
922
+
923
+ [theme=citrusmint] button[slider-thumb]:hover,
924
+ [theme=citrusmint] [slider-thumb]:hover,
925
+ [theme=citrusmint] button[slider-thumb]:focus-visible,
926
+ [theme=citrusmint] [slider-thumb]:focus-visible {
927
+ background-color: var(--juice-slider-thumb);
928
+ box-shadow: var(--juice-slider-thumb-shadow);
929
+ transform: translate(-50%, -50%);
930
+ }
931
+
932
+ [theme=citrusmint] button[slider-thumb]:focus-visible,
933
+ [theme=citrusmint] [slider-thumb]:focus-visible {
934
+ outline: 2px solid var(--juice-slider-focus-ring);
935
+ outline-offset: 2px;
936
+ }
937
+
938
+ /* Checkbox chrome. Beat [theme] :where(button) heading-fill defaults.
939
+ The host is a surface box, not heading-fill. Binary only. Runtime is later. */
940
+ [theme=citrusmint] button[checkbox],
941
+ [theme=citrusmint] [checkbox] {
942
+ background-color: var(--juice-checkbox-control);
943
+ border-color: var(--juice-checkbox-border);
944
+ box-shadow: none;
945
+ transform: none;
946
+ }
947
+
948
+ [theme=citrusmint] button[checkbox][aria-checked=true],
949
+ [theme=citrusmint] [checkbox][aria-checked=true],
950
+ [theme=citrusmint] [checkbox]:checked {
951
+ background-color: var(--juice-checkbox-control-checked);
952
+ border-color: var(--juice-checkbox-border-checked);
953
+ }
954
+
955
+ [theme=citrusmint] button[checkbox]:focus-visible,
956
+ [theme=citrusmint] [checkbox]:focus-visible {
957
+ outline: 2px solid var(--juice-checkbox-focus-ring);
958
+ outline-offset: 2px;
959
+ }
960
+
961
+ /* Radio chrome. Beat [theme] :where(button) heading-fill defaults.
962
+ The host is a surface disc, not heading-fill. Group layout is author-owned.
963
+ Runtime is later. */
964
+ [theme=citrusmint] button[radio],
965
+ [theme=citrusmint] [radio] {
966
+ background-color: var(--juice-radio-control);
967
+ border-color: var(--juice-radio-border);
968
+ box-shadow: none;
969
+ transform: none;
970
+ }
971
+
972
+ [theme=citrusmint] button[radio][aria-checked=true],
973
+ [theme=citrusmint] [radio][aria-checked=true],
974
+ [theme=citrusmint] [radio]:checked {
975
+ background-color: var(--juice-radio-control-checked);
976
+ border-color: var(--juice-radio-border-checked);
977
+ }
978
+
979
+ [theme=citrusmint] button[radio]:focus-visible,
980
+ [theme=citrusmint] [radio]:focus-visible {
981
+ outline: 2px solid var(--juice-radio-focus-ring);
982
+ outline-offset: 2px;
983
+ }
984
+
985
+ /* Breadcrumb chrome. Beat [theme] :where(nav) bars and :where(a) link color.
986
+ Inline trail, not a site nav and not heading-fill. Runtime is later. */
987
+ [theme=citrusmint] [breadcrumb],
988
+ [theme=citrusmint] nav[breadcrumb] {
989
+ background-color: var(--juice-breadcrumb-surface);
990
+ border: none;
991
+ box-shadow: none;
992
+ color: var(--juice-breadcrumb-ink);
993
+ }
994
+
995
+ [theme=citrusmint] [breadcrumb] a,
996
+ [theme=citrusmint] [breadcrumb-link],
997
+ [theme=citrusmint] a[breadcrumb-link],
998
+ [theme=citrusmint] button[breadcrumb-link] {
999
+ background-color: transparent;
1000
+ color: var(--juice-breadcrumb-ink);
1001
+ box-shadow: none;
1002
+ transform: none;
1003
+ text-decoration: none;
1004
+ }
1005
+
1006
+ [theme=citrusmint] [breadcrumb] a:hover,
1007
+ [theme=citrusmint] [breadcrumb-link]:hover,
1008
+ [theme=citrusmint] a[breadcrumb-link]:hover,
1009
+ [theme=citrusmint] button[breadcrumb-link]:hover {
1010
+ background-color: transparent;
1011
+ color: var(--juice-breadcrumb-ink-hover);
1012
+ box-shadow: none;
1013
+ transform: none;
1014
+ }
1015
+
1016
+ [theme=citrusmint] [breadcrumb] [aria-current=page],
1017
+ [theme=citrusmint] [breadcrumb] [aria-current=page] :is(a, [breadcrumb-link]),
1018
+ [theme=citrusmint] [breadcrumb-link][aria-current=page] {
1019
+ color: var(--juice-breadcrumb-ink-current);
1020
+ }
1021
+
1022
+ [theme=citrusmint] [breadcrumb] a:focus-visible,
1023
+ [theme=citrusmint] [breadcrumb-link]:focus-visible,
1024
+ [theme=citrusmint] button[breadcrumb-link]:focus-visible {
1025
+ outline: 2px solid var(--juice-breadcrumb-focus-ring);
1026
+ outline-offset: 2px;
1027
+ }
1028
+
1029
+ /* Progress chrome. Beat generic fills. Heading paints the fill, not a
1030
+ CTA. Runtime is later. */
1031
+ [theme=citrusmint] [progress] {
1032
+ background-color: transparent;
1033
+ border: none;
1034
+ box-shadow: none;
1035
+ color: var(--juice-progress-ink);
1036
+ }
1037
+
1038
+ [theme=citrusmint] [progress-fill] {
1039
+ background-color: var(--juice-progress-fill);
1040
+ box-shadow: none;
1041
+ }
1042
+
1043
+ [theme=citrusmint] [progress-label] {
1044
+ background-color: transparent;
1045
+ color: var(--juice-progress-ink);
1046
+ box-shadow: none;
1047
+ }
1048
+
1049
+ [theme=citrusmint] [progress]:focus-visible {
1050
+ outline: 2px solid var(--juice-progress-focus-ring);
1051
+ outline-offset: 2px;
1052
+ }
1053
+
1054
+ /* Pagination chrome. Beat generic fills and button CTAs. Heading paints
1055
+ the current page, not a CTA. The trail stays inline. Runtime is later. */
1056
+ [theme=citrusmint] [pagination],
1057
+ [theme=citrusmint] nav[pagination] {
1058
+ background-color: transparent;
1059
+ border: none;
1060
+ box-shadow: none;
1061
+ -webkit-backdrop-filter: none;
1062
+ backdrop-filter: none;
1063
+ color: var(--juice-pagination-ink);
1064
+ }
1065
+
1066
+ [theme=citrusmint] [pagination] a,
1067
+ [theme=citrusmint] [pagination-link],
1068
+ [theme=citrusmint] a[pagination-link],
1069
+ [theme=citrusmint] button[pagination-link],
1070
+ [theme=citrusmint] button[pagination-prev],
1071
+ [theme=citrusmint] button[pagination-next] {
1072
+ background-color: var(--juice-pagination-surface);
1073
+ border-color: var(--juice-pagination-border);
1074
+ color: var(--juice-pagination-ink);
1075
+ box-shadow: none;
1076
+ transform: none;
1077
+ text-decoration: none;
1078
+ }
1079
+
1080
+ [theme=citrusmint] [pagination] a:hover,
1081
+ [theme=citrusmint] [pagination-link]:hover,
1082
+ [theme=citrusmint] button[pagination-link]:hover,
1083
+ [theme=citrusmint] button[pagination-prev]:hover,
1084
+ [theme=citrusmint] button[pagination-next]:hover {
1085
+ background-color: var(--juice-pagination-surface-hover);
1086
+ color: var(--juice-pagination-ink-hover);
1087
+ box-shadow: none;
1088
+ transform: none;
1089
+ }
1090
+
1091
+ [theme=citrusmint] [pagination] [aria-current=page],
1092
+ [theme=citrusmint] [pagination] [aria-current=page] :is(a, button, [pagination-link]),
1093
+ [theme=citrusmint] [pagination-link][aria-current=page] {
1094
+ background-color: var(--juice-pagination-surface-current);
1095
+ color: var(--juice-pagination-ink-current);
1096
+ box-shadow: none;
1097
+ transform: none;
1098
+ }
1099
+
1100
+ [theme=citrusmint] [pagination] :is(a, button, [pagination-link]):is(:disabled, [disabled], [aria-disabled=true]),
1101
+ [theme=citrusmint] [pagination] [aria-disabled=true] :is(a, button, [pagination-link]) {
1102
+ background-color: var(--juice-pagination-surface);
1103
+ color: var(--juice-pagination-ink-disabled);
1104
+ box-shadow: none;
1105
+ transform: none;
1106
+ }
1107
+
1108
+ [theme=citrusmint] [pagination] a:focus-visible,
1109
+ [theme=citrusmint] [pagination-link]:focus-visible,
1110
+ [theme=citrusmint] button[pagination-link]:focus-visible,
1111
+ [theme=citrusmint] button[pagination-prev]:focus-visible,
1112
+ [theme=citrusmint] button[pagination-next]:focus-visible {
1113
+ outline: 2px solid var(--juice-pagination-focus-ring);
1114
+ outline-offset: 2px;
768
1115
  }