@bwui/tokens 0.1.17 → 0.1.18

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.
@@ -11,7 +11,7 @@
11
11
  }
12
12
  },
13
13
  "surface-sunken": {
14
- "$value": "{primitive.zinc.100}",
14
+ "$value": "oklch(0.965 0 none)",
15
15
  "$description": "0.4.0 polish: deepened from the 98.5% mix (gray.50), which was indistinguishable from the white chrome; the canvas now lands on gray.100 so cards, header bands and zebra stripes separate.",
16
16
  "$extensions": {
17
17
  "bw": {
@@ -38,7 +38,7 @@
38
38
  }
39
39
  },
40
40
  "surface-overlay": {
41
- "$value": "oklch(0.21 0.006 285.885 / 0.5)",
41
+ "$value": "oklch(0.21 0.006 285.88 / 0.5)",
42
42
  "$extensions": {
43
43
  "bw": {
44
44
  "derived": "color-mix(in oklab, var(--bw-color-surface-inverse) 50%, transparent)"
@@ -54,7 +54,7 @@
54
54
  }
55
55
  },
56
56
  "fg-muted": {
57
- "$value": "oklch(0.507 0.003 265)",
57
+ "$value": "oklch(0.51 0.004 285.89)",
58
58
  "$description": "0.4.0 polish: raised from the 56% mix (gray.500, borderline AA) for comfortable secondary-text contrast; measures 5.82:1 on surface and 5.26:1 on the deeper sunken canvas. A literal: the resolved L sits between ramp steps.",
59
59
  "$extensions": {
60
60
  "bw": {
@@ -63,7 +63,7 @@
63
63
  }
64
64
  },
65
65
  "fg-subtle": {
66
- "$value": "{primitive.zinc.400}",
66
+ "$value": "oklch(0.708 0.002 285.89)",
67
67
  "$extensions": {
68
68
  "bw": {
69
69
  "derived": "color-mix(in oklab, var(--bw-color-fg) 37%, var(--bw-color-surface))"
@@ -105,7 +105,7 @@
105
105
  }
106
106
  },
107
107
  "border-strong": {
108
- "$value": "{primitive.zinc.300}",
108
+ "$value": "oklch(0.865 0.004 286.32)",
109
109
  "$extensions": {
110
110
  "bw": {
111
111
  "derived": "color-mix(in oklab, var(--bw-color-border) 94%, black)"
@@ -113,7 +113,7 @@
113
113
  }
114
114
  },
115
115
  "border-control": {
116
- "$value": "oklch(0.65 0.002 265)",
116
+ "$value": "oklch(0.621 0.003 285.89)",
117
117
  "$description": "Input/control boundary. The divider border token stays light for calm chrome; controls need a WCAG 1.4.11 compliant boundary (measured 3.23:1 against the default light surface).",
118
118
  "$extensions": {
119
119
  "bw": {
@@ -122,7 +122,7 @@
122
122
  }
123
123
  },
124
124
  "action-disabled-bg": {
125
- "$value": "{primitive.zinc.100}",
125
+ "$value": "oklch(0.965 0 none)",
126
126
  "$description": "Flat disabled control fill (COL-018 / icvoss/django-brickwork#282). Replaces opacity dimming so disabled contrast is a gated token pair rather than a blend against an unknown backdrop. Same mix as surface-sunken so a brand surface override flows through; expressed as color-mix (not a var() alias) so render_brand_css can resolve the contrastPair.",
127
127
  "$extensions": {
128
128
  "bw": {
@@ -131,7 +131,7 @@
131
131
  }
132
132
  },
133
133
  "action-disabled-text": {
134
- "$value": "oklch(0.507 0.003 265)",
134
+ "$value": "oklch(0.51 0.004 285.89)",
135
135
  "$description": "Flat disabled control ink (COL-018 / icvoss/django-brickwork#282). Same mix as fg-muted so disabled labels clear AA on the disabled fill; expressed as color-mix so render_brand_css gates the pair. Nav's quieter `--bw-component-nav-item-disabled-text` stays on fg-subtle for chrome rows.",
136
136
  "$extensions": {
137
137
  "bw": {
@@ -142,7 +142,7 @@
142
142
  }
143
143
  },
144
144
  "action-disabled-border": {
145
- "$value": "oklch(0.65 0.002 265)",
145
+ "$value": "oklch(0.652 0.003 285.89)",
146
146
  "$description": "Flat disabled control boundary (COL-018 / icvoss/django-brickwork#282). Same mix as border-control so disabled borders keep the 1.4.11 floor without opacity.",
147
147
  "$extensions": {
148
148
  "bw": {
@@ -159,7 +159,7 @@
159
159
  }
160
160
  },
161
161
  "accent-hover": {
162
- "$value": "{primitive.blue.700}",
162
+ "$value": "oklch(0.486 0.218 262.88)",
163
163
  "$extensions": {
164
164
  "bw": {
165
165
  "derived": "color-mix(in oklab, var(--bw-color-accent) 89%, black)"
@@ -167,7 +167,7 @@
167
167
  }
168
168
  },
169
169
  "accent-subtle": {
170
- "$value": "oklch(0.968 0.013 262)",
170
+ "$value": "oklch(0.968 0.017 262.88)",
171
171
  "$description": "Literal, not the blue.50 alias: the achromatic light surface is hue-powerless in the mix, so the resolved hue stays the accent's 262, not the ramp's 254.",
172
172
  "$extensions": {
173
173
  "bw": {
@@ -175,6 +175,19 @@
175
175
  }
176
176
  }
177
177
  },
178
+ "accent-wash": {
179
+ "$value": "oklch(0.546 0.245 262.88 / 0.08)",
180
+ "$description": "Translucent accent wash for a highlighted table column (comparison and pricing). Authored per theme: the wash is stronger on dark so it still reads.",
181
+ "$extensions": {
182
+ "bw": {
183
+ "derived": "color-mix(in oklab, var(--bw-color-accent) 8%, transparent)"
184
+ }
185
+ }
186
+ },
187
+ "edge-shade": {
188
+ "$value": "{primitive.black}",
189
+ "$description": "Mix target for the darker edge on filled buttons (accent and danger at 80% toward this colour). Theme-variant so a theme can retune or flatten the edge."
190
+ },
178
191
  "danger": {
179
192
  "$value": "{primitive.red.600}",
180
193
  "$extensions": {
@@ -184,7 +197,7 @@
184
197
  }
185
198
  },
186
199
  "danger-subtle": {
187
- "$value": "oklch(0.97 0.015 27)",
200
+ "$value": "oklch(0.97 0.017 27.33)",
188
201
  "$description": "Literal, not the red.50 alias: the achromatic surface is hue-powerless, so the resolved hue stays the danger base's 27, not the ramp's 18.",
189
202
  "$extensions": {
190
203
  "bw": {
@@ -193,7 +206,7 @@
193
206
  }
194
207
  },
195
208
  "danger-border": {
196
- "$value": "oklch(0.873 0.065 27)",
209
+ "$value": "oklch(0.873 0.074 27.33)",
197
210
  "$description": "Tinted badge/alert border for the danger intent.",
198
211
  "$extensions": {
199
212
  "bw": {
@@ -202,7 +215,7 @@
202
215
  }
203
216
  },
204
217
  "danger-strong": {
205
- "$value": "oklch(0.508 0.189 27)",
218
+ "$value": "oklch(0.508 0.216 27.32)",
206
219
  "$extensions": {
207
220
  "bw": {
208
221
  "derived": "color-mix(in oklab, var(--bw-color-danger) 88%, black)"
@@ -210,7 +223,7 @@
210
223
  }
211
224
  },
212
225
  "danger-fg": {
213
- "$value": "oklch(0.529 0.187 26.83)",
226
+ "$value": "oklch(0.529 0.213 27.12)",
214
227
  "$description": "brickwork#289: text on danger-subtle (and on plain surface: .bw-field__error, .bw-account-menu__item--danger). Was a fixed mix toward literal black, independent of --bw-color-surface; danger-subtle mixes toward surface, so a brand darkening surface closed the gap and dropped contrast below AA with no warning. brickwork#289 review round 2: mixing toward var(--bw-color-fg) traded that failure for an equivalent one under an --bw-color-fg override (fg is itself a documented, brand-authored token, BRANDING.md's load-bearing seven), so the mix now targets var(--bw-color-status-fg-ink), a dedicated token defaulting to the same gray.900 ink but never moved by an ordinary --bw-color-fg override. This keeps the SAME numeric floor as the var(--bw-color-fg) attempt (status-fg-ink defaults to that attempt's resolution) while closing the fg-override hole: verified >= 4.5:1 against both danger-subtle and plain surface for --bw-color-surface overridden anywhere down to L 0.94 (conservative; the measured worst-family crossing is L 0.9390), independent of any --bw-color-fg value. Not the red.700 alias: mixing toward status-fg-ink resolves a fractionally different hue than a pure-black mix. Robustness is one-directional: this pairing is NOT protected against overriding --bw-color-danger itself to an extreme lightness, which is out of scope for #289 (that failure mode is the fg-on-accent class, docs/BRANDING.md).",
215
228
  "$extensions": {
216
229
  "bw": {
@@ -243,7 +256,7 @@
243
256
  }
244
257
  },
245
258
  "warning-subtle": {
246
- "$value": "oklch(0.977 0.011 58)",
259
+ "$value": "oklch(0.977 0.013 58.32)",
247
260
  "$description": "Literal, not the amber.50 alias: the achromatic surface is hue-powerless, so the resolved hue stays the warning base's 58, not the ramp's 95.",
248
261
  "$extensions": {
249
262
  "bw": {
@@ -252,7 +265,7 @@
252
265
  }
253
266
  },
254
267
  "warning-border": {
255
- "$value": "oklch(0.9 0.049 58)",
268
+ "$value": "oklch(0.9 0.054 58.32)",
256
269
  "$description": "Tinted badge/alert border for the warning intent.",
257
270
  "$extensions": {
258
271
  "bw": {
@@ -261,7 +274,7 @@
261
274
  }
262
275
  },
263
276
  "warning-strong": {
264
- "$value": "oklch(0.586 0.143 58)",
277
+ "$value": "oklch(0.586 0.158 58.32)",
265
278
  "$extensions": {
266
279
  "bw": {
267
280
  "derived": "color-mix(in oklab, var(--bw-color-warning) 88%, black)"
@@ -269,7 +282,7 @@
269
282
  }
270
283
  },
271
284
  "warning-fg": {
272
- "$value": "oklch(0.518 0.109 57.62)",
285
+ "$value": "oklch(0.52 0.12 57.64)",
273
286
  "$description": "brickwork#289: text on warning-subtle (and on plain surface: .bw-field__error, .bw-trend). Was a fixed mix toward literal black, independent of --bw-color-surface; warning-subtle mixes toward surface, so darkening surface closed the gap and dropped contrast below AA (the reported defect: default was only 4.67, and any surface darker than L 0.986 failed). brickwork#289 review round 2: mixing toward var(--bw-color-fg) traded that failure for an equivalent one under an --bw-color-fg override, so the mix now targets var(--bw-color-status-fg-ink), a dedicated token defaulting to the same gray.900 ink but never moved by an ordinary --bw-color-fg override. Verified >= 4.5:1 against both warning-subtle and plain surface for --bw-color-surface overridden anywhere down to L 0.94 (conservative; measured worst-family crossing L 0.9390), independent of --bw-color-fg.",
274
287
  "$extensions": {
275
288
  "bw": {
@@ -294,7 +307,7 @@
294
307
  }
295
308
  },
296
309
  "success-subtle": {
297
- "$value": "oklch(0.974 0.011 149)",
310
+ "$value": "oklch(0.974 0.014 149.21)",
298
311
  "$description": "Literal, not the green.50 alias: the achromatic surface is hue-powerless, so the resolved hue stays the success base's 149, not the ramp's 155.",
299
312
  "$extensions": {
300
313
  "bw": {
@@ -303,7 +316,7 @@
303
316
  }
304
317
  },
305
318
  "success-border": {
306
- "$value": "oklch(0.888 0.046 149)",
319
+ "$value": "oklch(0.888 0.058 149.21)",
307
320
  "$description": "Tinted badge/alert border for the success intent.",
308
321
  "$extensions": {
309
322
  "bw": {
@@ -312,7 +325,7 @@
312
325
  }
313
326
  },
314
327
  "success-strong": {
315
- "$value": "oklch(0.552 0.136 149)",
328
+ "$value": "oklch(0.552 0.171 149.21)",
316
329
  "$extensions": {
317
330
  "bw": {
318
331
  "derived": "color-mix(in oklab, var(--bw-color-success) 88%, black)"
@@ -320,7 +333,7 @@
320
333
  }
321
334
  },
322
335
  "success-fg": {
323
- "$value": "oklch(0.496 0.106 149.75)",
336
+ "$value": "oklch(0.498 0.133 149.77)",
324
337
  "$description": "brickwork#289: text on success-subtle (and on plain surface: .bw-field__error, .bw-trend). Was a fixed mix toward literal black, independent of --bw-color-surface; success-subtle mixes toward surface, so darkening surface closed the gap and dropped contrast below AA. brickwork#289 review round 2: mixing toward var(--bw-color-fg) traded that failure for an equivalent one under an --bw-color-fg override, so the mix now targets var(--bw-color-status-fg-ink), a dedicated token defaulting to the same gray.900 ink but never moved by an ordinary --bw-color-fg override. Verified >= 4.5:1 against both success-subtle and plain surface for --bw-color-surface overridden anywhere down to L 0.94 (conservative; measured worst-family crossing L 0.9390), independent of --bw-color-fg. Not the green.700 alias: mixing toward the ink literal resolves a fractionally different hue than a pure-black mix.",
325
338
  "$extensions": {
326
339
  "bw": {
@@ -348,7 +361,7 @@
348
361
  }
349
362
  },
350
363
  "info-subtle": {
351
- "$value": "oklch(0.972 0.008 225)",
364
+ "$value": "oklch(0.973 0.009 221.72)",
352
365
  "$description": "Literal, not the cyan.50 alias: the achromatic surface is hue-powerless, so the resolved hue stays the info base's 225, not the ramp's 210.",
353
366
  "$extensions": {
354
367
  "bw": {
@@ -357,7 +370,7 @@
357
370
  }
358
371
  },
359
372
  "info-border": {
360
- "$value": "oklch(0.88 0.033 225)",
373
+ "$value": "oklch(0.883 0.038 221.72)",
361
374
  "$description": "Tinted badge/alert border for the info intent.",
362
375
  "$extensions": {
363
376
  "bw": {
@@ -366,7 +379,7 @@
366
379
  }
367
380
  },
368
381
  "info-strong": {
369
- "$value": "oklch(0.528 0.097 225)",
382
+ "$value": "oklch(0.536 0.111 221.72)",
370
383
  "$extensions": {
371
384
  "bw": {
372
385
  "derived": "color-mix(in oklab, var(--bw-color-info) 88%, black)"
@@ -374,7 +387,7 @@
374
387
  }
375
388
  },
376
389
  "info-fg": {
377
- "$value": "oklch(0.501 0.083 225.55)",
390
+ "$value": "oklch(0.509 0.095 222.54)",
378
391
  "$description": "brickwork#289: text on info-subtle (and on plain surface: .bw-field__error, .bw-trend). Was a fixed mix toward literal black, independent of --bw-color-surface; info-subtle mixes toward surface, so darkening surface closed the gap and dropped contrast below AA. brickwork#289 review round 2: mixing toward var(--bw-color-fg) traded that failure for an equivalent one under an --bw-color-fg override, so the mix now targets var(--bw-color-status-fg-ink), a dedicated token defaulting to the same gray.900 ink but never moved by an ordinary --bw-color-fg override. Verified >= 4.5:1 against both info-subtle and plain surface for --bw-color-surface overridden anywhere down to L 0.94 (conservative; measured worst-family crossing L 0.9390), independent of --bw-color-fg. Not the cyan.700 alias: mixing toward the ink literal resolves a fractionally different hue than a pure-black mix.",
379
392
  "$extensions": {
380
393
  "bw": {
@@ -392,7 +405,7 @@
392
405
  "$description": "Near-black ink, the same treatment as warning: white on the solid cyan base fails AA (3.83); this ink measures 5.17."
393
406
  },
394
407
  "icon-muted": {
395
- "$value": "{primitive.zinc.400}",
408
+ "$value": "oklch(0.708 0.002 285.89)",
396
409
  "$extensions": {
397
410
  "bw": {
398
411
  "derived": "var(--bw-color-fg-subtle)"
@@ -400,7 +413,7 @@
400
413
  }
401
414
  },
402
415
  "focus-ring": {
403
- "$value": "oklch(0.5187 0.1824 262)",
416
+ "$value": "oklch(0.519 0.233 262.88)",
404
417
  "$description": "brickwork#134: derived from accent, not a flat literal. A hardcoded amber broke brand-agnosticism: every white-label tenant would get an amber ring regardless of their brand accent, contradicting the overridable-manifest contract (this token was previously `derived: var(--bw-color-accent)`, which failed WCAG 1.4.11 at only 2.53:1 against surface). The fix keeps the accent's hue and mixes it toward black to force a contrast-safe lightness: 95% accent, 5% black, in oklab (never oklch, which rotates hue toward 0 on a tint mix). A tenant's `--bw-color-accent` still flows through as the ring's hue. Resolved literal for the default blue.600 accent, not an alias: clears 3:1 against every surface the ring is painted on (the global :focus-visible rule and the marketing hero/CTA bands) at surface/surface-raised 5.73:1 and surface-inverse (gray.900) 3.13:1.",
405
418
  "$extensions": {
406
419
  "bw": {
@@ -409,7 +422,7 @@
409
422
  }
410
423
  },
411
424
  "nav-item-active-bg": {
412
- "$value": "oklch(0.968 0.013 262)",
425
+ "$value": "oklch(0.968 0.017 262.88)",
413
426
  "$description": "Follows accent-subtle's resolved literal (hue 262, not the blue.50 ramp's 254).",
414
427
  "$extensions": {
415
428
  "bw": {
@@ -418,7 +431,7 @@
418
431
  }
419
432
  },
420
433
  "nav-item-active-text": {
421
- "$value": "{primitive.blue.700}",
434
+ "$value": "oklch(0.486 0.218 262.88)",
422
435
  "$extensions": {
423
436
  "bw": {
424
437
  "derived": "var(--bw-color-accent-hover)"
@@ -434,7 +447,7 @@
434
447
  }
435
448
  },
436
449
  "nav-item-disabled-text": {
437
- "$value": "{primitive.zinc.400}",
450
+ "$value": "oklch(0.708 0.002 285.89)",
438
451
  "$extensions": {
439
452
  "bw": {
440
453
  "derived": "var(--bw-color-fg-subtle)"
@@ -442,7 +455,7 @@
442
455
  }
443
456
  },
444
457
  "nav-section-text": {
445
- "$value": "oklch(0.507 0.003 265)",
458
+ "$value": "oklch(0.51 0.004 285.89)",
446
459
  "$description": "Follows fg-muted's resolved literal (0.4.0: the 62% mix).",
447
460
  "$extensions": {
448
461
  "bw": {
@@ -459,7 +472,7 @@
459
472
  }
460
473
  },
461
474
  "breadcrumb-separator": {
462
- "$value": "{primitive.zinc.400}",
475
+ "$value": "oklch(0.708 0.002 285.89)",
463
476
  "$extensions": {
464
477
  "bw": {
465
478
  "derived": "var(--bw-color-fg-subtle)"
@@ -467,7 +480,7 @@
467
480
  }
468
481
  },
469
482
  "skeleton-bg": {
470
- "$value": "{primitive.zinc.200}",
483
+ "$value": "oklch(0.926 0 none)",
471
484
  "$description": "One step deeper than the sunken canvas so the placeholder reads as one. 0.4.0 polish: constant retuned 94% to 96% to hold the gray.200 landing above the deeper 96.5% sunken.",
472
485
  "$extensions": {
473
486
  "bw": {
@@ -476,7 +489,7 @@
476
489
  }
477
490
  },
478
491
  "skeleton-shimmer": {
479
- "$value": "oklch(0.891 0.004 265)",
492
+ "$value": "oklch(0.889 0 none)",
480
493
  "$extensions": {
481
494
  "bw": {
482
495
  "derived": "color-mix(in oklab, var(--bw-color-skeleton-bg) 96%, black)"
@@ -484,7 +497,7 @@
484
497
  }
485
498
  },
486
499
  "surface-marketing-tint": {
487
- "$value": "oklch(0.9637 0.0154 352.16)",
500
+ "$value": "oklch(0.964 0.02 262.88)",
488
501
  "$description": "1.2.0 marketing token (BR-BW-MKT marketing tokens): a subtle tinted section background for marketing bands (_cta.html and any tinted section), derived from the accent/surface pair so a brand recolours it for free. Mixed at a low percentage (8%, one step past accent-subtle's 7%) so text placed on it clears WCAG AA in both themes (BR-BW-MKT-002's both-themes axe gate). Resolved literal (hue rotates toward the achromatic surface's own hue under oklab interpolation, unlike accent-subtle which mixes toward an achromatic-in-oklch literal), not an alias.",
489
502
  "$extensions": {
490
503
  "bw": {
@@ -493,7 +506,7 @@
493
506
  }
494
507
  },
495
508
  "stage-wash": {
496
- "$value": "oklch(0.546 0.192 262 / 0.08)",
509
+ "$value": "oklch(0.546 0.245 262.88 / 0.08)",
497
510
  "$description": "4.2.0 soft-stage wash (BR-BW-MKT-007 / #570): accent at 8% over transparent, the same low percentage as surface-marketing-tint so text on the band clears WCAG AA (BR-BW-MKT-002). Mixed toward transparent rather than toward surface: the wash is a decorative layer behind the copy, not a background fill, so alpha carries the whole effect.",
498
511
  "$extensions": {
499
512
  "bw": {
@@ -656,7 +669,7 @@
656
669
  "$value": "oklch(0 0 0 / 0.08)"
657
670
  },
658
671
  "selected-bg": {
659
- "$value": "oklch(0.968 0.013 262)",
672
+ "$value": "oklch(0.968 0.017 262.88)",
660
673
  "$description": "Follows accent-subtle's resolved literal (hue 262, not the blue.50 ramp's 254).",
661
674
  "$extensions": {
662
675
  "bw": {
@@ -701,6 +714,31 @@
701
714
  "ambient-4": {
702
715
  "$value": "0 8px 28px -10px oklch(0 0 0 / 0.14)",
703
716
  "$description": "Product-chrome ambient halo (marketing product-shot craft, #97)."
717
+ },
718
+ "control-bevel": {
719
+ "$value": "inset 0 1px 0 0 oklch(1 0 0 / 0.12)",
720
+ "$description": "Catch-light on the top edge of a filled button (resting and hover)."
721
+ },
722
+ "control-pressed": {
723
+ "$value": "inset 0 1px 2px 0 oklch(0 0 0 / 0.2)",
724
+ "$description": "Inner shadow on a pressed (active) button."
725
+ },
726
+ "control-inset": {
727
+ "$value": "inset 0 1px 2px 0 oklch(0 0 0 / 0.04)",
728
+ "$description": "Faint inner shadow on text inputs, selects and the combobox field."
729
+ },
730
+ "panel-highlight": {
731
+ "$value": "inset 0 1px 0 0 oklch(1 0 0 / 0.6)",
732
+ "$description": "Top-edge catch-light on floating panels (theme switch, account menu, combobox listbox). Dark elevation levels carry their own highlight, so dark sets a zero shadow."
733
+ },
734
+ "floating": {
735
+ "$value": "0 1px 3px 0 oklch(0 0 0 / 0.1), 0 1px 2px -1px oklch(0 0 0 / 0.1)",
736
+ "$description": "Shadow under the smallest floating layer (tooltip bubble). Derived from the elevation ramp so a brand that retunes the ramp moves it too: one step above the resting panel level on dark, where it must lift off the canvas.",
737
+ "$extensions": {
738
+ "bw": {
739
+ "derived": "var(--bw-elevation-2)"
740
+ }
741
+ }
704
742
  }
705
743
  }
706
744
  }