@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.
@@ -185,6 +185,38 @@
185
185
  --juice-toast-info-soft: var(--tide-toast-info-soft);
186
186
  --juice-toast-warning: var(--tide-toast-warning);
187
187
  --juice-toast-warning-soft: var(--tide-toast-warning-soft);
188
+ /* Banner chrome — dark panel, not white glass. Close is a surface
189
+ control, not the CTA gradient. Status remaps lagoon identity. */
190
+ --tide-banner-panel: var(--tide-surface-strong);
191
+ --tide-banner-panel-border: var(--tide-border);
192
+ --tide-banner-ink: var(--tide-text);
193
+ --tide-banner-close: var(--tide-surface-strong);
194
+ --tide-banner-close-color: var(--tide-heading);
195
+ --tide-banner-close-hover: var(--tide-surface-muted);
196
+ --tide-banner-focus-ring: var(--tide-accent);
197
+ --tide-banner-success: var(--tide-accent);
198
+ --tide-banner-success-soft: color-mix(in srgb, var(--tide-accent) 16%, var(--tide-surface-strong));
199
+ --tide-banner-error: var(--tide-accent-strong);
200
+ --tide-banner-error-soft: color-mix(in srgb, var(--tide-accent-strong) 14%, var(--tide-surface-strong));
201
+ --tide-banner-info: var(--tide-accent-soft);
202
+ --tide-banner-info-soft: var(--tide-surface-muted);
203
+ --tide-banner-warning: var(--tide-page-tint);
204
+ --tide-banner-warning-soft: color-mix(in srgb, var(--tide-page-tint) 22%, var(--tide-surface-strong));
205
+ --juice-banner-panel: var(--tide-banner-panel);
206
+ --juice-banner-panel-border: var(--tide-banner-panel-border);
207
+ --juice-banner-ink: var(--tide-banner-ink);
208
+ --juice-banner-close: var(--tide-banner-close);
209
+ --juice-banner-close-color: var(--tide-banner-close-color);
210
+ --juice-banner-close-hover: var(--tide-banner-close-hover);
211
+ --juice-banner-focus-ring: var(--tide-banner-focus-ring);
212
+ --juice-banner-success: var(--tide-banner-success);
213
+ --juice-banner-success-soft: var(--tide-banner-success-soft);
214
+ --juice-banner-error: var(--tide-banner-error);
215
+ --juice-banner-error-soft: var(--tide-banner-error-soft);
216
+ --juice-banner-info: var(--tide-banner-info);
217
+ --juice-banner-info-soft: var(--tide-banner-info-soft);
218
+ --juice-banner-warning: var(--tide-banner-warning);
219
+ --juice-banner-warning-soft: var(--tide-banner-warning-soft);
188
220
  /* Popover chrome — dark panel, not white glass. Close is a surface
189
221
  control, not the CTA gradient. Distinct from modal/drawer/toast. */
190
222
  --tide-popover-panel: var(--tide-surface-strong);
@@ -203,6 +235,188 @@
203
235
  --juice-popover-close-color: var(--tide-popover-close-color);
204
236
  --juice-popover-close-hover: var(--tide-popover-close-hover);
205
237
  --juice-popover-focus-ring: var(--tide-popover-focus-ring);
