@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.
@@ -330,6 +330,93 @@
330
330
  --juice-menu-focus-ring: var(--tide-menu-focus-ring);
331
331
  --juice-menu-opener: var(--tide-menu-opener);
332
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);
333
420
  min-height: 100vh;
334
421
  background-color: var(--tide-page);
335
422
  background-image: var(--tide-page-background);
@@ -1004,4 +1091,218 @@
1004
1091
 
1005
1092
  [theme=tide] [menu-label] {
1006
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;
1007
1308
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citrusworx/juiceui",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",