@citrusworx/juiceui 0.7.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.
@@ -146,6 +146,38 @@
146
146
  --juice-toast-info-soft: var(--cm-toast-info-soft);
147
147
  --juice-toast-warning: var(--cm-toast-warning);
148
148
  --juice-toast-warning-soft: var(--cm-toast-warning-soft);
149
+ /* Banner chrome — thinner --cm-* set plus wintergreen/lime already
150
+ used for shadow tone. Close is a surface control, not heading-fill. */
151
+ --cm-banner-panel: var(--cm-surface);
152
+ --cm-banner-panel-border: var(--cm-border);
153
+ --cm-banner-ink: var(--cm-text);
154
+ --cm-banner-close: var(--cm-surface);
155
+ --cm-banner-close-color: var(--cm-heading);
156
+ --cm-banner-close-hover: var(--cm-surface-muted);
157
+ --cm-banner-focus-ring: var(--cm-heading);
158
+ --cm-banner-success: var(--cm-heading);
159
+ --cm-banner-success-soft: var(--cm-surface-muted);
160
+ --cm-banner-error: hsl(152, 99%, 15%);
161
+ --cm-banner-error-soft: color-mix(in srgb, hsl(152, 99%, 15%) 10%, var(--cm-surface));
162
+ --cm-banner-info: var(--cm-text-muted);
163
+ --cm-banner-info-soft: color-mix(in srgb, var(--cm-text-muted) 12%, var(--cm-surface));
164
+ --cm-banner-warning: hsl(99, 70%, 20%);
165
+ --cm-banner-warning-soft: color-mix(in srgb, hsl(99, 70%, 20%) 10%, var(--cm-surface));
166
+ --juice-banner-panel: var(--cm-banner-panel);
167
+ --juice-banner-panel-border: var(--cm-banner-panel-border);
168
+ --juice-banner-ink: var(--cm-banner-ink);
169
+ --juice-banner-close: var(--cm-banner-close);
170
+ --juice-banner-close-color: var(--cm-banner-close-color);
171
+ --juice-banner-close-hover: var(--cm-banner-close-hover);
172
+ --juice-banner-focus-ring: var(--cm-banner-focus-ring);
173
+ --juice-banner-success: var(--cm-banner-success);
174
+ --juice-banner-success-soft: var(--cm-banner-success-soft);
175
+ --juice-banner-error: var(--cm-banner-error);
176
+ --juice-banner-error-soft: var(--cm-banner-error-soft);
177
+ --juice-banner-info: var(--cm-banner-info);
178
+ --juice-banner-info-soft: var(--cm-banner-info-soft);
179
+ --juice-banner-warning: var(--cm-banner-warning);
180
+ --juice-banner-warning-soft: var(--cm-banner-warning-soft);
149
181
  /* Popover chrome — thinner --cm-* set. Close is a surface control,
150
182
  not heading-fill. Distinct from modal/drawer/toast. */
151
183
  --cm-popover-panel: var(--cm-surface);
@@ -164,6 +196,189 @@
164
196
  --juice-popover-close-color: var(--cm-popover-close-color);
165
197
  --juice-popover-close-hover: var(--cm-popover-close-hover);
166
198
  --juice-popover-focus-ring: var(--cm-popover-focus-ring);
