@bwui/tokens 0.1.16 → 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.
- package/dist/figma-variables.json +47 -5
- package/dist/tailwind-preset.mjs +8 -1
- package/dist/tailwind-theme.css +7 -0
- package/dist/token-manifest.json +13 -0
- package/dist/tokens.css +40 -12
- package/dist/tokens.dtcg.json +92 -41
- package/dist/tokens.js +7 -0
- package/package.json +2 -1
- package/src/dtcg/semantic.dark.tokens.json +91 -40
- package/src/dtcg/semantic.light.tokens.json +92 -41
package/dist/tokens.dtcg.json
CHANGED
|
@@ -1983,7 +1983,7 @@
|
|
|
1983
1983
|
}
|
|
1984
1984
|
},
|
|
1985
1985
|
"surface-sunken": {
|
|
1986
|
-
"$value": "
|
|
1986
|
+
"$value": "oklch(0.965 0 none)",
|
|
1987
1987
|
"$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.",
|
|
1988
1988
|
"$extensions": {
|
|
1989
1989
|
"bw": {
|
|
@@ -2010,7 +2010,7 @@
|
|
|
2010
2010
|
}
|
|
2011
2011
|
},
|
|
2012
2012
|
"surface-overlay": {
|
|
2013
|
-
"$value": "oklch(0.21 0.006 285.
|
|
2013
|
+
"$value": "oklch(0.21 0.006 285.88 / 0.5)",
|
|
2014
2014
|
"$extensions": {
|
|
2015
2015
|
"bw": {
|
|
2016
2016
|
"derived": "color-mix(in oklab, var(--bw-color-surface-inverse) 50%, transparent)"
|
|
@@ -2026,7 +2026,7 @@
|
|
|
2026
2026
|
}
|
|
2027
2027
|
},
|
|
2028
2028
|
"fg-muted": {
|
|
2029
|
-
"$value": "oklch(0.
|
|
2029
|
+
"$value": "oklch(0.51 0.004 285.89)",
|
|
2030
2030
|
"$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.",
|
|
2031
2031
|
"$extensions": {
|
|
2032
2032
|
"bw": {
|
|
@@ -2035,7 +2035,7 @@
|
|
|
2035
2035
|
}
|
|
2036
2036
|
},
|
|
2037
2037
|
"fg-subtle": {
|
|
2038
|
-
"$value": "
|
|
2038
|
+
"$value": "oklch(0.708 0.002 285.89)",
|
|
2039
2039
|
"$extensions": {
|
|
2040
2040
|
"bw": {
|
|
2041
2041
|
"derived": "color-mix(in oklab, var(--bw-color-fg) 37%, var(--bw-color-surface))"
|
|
@@ -2077,7 +2077,7 @@
|
|
|
2077
2077
|
}
|
|
2078
2078
|
},
|
|
2079
2079
|
"border-strong": {
|
|
2080
|
-
"$value": "
|
|
2080
|
+
"$value": "oklch(0.865 0.004 286.32)",
|
|
2081
2081
|
"$extensions": {
|
|
2082
2082
|
"bw": {
|
|
2083
2083
|
"derived": "color-mix(in oklab, var(--bw-color-border) 94%, black)"
|
|
@@ -2085,7 +2085,7 @@
|
|
|
2085
2085
|
}
|
|
2086
2086
|
},
|
|
2087
2087
|
"border-control": {
|
|
2088
|
-
"$value": "oklch(0.
|
|
2088
|
+
"$value": "oklch(0.621 0.003 285.89)",
|
|
2089
2089
|
"$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).",
|
|
2090
2090
|
"$extensions": {
|
|
2091
2091
|
"bw": {
|
|
@@ -2094,7 +2094,7 @@
|
|
|
2094
2094
|
}
|
|
2095
2095
|
},
|
|
2096
2096
|
"action-disabled-bg": {
|
|
2097
|
-
"$value": "
|
|
2097
|
+
"$value": "oklch(0.965 0 none)",
|
|
2098
2098
|
"$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.",
|
|
2099
2099
|
"$extensions": {
|
|
2100
2100
|
"bw": {
|
|
@@ -2103,7 +2103,7 @@
|
|
|
2103
2103
|
}
|
|
2104
2104
|
},
|
|
2105
2105
|
"action-disabled-text": {
|
|
2106
|
-
"$value": "oklch(0.
|
|
2106
|
+
"$value": "oklch(0.51 0.004 285.89)",
|
|
2107
2107
|
"$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.",
|
|
2108
2108
|
"$extensions": {
|
|
2109
2109
|
"bw": {
|
|
@@ -2114,7 +2114,7 @@
|
|
|
2114
2114
|
}
|
|
2115
2115
|
},
|
|
2116
2116
|
"action-disabled-border": {
|
|
2117
|
-
"$value": "oklch(0.
|
|
2117
|
+
"$value": "oklch(0.652 0.003 285.89)",
|
|
2118
2118
|
"$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.",
|
|
2119
2119
|
"$extensions": {
|
|
2120
2120
|
"bw": {
|
|
@@ -2131,7 +2131,7 @@
|
|
|
2131
2131
|
}
|
|
2132
2132
|
},
|
|
2133
2133
|
"accent-hover": {
|
|
2134
|
-
"$value": "
|
|
2134
|
+
"$value": "oklch(0.486 0.218 262.88)",
|
|
2135
2135
|
"$extensions": {
|
|
2136
2136
|
"bw": {
|
|
2137
2137
|
"derived": "color-mix(in oklab, var(--bw-color-accent) 89%, black)"
|
|
@@ -2139,7 +2139,7 @@
|
|
|
2139
2139
|
}
|
|
2140
2140
|
},
|
|
2141
2141
|
"accent-subtle": {
|
|
2142
|
-
"$value": "oklch(0.968 0.
|
|
2142
|
+
"$value": "oklch(0.968 0.017 262.88)",
|
|
2143
2143
|
"$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.",
|
|
2144
2144
|
"$extensions": {
|
|
2145
2145
|
"bw": {
|
|
@@ -2147,6 +2147,19 @@
|
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
2149
|
},
|
|
2150
|
+
"accent-wash": {
|
|
2151
|
+
"$value": "oklch(0.546 0.245 262.88 / 0.08)",
|
|
2152
|
+
"$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.",
|
|
2153
|
+
"$extensions": {
|
|
2154
|
+
"bw": {
|
|
2155
|
+
"derived": "color-mix(in oklab, var(--bw-color-accent) 8%, transparent)"
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
},
|
|
2159
|
+
"edge-shade": {
|
|
2160
|
+
"$value": "{primitive.black}",
|
|
2161
|
+
"$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."
|
|
2162
|
+
},
|
|
2150
2163
|
"danger": {
|
|
2151
2164
|
"$value": "{primitive.red.600}",
|
|
2152
2165
|
"$extensions": {
|
|
@@ -2156,7 +2169,7 @@
|
|
|
2156
2169
|
}
|
|
2157
2170
|
},
|
|
2158
2171
|
"danger-subtle": {
|
|
2159
|
-
"$value": "oklch(0.97 0.
|
|
2172
|
+
"$value": "oklch(0.97 0.017 27.33)",
|
|
2160
2173
|
"$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.",
|
|
2161
2174
|
"$extensions": {
|
|
2162
2175
|
"bw": {
|
|
@@ -2165,7 +2178,7 @@
|
|
|
2165
2178
|
}
|
|
2166
2179
|
},
|
|
2167
2180
|
"danger-border": {
|
|
2168
|
-
"$value": "oklch(0.873 0.
|
|
2181
|
+
"$value": "oklch(0.873 0.074 27.33)",
|
|
2169
2182
|
"$description": "Tinted badge/alert border for the danger intent.",
|
|
2170
2183
|
"$extensions": {
|
|
2171
2184
|
"bw": {
|
|
@@ -2174,7 +2187,7 @@
|
|
|
2174
2187
|
}
|
|
2175
2188
|
},
|
|
2176
2189
|
"danger-strong": {
|
|
2177
|
-
"$value": "oklch(0.508 0.
|
|
2190
|
+
"$value": "oklch(0.508 0.216 27.32)",
|
|
2178
2191
|
"$extensions": {
|
|
2179
2192
|
"bw": {
|
|
2180
2193
|
"derived": "color-mix(in oklab, var(--bw-color-danger) 88%, black)"
|
|
@@ -2182,7 +2195,7 @@
|
|
|
2182
2195
|
}
|
|
2183
2196
|
},
|
|
2184
2197
|
"danger-fg": {
|
|
2185
|
-
"$value": "oklch(0.529 0.
|
|
2198
|
+
"$value": "oklch(0.529 0.213 27.12)",
|
|
2186
2199
|
"$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).",
|
|
2187
2200
|
"$extensions": {
|
|
2188
2201
|
"bw": {
|
|
@@ -2196,7 +2209,15 @@
|
|
|
2196
2209
|
}
|
|
2197
2210
|
},
|
|
2198
2211
|
"danger-on-fg": {
|
|
2199
|
-
"$value": "{primitive.white}"
|
|
2212
|
+
"$value": "{primitive.white}",
|
|
2213
|
+
"$extensions": {
|
|
2214
|
+
"bw": {
|
|
2215
|
+
"loadBearing": true,
|
|
2216
|
+
"authoredPerTheme": true,
|
|
2217
|
+
"contrastPair": "color-danger",
|
|
2218
|
+
"minContrast": 4.5
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2200
2221
|
},
|
|
2201
2222
|
"warning": {
|
|
2202
2223
|
"$value": "{primitive.amber.600}",
|
|
@@ -2207,7 +2228,7 @@
|
|
|
2207
2228
|
}
|
|
2208
2229
|
},
|
|
2209
2230
|
"warning-subtle": {
|
|
2210
|
-
"$value": "oklch(0.977 0.
|
|
2231
|
+
"$value": "oklch(0.977 0.013 58.32)",
|
|
2211
2232
|
"$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.",
|
|
2212
2233
|
"$extensions": {
|
|
2213
2234
|
"bw": {
|
|
@@ -2216,7 +2237,7 @@
|
|
|
2216
2237
|
}
|
|
2217
2238
|
},
|
|
2218
2239
|
"warning-border": {
|
|
2219
|
-
"$value": "oklch(0.9 0.
|
|
2240
|
+
"$value": "oklch(0.9 0.054 58.32)",
|
|
2220
2241
|
"$description": "Tinted badge/alert border for the warning intent.",
|
|
2221
2242
|
"$extensions": {
|
|
2222
2243
|
"bw": {
|
|
@@ -2225,7 +2246,7 @@
|
|
|
2225
2246
|
}
|
|
2226
2247
|
},
|
|
2227
2248
|
"warning-strong": {
|
|
2228
|
-
"$value": "oklch(0.586 0.
|
|
2249
|
+
"$value": "oklch(0.586 0.158 58.32)",
|
|
2229
2250
|
"$extensions": {
|
|
2230
2251
|
"bw": {
|
|
2231
2252
|
"derived": "color-mix(in oklab, var(--bw-color-warning) 88%, black)"
|
|
@@ -2233,7 +2254,7 @@
|
|
|
2233
2254
|
}
|
|
2234
2255
|
},
|
|
2235
2256
|
"warning-fg": {
|
|
2236
|
-
"$value": "oklch(0.
|
|
2257
|
+
"$value": "oklch(0.52 0.12 57.64)",
|
|
2237
2258
|
"$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.",
|
|
2238
2259
|
"$extensions": {
|
|
2239
2260
|
"bw": {
|
|
@@ -2258,7 +2279,7 @@
|
|
|
2258
2279
|
}
|
|
2259
2280
|
},
|
|
2260
2281
|
"success-subtle": {
|
|
2261
|
-
"$value": "oklch(0.974 0.
|
|
2282
|
+
"$value": "oklch(0.974 0.014 149.21)",
|
|
2262
2283
|
"$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.",
|
|
2263
2284
|
"$extensions": {
|
|
2264
2285
|
"bw": {
|
|
@@ -2267,7 +2288,7 @@
|
|
|
2267
2288
|
}
|
|
2268
2289
|
},
|
|
2269
2290
|
"success-border": {
|
|
2270
|
-
"$value": "oklch(0.888 0.
|
|
2291
|
+
"$value": "oklch(0.888 0.058 149.21)",
|
|
2271
2292
|
"$description": "Tinted badge/alert border for the success intent.",
|
|
2272
2293
|
"$extensions": {
|
|
2273
2294
|
"bw": {
|
|
@@ -2276,7 +2297,7 @@
|
|
|
2276
2297
|
}
|
|
2277
2298
|
},
|
|
2278
2299
|
"success-strong": {
|
|
2279
|
-
"$value": "oklch(0.552 0.
|
|
2300
|
+
"$value": "oklch(0.552 0.171 149.21)",
|
|
2280
2301
|
"$extensions": {
|
|
2281
2302
|
"bw": {
|
|
2282
2303
|
"derived": "color-mix(in oklab, var(--bw-color-success) 88%, black)"
|
|
@@ -2284,7 +2305,7 @@
|
|
|
2284
2305
|
}
|
|
2285
2306
|
},
|
|
2286
2307
|
"success-fg": {
|
|
2287
|
-
"$value": "oklch(0.
|
|
2308
|
+
"$value": "oklch(0.498 0.133 149.77)",
|
|
2288
2309
|
"$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.",
|
|
2289
2310
|
"$extensions": {
|
|
2290
2311
|
"bw": {
|
|
@@ -2312,7 +2333,7 @@
|
|
|
2312
2333
|
}
|
|
2313
2334
|
},
|
|
2314
2335
|
"info-subtle": {
|
|
2315
|
-
"$value": "oklch(0.
|
|
2336
|
+
"$value": "oklch(0.973 0.009 221.72)",
|
|
2316
2337
|
"$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.",
|
|
2317
2338
|
"$extensions": {
|
|
2318
2339
|
"bw": {
|
|
@@ -2321,7 +2342,7 @@
|
|
|
2321
2342
|
}
|
|
2322
2343
|
},
|
|
2323
2344
|
"info-border": {
|
|
2324
|
-
"$value": "oklch(0.
|
|
2345
|
+
"$value": "oklch(0.883 0.038 221.72)",
|
|
2325
2346
|
"$description": "Tinted badge/alert border for the info intent.",
|
|
2326
2347
|
"$extensions": {
|
|
2327
2348
|
"bw": {
|
|
@@ -2330,7 +2351,7 @@
|
|
|
2330
2351
|
}
|
|
2331
2352
|
},
|
|
2332
2353
|
"info-strong": {
|
|
2333
|
-
"$value": "oklch(0.
|
|
2354
|
+
"$value": "oklch(0.536 0.111 221.72)",
|
|
2334
2355
|
"$extensions": {
|
|
2335
2356
|
"bw": {
|
|
2336
2357
|
"derived": "color-mix(in oklab, var(--bw-color-info) 88%, black)"
|
|
@@ -2338,7 +2359,7 @@
|
|
|
2338
2359
|
}
|
|
2339
2360
|
},
|
|
2340
2361
|
"info-fg": {
|
|
2341
|
-
"$value": "oklch(0.
|
|
2362
|
+
"$value": "oklch(0.509 0.095 222.54)",
|
|
2342
2363
|
"$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.",
|
|
2343
2364
|
"$extensions": {
|
|
2344
2365
|
"bw": {
|
|
@@ -2356,7 +2377,7 @@
|
|
|
2356
2377
|
"$description": "Near-black ink, the same treatment as warning: white on the solid cyan base fails AA (3.83); this ink measures 5.17."
|
|
2357
2378
|
},
|
|
2358
2379
|
"icon-muted": {
|
|
2359
|
-
"$value": "
|
|
2380
|
+
"$value": "oklch(0.708 0.002 285.89)",
|
|
2360
2381
|
"$extensions": {
|
|
2361
2382
|
"bw": {
|
|
2362
2383
|
"derived": "var(--bw-color-fg-subtle)"
|
|
@@ -2364,7 +2385,7 @@
|
|
|
2364
2385
|
}
|
|
2365
2386
|
},
|
|
2366
2387
|
"focus-ring": {
|
|
2367
|
-
"$value": "oklch(0.
|
|
2388
|
+
"$value": "oklch(0.519 0.233 262.88)",
|
|
2368
2389
|
"$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.",
|
|
2369
2390
|
"$extensions": {
|
|
2370
2391
|
"bw": {
|
|
@@ -2373,7 +2394,7 @@
|
|
|
2373
2394
|
}
|
|
2374
2395
|
},
|
|
2375
2396
|
"nav-item-active-bg": {
|
|
2376
|
-
"$value": "oklch(0.968 0.
|
|
2397
|
+
"$value": "oklch(0.968 0.017 262.88)",
|
|
2377
2398
|
"$description": "Follows accent-subtle's resolved literal (hue 262, not the blue.50 ramp's 254).",
|
|
2378
2399
|
"$extensions": {
|
|
2379
2400
|
"bw": {
|
|
@@ -2382,7 +2403,7 @@
|
|
|
2382
2403
|
}
|
|
2383
2404
|
},
|
|
2384
2405
|
"nav-item-active-text": {
|
|
2385
|
-
"$value": "
|
|
2406
|
+
"$value": "oklch(0.486 0.218 262.88)",
|
|
2386
2407
|
"$extensions": {
|
|
2387
2408
|
"bw": {
|
|
2388
2409
|
"derived": "var(--bw-color-accent-hover)"
|
|
@@ -2398,7 +2419,7 @@
|
|
|
2398
2419
|
}
|
|
2399
2420
|
},
|
|
2400
2421
|
"nav-item-disabled-text": {
|
|
2401
|
-
"$value": "
|
|
2422
|
+
"$value": "oklch(0.708 0.002 285.89)",
|
|
2402
2423
|
"$extensions": {
|
|
2403
2424
|
"bw": {
|
|
2404
2425
|
"derived": "var(--bw-color-fg-subtle)"
|
|
@@ -2406,7 +2427,7 @@
|
|
|
2406
2427
|
}
|
|
2407
2428
|
},
|
|
2408
2429
|
"nav-section-text": {
|
|
2409
|
-
"$value": "oklch(0.
|
|
2430
|
+
"$value": "oklch(0.51 0.004 285.89)",
|
|
2410
2431
|
"$description": "Follows fg-muted's resolved literal (0.4.0: the 62% mix).",
|
|
2411
2432
|
"$extensions": {
|
|
2412
2433
|
"bw": {
|
|
@@ -2423,7 +2444,7 @@
|
|
|
2423
2444
|
}
|
|
2424
2445
|
},
|
|
2425
2446
|
"breadcrumb-separator": {
|
|
2426
|
-
"$value": "
|
|
2447
|
+
"$value": "oklch(0.708 0.002 285.89)",
|
|
2427
2448
|
"$extensions": {
|
|
2428
2449
|
"bw": {
|
|
2429
2450
|
"derived": "var(--bw-color-fg-subtle)"
|
|
@@ -2431,7 +2452,7 @@
|
|
|
2431
2452
|
}
|
|
2432
2453
|
},
|
|
2433
2454
|
"skeleton-bg": {
|
|
2434
|
-
"$value": "
|
|
2455
|
+
"$value": "oklch(0.926 0 none)",
|
|
2435
2456
|
"$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.",
|
|
2436
2457
|
"$extensions": {
|
|
2437
2458
|
"bw": {
|
|
@@ -2440,7 +2461,7 @@
|
|
|
2440
2461
|
}
|
|
2441
2462
|
},
|
|
2442
2463
|
"skeleton-shimmer": {
|
|
2443
|
-
"$value": "oklch(0.
|
|
2464
|
+
"$value": "oklch(0.889 0 none)",
|
|
2444
2465
|
"$extensions": {
|
|
2445
2466
|
"bw": {
|
|
2446
2467
|
"derived": "color-mix(in oklab, var(--bw-color-skeleton-bg) 96%, black)"
|
|
@@ -2448,7 +2469,7 @@
|
|
|
2448
2469
|
}
|
|
2449
2470
|
},
|
|
2450
2471
|
"surface-marketing-tint": {
|
|
2451
|
-
"$value": "oklch(0.
|
|
2472
|
+
"$value": "oklch(0.964 0.02 262.88)",
|
|
2452
2473
|
"$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.",
|
|
2453
2474
|
"$extensions": {
|
|
2454
2475
|
"bw": {
|
|
@@ -2457,7 +2478,7 @@
|
|
|
2457
2478
|
}
|
|
2458
2479
|
},
|
|
2459
2480
|
"stage-wash": {
|
|
2460
|
-
"$value": "oklch(0.546 0.
|
|
2481
|
+
"$value": "oklch(0.546 0.245 262.88 / 0.08)",
|
|
2461
2482
|
"$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.",
|
|
2462
2483
|
"$extensions": {
|
|
2463
2484
|
"bw": {
|
|
@@ -2602,7 +2623,12 @@
|
|
|
2602
2623
|
},
|
|
2603
2624
|
"sparkline-stroke": {
|
|
2604
2625
|
"$value": "{primitive.chart.light.1}",
|
|
2605
|
-
"$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."
|
|
2626
|
+
"$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.",
|
|
2627
|
+
"$extensions": {
|
|
2628
|
+
"bw": {
|
|
2629
|
+
"derived": "var(--bw-color-chart-1)"
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2606
2632
|
}
|
|
2607
2633
|
},
|
|
2608
2634
|
"state": {
|
|
@@ -2615,7 +2641,7 @@
|
|
|
2615
2641
|
"$value": "oklch(0 0 0 / 0.08)"
|
|
2616
2642
|
},
|
|
2617
2643
|
"selected-bg": {
|
|
2618
|
-
"$value": "oklch(0.968 0.
|
|
2644
|
+
"$value": "oklch(0.968 0.017 262.88)",
|
|
2619
2645
|
"$description": "Follows accent-subtle's resolved literal (hue 262, not the blue.50 ramp's 254).",
|
|
2620
2646
|
"$extensions": {
|
|
2621
2647
|
"bw": {
|
|
@@ -2660,6 +2686,31 @@
|
|
|
2660
2686
|
"ambient-4": {
|
|
2661
2687
|
"$value": "0 8px 28px -10px oklch(0 0 0 / 0.14)",
|
|
2662
2688
|
"$description": "Product-chrome ambient halo (marketing product-shot craft, #97)."
|
|
2689
|
+
},
|
|
2690
|
+
"control-bevel": {
|
|
2691
|
+
"$value": "inset 0 1px 0 0 oklch(1 0 0 / 0.12)",
|
|
2692
|
+
"$description": "Catch-light on the top edge of a filled button (resting and hover)."
|
|
2693
|
+
},
|
|
2694
|
+
"control-pressed": {
|
|
2695
|
+
"$value": "inset 0 1px 2px 0 oklch(0 0 0 / 0.2)",
|
|
2696
|
+
"$description": "Inner shadow on a pressed (active) button."
|
|
2697
|
+
},
|
|
2698
|
+
"control-inset": {
|
|
2699
|
+
"$value": "inset 0 1px 2px 0 oklch(0 0 0 / 0.04)",
|
|
2700
|
+
"$description": "Faint inner shadow on text inputs, selects and the combobox field."
|
|
2701
|
+
},
|
|
2702
|
+
"panel-highlight": {
|
|
2703
|
+
"$value": "inset 0 1px 0 0 oklch(1 0 0 / 0.6)",
|
|
2704
|
+
"$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."
|
|
2705
|
+
},
|
|
2706
|
+
"floating": {
|
|
2707
|
+
"$value": "0 1px 3px 0 oklch(0 0 0 / 0.1), 0 1px 2px -1px oklch(0 0 0 / 0.1)",
|
|
2708
|
+
"$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.",
|
|
2709
|
+
"$extensions": {
|
|
2710
|
+
"bw": {
|
|
2711
|
+
"derived": "var(--bw-elevation-2)"
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2663
2714
|
}
|
|
2664
2715
|
},
|
|
2665
2716
|
"text": {
|
package/dist/tokens.js
CHANGED
|
@@ -8,6 +8,7 @@ export const tokens = Object.freeze({
|
|
|
8
8
|
"color_accent": "var(--bw-color-accent)",
|
|
9
9
|
"color_accent_hover": "var(--bw-color-accent-hover)",
|
|
10
10
|
"color_accent_subtle": "var(--bw-color-accent-subtle)",
|
|
11
|
+
"color_accent_wash": "var(--bw-color-accent-wash)",
|
|
11
12
|
"color_action_disabled_bg": "var(--bw-color-action-disabled-bg)",
|
|
12
13
|
"color_action_disabled_border": "var(--bw-color-action-disabled-border)",
|
|
13
14
|
"color_action_disabled_text": "var(--bw-color-action-disabled-text)",
|
|
@@ -34,6 +35,7 @@ export const tokens = Object.freeze({
|
|
|
34
35
|
"color_danger_on_fg": "var(--bw-color-danger-on-fg)",
|
|
35
36
|
"color_danger_strong": "var(--bw-color-danger-strong)",
|
|
36
37
|
"color_danger_subtle": "var(--bw-color-danger-subtle)",
|
|
38
|
+
"color_edge_shade": "var(--bw-color-edge-shade)",
|
|
37
39
|
"color_fg": "var(--bw-color-fg)",
|
|
38
40
|
"color_fg_muted": "var(--bw-color-fg-muted)",
|
|
39
41
|
"color_fg_on_accent": "var(--bw-color-fg-on-accent)",
|
|
@@ -177,6 +179,11 @@ export const tokens = Object.freeze({
|
|
|
177
179
|
"elevation_ambient_2": "var(--bw-elevation-ambient-2)",
|
|
178
180
|
"elevation_ambient_3": "var(--bw-elevation-ambient-3)",
|
|
179
181
|
"elevation_ambient_4": "var(--bw-elevation-ambient-4)",
|
|
182
|
+
"elevation_control_bevel": "var(--bw-elevation-control-bevel)",
|
|
183
|
+
"elevation_control_inset": "var(--bw-elevation-control-inset)",
|
|
184
|
+
"elevation_control_pressed": "var(--bw-elevation-control-pressed)",
|
|
185
|
+
"elevation_floating": "var(--bw-elevation-floating)",
|
|
186
|
+
"elevation_panel_highlight": "var(--bw-elevation-panel-highlight)",
|
|
180
187
|
"focus_ring_offset": "var(--bw-focus-ring-offset)",
|
|
181
188
|
"focus_ring_style": "var(--bw-focus-ring-style)",
|
|
182
189
|
"focus_ring_width": "var(--bw-focus-ring-width)",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bwui/tokens",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Brickwork design tokens — the platform-neutral source of truth (DTCG source, multi-target build).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "node scripts/build.mjs",
|
|
43
|
+
"tokens:derive-baselines": "node scripts/derive-baselines.mjs",
|
|
43
44
|
"test": "node --test \"test/*.test.mjs\""
|
|
44
45
|
}
|
|
45
46
|
}
|