@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,347 @@
1
+ {
2
+ "primitive": {
3
+ "$description": "Primitive tier: raw scale values with no semantic meaning. NOT the public contract (BR-BW-TOK-001): names may change between minors. Colour ramps seeded from Radix Colors, converted to oklch (BR-BW-TOK-003); non-colour scales seeded from Open Props. Semantic tokens reference these; consumers reference the semantic tier, never these.",
4
+ "$type": "color",
5
+ "gray": {
6
+ "0": {
7
+ "$value": "oklch(1 0 0)"
8
+ },
9
+ "50": {
10
+ "$value": "oklch(0.985 0.001 265)"
11
+ },
12
+ "100": {
13
+ "$value": "oklch(0.967 0.002 265)"
14
+ },
15
+ "200": {
16
+ "$value": "oklch(0.928 0.004 265)"
17
+ },
18
+ "300": {
19
+ "$value": "oklch(0.872 0.006 265)"
20
+ },
21
+ "400": {
22
+ "$value": "oklch(0.708 0.008 265)"
23
+ },
24
+ "500": {
25
+ "$value": "oklch(0.556 0.009 265)"
26
+ },
27
+ "600": {
28
+ "$value": "oklch(0.446 0.008 265)"
29
+ },
30
+ "700": {
31
+ "$value": "oklch(0.372 0.007 265)"
32
+ },
33
+ "800": {
34
+ "$value": "oklch(0.269 0.006 265)"
35
+ },
36
+ "900": {
37
+ "$value": "oklch(0.205 0.005 265)"
38
+ },
39
+ "950": {
40
+ "$value": "oklch(0.145 0.004 265)"
41
+ },
42
+ "1000": {
43
+ "$value": "oklch(0.11 0.003 265)"
44
+ }
45
+ },
46
+ "blue": {
47
+ "50": {
48
+ "$value": "oklch(0.97 0.014 254)"
49
+ },
50
+ "100": {
51
+ "$value": "oklch(0.932 0.032 255)"
52
+ },
53
+ "400": {
54
+ "$value": "oklch(0.707 0.165 254)"
55
+ },
56
+ "500": {
57
+ "$value": "oklch(0.623 0.188 260)"
58
+ },
59
+ "600": {
60
+ "$value": "oklch(0.546 0.192 262)"
61
+ },
62
+ "700": {
63
+ "$value": "oklch(0.488 0.181 264)"
64
+ },
65
+ "950": {
66
+ "$value": "oklch(0.282 0.091 267)"
67
+ }
68
+ },
69
+ "cyan": {
70
+ "50": {
71
+ "$value": "oklch(0.98 0.02 210)"
72
+ },
73
+ "400": {
74
+ "$value": "oklch(0.72 0.11 220)"
75
+ },
76
+ "600": {
77
+ "$value": "oklch(0.6 0.11 225)"
78
+ },
79
+ "700": {
80
+ "$value": "oklch(0.52 0.1 227)"
81
+ },
82
+ "950": {
83
+ "$value": "oklch(0.3 0.06 230)"
84
+ }
85
+ },
86
+ "red": {
87
+ "50": {
88
+ "$value": "oklch(0.971 0.013 18)"
89
+ },
90
+ "100": {
91
+ "$value": "oklch(0.936 0.032 18)"
92
+ },
93
+ "500": {
94
+ "$value": "oklch(0.637 0.208 25)"
95
+ },
96
+ "600": {
97
+ "$value": "oklch(0.577 0.215 27)"
98
+ },
99
+ "700": {
100
+ "$value": "oklch(0.505 0.194 27)"
101
+ },
102
+ "950": {
103
+ "$value": "oklch(0.258 0.092 26)"
104
+ }
105
+ },
106
+ "amber": {
107
+ "50": {
108
+ "$value": "oklch(0.987 0.022 95)"
109
+ },
110
+ "100": {
111
+ "$value": "oklch(0.962 0.059 95)"
112
+ },
113
+ "500": {
114
+ "$value": "oklch(0.769 0.166 70)"
115
+ },
116
+ "600": {
117
+ "$value": "oklch(0.666 0.163 58)"
118
+ },
119
+ "700": {
120
+ "$value": "oklch(0.555 0.143 49)"
121
+ },
122
+ "950": {
123
+ "$value": "oklch(0.279 0.077 46)"
124
+ }
125
+ },
126
+ "green": {
127
+ "50": {
128
+ "$value": "oklch(0.982 0.018 155)"
129
+ },
130
+ "100": {
131
+ "$value": "oklch(0.962 0.044 156)"
132
+ },
133
+ "500": {
134
+ "$value": "oklch(0.723 0.169 152)"
135
+ },
136
+ "600": {
137
+ "$value": "oklch(0.627 0.155 149)"
138
+ },
139
+ "700": {
140
+ "$value": "oklch(0.527 0.132 150)"
141
+ },
142
+ "950": {
143
+ "$value": "oklch(0.266 0.061 153)"
144
+ }
145
+ },
146
+ "chart": {
147
+ "$description": "Categorical data-series ramp (ADR-082). Unlike the hue ramps above this is a set of eight mutually-distinguishable series colours, not a lightness scale of one hue: 'light'/'dark' are the two authored themes (BR-BW-TOK-002), not scale steps. Hue is invariant per series across both themes because a series' identity is its hue; only lightness and chroma are authored per theme. Every value satisfies six properties verified in tests, all measured on the colour a browser actually paints rather than the authored value: renderable within sRGB without clipping, an all-pairs separation floor of 0.12 in oklab across the retint envelope, a minimum 28 degree hue separation, WCAG 1.4.11 3:1 against its own theme's surface, hue stability across themes, and a minimum 0.08 separation from the axis and axis-label chrome tokens (a series must not read as the chart's own axis furniture). Solved under all constraints simultaneously with a MARGIN inside the sRGB gamut boundary (every channel keeps at least 0.005 of linear-sRGB headroom), not merely inside it: a value sitting on the boundary survives only until the next rounding of its own literal. Colour-vision deficiency is a ranked objective in the solve rather than an afterthought: the palette is not guaranteed distinguishable under dichromacy (no eight-colour palette can be), but among candidates meeting every hard constraint the one with the best dichromatic separation is chosen. See ADR-082 Decision 5.",
148
+ "light": {
149
+ "1": {
150
+ "$value": "oklch(0.590 0.151 46)"
151
+ },
152
+ "2": {
153
+ "$value": "oklch(0.397 0.065 92)"
154
+ },
155
+ "3": {
156
+ "$value": "oklch(0.639 0.151 130)"
157
+ },
158
+ "4": {
159
+ "$value": "oklch(0.260 0.033 175)"
160
+ },
161
+ "5": {
162
+ "$value": "oklch(0.552 0.095 226)"
163
+ },
164
+ "6": {
165
+ "$value": "oklch(0.501 0.257 268)"
166
+ },
167
+ "7": {
168
+ "$value": "oklch(0.357 0.159 308)"
169
+ },
170
+ "8": {
171
+ "$value": "oklch(0.468 0.167 358)"
172
+ }
173
+ },
174
+ "dark": {
175
+ "1": {
176
+ "$value": "oklch(0.595 0.138 46)"
177
+ },
178
+ "2": {
179
+ "$value": "oklch(0.874 0.163 92)"
180
+ },
181
+ "3": {
182
+ "$value": "oklch(0.709 0.170 130)"
183
+ },
184
+ "4": {
185
+ "$value": "oklch(0.529 0.086 175)"
186
+ },
187
+ "5": {
188
+ "$value": "oklch(0.739 0.121 226)"
189
+ },
190
+ "6": {
191
+ "$value": "oklch(0.881 0.054 268)"
192
+ },
193
+ "7": {
194
+ "$value": "oklch(0.612 0.168 308)"
195
+ },
196
+ "8": {
197
+ "$value": "oklch(0.756 0.135 358)"
198
+ }
199
+ }
200
+ }
201
+ },
202
+ "size": {
203
+ "$type": "dimension",
204
+ "$description": "Non-colour primitives (Open Props-derived). Spacing scale, radii, icon sizes, control heights. Density axis (semantic tier) selects between these; direction is handled by logical CSS properties, not a token (BR-BW-TOK-005).",
205
+ "space": {
206
+ "0": {
207
+ "$value": "0"
208
+ },
209
+ "px": {
210
+ "$value": "1px"
211
+ },
212
+ "0-5": {
213
+ "$value": "0.125rem"
214
+ },
215
+ "1": {
216
+ "$value": "0.25rem"
217
+ },
218
+ "1-5": {
219
+ "$value": "0.375rem"
220
+ },
221
+ "2": {
222
+ "$value": "0.5rem"
223
+ },
224
+ "3": {
225
+ "$value": "0.75rem"
226
+ },
227
+ "4": {
228
+ "$value": "1rem"
229
+ },
230
+ "5": {
231
+ "$value": "1.25rem"
232
+ },
233
+ "6": {
234
+ "$value": "1.5rem"
235
+ },
236
+ "7": {
237
+ "$value": "1.75rem"
238
+ },
239
+ "8": {
240
+ "$value": "2rem"
241
+ },
242
+ "9": {
243
+ "$value": "2.25rem"
244
+ },
245
+ "10": {
246
+ "$value": "2.5rem"
247
+ },
248
+ "11": {
249
+ "$value": "2.75rem"
250
+ },
251
+ "12": {
252
+ "$value": "3rem"
253
+ },
254
+ "16": {
255
+ "$value": "4rem"
256
+ },
257
+ "20": {
258
+ "$value": "5rem"
259
+ },
260
+ "24": {
261
+ "$value": "6rem"
262
+ }
263
+ },
264
+ "radius": {
265
+ "none": {
266
+ "$value": "0"
267
+ },
268
+ "sm": {
269
+ "$value": "0.25rem"
270
+ },
271
+ "md": {
272
+ "$value": "0.375rem"
273
+ },
274
+ "lg": {
275
+ "$value": "0.5rem"
276
+ },
277
+ "xl": {
278
+ "$value": "0.75rem"
279
+ },
280
+ "2xl": {
281
+ "$value": "1rem"
282
+ },
283
+ "full": {
284
+ "$value": "9999px"
285
+ }
286
+ },
287
+ "border": {
288
+ "hairline": {
289
+ "$value": "1px"
290
+ },
291
+ "thick": {
292
+ "$value": "2px"
293
+ },
294
+ "nav-marker": {
295
+ "$value": "3px"
296
+ }
297
+ },
298
+ "icon": {
299
+ "sm": {
300
+ "$value": "1rem"
301
+ },
302
+ "md": {
303
+ "$value": "1.25rem"
304
+ },
305
+ "lg": {
306
+ "$value": "1.5rem"
307
+ },
308
+ "xl": {
309
+ "$value": "2rem"
310
+ },
311
+ "2xl": {
312
+ "$value": "2.5rem"
313
+ }
314
+ },
315
+ "control-height": {
316
+ "sm": {
317
+ "$value": "2rem"
318
+ },
319
+ "md": {
320
+ "$value": "var(--bw-density-control-height)"
321
+ },
322
+ "lg": {
323
+ "$value": "3rem"
324
+ }
325
+ },
326
+ "touch-target-min": {
327
+ "$value": "2.75rem"
328
+ },
329
+ "max-width": {
330
+ "prose": {
331
+ "$value": "65ch"
332
+ },
333
+ "form": {
334
+ "$value": "32rem"
335
+ },
336
+ "modal-sm": {
337
+ "$value": "28rem"
338
+ },
339
+ "modal-md": {
340
+ "$value": "32rem"
341
+ },
342
+ "modal-lg": {
343
+ "$value": "48rem"
344
+ }
345
+ }
346
+ }
347
+ }