199
+ /* Wizard chrome — thinner --cm-* set; heading stands in for accent. */
200
+ --cm-wizard-shell: var(--cm-page);
201
+ --cm-wizard-header: var(--cm-surface);
202
+ --cm-wizard-header-border: var(--cm-border);
203
+ --cm-wizard-rail: var(--cm-surface-muted);
204
+ --cm-wizard-rail-border: var(--cm-border);
205
+ --cm-wizard-step: var(--cm-surface);
206
+ --cm-wizard-step-border: var(--cm-border);
207
+ --cm-wizard-step-ink: var(--cm-text-muted);
208
+ --cm-wizard-step-current: var(--cm-heading);
209
+ --cm-wizard-step-complete: var(--cm-text);
210
+ --cm-wizard-step-on: var(--cm-surface);
211
+ --cm-wizard-step-connector: var(--cm-border);
212
+ --cm-wizard-panel: var(--cm-surface);
213
+ --cm-wizard-panel-border: var(--cm-border);
214
+ --cm-wizard-focus-ring: var(--cm-heading);
215
+ --juice-wizard-shell: var(--cm-wizard-shell);
216
+ --juice-wizard-header: var(--cm-wizard-header);
217
+ --juice-wizard-header-border: var(--cm-wizard-header-border);
218
+ --juice-wizard-rail: var(--cm-wizard-rail);
219
+ --juice-wizard-rail-border: var(--cm-wizard-rail-border);
220
+ --juice-wizard-step: var(--cm-wizard-step);
221
+ --juice-wizard-step-border: var(--cm-wizard-step-border);
222
+ --juice-wizard-step-ink: var(--cm-wizard-step-ink);
223
+ --juice-wizard-step-current: var(--cm-wizard-step-current);
224
+ --juice-wizard-step-complete: var(--cm-wizard-step-complete);
225
+ --juice-wizard-step-on: var(--cm-wizard-step-on);
226
+ --juice-wizard-step-connector: var(--cm-wizard-step-connector);
227
+ --juice-wizard-panel: var(--cm-wizard-panel);
228
+ --juice-wizard-panel-border: var(--cm-wizard-panel-border);
229
+ --juice-wizard-focus-ring: var(--cm-wizard-focus-ring);
230
+ /* Tooltip chrome — thinner --cm-* set. No close, no status.
231
+ Distinct from popover. */
232
+ --cm-tooltip-panel: var(--cm-surface);
233
+ --cm-tooltip-panel-border: var(--cm-border);
234
+ --cm-tooltip-panel-shadow: 0 12px 28px -20px color-mix(in srgb, var(--cm-heading) 22%, transparent);
235
+ --cm-tooltip-ink: var(--cm-text);
236
+ --juice-tooltip-panel: var(--cm-tooltip-panel);
237
+ --juice-tooltip-panel-border: var(--cm-tooltip-panel-border);
238
+ --juice-tooltip-panel-shadow: var(--cm-tooltip-panel-shadow);
239
+ --juice-tooltip-ink: var(--cm-tooltip-ink);
240
+ /* Combobox chrome — thinner --cm-* set. Trigger is a surface
241
+ control, not heading-fill. Distinct from select. */
242
+ --cm-combobox-input: var(--cm-surface);
243
+ --cm-combobox-input-border: var(--cm-border);
244
+ --cm-combobox-input-ink: var(--cm-text);
245
+ --cm-combobox-list: var(--cm-surface);
246
+ --cm-combobox-list-border: var(--cm-border);
247
+ --cm-combobox-list-shadow: 0 18px 40px -24px color-mix(in srgb, var(--cm-heading) 22%, transparent);
248
+ --cm-combobox-option: transparent;
249
+ --cm-combobox-option-hover: var(--cm-surface-muted);
250
+ --cm-combobox-option-selected: var(--cm-surface-muted);
251
+ --cm-combobox-option-ink: var(--cm-text);
252
+ --cm-combobox-trigger: transparent;
253
+ --cm-combobox-trigger-ink: var(--cm-heading);
254
+ --cm-combobox-focus-ring: var(--cm-heading);
255
+ --juice-combobox-input: var(--cm-combobox-input);
256
+ --juice-combobox-input-border: var(--cm-combobox-input-border);
257
+ --juice-combobox-input-ink: var(--cm-combobox-input-ink);
258
+ --juice-combobox-list: var(--cm-combobox-list);
259
+ --juice-combobox-list-border: var(--cm-combobox-list-border);
260
+ --juice-combobox-list-shadow: var(--cm-combobox-list-shadow);
261
+ --juice-combobox-option: var(--cm-combobox-option);
262
+ --juice-combobox-option-hover: var(--cm-combobox-option-hover);
263
+ --juice-combobox-option-selected: var(--cm-combobox-option-selected);
264
+ --juice-combobox-option-ink: var(--cm-combobox-option-ink);
265
+ --juice-combobox-trigger: var(--cm-combobox-trigger);
266
+ --juice-combobox-trigger-ink: var(--cm-combobox-trigger-ink);
267
+ --juice-combobox-focus-ring: var(--cm-combobox-focus-ring);
268
+ /* Menu chrome — thinner --cm-* set. Opener is a surface
269
+ control, not heading-fill. Distinct from popover / select. */
270
+ --cm-menu-panel: var(--cm-surface);
271
+ --cm-menu-panel-border: var(--cm-border);
272
+ --cm-menu-panel-shadow: 0 18px 40px -24px color-mix(in srgb, var(--cm-heading) 22%, transparent);
273
+ --cm-menu-ink: var(--cm-text);
274
+ --cm-menu-item: transparent;
275
+ --cm-menu-item-hover: var(--cm-surface-muted);
276
+ --cm-menu-item-active: var(--cm-surface-muted);
277
+ --cm-menu-separator: var(--cm-border);
278
+ --cm-menu-focus-ring: var(--cm-heading);
279
+ --cm-menu-opener: var(--cm-surface);
280
+ --cm-menu-opener-ink: var(--cm-heading);
281
+ --juice-menu-panel: var(--cm-menu-panel);
282
+ --juice-menu-panel-border: var(--cm-menu-panel-border);
283
+ --juice-menu-panel-shadow: var(--cm-menu-panel-shadow);
284
+ --juice-menu-ink: var(--cm-menu-ink);
285
+ --juice-menu-item: var(--cm-menu-item);
286
+ --juice-menu-item-hover: var(--cm-menu-item-hover);
287
+ --juice-menu-item-active: var(--cm-menu-item-active);
288
+ --juice-menu-separator: var(--cm-menu-separator);
289
+ --juice-menu-focus-ring: var(--cm-menu-focus-ring);
290
+ --juice-menu-opener: var(--cm-menu-opener);
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);
167
382
  background-color: var(--cm-page);
