@bwui/tokens 0.0.0-stage → 0.1.2

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.
@@ -0,0 +1,677 @@
1
+ {
2
+ "color": {
3
+ "$description": "Semantic tier, LIGHT theme. Role-named tokens (surface, fg, border, accent, status) that ARE the public contract (BR-BW-TOK-001): names are stable, values are brand-overridable. This file holds the authored light values; semantic.dark.tokens.json holds the authored dark values (BR-BW-TOK-002: dark is authored, never derived from light). Both files define the SAME token names. Derived tokens carry their live color-mix expression in $extensions.bw.derived (emitted as the CSS value); $value stays the resolved default and the regression baseline (docs/DESIGN.md section 3).",
4
+ "$type": "color",
5
+ "surface": {
6
+ "$value": "{primitive.gray.0}",
7
+ "$extensions": {
8
+ "bw": {
9
+ "loadBearing": true
10
+ }
11
+ }
12
+ },
13
+ "surface-sunken": {
14
+ "$value": "{primitive.gray.100}",
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
+ "$extensions": {
17
+ "bw": {
18
+ "derived": "color-mix(in oklab, var(--bw-color-surface) 96.5%, black)"
19
+ }
20
+ }
21
+ },
22
+ "surface-raised": {
23
+ "$value": "{primitive.gray.0}",
24
+ "$extensions": {
25
+ "bw": {
26
+ "derived": "var(--bw-color-surface)"
27
+ }
28
+ }
29
+ },
30
+ "surface-inverse": {
31
+ "$value": "{primitive.gray.900}",
32
+ "$extensions": {
33
+ "bw": {
34
+ "derived": "var(--bw-color-fg)",
35
+ "loadBearing": true,
36
+ "conditional": true
37
+ }
38
+ }
39
+ },
40
+ "surface-overlay": {
41
+ "$value": "oklch(0.205 0.005 265 / 0.5)",
42
+ "$extensions": {
43
+ "bw": {
44
+ "derived": "color-mix(in oklab, var(--bw-color-surface-inverse) 50%, transparent)"
45
+ }
46
+ }
47
+ },
48
+ "fg": {
49
+ "$value": "{primitive.gray.900}",
50
+ "$extensions": {
51
+ "bw": {
52
+ "loadBearing": true
53
+ }
54
+ }
55
+ },
56
+ "fg-muted": {
57
+ "$value": "oklch(0.507 0.003 265)",
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
+ "$extensions": {
60
+ "bw": {
61
+ "derived": "color-mix(in oklab, var(--bw-color-fg) 62%, var(--bw-color-surface))"
62
+ }
63
+ }
64
+ },
65
+ "fg-subtle": {
66
+ "$value": "{primitive.gray.400}",
67
+ "$extensions": {
68
+ "bw": {
69
+ "derived": "color-mix(in oklab, var(--bw-color-fg) 37%, var(--bw-color-surface))"
70
+ }
71
+ }
72
+ },
73
+ "fg-on-accent": {
74
+ "$value": "{primitive.gray.0}",
75
+ "$extensions": {
76
+ "bw": {
77
+ "loadBearing": true,
78
+ "authoredPerTheme": true,
79
+ "contrastPair": "color-accent",
80
+ "minContrast": 4.5
81
+ }
82
+ }
83
+ },
84
+ "fg-on-inverse": {
85
+ "$value": "{primitive.gray.0}",
86
+ "$extensions": {
87
+ "bw": {
88
+ "derived": "var(--bw-color-surface)"
89
+ }
90
+ }
91
+ },
92
+ "status-fg-ink": {
93
+ "$value": "{primitive.gray.900}",
94
+ "$description": "brickwork#289 review round 2: the fixed dark-ink partner every X-fg (danger/success/warning/info) mixes toward. Deliberately NOT var(--bw-color-fg): fg is one of the seven load-bearing tokens BRANDING.md tells every brand to author, so a derivation that tracked fg would let an ordinary, documented fg override quietly break status-text contrast (the same AA trap #289 closed for --bw-color-surface, one token over). This token defaults to the same value as --bw-color-fg (gray.900) so the shipped X-fg ratios are unchanged, but it is a distinct name a brand does not touch when it authors fg: overriding fg alone leaves status-text contrast exactly where base-theme verified it. A brand wanting different status-text ink authors this token directly (rare) and re-verifies the contrastPairs pairings itself.",
95
+ "$extensions": {
96
+ "bw": {}
97
+ }
98
+ },
99
+ "border": {
100
+ "$value": "{primitive.gray.200}",
101
+ "$extensions": {
102
+ "bw": {
103
+ "loadBearing": true
104
+ }
105
+ }
106
+ },
107
+ "border-strong": {
108
+ "$value": "{primitive.gray.300}",
109
+ "$extensions": {
110
+ "bw": {
111
+ "derived": "color-mix(in oklab, var(--bw-color-border) 94%, black)"
112
+ }
113
+ }
114
+ },
115
+ "border-control": {
116
+ "$value": "oklch(0.65 0.002 265)",
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
+ "$extensions": {
119
+ "bw": {
120
+ "derived": "color-mix(in oklab, var(--bw-color-fg) 44%, var(--bw-color-surface))"
121
+ }
122
+ }
123
+ },
124
+ "action-disabled-bg": {
125
+ "$value": "{primitive.gray.100}",
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
+ "$extensions": {
128
+ "bw": {
129
+ "derived": "color-mix(in oklab, var(--bw-color-surface) 96.5%, black)"
130
+ }
131
+ }
132
+ },
133
+ "action-disabled-text": {
134
+ "$value": "oklch(0.507 0.003 265)",
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
+ "$extensions": {
137
+ "bw": {
138
+ "derived": "color-mix(in oklab, var(--bw-color-fg) 62%, var(--bw-color-surface))",
139
+ "contrastPair": "color-action-disabled-bg",
140
+ "minContrast": 4.5
141
+ }
142
+ }
143
+ },
144
+ "action-disabled-border": {
145
+ "$value": "oklch(0.65 0.002 265)",
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
+ "$extensions": {
148
+ "bw": {
149
+ "derived": "color-mix(in oklab, var(--bw-color-fg) 44%, var(--bw-color-surface))"
150
+ }
151
+ }
152
+ },
153
+ "accent": {
154
+ "$value": "{primitive.blue.600}",
155
+ "$extensions": {
156
+ "bw": {
157
+ "loadBearing": true
158
+ }
159
+ }
160
+ },
161
+ "accent-hover": {
162
+ "$value": "{primitive.blue.700}",
163
+ "$extensions": {
164
+ "bw": {
165
+ "derived": "color-mix(in oklab, var(--bw-color-accent) 89%, black)"
166
+ }
167
+ }
168
+ },
169
+ "accent-subtle": {
170
+ "$value": "oklch(0.968 0.013 262)",
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
+ "$extensions": {
173
+ "bw": {
174
+ "derived": "color-mix(in oklab, var(--bw-color-accent) 7%, var(--bw-color-surface))"
175
+ }
176
+ }
177
+ },
178
+ "danger": {
179
+ "$value": "{primitive.red.600}",
180
+ "$extensions": {
181
+ "bw": {
182
+ "loadBearing": true
183
+ }
184
+ }
185
+ },
186
+ "danger-subtle": {
187
+ "$value": "oklch(0.97 0.015 27)",
188
+ "$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
+ "$extensions": {
190
+ "bw": {
191
+ "derived": "color-mix(in oklab, var(--bw-color-danger) 7%, var(--bw-color-surface))"
192
+ }
193
+ }
194
+ },
195
+ "danger-border": {
196
+ "$value": "oklch(0.873 0.065 27)",
197
+ "$description": "Tinted badge/alert border for the danger intent.",
198
+ "$extensions": {
199
+ "bw": {
200
+ "derived": "color-mix(in oklab, var(--bw-color-danger) 30%, var(--bw-color-surface))"
201
+ }
202
+ }
203
+ },
204
+ "danger-strong": {
205
+ "$value": "oklch(0.508 0.189 27)",
206
+ "$extensions": {
207
+ "bw": {
208
+ "derived": "color-mix(in oklab, var(--bw-color-danger) 88%, black)"
209
+ }
210
+ }
211
+ },
212
+ "danger-fg": {
213
+ "$value": "oklch(0.529 0.187 26.83)",
214
+ "$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
+ "$extensions": {
216
+ "bw": {
217
+ "derived": "color-mix(in oklab, var(--bw-color-danger) 87%, var(--bw-color-status-fg-ink))",
218
+ "contrastPair": [
219
+ "color-danger-subtle",
220
+ "color-surface"
221
+ ],
222
+ "minContrast": 4.5
223
+ }
224
+ }
225
+ },
226
+ "danger-on-fg": {
227
+ "$value": "{primitive.gray.0}"
228
+ },
229
+ "warning": {
230
+ "$value": "{primitive.amber.600}",
231
+ "$extensions": {
232
+ "bw": {
233
+ "loadBearing": true
234
+ }
235
+ }
236
+ },
237
+ "warning-subtle": {
238
+ "$value": "oklch(0.977 0.011 58)",
239
+ "$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.",
240
+ "$extensions": {
241
+ "bw": {
242
+ "derived": "color-mix(in oklab, var(--bw-color-warning) 7%, var(--bw-color-surface))"
243
+ }
244
+ }
245
+ },
246
+ "warning-border": {
247
+ "$value": "oklch(0.9 0.049 58)",
248
+ "$description": "Tinted badge/alert border for the warning intent.",
249
+ "$extensions": {
250
+ "bw": {
251
+ "derived": "color-mix(in oklab, var(--bw-color-warning) 30%, var(--bw-color-surface))"
252
+ }
253
+ }
254
+ },
255
+ "warning-strong": {
256
+ "$value": "oklch(0.586 0.143 58)",
257
+ "$extensions": {
258
+ "bw": {
259
+ "derived": "color-mix(in oklab, var(--bw-color-warning) 88%, black)"
260
+ }
261
+ }
262
+ },
263
+ "warning-fg": {
264
+ "$value": "oklch(0.518 0.109 57.62)",
265
+ "$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.",
266
+ "$extensions": {
267
+ "bw": {
268
+ "derived": "color-mix(in oklab, var(--bw-color-warning) 68%, var(--bw-color-status-fg-ink))",
269
+ "contrastPair": [
270
+ "color-warning-subtle",
271
+ "color-surface"
272
+ ],
273
+ "minContrast": 4.5
274
+ }
275
+ }
276
+ },
277
+ "warning-on-fg": {
278
+ "$value": "{primitive.gray.950}"
279
+ },
280
+ "success": {
281
+ "$value": "{primitive.green.600}",
282
+ "$extensions": {
283
+ "bw": {
284
+ "loadBearing": true
285
+ }
286
+ }
287
+ },
288
+ "success-subtle": {
289
+ "$value": "oklch(0.974 0.011 149)",
290
+ "$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.",
291
+ "$extensions": {
292
+ "bw": {
293
+ "derived": "color-mix(in oklab, var(--bw-color-success) 7%, var(--bw-color-surface))"
294
+ }
295
+ }
296
+ },
297
+ "success-border": {
298
+ "$value": "oklch(0.888 0.046 149)",
299
+ "$description": "Tinted badge/alert border for the success intent.",
300
+ "$extensions": {
301
+ "bw": {
302
+ "derived": "color-mix(in oklab, var(--bw-color-success) 30%, var(--bw-color-surface))"
303
+ }
304
+ }
305
+ },
306
+ "success-strong": {
307
+ "$value": "oklch(0.552 0.136 149)",
308
+ "$extensions": {
309
+ "bw": {
310
+ "derived": "color-mix(in oklab, var(--bw-color-success) 88%, black)"
311
+ }
312
+ }
313
+ },
314
+ "success-fg": {
315
+ "$value": "oklch(0.496 0.106 149.75)",
316
+ "$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.",
317
+ "$extensions": {
318
+ "bw": {
319
+ "derived": "color-mix(in oklab, var(--bw-color-success) 69%, var(--bw-color-status-fg-ink))",
320
+ "contrastPair": [
321
+ "color-success-subtle",
322
+ "color-surface"
323
+ ],
324
+ "minContrast": 4.5
325
+ }
326
+ }
327
+ },
328
+ "success-on-fg": {
329
+ "$value": "{primitive.gray.950}",
330
+ "$description": "Near-black ink, the same treatment as warning: white on the solid green base fails AA (3.32); this ink measures 5.97."
331
+ },
332
+ "info": {
333
+ "$value": "{primitive.cyan.600}",
334
+ "$extensions": {
335
+ "bw": {
336
+ "loadBearing": true,
337
+ "conditional": true,
338
+ "collapsesTo": "color-accent"
339
+ }
340
+ }
341
+ },
342
+ "info-subtle": {
343
+ "$value": "oklch(0.972 0.008 225)",
344
+ "$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.",
345
+ "$extensions": {
346
+ "bw": {
347
+ "derived": "color-mix(in oklab, var(--bw-color-info) 7%, var(--bw-color-surface))"
348
+ }
349
+ }
350
+ },
351
+ "info-border": {
352
+ "$value": "oklch(0.88 0.033 225)",
353
+ "$description": "Tinted badge/alert border for the info intent.",
354
+ "$extensions": {
355
+ "bw": {
356
+ "derived": "color-mix(in oklab, var(--bw-color-info) 30%, var(--bw-color-surface))"
357
+ }
358
+ }
359
+ },
360
+ "info-strong": {
361
+ "$value": "oklch(0.528 0.097 225)",
362
+ "$extensions": {
363
+ "bw": {
364
+ "derived": "color-mix(in oklab, var(--bw-color-info) 88%, black)"
365
+ }
366
+ }
367
+ },
368
+ "info-fg": {
369
+ "$value": "oklch(0.501 0.083 225.55)",
370
+ "$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.",
371
+ "$extensions": {
372
+ "bw": {
373
+ "derived": "color-mix(in oklab, var(--bw-color-info) 75%, var(--bw-color-status-fg-ink))",
374
+ "contrastPair": [
375
+ "color-info-subtle",
376
+ "color-surface"
377
+ ],
378
+ "minContrast": 4.5
379
+ }
380
+ }
381
+ },
382
+ "info-on-fg": {
383
+ "$value": "{primitive.gray.950}",
384
+ "$description": "Near-black ink, the same treatment as warning: white on the solid cyan base fails AA (3.83); this ink measures 5.17."
385
+ },
386
+ "icon-muted": {
387
+ "$value": "{primitive.gray.400}",
388
+ "$extensions": {
389
+ "bw": {
390
+ "derived": "var(--bw-color-fg-subtle)"
391
+ }
392
+ }
393
+ },
394
+ "focus-ring": {
395
+ "$value": "oklch(0.5187 0.1824 262)",
396
+ "$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.",
397
+ "$extensions": {
398
+ "bw": {
399
+ "derived": "color-mix(in oklab, var(--bw-color-accent) 95%, black)"
400
+ }
401
+ }
402
+ },
403
+ "nav-item-active-bg": {
404
+ "$value": "oklch(0.968 0.013 262)",
405
+ "$description": "Follows accent-subtle's resolved literal (hue 262, not the blue.50 ramp's 254).",
406
+ "$extensions": {
407
+ "bw": {
408
+ "derived": "var(--bw-color-accent-subtle)"
409
+ }
410
+ }
411
+ },
412
+ "nav-item-active-text": {
413
+ "$value": "{primitive.blue.700}",
414
+ "$extensions": {
415
+ "bw": {
416
+ "derived": "var(--bw-color-accent-hover)"
417
+ }
418
+ }
419
+ },
420
+ "nav-item-active-border": {
421
+ "$value": "{primitive.blue.600}",
422
+ "$extensions": {
423
+ "bw": {
424
+ "derived": "var(--bw-color-accent)"
425
+ }
426
+ }
427
+ },
428
+ "nav-item-disabled-text": {
429
+ "$value": "{primitive.gray.400}",
430
+ "$extensions": {
431
+ "bw": {
432
+ "derived": "var(--bw-color-fg-subtle)"
433
+ }
434
+ }
435
+ },
436
+ "nav-section-text": {
437
+ "$value": "oklch(0.507 0.003 265)",
438
+ "$description": "Follows fg-muted's resolved literal (0.4.0: the 62% mix).",
439
+ "$extensions": {
440
+ "bw": {
441
+ "derived": "var(--bw-color-fg-muted)"
442
+ }
443
+ }
444
+ },
445
+ "breadcrumb-current": {
446
+ "$value": "{primitive.gray.900}",
447
+ "$extensions": {
448
+ "bw": {
449
+ "derived": "var(--bw-color-fg)"
450
+ }
451
+ }
452
+ },
453
+ "breadcrumb-separator": {
454
+ "$value": "{primitive.gray.400}",
455
+ "$extensions": {
456
+ "bw": {
457
+ "derived": "var(--bw-color-fg-subtle)"
458
+ }
459
+ }
460
+ },
461
+ "skeleton-bg": {
462
+ "$value": "{primitive.gray.200}",
463
+ "$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.",
464
+ "$extensions": {
465
+ "bw": {
466
+ "derived": "color-mix(in oklab, var(--bw-color-surface-sunken) 96%, black)"
467
+ }
468
+ }
469
+ },
470
+ "skeleton-shimmer": {
471
+ "$value": "oklch(0.891 0.004 265)",
472
+ "$extensions": {
473
+ "bw": {
474
+ "derived": "color-mix(in oklab, var(--bw-color-skeleton-bg) 96%, black)"
475
+ }
476
+ }
477
+ },
478
+ "surface-marketing-tint": {
479
+ "$value": "oklch(0.9637 0.0154 352.16)",
480
+ "$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.",
481
+ "$extensions": {
482
+ "bw": {
483
+ "derived": "color-mix(in oklab, var(--bw-color-accent) 8%, var(--bw-color-surface))"
484
+ }
485
+ }
486
+ },
487
+ "stage-wash": {
488
+ "$value": "oklch(0.546 0.192 262 / 0.08)",
489
+ "$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.",
490
+ "$extensions": {
491
+ "bw": {
492
+ "derived": "color-mix(in oklab, var(--bw-color-accent) 8%, transparent)"
493
+ }
494
+ }
495
+ },
496
+ "stage-grid": {
497
+ "$value": "oklch(0.928 0.004 265 / 0.6)",
498
+ "$description": "4.2.0 soft-stage grid line (BR-BW-MKT-007 / #570): border at 60% over transparent, a faint line on the light surface rather than a hard rule.",
499
+ "$extensions": {
500
+ "bw": {
501
+ "derived": "color-mix(in oklab, var(--bw-color-border) 60%, transparent)"
502
+ }
503
+ }
504
+ },
505
+ "chart-1": {
506
+ "$value": "{primitive.chart.light.1}",
507
+ "$extensions": {
508
+ "bw": {
509
+ "authoredPerTheme": true,
510
+ "series": 1
511
+ }
512
+ }
513
+ },
514
+ "chart-2": {
515
+ "$value": "{primitive.chart.light.2}",
516
+ "$extensions": {
517
+ "bw": {
518
+ "authoredPerTheme": true,
519
+ "series": 2
520
+ }
521
+ }
522
+ },
523
+ "chart-3": {
524
+ "$value": "{primitive.chart.light.3}",
525
+ "$extensions": {
526
+ "bw": {
527
+ "authoredPerTheme": true,
528
+ "series": 3
529
+ }
530
+ }
531
+ },
532
+ "chart-4": {
533
+ "$value": "{primitive.chart.light.4}",
534
+ "$extensions": {
535
+ "bw": {
536
+ "authoredPerTheme": true,
537
+ "series": 4
538
+ }
539
+ }
540
+ },
541
+ "chart-5": {
542
+ "$value": "{primitive.chart.light.5}",
543
+ "$extensions": {
544
+ "bw": {
545
+ "authoredPerTheme": true,
546
+ "series": 5
547
+ }
548
+ }
549
+ },
550
+ "chart-6": {
551
+ "$value": "{primitive.chart.light.6}",
552
+ "$extensions": {
553
+ "bw": {
554
+ "authoredPerTheme": true,
555
+ "series": 6
556
+ }
557
+ }
558
+ },
559
+ "chart-7": {
560
+ "$value": "{primitive.chart.light.7}",
561
+ "$extensions": {
562
+ "bw": {
563
+ "authoredPerTheme": true,
564
+ "series": 7
565
+ }
566
+ }
567
+ },
568
+ "chart-8": {
569
+ "$value": "{primitive.chart.light.8}",
570
+ "$extensions": {
571
+ "bw": {
572
+ "authoredPerTheme": true,
573
+ "series": 8
574
+ }
575
+ }
576
+ },
577
+ "chart-axis": {
578
+ "$value": "oklch(0.45 0.004 265)",
579
+ "$description": "Axis line and ticks. Authored per theme, never derived (CHT-005). Measures 7.44:1 on the default surface: an axis is a non-text graphical object and clears WCAG 1.4.11's 3:1.",
580
+ "$extensions": {
581
+ "bw": {
582
+ "authoredPerTheme": true
583
+ }
584
+ }
585
+ },
586
+ "chart-grid": {
587
+ "$value": "oklch(0.922 0.003 265)",
588
+ "$description": "Gridlines. Deliberately low contrast (1.40:1) and deliberately NOT held to 3:1: a gridline is decoration that must recede behind the data, not a graphical object conveying information. The data series carry the meaning.",
589
+ "$extensions": {
590
+ "bw": {
591
+ "authoredPerTheme": true
592
+ }
593
+ }
594
+ },
595
+ "chart-axis-label": {
596
+ "$value": "oklch(0.48 0.003 265)",
597
+ "$description": "Axis tick labels. Authored per theme (CHT-005), and deliberately DARKER than fg-muted's 0.507 rather than reusing it: fg-muted is tuned for body text and measures 4.37:1 on the base surface, which is below the 4.5:1 AA floor once the value is held to a text standard. Chart axis labels are small text on a card, so they are authored at 6.5:1 instead. Caught by test_axis_label_clears_the_text_contrast_floor, which did not exist when the value was first copied from fg-muted.",
598
+ "$extensions": {
599
+ "bw": {
600
+ "authoredPerTheme": true
601
+ }
602
+ }
603
+ },
604
+ "chart-tooltip-bg": {
605
+ "$value": "oklch(0.205 0.005 265)",
606
+ "$description": "Chart tooltip background. Inverted against the light surface (the tooltip is a transient overlay, matching the package's inverse-surface convention).",
607
+ "$extensions": {
608
+ "bw": {
609
+ "authoredPerTheme": true
610
+ }
611
+ }
612
+ },
613
+ "chart-tooltip-text": {
614
+ "$value": "oklch(0.985 0.001 265)",
615
+ "$description": "Chart tooltip text. Measures 17.2:1 on tooltip-bg, comfortably clear of AA for the small text a tooltip carries.",
616
+ "$extensions": {
617
+ "bw": {
618
+ "authoredPerTheme": true
619
+ }
620
+ }
621
+ },
622
+ "chart-tooltip-border": {
623
+ "$value": "oklch(0.279 0.006 265)",
624
+ "$description": "Chart tooltip border: a subtle lift off the tooltip background, not a contrast affordance.",
625
+ "$extensions": {
626
+ "bw": {
627
+ "authoredPerTheme": true
628
+ }
629
+ }
630
+ },
631
+ "sparkline-stroke": {
632
+ "$value": "{primitive.chart.light.1}",
633
+ "$description": "Sparkline stroke for tone=\"neutral\" (VIZ-004). Defaults to --bw-color-chart-1 so a lone sparkline matches the chart palette's first series, and exists as a token precisely so a consumer can override it: VIZ-026 lets any VIZ stroke resolve --bw-color-chart-1..8 to colour-match a chart shown alongside, and a sparkline whose stroke was baked into a CSS rule would leave that consumer nothing to override but the component's own internals, which docs/BRANDING.md forbids in terms. The seam is the point; the default value is incidental. tone=\"trend\" deliberately does NOT read this token: it reads --bw-color-success-fg/--bw-color-danger-fg, which are derived from --bw-color-status-fg-ink and so inherit the status contrast contract that a parallel sparkline-positive/-negative pair would not."
634
+ }
635
+ },
636
+ "state": {
637
+ "$description": "Interactive-state tokens, LIGHT theme (DESIGN.md section 4.6). Transient feedback is a translucent overlay laid over whatever surface is beneath; persistent selection is a dedicated token. Theme-variant like color.*: same names in semantic.dark.tokens.json.",
638
+ "$type": "color",
639
+ "hover-overlay": {
640
+ "$value": "oklch(0 0 0 / 0.04)"
641
+ },
642
+ "active-overlay": {
643
+ "$value": "oklch(0 0 0 / 0.08)"
644
+ },
645
+ "selected-bg": {
646
+ "$value": "oklch(0.968 0.013 262)",
647
+ "$description": "Follows accent-subtle's resolved literal (hue 262, not the blue.50 ramp's 254).",
648
+ "$extensions": {
649
+ "bw": {
650
+ "derived": "var(--bw-color-accent-subtle)"
651
+ }
652
+ }
653
+ }
654
+ },
655
+ "elevation": {
656
+ "$description": "Elevation ramp, LIGHT theme (DESIGN.md section 5). Geometry adopted from Tailwind 4's shadow ramp, colours in oklch. Theme-variant: dark values are authored in semantic.dark.tokens.json (higher alpha plus an inset top highlight from level 3).",
657
+ "$type": "other",
658
+ "0": {
659
+ "$value": "none"
660
+ },
661
+ "1": {
662
+ "$value": "0 1px 2px 0 oklch(0 0 0 / 0.05)"
663
+ },
664
+ "2": {
665
+ "$value": "0 1px 3px 0 oklch(0 0 0 / 0.1), 0 1px 2px -1px oklch(0 0 0 / 0.1)"
666
+ },
667
+ "3": {
668
+ "$value": "0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1)"
669
+ },
670
+ "4": {
671
+ "$value": "0 10px 15px -3px oklch(0 0 0 / 0.1), 0 4px 6px -4px oklch(0 0 0 / 0.1)"
672
+ },
673
+ "5": {
674
+ "$value": "0 20px 25px -5px oklch(0 0 0 / 0.1), 0 8px 10px -6px oklch(0 0 0 / 0.1)"
675
+ }
676
+ }
677
+ }