@bwui/tokens 0.1.9 → 0.1.11
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.
- package/dist/figma-variables.json +125 -17
- package/dist/palette.css +295 -0
- package/dist/token-manifest.json +2035 -0
- package/dist/tokens.css +122 -74
- package/dist/tokens.dtcg.json +943 -103
- package/dist/tokens.js +264 -2
- package/package.json +5 -3
- package/src/dtcg/component.tokens.json +9 -2
- package/src/dtcg/primitive.tokens.json +899 -66
- package/src/dtcg/semantic.dark.tokens.json +8 -8
- package/src/dtcg/semantic.light.tokens.json +23 -23
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"fg-on-accent": {
|
|
73
|
-
"$value": "{primitive.
|
|
73
|
+
"$value": "{primitive.zinc.950}",
|
|
74
74
|
"$extensions": {
|
|
75
75
|
"bw": {
|
|
76
76
|
"loadBearing": true,
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"border": {
|
|
99
|
-
"$value": "{primitive.
|
|
99
|
+
"$value": "{primitive.zinc.800}",
|
|
100
100
|
"$extensions": {
|
|
101
101
|
"bw": {
|
|
102
102
|
"loadBearing": true
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"border-strong": {
|
|
107
|
-
"$value": "{primitive.
|
|
107
|
+
"$value": "{primitive.zinc.700}",
|
|
108
108
|
"$extensions": {
|
|
109
109
|
"bw": {
|
|
110
110
|
"derived": "color-mix(in oklab, var(--bw-color-border) 86%, white)"
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
220
|
"danger-on-fg": {
|
|
221
|
-
"$value": "{primitive.
|
|
221
|
+
"$value": "{primitive.zinc.950}"
|
|
222
222
|
},
|
|
223
223
|
"warning": {
|
|
224
224
|
"$value": "{primitive.amber.500}",
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
}
|
|
264
264
|
},
|
|
265
265
|
"warning-on-fg": {
|
|
266
|
-
"$value": "{primitive.
|
|
266
|
+
"$value": "{primitive.zinc.950}"
|
|
267
267
|
},
|
|
268
268
|
"success": {
|
|
269
269
|
"$value": "{primitive.green.500}",
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
}
|
|
309
309
|
},
|
|
310
310
|
"success-on-fg": {
|
|
311
|
-
"$value": "{primitive.
|
|
311
|
+
"$value": "{primitive.zinc.950}"
|
|
312
312
|
},
|
|
313
313
|
"info": {
|
|
314
314
|
"$value": "{primitive.cyan.400}",
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
}
|
|
356
356
|
},
|
|
357
357
|
"info-on-fg": {
|
|
358
|
-
"$value": "{primitive.
|
|
358
|
+
"$value": "{primitive.zinc.950}"
|
|
359
359
|
},
|
|
360
360
|
"icon-muted": {
|
|
361
361
|
"$value": "oklch(0.548 0.004 265)",
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
}
|
|
467
467
|
},
|
|
468
468
|
"stage-grid": {
|
|
469
|
-
"$value": "oklch(0.
|
|
469
|
+
"$value": "oklch(0.274 0.006 286.033 / 0.7)",
|
|
470
470
|
"$description": "4.2.0 soft-stage grid line (BR-BW-MKT-007 / #570), AUTHORED for dark: border at 70% over transparent so the grid stays visible on graphite.",
|
|
471
471
|
"$extensions": {
|
|
472
472
|
"bw": {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
"$type": "color",
|
|
5
5
|
"surface": {
|
|
6
|
-
"$value": "{primitive.
|
|
6
|
+
"$value": "{primitive.white}",
|
|
7
7
|
"$extensions": {
|
|
8
8
|
"bw": {
|
|
9
9
|
"loadBearing": true
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"surface-sunken": {
|
|
14
|
-
"$value": "{primitive.
|
|
14
|
+
"$value": "{primitive.zinc.100}",
|
|
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": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"surface-raised": {
|
|
23
|
-
"$value": "{primitive.
|
|
23
|
+
"$value": "{primitive.white}",
|
|
24
24
|
"$extensions": {
|
|
25
25
|
"bw": {
|
|
26
26
|
"derived": "var(--bw-color-surface)"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"surface-inverse": {
|
|
31
|
-
"$value": "{primitive.
|
|
31
|
+
"$value": "{primitive.zinc.900}",
|
|
32
32
|
"$extensions": {
|
|
33
33
|
"bw": {
|
|
34
34
|
"derived": "var(--bw-color-fg)",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"surface-overlay": {
|
|
41
|
-
"$value": "oklch(0.
|
|
41
|
+
"$value": "oklch(0.21 0.006 285.885 / 0.5)",
|
|
42
42
|
"$extensions": {
|
|
43
43
|
"bw": {
|
|
44
44
|
"derived": "color-mix(in oklab, var(--bw-color-surface-inverse) 50%, transparent)"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"fg": {
|
|
49
|
-
"$value": "{primitive.
|
|
49
|
+
"$value": "{primitive.zinc.900}",
|
|
50
50
|
"$extensions": {
|
|
51
51
|
"bw": {
|
|
52
52
|
"loadBearing": true
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"fg-subtle": {
|
|
66
|
-
"$value": "{primitive.
|
|
66
|
+
"$value": "{primitive.zinc.400}",
|
|
67
67
|
"$extensions": {
|
|
68
68
|
"bw": {
|
|
69
69
|
"derived": "color-mix(in oklab, var(--bw-color-fg) 37%, var(--bw-color-surface))"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"fg-on-accent": {
|
|
74
|
-
"$value": "{primitive.
|
|
74
|
+
"$value": "{primitive.white}",
|
|
75
75
|
"$extensions": {
|
|
76
76
|
"bw": {
|
|
77
77
|
"loadBearing": true,
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"fg-on-inverse": {
|
|
85
|
-
"$value": "{primitive.
|
|
85
|
+
"$value": "{primitive.white}",
|
|
86
86
|
"$extensions": {
|
|
87
87
|
"bw": {
|
|
88
88
|
"derived": "var(--bw-color-surface)"
|
|
@@ -90,14 +90,14 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"status-fg-ink": {
|
|
93
|
-
"$value": "{primitive.
|
|
93
|
+
"$value": "{primitive.zinc.900}",
|
|
94
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
95
|
"$extensions": {
|
|
96
96
|
"bw": {}
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
"border": {
|
|
100
|
-
"$value": "{primitive.
|
|
100
|
+
"$value": "{primitive.zinc.200}",
|
|
101
101
|
"$extensions": {
|
|
102
102
|
"bw": {
|
|
103
103
|
"loadBearing": true
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"border-strong": {
|
|
108
|
-
"$value": "{primitive.
|
|
108
|
+
"$value": "{primitive.zinc.300}",
|
|
109
109
|
"$extensions": {
|
|
110
110
|
"bw": {
|
|
111
111
|
"derived": "color-mix(in oklab, var(--bw-color-border) 94%, black)"
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
"action-disabled-bg": {
|
|
125
|
-
"$value": "{primitive.
|
|
125
|
+
"$value": "{primitive.zinc.100}",
|
|
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": {
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
226
|
"danger-on-fg": {
|
|
227
|
-
"$value": "{primitive.
|
|
227
|
+
"$value": "{primitive.white}"
|
|
228
228
|
},
|
|
229
229
|
"warning": {
|
|
230
230
|
"$value": "{primitive.amber.600}",
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
"warning-on-fg": {
|
|
278
|
-
"$value": "{primitive.
|
|
278
|
+
"$value": "{primitive.zinc.950}"
|
|
279
279
|
},
|
|
280
280
|
"success": {
|
|
281
281
|
"$value": "{primitive.green.600}",
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
}
|
|
327
327
|
},
|
|
328
328
|
"success-on-fg": {
|
|
329
|
-
"$value": "{primitive.
|
|
329
|
+
"$value": "{primitive.zinc.950}",
|
|
330
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
331
|
},
|
|
332
332
|
"info": {
|
|
@@ -380,11 +380,11 @@
|
|
|
380
380
|
}
|
|
381
381
|
},
|
|
382
382
|
"info-on-fg": {
|
|
383
|
-
"$value": "{primitive.
|
|
383
|
+
"$value": "{primitive.zinc.950}",
|
|
384
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
385
|
},
|
|
386
386
|
"icon-muted": {
|
|
387
|
-
"$value": "{primitive.
|
|
387
|
+
"$value": "{primitive.zinc.400}",
|
|
388
388
|
"$extensions": {
|
|
389
389
|
"bw": {
|
|
390
390
|
"derived": "var(--bw-color-fg-subtle)"
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
}
|
|
427
427
|
},
|
|
428
428
|
"nav-item-disabled-text": {
|
|
429
|
-
"$value": "{primitive.
|
|
429
|
+
"$value": "{primitive.zinc.400}",
|
|
430
430
|
"$extensions": {
|
|
431
431
|
"bw": {
|
|
432
432
|
"derived": "var(--bw-color-fg-subtle)"
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
}
|
|
444
444
|
},
|
|
445
445
|
"breadcrumb-current": {
|
|
446
|
-
"$value": "{primitive.
|
|
446
|
+
"$value": "{primitive.zinc.900}",
|
|
447
447
|
"$extensions": {
|
|
448
448
|
"bw": {
|
|
449
449
|
"derived": "var(--bw-color-fg)"
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
}
|
|
452
452
|
},
|
|
453
453
|
"breadcrumb-separator": {
|
|
454
|
-
"$value": "{primitive.
|
|
454
|
+
"$value": "{primitive.zinc.400}",
|
|
455
455
|
"$extensions": {
|
|
456
456
|
"bw": {
|
|
457
457
|
"derived": "var(--bw-color-fg-subtle)"
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
461
|
"skeleton-bg": {
|
|
462
|
-
"$value": "{primitive.
|
|
462
|
+
"$value": "{primitive.zinc.200}",
|
|
463
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
464
|
"$extensions": {
|
|
465
465
|
"bw": {
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
}
|
|
495
495
|
},
|
|
496
496
|
"stage-grid": {
|
|
497
|
-
"$value": "oklch(0.
|
|
497
|
+
"$value": "oklch(0.92 0.004 286.32 / 0.6)",
|
|
498
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
499
|
"$extensions": {
|
|
500
500
|
"bw": {
|