168
383
  color: var(--cm-text);
169
384
  font-family: var(--cm-body-font);
@@ -442,6 +657,73 @@
442
657
  outline-offset: 2px;
443
658
  }
444
659
 
660
+ /* Banner chrome. Generic Citrusmint buttons use heading fill;
661
+ [banner-close] stays a surface control. Runtime is later. */
662
+ [theme=citrusmint] [banner]:not([surfaceTone]) {
663
+ background-color: var(--juice-banner-panel);
664
+ color: var(--juice-banner-ink);
665
+ }
666
+
667
+ [theme=citrusmint] [banner]:not([surfaceTone]):not([banner-tone]) {
668
+ border: 1px solid var(--juice-banner-panel-border);
669
+ }
670
+
671
+ [theme=citrusmint] [banner-body] {
672
+ color: var(--juice-banner-ink);
673
+ }
674
+
675
+ [theme=citrusmint] [banner][banner-tone=success]:not([surfaceTone]) {
676
+ background-color: var(--juice-banner-success-soft);
677
+ }
678
+
679
+ [theme=citrusmint] [banner][banner-tone=success] {
680
+ border-left: 4px solid var(--juice-banner-success);
681
+ }
682
+
683
+ [theme=citrusmint] [banner][banner-tone=error]:not([surfaceTone]) {
684
+ background-color: var(--juice-banner-error-soft);
685
+ }
686
+
687
+ [theme=citrusmint] [banner][banner-tone=error] {
688
+ border-left: 4px solid var(--juice-banner-error);
689
+ }
690
+
691
+ [theme=citrusmint] [banner][banner-tone=info]:not([surfaceTone]) {
692
+ background-color: var(--juice-banner-info-soft);
693
+ }
694
+
695
+ [theme=citrusmint] [banner][banner-tone=info] {
696
+ border-left: 4px solid var(--juice-banner-info);
697
+ }
698
+
699
+ [theme=citrusmint] [banner][banner-tone=warning]:not([surfaceTone]) {
700
+ background-color: var(--juice-banner-warning-soft);
701
+ }
702
+
703
+ [theme=citrusmint] [banner][banner-tone=warning] {
704
+ border-left: 4px solid var(--juice-banner-warning);
705
+ }
706
+
707
+ [theme=citrusmint] button[banner-close],
708
+ [theme=citrusmint] [banner-close] {
709
+ background-color: var(--juice-banner-close);
710
+ color: var(--juice-banner-close-color);
711
+ box-shadow: none;
712
+ transform: none;
713
+ }
714
+
715
+ [theme=citrusmint] button[banner-close]:hover,
716
+ [theme=citrusmint] [banner-close]:hover {
717
+ background-color: var(--juice-banner-close-hover);
718
+ color: var(--juice-banner-close-color);
719
+ }
720
+
721
+ [theme=citrusmint] button[banner-close]:focus-visible,
722
+ [theme=citrusmint] [banner-close]:focus-visible {
723
+ outline: 2px solid var(--juice-banner-focus-ring);
724
+ outline-offset: 2px;
725
+ }
726
+
445
727
  /* Popover chrome. Generic Citrusmint buttons use heading fill;
446
728
  [popover-close] stays a surface control. Runtime is later. */
