@noix-dev/brix-tokens 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/README.md +58 -2
- package/package.json +36 -3
- package/src/canvasColor.ts +39 -0
- package/src/contract.json +683 -0
- package/src/contrast.ts +319 -0
- package/src/density.css +565 -0
- package/src/fonts.css +10 -0
- package/src/index.css +125 -0
- package/src/perceptual.ts +99 -0
- package/src/themes/graphite.css +265 -0
- package/src/themes/kingfisher.css +397 -0
- package/src/themes/noix.css +266 -0
- package/src/themes/registry.json +5 -0
- package/src/variants.css +94 -0
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
{
|
|
2
|
+
"roles": [
|
|
3
|
+
{
|
|
4
|
+
"token": "--background",
|
|
5
|
+
"modes": ["light", "dark"]
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"token": "--foreground",
|
|
9
|
+
"modes": ["light", "dark"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"token": "--card",
|
|
13
|
+
"modes": ["light", "dark"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"token": "--card-foreground",
|
|
17
|
+
"modes": ["light", "dark"]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"token": "--popover",
|
|
21
|
+
"modes": ["light", "dark"]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"token": "--popover-foreground",
|
|
25
|
+
"modes": ["light", "dark"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"token": "--muted",
|
|
29
|
+
"modes": ["light", "dark"]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"token": "--muted-foreground",
|
|
33
|
+
"modes": ["light", "dark"]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"token": "--secondary",
|
|
37
|
+
"modes": ["light", "dark"]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"token": "--secondary-foreground",
|
|
41
|
+
"modes": ["light", "dark"]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"token": "--accent",
|
|
45
|
+
"modes": ["light", "dark"]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"token": "--accent-foreground",
|
|
49
|
+
"modes": ["light", "dark"]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"token": "--border",
|
|
53
|
+
"modes": ["light", "dark"]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"token": "--input",
|
|
57
|
+
"modes": ["light", "dark"]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"token": "--brand",
|
|
61
|
+
"modes": ["light", "dark"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"token": "--brand-light",
|
|
65
|
+
"modes": ["light", "dark"]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"token": "--brand-dark",
|
|
69
|
+
"modes": ["light", "dark"]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"token": "--brand-deep",
|
|
73
|
+
"modes": ["light", "dark"]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"token": "--brand-alt",
|
|
77
|
+
"modes": ["light", "dark"]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"token": "--brand-alt-light",
|
|
81
|
+
"modes": ["light", "dark"]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"token": "--brand-alt-dark",
|
|
85
|
+
"modes": ["light", "dark"]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"token": "--brand-ink",
|
|
89
|
+
"modes": ["light", "dark"]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"token": "--primary",
|
|
93
|
+
"modes": ["light", "dark"]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"token": "--primary-foreground",
|
|
97
|
+
"modes": ["light", "dark"]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"token": "--ring",
|
|
101
|
+
"modes": ["light", "dark"]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"token": "--primary-on-wash",
|
|
105
|
+
"modes": ["light", "dark"]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"token": "--destructive",
|
|
109
|
+
"modes": ["light", "dark"]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"token": "--destructive-on-wash",
|
|
113
|
+
"modes": ["light", "dark"]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"token": "--warning",
|
|
117
|
+
"modes": ["light", "dark"]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"token": "--warning-foreground",
|
|
121
|
+
"modes": ["light", "dark"]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"token": "--warning-on-wash",
|
|
125
|
+
"modes": ["light", "dark"]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"token": "--success",
|
|
129
|
+
"modes": ["light", "dark"]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"token": "--success-foreground",
|
|
133
|
+
"modes": ["light", "dark"]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"token": "--success-on-wash",
|
|
137
|
+
"modes": ["light", "dark"]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"token": "--progress-high",
|
|
141
|
+
"modes": ["light", "dark"]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"token": "--progress-mid",
|
|
145
|
+
"modes": ["light", "dark"]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"token": "--progress-low",
|
|
149
|
+
"modes": ["light", "dark"]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"token": "--accent-base",
|
|
153
|
+
"modes": ["light", "dark"]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"token": "--accent-tint",
|
|
157
|
+
"modes": ["light", "dark"]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"token": "--radius",
|
|
161
|
+
"modes": ["light", "dark"]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"token": "--font-sans",
|
|
165
|
+
"modes": ["light", "dark"]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"token": "--font-heading",
|
|
169
|
+
"modes": ["light", "dark"]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"token": "--chart-1",
|
|
173
|
+
"modes": ["light", "dark"]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"token": "--chart-2",
|
|
177
|
+
"modes": ["light", "dark"]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"token": "--chart-3",
|
|
181
|
+
"modes": ["light", "dark"]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"token": "--chart-4",
|
|
185
|
+
"modes": ["light", "dark"]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"token": "--chart-5",
|
|
189
|
+
"modes": ["light", "dark"]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"token": "--series-1",
|
|
193
|
+
"modes": ["light", "dark"]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"token": "--series-2",
|
|
197
|
+
"modes": ["light", "dark"]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"token": "--series-3",
|
|
201
|
+
"modes": ["light", "dark"]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"token": "--series-4",
|
|
205
|
+
"modes": ["light", "dark"]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"token": "--series-5",
|
|
209
|
+
"modes": ["light", "dark"]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"token": "--sidebar",
|
|
213
|
+
"modes": ["light", "dark"]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"token": "--sidebar-foreground",
|
|
217
|
+
"modes": ["light", "dark"]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"token": "--sidebar-primary",
|
|
221
|
+
"modes": ["light", "dark"]
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"token": "--sidebar-primary-foreground",
|
|
225
|
+
"modes": ["light", "dark"]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"token": "--sidebar-accent",
|
|
229
|
+
"modes": ["light", "dark"]
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"token": "--sidebar-accent-foreground",
|
|
233
|
+
"modes": ["light", "dark"]
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"token": "--sidebar-border",
|
|
237
|
+
"modes": ["light", "dark"]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"token": "--sidebar-ring",
|
|
241
|
+
"modes": ["light", "dark"]
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"token": "--syntax-tag",
|
|
245
|
+
"modes": ["light", "dark"]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"token": "--syntax-attribute",
|
|
249
|
+
"modes": ["light", "dark"]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"token": "--syntax-string",
|
|
253
|
+
"modes": ["light", "dark"]
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"token": "--syntax-keyword",
|
|
257
|
+
"modes": ["light", "dark"]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"token": "--syntax-number",
|
|
261
|
+
"modes": ["light", "dark"]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"token": "--syntax-comment",
|
|
265
|
+
"modes": ["light", "dark"]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"token": "--syntax-meta",
|
|
269
|
+
"modes": ["light", "dark"]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"token": "--syntax-invalid",
|
|
273
|
+
"modes": ["light", "dark"]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"token": "--code-surface",
|
|
277
|
+
"modes": ["light", "dark"]
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"token": "--code-foreground",
|
|
281
|
+
"modes": ["light", "dark"]
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"token": "--code-selection",
|
|
285
|
+
"modes": ["light", "dark"]
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"series": {
|
|
289
|
+
"tokens": ["--series-1", "--series-2", "--series-3", "--series-4", "--series-5"],
|
|
290
|
+
"against": "--card",
|
|
291
|
+
"minAgainst": 3,
|
|
292
|
+
"minDistance": 0.09,
|
|
293
|
+
"visions": ["normal", "deuteranopia", "protanopia", "tritanopia"]
|
|
294
|
+
},
|
|
295
|
+
"syntax": {
|
|
296
|
+
"tokens": [
|
|
297
|
+
"--syntax-tag",
|
|
298
|
+
"--syntax-attribute",
|
|
299
|
+
"--syntax-string",
|
|
300
|
+
"--syntax-keyword",
|
|
301
|
+
"--syntax-number",
|
|
302
|
+
"--syntax-comment",
|
|
303
|
+
"--syntax-meta",
|
|
304
|
+
"--syntax-invalid"
|
|
305
|
+
],
|
|
306
|
+
"against": "--code-surface",
|
|
307
|
+
"minAgainst": 4.5,
|
|
308
|
+
"minDistance": 0.08,
|
|
309
|
+
"visions": ["normal", "deuteranopia", "protanopia", "tritanopia"]
|
|
310
|
+
},
|
|
311
|
+
"pairs": [
|
|
312
|
+
{
|
|
313
|
+
"text": "--primary-on-wash",
|
|
314
|
+
"on": "--primary",
|
|
315
|
+
"over": "--background",
|
|
316
|
+
"mix": 0.1,
|
|
317
|
+
"min": 4.5
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"text": "--primary-foreground",
|
|
321
|
+
"on": "--primary",
|
|
322
|
+
"over": "--primary",
|
|
323
|
+
"min": 4.5
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"text": "--warning-on-wash",
|
|
327
|
+
"on": "--warning",
|
|
328
|
+
"over": "--background",
|
|
329
|
+
"mix": 0.1,
|
|
330
|
+
"min": 4.5
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"text": "--warning-on-wash",
|
|
334
|
+
"on": "--warning",
|
|
335
|
+
"over": "--card",
|
|
336
|
+
"mix": 0.1,
|
|
337
|
+
"min": 4.5
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"text": "--warning-foreground",
|
|
341
|
+
"on": "--warning",
|
|
342
|
+
"over": "--warning",
|
|
343
|
+
"min": 4.5
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"text": "--success-on-wash",
|
|
347
|
+
"on": "--success",
|
|
348
|
+
"over": "--background",
|
|
349
|
+
"mix": 0.1,
|
|
350
|
+
"min": 4.5
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"text": "--success-foreground",
|
|
354
|
+
"on": "--success",
|
|
355
|
+
"over": "--success",
|
|
356
|
+
"min": 4.5
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"text": "--destructive-on-wash",
|
|
360
|
+
"on": "--destructive",
|
|
361
|
+
"over": "--background",
|
|
362
|
+
"mix": 0.1,
|
|
363
|
+
"min": 4.5
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"text": "--primary-on-wash",
|
|
367
|
+
"on": "--primary",
|
|
368
|
+
"over": "--popover",
|
|
369
|
+
"mix": 0.05,
|
|
370
|
+
"min": 4.5
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"text": "--primary-on-wash",
|
|
374
|
+
"on": "--sidebar-accent",
|
|
375
|
+
"over": "--sidebar-accent",
|
|
376
|
+
"min": 4.5
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"text": "--destructive-on-wash",
|
|
380
|
+
"on": "--destructive",
|
|
381
|
+
"over": "--card",
|
|
382
|
+
"mix": 0.1,
|
|
383
|
+
"min": 4.5
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"text": "--destructive-on-wash",
|
|
387
|
+
"on": "--destructive",
|
|
388
|
+
"over": "--background",
|
|
389
|
+
"mix": 0.2,
|
|
390
|
+
"modes": {
|
|
391
|
+
"dark": {
|
|
392
|
+
"mix": 0.3
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"min": 4.5,
|
|
396
|
+
"enforced": false,
|
|
397
|
+
"why": "The destructive button at `button/index.ts:57`, hovered. It fails AA in five of the six theme/mode pairs, and no alpha closes it: lowering the share walks back toward the resting figure while erasing the hover cue, so pointing at the button makes its label harder to read. It needs a different hover treatment \u2014 a darker ink, or an inversion to a filled button \u2014 which is a palette decision rather than a code fix, and it is open with the owner.",
|
|
398
|
+
"recorded": [3.83, 4.68]
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"text": "--destructive-on-wash",
|
|
402
|
+
"on": "--destructive",
|
|
403
|
+
"over": "--card",
|
|
404
|
+
"mix": 0.2,
|
|
405
|
+
"modes": {
|
|
406
|
+
"dark": {
|
|
407
|
+
"mix": 0.3
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"min": 4.5,
|
|
411
|
+
"enforced": false,
|
|
412
|
+
"why": "The destructive button at `button/index.ts:57`, hovered. It fails AA in five of the six theme/mode pairs, and no alpha closes it: lowering the share walks back toward the resting figure while erasing the hover cue, so pointing at the button makes its label harder to read. It needs a different hover treatment \u2014 a darker ink, or an inversion to a filled button \u2014 which is a palette decision rather than a code fix, and it is open with the owner. On a panel it is the worst host: 3.58.",
|
|
413
|
+
"recorded": [3.58, 4.68]
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"text": "--muted-foreground",
|
|
417
|
+
"on": "--muted",
|
|
418
|
+
"over": "--sidebar",
|
|
419
|
+
"mix": 0.4,
|
|
420
|
+
"min": 4.5,
|
|
421
|
+
"enforced": false,
|
|
422
|
+
"why": "The resting idle-timer chip (`session/IdleTimer.vue`) on a sidebar host: a 40% `--muted` wash under `--muted-foreground` ink, the shape the pager's hint already ships. It reads 4.46 over `--sidebar` in kingfisher light, a known sub-AA reading, and clears 4.5 in the other five theme/mode pairs. It is recorded rather than fixed because inheriting the pager's shape inherits its ink, and darkening an ink is a palette decision that is left for the decision that owns it. Over `--background` and `--card` the same chip measures 4.57 or more in all six pairs.",
|
|
423
|
+
"recorded": [4.46, 7.21]
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"text": "--muted-foreground",
|
|
427
|
+
"on": "--sidebar",
|
|
428
|
+
"over": "--sidebar",
|
|
429
|
+
"min": 4.5
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"text": "--sidebar-foreground",
|
|
433
|
+
"on": "--sidebar",
|
|
434
|
+
"over": "--sidebar",
|
|
435
|
+
"min": 4.5
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"text": "--primary-on-wash",
|
|
439
|
+
"on": "--sidebar",
|
|
440
|
+
"over": "--sidebar",
|
|
441
|
+
"min": 4.5,
|
|
442
|
+
"site": "nav, slice D — the label a SHUT group prints to name the current page it holds, on the column itself rather than on a row tint. The existing --primary-on-wash entry names --sidebar-accent, which is the open group's current row; this is the other ground."
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"text": "--sidebar-foreground",
|
|
446
|
+
"on": "--sidebar-accent",
|
|
447
|
+
"over": "--sidebar-accent",
|
|
448
|
+
"min": 4.5,
|
|
449
|
+
"site": "nav-sidebar, which slice D ships — a hovered row's label where the theme leaves the row's ordinary ink unchanged on the hover ground. That is a real case and it is what all three themes do in dark, where they bind `--sidebar-foreground` and `--sidebar-accent-foreground` to one value; the entry below is the other case"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"text": "--sidebar-accent-foreground",
|
|
453
|
+
"on": "--sidebar-accent",
|
|
454
|
+
"over": "--sidebar-accent",
|
|
455
|
+
"min": 4.5,
|
|
456
|
+
"site": "nav-sidebar, which slice D ships — a hovered row's label where the theme re-inks it. These two names are the hover pair of the vocabulary they come from, so a theme that re-inks a hovered row binds this one, and all three bind it apart from `--sidebar-foreground` in light mode; the entry above is the other case"
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"indicators": [
|
|
460
|
+
{
|
|
461
|
+
"ink": "--input",
|
|
462
|
+
"against": "--background",
|
|
463
|
+
"min": 3,
|
|
464
|
+
"site": "button/index.ts:27 \u2014 the outline button, written dark:border-input, so light draws no such edge",
|
|
465
|
+
"modes": {
|
|
466
|
+
"light": null
|
|
467
|
+
},
|
|
468
|
+
"enforced": false,
|
|
469
|
+
"why": "An edge below 3:1 across every theme. It is decoration beside a cue that carries the state, so it is recorded rather than enforced; whether these want a role of their own that clears 3:1 is one open palette decision with every other entry marked this way, not a separate oddity in each.",
|
|
470
|
+
"recorded": [1.48, 1.82]
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"ink": "--input",
|
|
474
|
+
"against": "--card",
|
|
475
|
+
"min": 3,
|
|
476
|
+
"site": "button/index.ts:27 \u2014 the same edge where the button sits on a card",
|
|
477
|
+
"modes": {
|
|
478
|
+
"light": null
|
|
479
|
+
},
|
|
480
|
+
"enforced": false,
|
|
481
|
+
"why": "An edge below 3:1 across every theme. It is decoration beside a cue that carries the state, so it is recorded rather than enforced; whether these want a role of their own that clears 3:1 is one open palette decision with every other entry marked this way, not a separate oddity in each.",
|
|
482
|
+
"recorded": [1.5, 1.66]
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"ink": "--border",
|
|
486
|
+
"against": "--background",
|
|
487
|
+
"min": 3,
|
|
488
|
+
"site": "tabs/Tabs.vue:109 \u2014 the resting pill's edge; pagination/Pagination.vue:206 \u2014 the pager's container; keycap/Keycap.vue \u2014 a key's edge, read on the page",
|
|
489
|
+
"enforced": false,
|
|
490
|
+
"why": "An edge below 3:1 across every theme. It is decoration beside a cue that carries the state, so it is recorded rather than enforced; whether these want a role of their own that clears 3:1 is one open palette decision with every other entry marked this way, not a separate oddity in each.",
|
|
491
|
+
"recorded": [1.26, 1.57]
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"ink": "--border",
|
|
495
|
+
"against": "--muted",
|
|
496
|
+
"min": 3,
|
|
497
|
+
"site": "keycap/Keycap.vue \u2014 a key's edge, read against its own --muted face and against a --muted surface the keycap is placed on",
|
|
498
|
+
"enforced": false,
|
|
499
|
+
"why": "An edge below 3:1 across every theme. It is decoration beside a cue that carries the state, so it is recorded rather than enforced; whether these want a role of their own that clears 3:1 is one open palette decision with every other entry marked this way, not a separate oddity in each.",
|
|
500
|
+
"recorded": [1.15, 1.37]
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"ink": "--border",
|
|
504
|
+
"against": "--card",
|
|
505
|
+
"min": 3,
|
|
506
|
+
"site": "appearance-picker/AppearancePicker.vue:375 \u2014 divide-border between rows on a card; row-actions/RowActions.vue:222 \u2014 a row rule",
|
|
507
|
+
"enforced": false,
|
|
508
|
+
"why": "An edge below 3:1 across every theme. It is decoration beside a cue that carries the state, so it is recorded rather than enforced; whether these want a role of their own that clears 3:1 is one open palette decision with every other entry marked this way, not a separate oddity in each.",
|
|
509
|
+
"recorded": [1.26, 1.43]
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"ink": "--primary-foreground",
|
|
513
|
+
"alpha": 0.35,
|
|
514
|
+
"over": "--primary",
|
|
515
|
+
"against": "--primary",
|
|
516
|
+
"min": 3,
|
|
517
|
+
"site": "split-button/SplitButton.vue:103 \u2014 border-l-primary-foreground/35, the join between the two halves",
|
|
518
|
+
"enforced": false,
|
|
519
|
+
"why": "An edge below 3:1 across every theme. It is decoration beside a cue that carries the state, so it is recorded rather than enforced; whether these want a role of their own that clears 3:1 is one open palette decision with every other entry marked this way, not a separate oddity in each.",
|
|
520
|
+
"recorded": [1.74, 2.63]
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"ink": "--foreground",
|
|
524
|
+
"alpha": 0.1,
|
|
525
|
+
"over": "--background",
|
|
526
|
+
"against": "--card",
|
|
527
|
+
"min": 3,
|
|
528
|
+
"site": "card/Card.vue:22, dialog/Dialog.vue:211, select/SelectContent.vue:44, menu/menuClasses.ts, appearance-picker/AppearancePicker.vue:375 \u2014 ring-foreground/10, read against the panel it rings",
|
|
529
|
+
"enforced": false,
|
|
530
|
+
"why": "An edge below 3:1 across every theme. It is decoration beside a cue that carries the state, so it is recorded rather than enforced; whether these want a role of their own that clears 3:1 is one open palette decision with every other entry marked this way, not a separate oddity in each.",
|
|
531
|
+
"recorded": [1.13, 1.24]
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"ink": "--foreground",
|
|
535
|
+
"alpha": 0.1,
|
|
536
|
+
"over": "--background",
|
|
537
|
+
"against": "--background",
|
|
538
|
+
"min": 3,
|
|
539
|
+
"site": "the same five sites, read against the page beyond the panel: a ring-1 is painted outside the border box, so the ink composites over the page and is read on both of its sides",
|
|
540
|
+
"enforced": false,
|
|
541
|
+
"why": "An edge below 3:1 across every theme. It is decoration beside a cue that carries the state, so it is recorded rather than enforced; whether these want a role of their own that clears 3:1 is one open palette decision with every other entry marked this way, not a separate oddity in each.",
|
|
542
|
+
"recorded": [1.23, 1.28]
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"ink": "--foreground",
|
|
546
|
+
"alpha": 0.25,
|
|
547
|
+
"over": "--muted",
|
|
548
|
+
"against": "--muted",
|
|
549
|
+
"min": 3,
|
|
550
|
+
"site": "appearance-picker/AppearanceSegment.vue:145 \u2014 ring-foreground/25 on the swatch, read against the group's bg-muted behind it",
|
|
551
|
+
"enforced": false,
|
|
552
|
+
"why": "An edge below 3:1 across every theme. It is decoration beside a cue that carries the state, so it is recorded rather than enforced; whether these want a role of their own that clears 3:1 is one open palette decision with every other entry marked this way, not a separate oddity in each.",
|
|
553
|
+
"recorded": [1.7, 2.23]
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"ink": "--foreground",
|
|
557
|
+
"alpha": 0.25,
|
|
558
|
+
"over": "--muted",
|
|
559
|
+
"against": "--primary",
|
|
560
|
+
"min": 3,
|
|
561
|
+
"site": "appearance-picker/AppearanceSegment.vue:145 \u2014 the same ring, read against the --primary fill it circles",
|
|
562
|
+
"enforced": false,
|
|
563
|
+
"why": "Clears 3:1 against the fill in five of the six theme/mode pairs and misses in graphite dark; off the diagonal the graphite swatch misses in every dark mode, because the swatch carries the offered theme while the ground is the current one. Recorded with the other edges, since it is the same palette decision.",
|
|
564
|
+
"recorded": [2.65, 5.18]
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"ink": "--brand-alt",
|
|
568
|
+
"against": "--popover",
|
|
569
|
+
"min": 3,
|
|
570
|
+
"modes": {
|
|
571
|
+
"dark": null
|
|
572
|
+
},
|
|
573
|
+
"site": "date-picker/CalendarPanel.vue:211 \u2014 the inset ring marking today, on the popover surface the panel sits on"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"ink": "--brand-alt-light",
|
|
577
|
+
"against": "--popover",
|
|
578
|
+
"min": 3,
|
|
579
|
+
"modes": {
|
|
580
|
+
"light": null
|
|
581
|
+
},
|
|
582
|
+
"site": "date-picker/CalendarPanel.vue:211 \u2014 the same ring in dark mode, which takes the lighter role"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"ink": "--brand-alt",
|
|
586
|
+
"against": "--primary",
|
|
587
|
+
"min": 3,
|
|
588
|
+
"modes": {
|
|
589
|
+
"dark": null
|
|
590
|
+
},
|
|
591
|
+
"site": "date-picker/CalendarPanel.vue:211 \u2014 the today ring on a selected day, read against the --primary fill it sits on",
|
|
592
|
+
"enforced": false,
|
|
593
|
+
"why": "Under 3:1 in light mode in graphite (1.70) and noix (1.05); kingfisher clears it (3.08). The ring is the only visual cue that a selected day is today: the selected fill and bold weight say selected, exactly as on any other selected day. Where the ring is under 3:1 it is effectively absent, so for a sighted user a selected today is indistinguishable from any other selected day. aria-current=\"date\" is still set and is tested, so the information is not lost to assistive technology. The component draws it this way; the figures are recorded rather than enforced, pending the owner's decision.",
|
|
594
|
+
"recorded": [1.05, 3.08]
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"ink": "--brand-alt-light",
|
|
598
|
+
"against": "--primary",
|
|
599
|
+
"min": 3,
|
|
600
|
+
"modes": {
|
|
601
|
+
"light": null
|
|
602
|
+
},
|
|
603
|
+
"site": "date-picker/CalendarPanel.vue:211 \u2014 the today ring on a selected day in dark mode, read against the --primary fill it sits on",
|
|
604
|
+
"enforced": false,
|
|
605
|
+
"why": "Under 3:1 in dark mode in every theme: kingfisher 1.53, graphite 1.21, noix 1.03. The ring is the only visual cue that a selected day is today: the selected fill and bold weight say selected, exactly as on any other selected day. Where the ring is under 3:1 it is effectively absent, so for a sighted user a selected today is indistinguishable from any other selected day. aria-current=\"date\" is still set and is tested, so the information is not lost to assistive technology. The component draws it this way; the figures are recorded rather than enforced, pending the owner's decision.",
|
|
606
|
+
"recorded": [1.03, 1.53]
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"ink": "--code-foreground",
|
|
610
|
+
"alpha": 0.55,
|
|
611
|
+
"over": "--code-surface",
|
|
612
|
+
"against": "--code-surface",
|
|
613
|
+
"min": 4.5,
|
|
614
|
+
"site": "code-editor/CodeEditor.vue — the gutter's line numbers, 55% of the ink over the code surface. These are TEXT, so this entry's floor is 4.5 rather than the 3 of the others: it is here because it is the one shape that expresses an ink at a share over a ground, which a pair (a text colour over a washed ground) cannot"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"ink": "--code-selection",
|
|
618
|
+
"over": "--code-surface",
|
|
619
|
+
"against": "--code-surface",
|
|
620
|
+
"min": 3,
|
|
621
|
+
"site": "code-editor/CodeEditor.vue — the selection band, painted from --code-selection, which every theme binds to its own --brand-light at 40% so that it does not follow the mode on a surface that does not",
|
|
622
|
+
"enforced": false,
|
|
623
|
+
"why": "Under 3:1 in every theme and both modes, and the share that reaches it costs more than it buys: at 60% the band clears 3:1 in all three themes, but the dimmest syntax token read over it falls to between 1.04 and 1.43, so a band visible as a band swallows the text it marks. At the 40% shipped the same token reads 1.67 to 2.12 over the band, which is the price of a band that can be seen: the 35% of --primary it replaces left that token at 3.37 to 4.07 in light mode only because nobody could see the band there, and at 1.92 to 2.36 in dark mode, where it could be seen. The band is the cue for what is selected and the text under it is still there to the eye, so the figures are recorded rather than enforced. The old band measured 1.18 to 2.54 and 1.18 to 1.39 in light mode.",
|
|
624
|
+
"recorded": [2.16, 2.92]
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"ink": "--primary-foreground",
|
|
628
|
+
"against": "--primary",
|
|
629
|
+
"over": "--primary",
|
|
630
|
+
"alpha": 0.85,
|
|
631
|
+
"min": 4.5,
|
|
632
|
+
"site": "update-notice/UpdateNotice.vue — the second line and the dismiss control"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"ink": "--ring",
|
|
636
|
+
"against": "--sidebar",
|
|
637
|
+
"min": 3,
|
|
638
|
+
"site": "nav/navClasses.ts — the inset focus-visible ring of a navigation row (NavItem and the group's trigger), read against the UNFILLED row, which is the column itself (`--sidebar`). The same ring on a row that is filled (hovered, or current) is read against `--sidebar-accent`: that is the entry below, recorded and not enforced. Nine readings here, three themes by the gate's three selectors (light, the dark mode class above, the dark same-element spelling): 3.12 at worst (noix light) to 12.11 (kingfisher dark). It is `--ring` and not `--sidebar-ring` on purpose: `--sidebar-ring` reads 2.44 in graphite light and 2.47 in kingfisher light (indicator path; the pair path reads 2.48) against the same column, under this floor"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"ink": "--ring",
|
|
642
|
+
"against": "--sidebar-accent",
|
|
643
|
+
"min": 3,
|
|
644
|
+
"site": "nav/navClasses.ts — the same inset focus-visible ring, on a row that is filled: `hover:bg-sidebar-accent`, and the current row's own `bg-sidebar-accent`. An inset ring is painted inside the border box, so the fill is the ground it sits on",
|
|
645
|
+
"enforced": false,
|
|
646
|
+
"why": "The focus ring of a navigation row, read against the fill a hovered or current row takes. It reads 2.90 to 10.22 across the three themes and both modes, and 2.90 is noix light: under 3:1 there and nowhere else. The cost, plainly: in noix light a keyboard user who tabs onto the current row, or onto a row the pointer is over, gets the one cue that says where focus is at 2.90 against the surface it sits on. It is recorded rather than enforced because the ring is not the only thing on a filled row (the ink is gated at 4.5 and the current row also carries its bar), but nothing else says where focus is. Closing it means darkening `--ring`, or lightening noix's `--sidebar-accent`, in one theme and one mode, which is a palette decision and the owner's, not this slice's. The ring stays inset on purpose: an outset ring would clip at the list's edge, and the current row's bar hangs outside its start edge. The unfilled row is the enforced entry above.",
|
|
647
|
+
"recorded": [2.9, 10.22]
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"ink": "--accent-base",
|
|
651
|
+
"against": "--sidebar",
|
|
652
|
+
"min": 3,
|
|
653
|
+
"site": "nav-sidebar, which slice D ships — the bar beside the active row and the dot a section heading carries. Nothing draws it yet: the site names the component the entry is written for, so the commit that first draws it is measured rather than the one after it. The floor below holds for every theme-level binding of this role; the accent sets rebind it and the gate walks theme-and-mode selectors only, so one of kingfisher's six is under it unmeasured — CLAUDE.md carries that figure. WHAT THE GAP COSTS, which naming it does not say: that unmeasured binding reads 2.91 against the column, under this entry's own floor, on the very mark this site names — and nothing in the rest of the contract covers for it, because the fill a hovered or active row takes and the nesting guide line are both recorded below as under 3:1 against the same column. So in that one theme, mode and accent set the current row is marked by a bar that misses the floor and by a change of ink, and by nothing else. The bar is load-bearing there rather than decoration, and the slice that first draws it must not ship it as the current row's only cue"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"ink": "--sidebar-border",
|
|
657
|
+
"against": "--sidebar",
|
|
658
|
+
"min": 3,
|
|
659
|
+
"site": "nav-sidebar, which slice D ships — the guide line the rows of an open group hang from, read against the column it is drawn in",
|
|
660
|
+
"enforced": false,
|
|
661
|
+
"why": "The nesting guide line of the navigation column (nav-sidebar, slice D), read against the column itself. `--sidebar-border` reads 1.20 to 1.43 against `--sidebar`, which is under 3:1 in all three themes and both modes — no theme draws this role at a figure that would clear it. It is recorded rather than enforced because it is a hairline beside the cues that carry the state: which row is active is said by that row's fill, by its ink and by the bar beside it, and all three are gated above. Closing it means darkening a role in three themes, which is the same open palette decision the other recorded edges are waiting on and is the owner's, not this slice's. THIS FIGURE IS ONE SIDE. The same role also draws the rail's outer edge, against `--background`, which is a different colour from `--sidebar` in every theme and both modes; an edge with two sides is two entries rather than one figure that is wrong on one of them, and that second side is the entry below.",
|
|
662
|
+
"recorded": [1.2, 1.43]
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"ink": "--sidebar-border",
|
|
666
|
+
"against": "--background",
|
|
667
|
+
"min": 3,
|
|
668
|
+
"site": "nav/navClasses.ts — the column's own outer edge against the page beside it (`border-e border-sidebar-border` on `navSidebarClass`, so the 216px column and the 56px rail both draw it). The other side of the same role is the guide-line entry above, read against the column",
|
|
669
|
+
"enforced": false,
|
|
670
|
+
"why": "The outer edge of the navigation column, read against the page it is drawn against rather than the column it is drawn in. `--sidebar-border` reads 1.26 to 1.57 there — 1.26 at worst in noix light, under 3:1 in all three themes and both modes, as the guide-line side is. The two sides are separate entries because `--sidebar` and `--background` are different colours in every theme and both modes, so one figure would be wrong on one of them. It is recorded rather than enforced for the guide line's reason and is the same open palette decision: the edge separates two surfaces that are themselves distinguishable, and nothing is read on it or from it. Worth knowing before a theme is changed on the strength of this: every shipped theme binds `--sidebar-border` and `--border` to the same value today, which is why this range equals the `--border` against `--background` entry's; they are two roles all the same, and a theme is free to part them.",
|
|
671
|
+
"recorded": [1.26, 1.57]
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"ink": "--sidebar-accent",
|
|
675
|
+
"against": "--sidebar",
|
|
676
|
+
"min": 3,
|
|
677
|
+
"site": "nav-sidebar, which slice D ships — the fill of a hovered row and of the active one, read against the column it sits in",
|
|
678
|
+
"enforced": false,
|
|
679
|
+
"why": "The ground a hovered or active navigation row is drawn on (nav-sidebar, slice D), read against the column itself. Every theme binds it as a deliberately faint tint of the column — 1.04 to 1.18 across the three themes and both modes, under 3:1 everywhere — because a row that announced itself at 3:1 would read as a filled block in a list of them. What carries the cue is the enforced `--accent-base` entry above: the bar beside the active row and its section dot, 3.12 at worst against the same column among the theme-level bindings the gate walks. The fill is measured all the same, and this is the reason it is here rather than left out: a theme that bound `--sidebar-accent` to the column's own value would read 1.00, fall out of the range below and be named by the gate, where nothing else in the contract would notice an active row whose ground had gone flat.",
|
|
680
|
+
"recorded": [1.04, 1.18]
|
|
681
|
+
}
|
|
682
|
+
]
|
|
683
|
+
}
|