238
+ /* Wizard chrome — dark shell / rails / steps, not a white onboarding
239
+ page. Current uses accent; complete uses highlight so step-on
240
+ (heading / white) stays readable. */
241
+ --tide-wizard-shell: var(--tide-page);
242
+ --tide-wizard-header: var(--tide-surface-strong);
243
+ --tide-wizard-header-border: var(--tide-border);
244
+ --tide-wizard-rail: var(--tide-surface-muted);
245
+ --tide-wizard-rail-border: var(--tide-border);
246
+ --tide-wizard-step: var(--tide-surface-strong);
247
+ --tide-wizard-step-border: var(--tide-border);
248
+ --tide-wizard-step-ink: var(--tide-text-muted);
249
+ --tide-wizard-step-current: var(--tide-accent);
250
+ --tide-wizard-step-complete: var(--tide-highlight);
251
+ --tide-wizard-step-on: var(--tide-heading);
252
+ --tide-wizard-step-connector: var(--tide-border);
253
+ --tide-wizard-panel: var(--tide-surface-strong);
254
+ --tide-wizard-panel-border: var(--tide-border);
255
+ --tide-wizard-focus-ring: var(--tide-accent);
256
+ --juice-wizard-shell: var(--tide-wizard-shell);
257
+ --juice-wizard-header: var(--tide-wizard-header);
258
+ --juice-wizard-header-border: var(--tide-wizard-header-border);
259
+ --juice-wizard-rail: var(--tide-wizard-rail);
260
+ --juice-wizard-rail-border: var(--tide-wizard-rail-border);
261
+ --juice-wizard-step: var(--tide-wizard-step);
262
+ --juice-wizard-step-border: var(--tide-wizard-step-border);
263
+ --juice-wizard-step-ink: var(--tide-wizard-step-ink);
264
+ --juice-wizard-step-current: var(--tide-wizard-step-current);
265
+ --juice-wizard-step-complete: var(--tide-wizard-step-complete);
266
+ --juice-wizard-step-on: var(--tide-wizard-step-on);
267
+ --juice-wizard-step-connector: var(--tide-wizard-step-connector);
268
+ --juice-wizard-panel: var(--tide-wizard-panel);
269
+ --juice-wizard-panel-border: var(--tide-wizard-panel-border);
270
+ --juice-wizard-focus-ring: var(--tide-wizard-focus-ring);
271
+ /* Tooltip chrome — dark tip, not white glass. No close, no status.
272
+ Distinct from popover. */
273
+ --tide-tooltip-panel: var(--tide-surface-strong);
274
+ --tide-tooltip-panel-border: var(--tide-border);
275
+ --tide-tooltip-panel-shadow: var(--tide-line-glow), 0 12px 28px -18px var(--tide-shadow);
276
+ --tide-tooltip-ink: var(--tide-text);
277
+ --juice-tooltip-panel: var(--tide-tooltip-panel);
278
+ --juice-tooltip-panel-border: var(--tide-tooltip-panel-border);
279
+ --juice-tooltip-panel-shadow: var(--tide-tooltip-panel-shadow);
280
+ --juice-tooltip-ink: var(--tide-tooltip-ink);
281
+ /* Combobox chrome — dark field + list, not white glass.
282
+ Trigger is a surface control, not a CTA. Distinct from select. */
283
+ --tide-combobox-input: var(--tide-surface-strong);
284
+ --tide-combobox-input-border: var(--tide-border);
285
+ --tide-combobox-input-ink: var(--tide-text);
286
+ --tide-combobox-list: var(--tide-surface-strong);
287
+ --tide-combobox-list-border: var(--tide-border);
288
+ --tide-combobox-list-shadow: var(--tide-line-glow), 0 18px 40px -22px var(--tide-shadow);
289
+ --tide-combobox-option: transparent;
290
+ --tide-combobox-option-hover: var(--tide-surface-muted);
291
+ --tide-combobox-option-selected: var(--tide-surface-muted);
292
+ --tide-combobox-option-ink: var(--tide-text);
293
+ --tide-combobox-trigger: transparent;
294
+ --tide-combobox-trigger-ink: var(--tide-heading);
295
+ --tide-combobox-focus-ring: var(--tide-accent);
296
+ --juice-combobox-input: var(--tide-combobox-input);
297
+ --juice-combobox-input-border: var(--tide-combobox-input-border);
298
+ --juice-combobox-input-ink: var(--tide-combobox-input-ink);
299
+ --juice-combobox-list: var(--tide-combobox-list);
300
+ --juice-combobox-list-border: var(--tide-combobox-list-border);
301
+ --juice-combobox-list-shadow: var(--tide-combobox-list-shadow);
302
+ --juice-combobox-option: var(--tide-combobox-option);
303
+ --juice-combobox-option-hover: var(--tide-combobox-option-hover);
304
+ --juice-combobox-option-selected: var(--tide-combobox-option-selected);
305
+ --juice-combobox-option-ink: var(--tide-combobox-option-ink);
306
+ --juice-combobox-trigger: var(--tide-combobox-trigger);
307
+ --juice-combobox-trigger-ink: var(--tide-combobox-trigger-ink);
308
+ --juice-combobox-focus-ring: var(--tide-combobox-focus-ring);
309
+ /* Menu chrome — dark panel, not white glass. Opener is a surface
310
+ control, not a CTA. Distinct from popover / combobox / select. */
311
+ --tide-menu-panel: var(--tide-surface-strong);
312
+ --tide-menu-panel-border: var(--tide-border);
313
+ --tide-menu-panel-shadow: var(--tide-line-glow), 0 18px 40px -22px var(--tide-shadow);
314
+ --tide-menu-ink: var(--tide-text);
315
+ --tide-menu-item: transparent;
316
+ --tide-menu-item-hover: var(--tide-surface-muted);
317
+ --tide-menu-item-active: var(--tide-surface-muted);
318
+ --tide-menu-separator: var(--tide-border);
319
+ --tide-menu-focus-ring: var(--tide-accent);
320
+ --tide-menu-opener: var(--tide-surface-strong);
321
+ --tide-menu-opener-ink: var(--tide-heading);
322
+ --juice-menu-panel: var(--tide-menu-panel);
323
+ --juice-menu-panel-border: var(--tide-menu-panel-border);
324
+ --juice-menu-panel-shadow: var(--tide-menu-panel-shadow);
325
+ --juice-menu-ink: var(--tide-menu-ink);
326
+ --juice-menu-item: var(--tide-menu-item);
327
+ --juice-menu-item-hover: var(--tide-menu-item-hover);
328
+ --juice-menu-item-active: var(--tide-menu-item-active);
329
+ --juice-menu-separator: var(--tide-menu-separator);
330
+ --juice-menu-focus-ring: var(--tide-menu-focus-ring);
331
+ --juice-menu-opener: var(--tide-menu-opener);
332
+ --juice-menu-opener-ink: var(--tide-menu-opener-ink);
333
+ /* Switch chrome — dark track, not a white pill. The host is a
334
+ surface control, not a CTA. Distinct from checkbox / menuitemcheckbox. */
335
+ --tide-switch-track: var(--tide-surface-muted);
336
+ --tide-switch-track-checked: var(--tide-accent);
337
+ --tide-switch-thumb: var(--tide-heading);
338
+ --tide-switch-thumb-checked: var(--tide-heading);
339
+ --tide-switch-focus-ring: var(--tide-accent);
340
+ --juice-switch-track: var(--tide-switch-track);
341
+ --juice-switch-track-checked: var(--tide-switch-track-checked);
342
+ --juice-switch-thumb: var(--tide-switch-thumb);
343
+ --juice-switch-thumb-checked: var(--tide-switch-thumb-checked);
344
+ --juice-switch-focus-ring: var(--tide-switch-focus-ring);
345
+ /* Slider chrome — dark track, not a white groove. Horizontal only.
346
+ The thumb is a surface control, not a CTA. Distinct from range
347
+ input, progress, and scrollbar. */
348
+ --tide-slider-track: var(--tide-surface-muted);
349
+ --tide-slider-track-border: var(--tide-border);
350
+ --tide-slider-fill: var(--tide-accent);
351
+ --tide-slider-thumb: var(--tide-heading);
352
+ --tide-slider-thumb-border: var(--tide-border);
353
+ --tide-slider-thumb-shadow: 0 1px 2px var(--tide-shadow);
354
+ --tide-slider-focus-ring: var(--tide-accent);
355
+ --juice-slider-track: var(--tide-slider-track);
356
+ --juice-slider-track-border: var(--tide-slider-track-border);
357
+ --juice-slider-fill: var(--tide-slider-fill);
358
+ --juice-slider-thumb: var(--tide-slider-thumb);
359
+ --juice-slider-thumb-border: var(--tide-slider-thumb-border);
360
+ --juice-slider-thumb-shadow: var(--tide-slider-thumb-shadow);
361
+ --juice-slider-focus-ring: var(--tide-slider-focus-ring);
362
+ /* Checkbox chrome — dark box, not a white square. The host is a
363
+ surface control, not a CTA. Binary only. Distinct from switch
364
+ and menuitemcheckbox. */
365
+ --tide-checkbox-control: var(--tide-surface-strong);
366
+ --tide-checkbox-control-checked: var(--tide-accent);
367
+ --tide-checkbox-border: var(--tide-border);
368
+ --tide-checkbox-border-checked: var(--tide-accent);
369
+ --tide-checkbox-mark: var(--tide-heading);
370
+ --tide-checkbox-focus-ring: var(--tide-accent);
371
+ --juice-checkbox-control: var(--tide-checkbox-control);
372
+ --juice-checkbox-control-checked: var(--tide-checkbox-control-checked);
373
+ --juice-checkbox-border: var(--tide-checkbox-border);
374
+ --juice-checkbox-border-checked: var(--tide-checkbox-border-checked);
375
+ --juice-checkbox-mark: var(--tide-checkbox-mark);
376
+ --juice-checkbox-focus-ring: var(--tide-checkbox-focus-ring);
377
+ /* Radio chrome — dark disc, not a white ring. The host is a surface
378
+ control, not a CTA. The group is layout-only. Distinct from switch
379
+ and checkbox. */
380
+ --tide-radio-control: var(--tide-surface-strong);
381
+ --tide-radio-control-checked: var(--tide-surface-strong);
382
+ --tide-radio-border: var(--tide-border);
383
+ --tide-radio-border-checked: var(--tide-accent);
384
+ --tide-radio-mark: var(--tide-accent);
385
+ --tide-radio-focus-ring: var(--tide-accent);
386
+ --juice-radio-control: var(--tide-radio-control);
387
+ --juice-radio-control-checked: var(--tide-radio-control-checked);
388
+ --juice-radio-border: var(--tide-radio-border);
389
+ --juice-radio-border-checked: var(--tide-radio-border-checked);
390
+ --juice-radio-mark: var(--tide-radio-mark);
391
+ --juice-radio-focus-ring: var(--tide-radio-focus-ring);
392
+ /* Breadcrumb chrome — dark trail, not a light bar. Inline, not a site
393
+ nav and not a CTA. Surface stays transparent unless a bar is wanted.
394
+ Distinct from tabs, wizard steps, and pagination. */
395
+ --tide-breadcrumb-ink: var(--tide-text-muted);
396
+ --tide-breadcrumb-ink-current: var(--tide-heading);
397
+ --tide-breadcrumb-ink-hover: var(--tide-accent);
398
+ --tide-breadcrumb-separator: var(--tide-border);
399
+ --tide-breadcrumb-focus-ring: var(--tide-accent);
400
+ --tide-breadcrumb-surface: transparent;
401
+ --juice-breadcrumb-ink: var(--tide-breadcrumb-ink);
402
+ --juice-breadcrumb-ink-current: var(--tide-breadcrumb-ink-current);
403
+ --juice-breadcrumb-ink-hover: var(--tide-breadcrumb-ink-hover);
404
+ --juice-breadcrumb-separator: var(--tide-breadcrumb-separator);
405
+ --juice-breadcrumb-focus-ring: var(--tide-breadcrumb-focus-ring);
406
+ --juice-breadcrumb-surface: var(--tide-breadcrumb-surface);
407
+ /* Progress chrome — dark track, not a white groove. Fill stays
408
+ accent. Distinct from slider, spinner, and a native <progress>
409
+ restyle. Inline status — no overlay. */
410
+ --tide-progress-track: var(--tide-surface-muted);
411
+ --tide-progress-track-border: var(--tide-border);
412
+ --tide-progress-fill: var(--tide-accent);
413
+ --tide-progress-ink: var(--tide-text);
414
+ --tide-progress-focus-ring: var(--tide-accent);
415
+ --juice-progress-track: var(--tide-progress-track);
416
+ --juice-progress-track-border: var(--tide-progress-track-border);
417
+ --juice-progress-fill: var(--tide-progress-fill);
418
+ --juice-progress-ink: var(--tide-progress-ink);
419
+ --juice-progress-focus-ring: var(--tide-progress-focus-ring);
206
420
  min-height: 100vh;