447
729
  [theme=citrusmint] [popover-panel]:not([surfaceTone]) {
@@ -474,4 +756,273 @@
474
756
  [theme=citrusmint] [popover-close]:focus-visible {
475
757
  outline: 2px solid var(--juice-popover-focus-ring);
476
758
  outline-offset: 2px;
759
+ }
760
+
761
+ /* Tooltip chrome. Beat [theme] :where(div) defaults. Optional
762
+ surfaceTone on [tooltip-panel] is allowed. Runtime is later. */
763
+ [theme=citrusmint] [tooltip-panel]:not([surfaceTone]) {
764
+ background-color: var(--juice-tooltip-panel);
765
+ border: 1px solid var(--juice-tooltip-panel-border);
766
+ box-shadow: var(--juice-tooltip-panel-shadow);
767
+ color: var(--juice-tooltip-ink);
768
+ }
769
+
770
+ /* Combobox chrome. Beat [theme] :where(input, button) defaults.
771
+ [combobox-trigger] stays a surface control, not heading-fill.
772
+ Optional surfaceTone on [combobox-list] is allowed. Runtime is later. */
773
+ [theme=citrusmint] [combobox-input] {
774
+ background-color: var(--juice-combobox-input);
775
+ border: 1px solid var(--juice-combobox-input-border);
776
+ color: var(--juice-combobox-input-ink);
777
+ }
778
+
779
+ [theme=citrusmint] button[combobox-trigger],
780
+ [theme=citrusmint] [combobox-trigger] {
781
+ background-color: var(--juice-combobox-trigger);
782
+ color: var(--juice-combobox-trigger-ink);
783
+ box-shadow: none;
784
+ transform: none;
785
+ }
786
+
787
+ [theme=citrusmint] [combobox-input]:focus-visible,
788
+ [theme=citrusmint] button[combobox-trigger]:focus-visible,
789
+ [theme=citrusmint] [combobox-trigger]:focus-visible {
790
+ outline: 2px solid var(--juice-combobox-focus-ring);
791
+ outline-offset: 2px;
792
+ }
793
+
794
+ [theme=citrusmint] [combobox-list]:not([surfaceTone]) {
795
+ background-color: var(--juice-combobox-list);
796
+ border: 1px solid var(--juice-combobox-list-border);
797
+ box-shadow: var(--juice-combobox-list-shadow);
798
+ }
799
+
800
+ [theme=citrusmint] [combobox-option] {
801
+ background-color: var(--juice-combobox-option);
802
+ color: var(--juice-combobox-option-ink);
803
+ }
804
+
805
+ [theme=citrusmint] [combobox-option]:hover {
806
+ background-color: var(--juice-combobox-option-hover);
807
+ }
808
+
809
+ [theme=citrusmint] [combobox-option][aria-selected=true],
810
+ [theme=citrusmint] [combobox-option=active] {
811
+ background-color: var(--juice-combobox-option-selected);
812
+ }
813
+
814
+ /* Menu chrome. Beat [theme] :where(div, button) defaults.
815
+ [menu-button] stays a surface control, not heading-fill.
816
+ Optional surfaceTone on [menu] is allowed. */
817
+ [theme=citrusmint] [menu]:not([surfaceTone]) {
818
+ background-color: var(--juice-menu-panel);
819
+ border: 1px solid var(--juice-menu-panel-border);
820
+ box-shadow: var(--juice-menu-panel-shadow);
821
+ color: var(--juice-menu-ink);
822
+ }
823
+
824
+ [theme=citrusmint] button[menu-button],
825
+ [theme=citrusmint] [menu-button] {
826
+ background-color: var(--juice-menu-opener);
827
+ color: var(--juice-menu-opener-ink);
828
+ box-shadow: none;
829
+ transform: none;
830
+ }
831
+
832
+ [theme=citrusmint] button[menu-button]:focus-visible,
833
+ [theme=citrusmint] [menu-button]:focus-visible,
834
+ [theme=citrusmint] [menuitem]:focus-visible {
835
+ outline: 2px solid var(--juice-menu-focus-ring);
836
+ outline-offset: 2px;
837
+ }
838
+
839
+ [theme=citrusmint] [menuitem] {
840
+ background-color: var(--juice-menu-item);
841
+ color: var(--juice-menu-ink);
842
+ }
843
+
844
+ [theme=citrusmint] [menuitem]:hover {
845
+ background-color: var(--juice-menu-item-hover);
846
+ }
847
+
848
+ [theme=citrusmint] [menuitem=active] {
849
+ background-color: var(--juice-menu-item-active);
850
+ }
851
+
852
+ [theme=citrusmint] [menu-separator] {
853
+ border-top-color: var(--juice-menu-separator);
854
+ }
855
+
856
+ [theme=citrusmint] [menu-label] {
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;
477
1028
  }