207
421
  background-color: var(--tide-page);
208
422
  background-image: var(--tide-page-background);
@@ -671,6 +885,76 @@
671
885
  outline-offset: 2px;
672
886
  }
673
887
 
888
+ /* Banner chrome. Generic Tide buttons use --tide-button-background;
889
+ [banner-close] stays a surface control. Panel stays dark. */
890
+ [theme=tide] [banner]:not([surfaceTone]) {
891
+ background-color: var(--juice-banner-panel);
892
+ color: var(--juice-banner-ink);
893
+ }
894
+
895
+ [theme=tide] [banner]:not([surfaceTone]):not([banner-tone]) {
896
+ border: 1px solid var(--juice-banner-panel-border);
897
+ }
898
+
899
+ [theme=tide] [banner-body] {
900
+ color: var(--juice-banner-ink);
901
+ }
902
+
903
+ [theme=tide] [banner][banner-tone=success]:not([surfaceTone]) {
904
+ background-color: var(--juice-banner-success-soft);
905
+ }
906
+
907
+ [theme=tide] [banner][banner-tone=success] {
908
+ border-left: 4px solid var(--juice-banner-success);
909
+ }
910
+
911
+ [theme=tide] [banner][banner-tone=error]:not([surfaceTone]) {
912
+ background-color: var(--juice-banner-error-soft);
913
+ }
914
+
915
+ [theme=tide] [banner][banner-tone=error] {
916
+ border-left: 4px solid var(--juice-banner-error);
917
+ }
918
+
919
+ [theme=tide] [banner][banner-tone=info]:not([surfaceTone]) {
920
+ background-color: var(--juice-banner-info-soft);
921
+ }
922
+
923
+ [theme=tide] [banner][banner-tone=info] {
924
+ border-left: 4px solid var(--juice-banner-info);
925
+ }
926
+
927
+ [theme=tide] [banner][banner-tone=warning]:not([surfaceTone]) {
928
+ background-color: var(--juice-banner-warning-soft);
929
+ }
930
+
931
+ [theme=tide] [banner][banner-tone=warning] {
932
+ border-left: 4px solid var(--juice-banner-warning);
933
+ }
934
+
935
+ [theme=tide] button[banner-close],
936
+ [theme=tide] [banner-close] {
937
+ background-image: none;
938
+ background-color: var(--juice-banner-close);
939
+ color: var(--juice-banner-close-color);
940
+ box-shadow: none;
941
+ transform: none;
942
+ }
943
+
944
+ [theme=tide] button[banner-close]:hover,
945
+ [theme=tide] [banner-close]:hover {
946
+ background-image: none;
947
+ background-color: var(--juice-banner-close-hover);
948
+ color: var(--juice-banner-close-color);
949
+ transform: none;
950
+ }
951
+
952
+ [theme=tide] button[banner-close]:focus-visible,
953
+ [theme=tide] [banner-close]:focus-visible {
954
+ outline: 2px solid var(--juice-banner-focus-ring);
955
+ outline-offset: 2px;
956
+ }
957
+
674
958
  /* Popover chrome. Generic Tide buttons use --tide-button-background;
675
959
  [popover-close] stays a surface control. Panel stays dark. */
676
960
  [theme=tide] [popover-panel]:not([surfaceTone]) {
@@ -706,4 +990,319 @@
706
990
  [theme=tide] [popover-close]:focus-visible {
707
991
  outline: 2px solid var(--juice-popover-focus-ring);
708
992
  outline-offset: 2px;
993
+ }
994
+
995
+ /* Tooltip chrome. Beat [theme] :where(div) defaults. Panel stays dark.
996
+ Optional surfaceTone on [tooltip-panel] is allowed. Runtime is later. */
997
+ [theme=tide] [tooltip-panel]:not([surfaceTone]) {
998
+ background-color: var(--juice-tooltip-panel);
999
+ border: 1px solid var(--juice-tooltip-panel-border);
1000
+ box-shadow: var(--juice-tooltip-panel-shadow);
1001
+ color: var(--juice-tooltip-ink);
1002
+ }
1003
+
1004
+ /* Combobox chrome. Beat [theme] :where(input, button) defaults.
1005
+ Field and list stay dark. [combobox-trigger] stays a surface
1006
+ control. Optional surfaceTone on [combobox-list] is allowed. */
1007
+ [theme=tide] [combobox-input] {
1008
+ background-color: var(--juice-combobox-input);
1009
+ border: 1px solid var(--juice-combobox-input-border);
1010
+ color: var(--juice-combobox-input-ink);
1011
+ }
1012
+
1013
+ [theme=tide] button[combobox-trigger],
1014
+ [theme=tide] [combobox-trigger] {
1015
+ background-image: none;
1016
+ background-color: var(--juice-combobox-trigger);
1017
+ color: var(--juice-combobox-trigger-ink);
1018
+ box-shadow: none;
1019
+ transform: none;
1020
+ }
1021
+
1022
+ [theme=tide] [combobox-input]:focus-visible,
1023
+ [theme=tide] button[combobox-trigger]:focus-visible,
1024
+ [theme=tide] [combobox-trigger]:focus-visible {
1025
+ outline: 2px solid var(--juice-combobox-focus-ring);
1026
+ outline-offset: 2px;
1027
+ }
1028
+
1029
+ [theme=tide] [combobox-list]:not([surfaceTone]) {
1030
+ background-color: var(--juice-combobox-list);
1031
+ border: 1px solid var(--juice-combobox-list-border);
1032
+ box-shadow: var(--juice-combobox-list-shadow);
1033
+ }
1034
+
1035
+ [theme=tide] [combobox-option] {
1036
+ background-color: var(--juice-combobox-option);
1037
+ color: var(--juice-combobox-option-ink);
1038
+ }
1039
+
1040
+ [theme=tide] [combobox-option]:hover {
1041
+ background-color: var(--juice-combobox-option-hover);
1042
+ }
1043
+
1044
+ [theme=tide] [combobox-option][aria-selected=true],
1045
+ [theme=tide] [combobox-option=active] {
1046
+ background-color: var(--juice-combobox-option-selected);
1047
+ }
1048
+
1049
+ /* Menu chrome. Beat [theme] :where(div, button) defaults.
1050
+ Panel stays dark. [menu-button] stays a surface control.
1051
+ Optional surfaceTone on [menu] is allowed. */
1052
+ [theme=tide] [menu]:not([surfaceTone]) {
1053
+ background-color: var(--juice-menu-panel);
1054
+ border: 1px solid var(--juice-menu-panel-border);
1055
+ box-shadow: var(--juice-menu-panel-shadow);
1056
+ color: var(--juice-menu-ink);
1057
+ }
1058
+
1059
+ [theme=tide] button[menu-button],
1060
+ [theme=tide] [menu-button] {
1061
+ background-image: none;
1062
+ background-color: var(--juice-menu-opener);
1063
+ color: var(--juice-menu-opener-ink);
1064
+ box-shadow: none;
1065
+ transform: none;
1066
+ }
1067
+
1068
+ [theme=tide] button[menu-button]:focus-visible,
1069
+ [theme=tide] [menu-button]:focus-visible,
1070
+ [theme=tide] [menuitem]:focus-visible {
1071
+ outline: 2px solid var(--juice-menu-focus-ring);
1072
+ outline-offset: 2px;
1073
+ }
1074
+
1075
+ [theme=tide] [menuitem] {
1076
+ background-color: var(--juice-menu-item);
1077
+ color: var(--juice-menu-ink);
1078
+ }
1079
+
1080
+ [theme=tide] [menuitem]:hover {
1081
+ background-color: var(--juice-menu-item-hover);
1082
+ }
1083
+
1084
+ [theme=tide] [menuitem=active] {
1085
+ background-color: var(--juice-menu-item-active);
1086
+ }
1087
+
1088
+ [theme=tide] [menu-separator] {
1089
+ border-top-color: var(--juice-menu-separator);
1090
+ }
1091
+
1092
+ [theme=tide] [menu-label] {
1093
+ color: var(--juice-menu-ink);
1094
+ }
1095
+
1096
+ /* Switch chrome. Beat [theme] :where(button) CTA defaults.
1097
+ Track stays dark. The host is a surface control, not a CTA.
1098
+ Runtime is later. */
1099
+ [theme=tide] button[switch],
1100
+ [theme=tide] [switch] {
1101
+ background-image: none;
1102
+ background-color: var(--juice-switch-track);
1103
+ box-shadow: none;
1104
+ transform: none;
1105
+ }
1106
+
1107
+ [theme=tide] button[switch][aria-checked=true],
1108
+ [theme=tide] [switch][aria-checked=true],
1109
+ [theme=tide] [switch]:checked {
1110
+ background-image: none;
1111
+ background-color: var(--juice-switch-track-checked);
1112
+ }
1113
+
1114
+ [theme=tide] button[switch]:hover,
1115
+ [theme=tide] [switch]:hover,
1116
+ [theme=tide] button[switch]:focus-visible,
1117
+ [theme=tide] [switch]:focus-visible {
1118
+ box-shadow: none;
1119
+ transform: none;
1120
+ }
1121
+
1122
+ [theme=tide] button[switch]:focus-visible,
1123
+ [theme=tide] [switch]:focus-visible {
1124
+ outline: 2px solid var(--juice-switch-focus-ring);
1125
+ outline-offset: 2px;
1126
+ }
1127
+
1128
+ /* Slider chrome. Beat [theme] :where(button) CTA defaults.
1129
+ Track stays dark. The thumb is a surface control, not a CTA.
1130
+ Horizontal only. Runtime is later. */
1131
+ [theme=tide] button[slider]:not([slider=vertical]),
1132
+ [theme=tide] [slider]:not([slider=vertical]) {
1133
+ background-image: none;
1134
+ background-color: transparent;
1135
+ box-shadow: none;
1136
+ transform: none;
1137
+ }
1138
+
1139
+ [theme=tide] button[slider-thumb],
1140
+ [theme=tide] [slider-thumb] {
1141
+ background-image: none;
1142
+ background-color: var(--juice-slider-thumb);
1143
+ border-color: var(--juice-slider-thumb-border);
1144
+ box-shadow: var(--juice-slider-thumb-shadow);
1145
+ transform: translate(-50%, -50%);
1146
+ }
1147
+
1148
+ [theme=tide] button[slider-thumb]:hover,
1149
+ [theme=tide] [slider-thumb]:hover,
1150
+ [theme=tide] button[slider-thumb]:focus-visible,
1151
+ [theme=tide] [slider-thumb]:focus-visible {
1152
+ background-image: none;
1153
+ background-color: var(--juice-slider-thumb);
1154
+ box-shadow: var(--juice-slider-thumb-shadow);
1155
+ transform: translate(-50%, -50%);
1156
+ }
1157
+
1158
+ [theme=tide] button[slider-thumb]:focus-visible,
1159
+ [theme=tide] [slider-thumb]:focus-visible {
1160
+ outline: 2px solid var(--juice-slider-focus-ring);
1161
+ outline-offset: 2px;
1162
+ }
1163
+
1164
+ /* Checkbox chrome. Beat [theme] :where(button) CTA defaults.
1165
+ The box stays dark. The host is a surface control, not a CTA.
1166
+ Binary only. Runtime is later. */
1167
+ [theme=tide] button[checkbox],
1168
+ [theme=tide] [checkbox] {
1169
+ background-image: none;
1170
+ background-color: var(--juice-checkbox-control);
1171
+ border-color: var(--juice-checkbox-border);
1172
+ box-shadow: none;
1173
+ transform: none;
1174
+ }
1175
+
1176
+ [theme=tide] button[checkbox][aria-checked=true],
1177
+ [theme=tide] [checkbox][aria-checked=true],
1178
+ [theme=tide] [checkbox]:checked {
1179
+ background-image: none;
1180
+ background-color: var(--juice-checkbox-control-checked);
1181
+ border-color: var(--juice-checkbox-border-checked);
1182
+ }
1183
+
1184
+ [theme=tide] button[checkbox]:hover,
1185
+ [theme=tide] [checkbox]:hover,
1186
+ [theme=tide] button[checkbox]:focus-visible,
1187
+ [theme=tide] [checkbox]:focus-visible {
1188
+ box-shadow: none;
1189
+ transform: none;
1190
+ }
1191
+
1192
+ [theme=tide] button[checkbox]:focus-visible,
1193
+ [theme=tide] [checkbox]:focus-visible {
1194
+ outline: 2px solid var(--juice-checkbox-focus-ring);
1195
+ outline-offset: 2px;
1196
+ }
1197
+
1198
+ /* Radio chrome. Beat [theme] :where(button) CTA defaults.
1199
+ The disc stays dark. The host is a surface control, not a CTA.
1200
+ Group layout is author-owned. Runtime is later. */
1201
+ [theme=tide] button[radio],
1202
+ [theme=tide] [radio] {
1203
+ background-image: none;
1204
+ background-color: var(--juice-radio-control);
1205
+ border-color: var(--juice-radio-border);
1206
+ box-shadow: none;
1207
+ transform: none;
1208
+ }
1209
+
1210
+ [theme=tide] button[radio][aria-checked=true],
1211
+ [theme=tide] [radio][aria-checked=true],
1212
+ [theme=tide] [radio]:checked {
1213
+ background-image: none;
1214
+ background-color: var(--juice-radio-control-checked);
1215
+ border-color: var(--juice-radio-border-checked);
1216
+ }
1217
+
1218
+ [theme=tide] button[radio]:hover,
1219
+ [theme=tide] [radio]:hover,
1220
+ [theme=tide] button[radio]:focus-visible,
1221
+ [theme=tide] [radio]:focus-visible {
1222
+ box-shadow: none;
1223
+ transform: none;
1224
+ }
1225
+
1226
+ [theme=tide] button[radio]:focus-visible,
1227
+ [theme=tide] [radio]:focus-visible {
1228
+ outline: 2px solid var(--juice-radio-focus-ring);
1229
+ outline-offset: 2px;
1230
+ }
1231
+
1232
+ /* Breadcrumb chrome. Beat [theme] :where(nav) bars and :where(a) link color.
1233
+ Inline trail on the dark page, not a light bar and not a CTA.
1234
+ Runtime is later. */
1235
+ [theme=tide] [breadcrumb],
1236
+ [theme=tide] nav[breadcrumb] {
1237
+ background-image: none;
1238
+ background-color: var(--juice-breadcrumb-surface);
1239
+ border: none;
1240
+ box-shadow: none;
1241
+ -webkit-backdrop-filter: none;
1242
+ backdrop-filter: none;
1243
+ color: var(--juice-breadcrumb-ink);
1244
+ }
1245
+
1246
+ [theme=tide] [breadcrumb] a,
1247
+ [theme=tide] [breadcrumb-link],
1248
+ [theme=tide] a[breadcrumb-link],
1249
+ [theme=tide] button[breadcrumb-link] {
1250
+ background-image: none;
1251
+ background-color: transparent;
1252
+ color: var(--juice-breadcrumb-ink);
1253
+ box-shadow: none;
1254
+ transform: none;
1255
+ text-decoration: none;
1256
+ }
1257
+
1258
+ [theme=tide] [breadcrumb] a:hover,
1259
+ [theme=tide] [breadcrumb-link]:hover,
1260
+ [theme=tide] a[breadcrumb-link]:hover,
1261
+ [theme=tide] button[breadcrumb-link]:hover {
1262
+ background-image: none;
1263
+ background-color: transparent;
1264
+ color: var(--juice-breadcrumb-ink-hover);
1265
+ box-shadow: none;
1266
+ transform: none;
1267
+ }
1268
+
1269
+ [theme=tide] [breadcrumb] [aria-current=page],
1270
+ [theme=tide] [breadcrumb] [aria-current=page] :is(a, [breadcrumb-link]),
1271
+ [theme=tide] [breadcrumb-link][aria-current=page] {
1272
+ color: var(--juice-breadcrumb-ink-current);
1273
+ }
1274
+
1275
+ [theme=tide] [breadcrumb] a:focus-visible,
1276
+ [theme=tide] [breadcrumb-link]:focus-visible,
1277
+ [theme=tide] button[breadcrumb-link]:focus-visible {
1278
+ outline: 2px solid var(--juice-breadcrumb-focus-ring);
1279
+ outline-offset: 2px;
1280
+ }
1281
+
1282
+ /* Progress chrome. Dark track, not a white groove and not a CTA.
1283
+ Runtime is later. */
1284
+ [theme=tide] [progress] {
1285
+ background-image: none;
1286
+ background-color: transparent;
1287
+ border: none;
1288
+ box-shadow: none;
1289
+ color: var(--juice-progress-ink);
1290
+ }
1291
+
1292
+ [theme=tide] [progress-fill] {
1293
+ background-image: none;
1294
+ background-color: var(--juice-progress-fill);
1295
+ box-shadow: none;
1296
+ }
1297
+
1298
+ [theme=tide] [progress-label] {
1299
+ background-image: none;
1300
+ background-color: transparent;
1301
+ color: var(--juice-progress-ink);
1302
+ box-shadow: none;
1303
+ }
1304
+
1305
+ [theme=tide] [progress]:focus-visible {
1306
+ outline: 2px solid var(--juice-progress-focus-ring);
1307
+ outline-offset: 2px;
709
1308
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citrusworx/juiceui",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",