@kanso-labs/kanso-ui-core 0.4.1 → 0.6.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/dist/tokens.json CHANGED
@@ -1,737 +1,563 @@
1
1
  {
2
- "$description": "kanso-ui design tokens. Conforms to the Design Tokens Community Group format (https://design-tokens.github.io/community-group/format/): $type/$value, group-level type inheritance, {path} alias references. Color roles, type scale, shape scale, elevation, and state-layer opacities are drawn from a verified tonal-palette color system, not approximations. Generated into StyleX via scripts/build-tokens.mjs (npm run tokens:build) \u2014 see src/tokens/*.stylex.ts. $extensions at the bottom carries the non-token half of the system \u2014 how to consume these tokens, and how UI copy should read \u2014 so that a reader who has only this file still has the whole contract.",
3
- "color": {
2
+ "$description": "kanso-ui design tokens. Conforms to the Design Tokens Community Group format (https://design-tokens.github.io/community-group/format/): $type/$value, group-level type inheritance, {path} alias references. Color roles, type scale, shape scale, elevation, and state-layer opacities are the Kanso design language's, carried onto the Material Design roles components read today. Generated into StyleX via scripts/build-tokens.mjs (npm run tokens:build) — see src/tokens/*.stylex.ts. $extensions at the bottom carries the non-token half of the system — how to consume these tokens, and how UI copy should read — so that a reader who has only this file still has the whole contract.",
3
+ "semantic": {
4
4
  "$type": "color",
5
- "$description": "Reference tier \u2014 the full tonal palettes. Not consumed directly by components \u2014 see semantic.light / semantic.dark, the System tier that maps roles onto specific tones. Each chromatic palette (primary/secondary/tertiary/error) holds all 13 standard tone stops; neutral additionally carries the extra surface-container stops (4/6/12/17/20/22/24/87/92/94/96/98/99).",
6
- "primary": {
7
- "$description": "Brand hue (violet) \u2014 a verified reference baseline seed (#6750a4), used verbatim.",
8
- "0": {
9
- "$value": "#000000"
10
- },
11
- "10": {
12
- "$value": "#21005d"
13
- },
14
- "20": {
15
- "$value": "#381e72"
16
- },
17
- "30": {
18
- "$value": "#4f378b"
19
- },
20
- "40": {
21
- "$value": "#6750a4"
22
- },
23
- "50": {
24
- "$value": "#7f67be"
25
- },
26
- "60": {
27
- "$value": "#9a82db"
28
- },
29
- "70": {
30
- "$value": "#b69df8"
31
- },
32
- "80": {
33
- "$value": "#d0bcff"
34
- },
35
- "90": {
36
- "$value": "#eaddff"
37
- },
38
- "95": {
39
- "$value": "#f6edff"
40
- },
41
- "99": {
42
- "$value": "#fffbfe"
43
- },
44
- "100": {
45
- "$value": "#ffffff"
46
- }
47
- },
48
- "secondary": {
49
- "$description": "A muted, lower-chroma variant of the primary hue family.",
50
- "0": {
51
- "$value": "#000000"
52
- },
53
- "10": {
54
- "$value": "#1d192b"
55
- },
56
- "20": {
57
- "$value": "#332d41"
58
- },
59
- "30": {
60
- "$value": "#4a4458"
61
- },
62
- "40": {
63
- "$value": "#625b71"
64
- },
65
- "50": {
66
- "$value": "#7a7289"
67
- },
68
- "60": {
69
- "$value": "#958da5"
70
- },
71
- "70": {
72
- "$value": "#b0a7c0"
73
- },
74
- "80": {
75
- "$value": "#ccc2dc"
76
- },
77
- "90": {
78
- "$value": "#e8def8"
79
- },
80
- "95": {
81
- "$value": "#f6edff"
82
- },
83
- "99": {
84
- "$value": "#fffbfe"
85
- },
86
- "100": {
87
- "$value": "#ffffff"
88
- }
89
- },
90
- "tertiary": {
91
- "$description": "An accent hue roughly complementary to primary, for contrast/emphasis.",
92
- "0": {
93
- "$value": "#000000"
94
- },
95
- "10": {
96
- "$value": "#31111d"
97
- },
98
- "20": {
99
- "$value": "#492532"
100
- },
101
- "30": {
102
- "$value": "#633b48"
103
- },
104
- "40": {
105
- "$value": "#7d5260"
106
- },
107
- "50": {
108
- "$value": "#986977"
109
- },
110
- "60": {
111
- "$value": "#b58392"
112
- },
113
- "70": {
114
- "$value": "#d29dac"
115
- },
116
- "80": {
117
- "$value": "#efb8c8"
5
+ "$description": "System tier: the colours, one value per scheme. Kanso's own tokens (paper, ink, the product roles, the spotlight, the status colours and their soft fills) hold the values, converted from the Kanso design system's tokens.json; Kanso's `surface` is `kansoSurface`, since Material Design's `surface` role holds that name. The Material Design roles components read today are aliases of the Kanso token each takes, in the same scheme, apart from `inverseError`, the other scheme's `critical`, and `shadow`, the black every Kanso shadow is drawn in. The product roles (accent, onAccent, accentSoft, onAccentSoft, accentOnInk and the spotlight's eight) default to ink, as the brand has no colour of its own; a product brings its own for them through defineProductTheme, in its own package, and every colour aliasing one follows it.",
6
+ "light": {
7
+ "accent": {
8
+ "$value": "{semantic.light.ink}"
118
9
  },
119
- "90": {
120
- "$value": "#ffd8e4"
10
+ "accentOnInk": {
11
+ "$value": "{semantic.light.onInk}"
121
12
  },
122
- "95": {
123
- "$value": "#ffecf1"
13
+ "accentSoft": {
14
+ "$value": "{semantic.light.container}"
124
15
  },
125
- "99": {
126
- "$value": "#fffbfa"
16
+ "background": {
17
+ "$value": "{semantic.light.paper}"
127
18
  },
128
- "100": {
129
- "$value": "#ffffff"
130
- }
131
- },
132
- "error": {
133
- "0": {
134
- "$value": "#000000"
19
+ "caution": {
20
+ "$value": "#b25b00"
135
21
  },
136
- "10": {
137
- "$value": "#410e0b"
22
+ "cautionSoft": {
23
+ "$value": "#ffe7cc"
138
24
  },
139
- "20": {
140
- "$value": "#601410"
25
+ "cautionStripe": {
26
+ "$value": "#ffc27a"
141
27
  },
142
- "30": {
143
- "$value": "#8c1d18"
28
+ "container": {
29
+ "$value": "#e9e9e9"
144
30
  },
145
- "40": {
31
+ "critical": {
146
32
  "$value": "#b3261e"
147
33
  },
148
- "50": {
149
- "$value": "#dc362e"
150
- },
151
- "60": {
152
- "$value": "#e46962"
153
- },
154
- "70": {
155
- "$value": "#ec928e"
156
- },
157
- "80": {
158
- "$value": "#f2b8b5"
159
- },
160
- "90": {
161
- "$value": "#f9dedc"
162
- },
163
- "95": {
164
- "$value": "#fceeee"
165
- },
166
- "99": {
167
- "$value": "#fffbf9"
168
- },
169
- "100": {
170
- "$value": "#ffffff"
171
- }
172
- },
173
- "neutral": {
174
- "$description": "Surfaces, backgrounds, and primary text. The extra stops beyond the standard 13 (4/6/12/17/20/22/24/87/92/94/96/98/99) are what the surface-container roles below draw on.",
175
- "0": {
176
- "$value": "#000000"
177
- },
178
- "4": {
179
- "$value": "#0f0d13"
180
- },
181
- "6": {
182
- "$value": "#141218"
183
- },
184
- "10": {
185
- "$value": "#1d1b20"
186
- },
187
- "12": {
188
- "$value": "#211f26"
189
- },
190
- "17": {
191
- "$value": "#2b2930"
192
- },
193
- "20": {
194
- "$value": "#322f35"
195
- },
196
- "22": {
197
- "$value": "#36343b"
198
- },
199
- "24": {
200
- "$value": "#3b383e"
201
- },
202
- "30": {
203
- "$value": "#48464c"
204
- },
205
- "40": {
206
- "$value": "#605d64"
207
- },
208
- "50": {
209
- "$value": "#79767d"
210
- },
211
- "60": {
212
- "$value": "#938f96"
213
- },
214
- "70": {
215
- "$value": "#aea9b1"
216
- },
217
- "80": {
218
- "$value": "#cac5cd"
219
- },
220
- "87": {
221
- "$value": "#ded8e1"
222
- },
223
- "90": {
224
- "$value": "#e6e0e9"
225
- },
226
- "92": {
227
- "$value": "#ece6f0"
228
- },
229
- "94": {
230
- "$value": "#f3edf7"
231
- },
232
- "95": {
233
- "$value": "#f5eff7"
234
- },
235
- "96": {
236
- "$value": "#f7f2fa"
237
- },
238
- "98": {
239
- "$value": "#fef7ff"
240
- },
241
- "99": {
242
- "$value": "#fffbff"
243
- },
244
- "100": {
245
- "$value": "#ffffff"
246
- }
247
- },
248
- "neutralVariant": {
249
- "$description": "Borders and secondary/muted text \u2014 tinted slightly toward the brand hue.",
250
- "0": {
251
- "$value": "#000000"
252
- },
253
- "10": {
254
- "$value": "#1d1a22"
255
- },
256
- "20": {
257
- "$value": "#322f37"
258
- },
259
- "30": {
260
- "$value": "#49454f"
261
- },
262
- "40": {
263
- "$value": "#605d66"
264
- },
265
- "50": {
266
- "$value": "#79747e"
267
- },
268
- "60": {
269
- "$value": "#938f99"
270
- },
271
- "70": {
272
- "$value": "#aea9b4"
273
- },
274
- "80": {
275
- "$value": "#cac4d0"
276
- },
277
- "90": {
278
- "$value": "#e7e0ec"
279
- },
280
- "95": {
281
- "$value": "#f5eefa"
282
- },
283
- "99": {
284
- "$value": "#fffbfe"
34
+ "criticalSoft": {
35
+ "$value": "#fcdedc"
285
36
  },
286
- "100": {
287
- "$value": "#ffffff"
288
- }
289
- },
290
- "positive": {
291
- "$description": "Custom color \u2014 an app-specific hue outside the core palette: positive/success accent, distinct from secondary/tertiary so it reads unambiguously as 'you're owed'. Generated algorithmically (constant hue/chroma across every tone) from the hue/chroma of the previous hand-authored seed (#1f8f6a), so every stop is a real, verified HCT tone rather than a hand-picked approximation.",
292
- "0": {
293
- "$value": "#000000"
294
- },
295
- "10": {
296
- "$value": "#002115"
297
- },
298
- "20": {
299
- "$value": "#003827"
37
+ "divider": {
38
+ "$value": "#e3e3e3"
300
39
  },
301
- "30": {
302
- "$value": "#00513a"
40
+ "error": {
41
+ "$value": "{semantic.light.critical}"
303
42
  },
304
- "40": {
305
- "$value": "#006c4d"
43
+ "errorContainer": {
44
+ "$value": "{semantic.light.criticalSoft}"
306
45
  },
307
- "50": {
308
- "$value": "#108763"
46
+ "focusRing": {
47
+ "$value": "{semantic.light.accent}"
309
48
  },
310
- "60": {
311
- "$value": "#39a27c"
49
+ "ink": {
50
+ "$value": "#1a1a1a"
312
51
  },
313
- "70": {
314
- "$value": "#57bd95"
52
+ "inkMuted": {
53
+ "$value": "#5c5c5c"
315
54
  },
316
- "80": {
317
- "$value": "#74d9af"
55
+ "inverseError": {
56
+ "$value": "{semantic.dark.critical}"
318
57
  },
319
- "90": {
320
- "$value": "#90f6ca"
58
+ "inverseOnSurface": {
59
+ "$value": "{semantic.light.onInk}"
321
60
  },
322
- "95": {
323
- "$value": "#bdffdf"
61
+ "inversePrimary": {
62
+ "$value": "{semantic.light.accentOnInk}"
324
63
  },
325
- "99": {
326
- "$value": "#f4fff7"
64
+ "inverseSurface": {
65
+ "$value": "{semantic.light.ink}"
327
66
  },
328
- "100": {
67
+ "kansoSurface": {
329
68
  "$value": "#ffffff"
330
- }
331
- },
332
- "negative": {
333
- "$description": "Custom color: negative/warning accent \u2014 distinct from the error hue so a debt doesn't read as a validation error. Generated the same way as positive, from the hue/chroma of the previous hand-authored seed (#c45a3a).",
334
- "0": {
335
- "$value": "#000000"
336
- },
337
- "10": {
338
- "$value": "#3a0a00"
339
- },
340
- "20": {
341
- "$value": "#5f1600"
342
- },
343
- "30": {
344
- "$value": "#81290c"
345
69
  },
346
- "40": {
347
- "$value": "#a04022"
348
- },
349
- "50": {
350
- "$value": "#c05738"
70
+ "negative": {
71
+ "$value": "#a63a1f"
351
72
  },
352
- "60": {
353
- "$value": "#e1704e"
73
+ "negativeContainer": {
74
+ "$value": "{semantic.light.negativeSoft}"
354
75
  },
355
- "70": {
356
- "$value": "#ff8b69"
76
+ "negativeSoft": {
77
+ "$value": "#fce3dc"
357
78
  },
358
- "80": {
359
- "$value": "#ffb59f"
79
+ "onAccent": {
80
+ "$value": "{semantic.light.onInk}"
360
81
  },
361
- "90": {
362
- "$value": "#ffdbd1"
82
+ "onAccentSoft": {
83
+ "$value": "{semantic.light.ink}"
363
84
  },
364
- "95": {
365
- "$value": "#ffede8"
85
+ "onBackground": {
86
+ "$value": "{semantic.light.ink}"
366
87
  },
367
- "99": {
368
- "$value": "#fffbff"
88
+ "onCautionSoft": {
89
+ "$value": "#5c2e00"
369
90
  },
370
- "100": {
91
+ "onCritical": {
371
92
  "$value": "#ffffff"
372
- }
373
- }
374
- },
375
- "semantic": {
376
- "$type": "color",
377
- "$description": "System tier \u2014 theme-dependent roles. These are the tokens components consume, exported 1:1 as StyleX vars of the same name. positive*/negative* follow the same custom-color formula as error (the same 40/100/90/10 light and 80/20/30/90 dark pattern) so they read as first-class roles, not a bolted-on exception.",
378
- "light": {
379
- "background": {
380
- "$value": "{color.neutral.98}"
381
- },
382
- "error": {
383
- "$value": "{color.error.40}"
384
- },
385
- "errorContainer": {
386
- "$value": "{color.error.90}"
387
- },
388
- "inverseError": {
389
- "$value": "{color.error.80}"
390
- },
391
- "inverseOnSurface": {
392
- "$value": "{color.neutral.95}"
393
- },
394
- "inversePrimary": {
395
- "$value": "{color.primary.80}"
396
- },
397
- "inverseSurface": {
398
- "$value": "{color.neutral.20}"
399
- },
400
- "negative": {
401
- "$value": "{color.negative.40}"
402
- },
403
- "negativeContainer": {
404
- "$value": "{color.negative.90}"
405
93
  },
406
- "onBackground": {
407
- "$value": "{color.neutral.10}"
94
+ "onCriticalSoft": {
95
+ "$value": "#5f0e0a"
408
96
  },
409
97
  "onError": {
410
- "$value": "{color.error.100}"
98
+ "$value": "{semantic.light.onCritical}"
411
99
  },
412
100
  "onErrorContainer": {
413
- "$value": "{color.error.10}"
101
+ "$value": "{semantic.light.onCriticalSoft}"
102
+ },
103
+ "onInk": {
104
+ "$value": "#fafafa"
414
105
  },
415
106
  "onNegative": {
416
- "$value": "{color.negative.100}"
107
+ "$value": "{semantic.light.paper}"
417
108
  },
418
109
  "onNegativeContainer": {
419
- "$value": "{color.negative.10}"
110
+ "$value": "{semantic.light.onNegativeSoft}"
111
+ },
112
+ "onNegativeSoft": {
113
+ "$value": "#5a1a0a"
420
114
  },
421
115
  "onPositive": {
422
- "$value": "{color.positive.100}"
116
+ "$value": "{semantic.light.paper}"
423
117
  },
424
118
  "onPositiveContainer": {
425
- "$value": "{color.positive.10}"
119
+ "$value": "{semantic.light.onPositiveSoft}"
120
+ },
121
+ "onPositiveSoft": {
122
+ "$value": "#0b3a1b"
426
123
  },
427
124
  "onPrimary": {
428
- "$value": "{color.primary.100}"
125
+ "$value": "{semantic.light.onAccent}"
429
126
  },
430
127
  "onPrimaryContainer": {
431
- "$value": "{color.primary.10}"
128
+ "$value": "{semantic.light.onAccentSoft}"
432
129
  },
433
130
  "onPrimaryFixed": {
434
- "$value": "{color.primary.10}"
131
+ "$value": "{semantic.light.onAccentSoft}"
435
132
  },
436
133
  "onPrimaryFixedVariant": {
437
- "$value": "{color.primary.30}"
134
+ "$value": "{semantic.light.onAccentSoft}"
438
135
  },
439
136
  "onSecondary": {
440
- "$value": "{color.secondary.100}"
137
+ "$value": "{semantic.light.onInk}"
441
138
  },
442
139
  "onSecondaryContainer": {
443
- "$value": "{color.secondary.10}"
140
+ "$value": "{semantic.light.ink}"
444
141
  },
445
142
  "onSecondaryFixed": {
446
- "$value": "{color.secondary.10}"
143
+ "$value": "{semantic.light.onAccentSoft}"
447
144
  },
448
145
  "onSecondaryFixedVariant": {
449
- "$value": "{color.secondary.30}"
146
+ "$value": "{semantic.light.onAccentSoft}"
147
+ },
148
+ "onSpotlight": {
149
+ "$value": "#ffffff"
150
+ },
151
+ "onSpotlightButton": {
152
+ "$value": "{semantic.light.ink}"
153
+ },
154
+ "onSpotlightMuted": {
155
+ "$value": "rgba(255, 255, 255, 0.8)"
450
156
  },
451
157
  "onSurface": {
452
- "$value": "{color.neutral.10}"
158
+ "$value": "{semantic.light.ink}"
453
159
  },
454
160
  "onSurfaceVariant": {
455
- "$value": "{color.neutralVariant.30}"
161
+ "$value": "{semantic.light.inkMuted}"
456
162
  },
457
163
  "onTertiary": {
458
- "$value": "{color.tertiary.100}"
164
+ "$value": "{semantic.light.onAccentSoft}"
459
165
  },
460
166
  "onTertiaryContainer": {
461
- "$value": "{color.tertiary.10}"
167
+ "$value": "{semantic.light.onAccentSoft}"
462
168
  },
463
169
  "onTertiaryFixed": {
464
- "$value": "{color.tertiary.10}"
170
+ "$value": "{semantic.light.onAccentSoft}"
465
171
  },
466
172
  "onTertiaryFixedVariant": {
467
- "$value": "{color.tertiary.30}"
173
+ "$value": "{semantic.light.onAccentSoft}"
468
174
  },
469
175
  "outline": {
470
- "$value": "{color.neutralVariant.50}"
176
+ "$value": "#8a8a8a"
471
177
  },
472
178
  "outlineVariant": {
473
- "$value": "{color.neutralVariant.80}"
179
+ "$value": "{semantic.light.divider}"
180
+ },
181
+ "paper": {
182
+ "$value": "#fafafa"
474
183
  },
475
184
  "positive": {
476
- "$value": "{color.positive.40}"
185
+ "$value": "#1e6b35"
477
186
  },
478
187
  "positiveContainer": {
479
- "$value": "{color.positive.90}"
188
+ "$value": "{semantic.light.positiveSoft}"
189
+ },
190
+ "positiveSoft": {
191
+ "$value": "#ddf2e2"
480
192
  },
481
193
  "primary": {
482
- "$value": "{color.primary.40}"
194
+ "$value": "{semantic.light.accent}"
483
195
  },
484
196
  "primaryContainer": {
485
- "$value": "{color.primary.90}"
197
+ "$value": "{semantic.light.accentSoft}"
486
198
  },
487
199
  "primaryFixed": {
488
- "$value": "{color.primary.90}"
200
+ "$value": "{semantic.light.accentSoft}"
489
201
  },
490
202
  "primaryFixedDim": {
491
- "$value": "{color.primary.80}"
203
+ "$value": "{semantic.light.accentSoft}"
492
204
  },
493
205
  "scrim": {
494
- "$value": "{color.neutral.0}"
206
+ "$value": "rgba(0, 0, 0, 0.4)"
495
207
  },
496
208
  "secondary": {
497
- "$value": "{color.secondary.40}"
209
+ "$value": "{semantic.light.ink}"
498
210
  },
499
211
  "secondaryContainer": {
500
- "$value": "{color.secondary.90}"
212
+ "$value": "{semantic.light.container}"
501
213
  },
502
214
  "secondaryFixed": {
503
- "$value": "{color.secondary.90}"
215
+ "$value": "{semantic.light.accentSoft}"
504
216
  },
505
217
  "secondaryFixedDim": {
506
- "$value": "{color.secondary.80}"
218
+ "$value": "{semantic.light.accentSoft}"
507
219
  },
508
220
  "shadow": {
509
- "$value": "{color.neutral.0}"
221
+ "$value": "#000000"
222
+ },
223
+ "spotlight": {
224
+ "$value": "{semantic.light.ink}"
225
+ },
226
+ "spotlightButton": {
227
+ "$value": "#fafafa"
228
+ },
229
+ "spotlightLine": {
230
+ "$value": "rgba(255, 255, 255, 0.6)"
231
+ },
232
+ "spotlightTonal": {
233
+ "$value": "rgba(255, 255, 255, 0.16)"
510
234
  },
511
235
  "surface": {
512
- "$value": "{color.neutral.98}"
236
+ "$value": "{semantic.light.paper}"
513
237
  },
514
238
  "surfaceBright": {
515
- "$value": "{color.neutral.98}"
239
+ "$value": "{semantic.light.kansoSurface}"
516
240
  },
517
241
  "surfaceContainer": {
518
- "$value": "{color.neutral.94}"
242
+ "$value": "{semantic.light.kansoSurface}"
519
243
  },
520
244
  "surfaceContainerHigh": {
521
- "$value": "{color.neutral.92}"
245
+ "$value": "{semantic.light.kansoSurface}"
522
246
  },
523
247
  "surfaceContainerHighest": {
524
- "$value": "{color.neutral.90}"
248
+ "$value": "{semantic.light.surfaceSunken}"
525
249
  },
526
250
  "surfaceContainerLow": {
527
- "$value": "{color.neutral.96}"
251
+ "$value": "{semantic.light.kansoSurface}"
528
252
  },
529
253
  "surfaceContainerLowest": {
530
- "$value": "{color.neutral.100}"
254
+ "$value": "{semantic.light.kansoSurface}"
531
255
  },
532
256
  "surfaceDim": {
533
- "$value": "{color.neutral.87}"
257
+ "$value": "{semantic.light.paper}"
258
+ },
259
+ "surfaceSunken": {
260
+ "$value": "#f0f0f0"
534
261
  },
535
262
  "surfaceTint": {
536
- "$value": "{color.primary.40}"
263
+ "$value": "{semantic.light.accent}"
537
264
  },
538
265
  "surfaceVariant": {
539
- "$value": "{color.neutralVariant.90}"
266
+ "$value": "{semantic.light.surfaceSunken}"
540
267
  },
541
268
  "tertiary": {
542
- "$value": "{color.tertiary.40}"
269
+ "$value": "{semantic.light.accentSoft}"
543
270
  },
544
271
  "tertiaryContainer": {
545
- "$value": "{color.tertiary.90}"
272
+ "$value": "{semantic.light.accentSoft}"
546
273
  },
547
274
  "tertiaryFixed": {
548
- "$value": "{color.tertiary.90}"
275
+ "$value": "{semantic.light.accentSoft}"
549
276
  },
550
277
  "tertiaryFixedDim": {
551
- "$value": "{color.tertiary.80}"
278
+ "$value": "{semantic.light.accentSoft}"
552
279
  }
553
280
  },
554
281
  "dark": {
282
+ "accent": {
283
+ "$value": "{semantic.dark.ink}"
284
+ },
285
+ "accentOnInk": {
286
+ "$value": "{semantic.dark.onInk}"
287
+ },
288
+ "accentSoft": {
289
+ "$value": "{semantic.dark.container}"
290
+ },
555
291
  "background": {
556
- "$value": "{color.neutral.6}"
292
+ "$value": "{semantic.dark.paper}"
293
+ },
294
+ "caution": {
295
+ "$value": "#ffb870"
296
+ },
297
+ "cautionSoft": {
298
+ "$value": "#4a2a00"
299
+ },
300
+ "cautionStripe": {
301
+ "$value": "#7a4600"
302
+ },
303
+ "container": {
304
+ "$value": "#2b2b2b"
305
+ },
306
+ "critical": {
307
+ "$value": "#f2b8b5"
308
+ },
309
+ "criticalSoft": {
310
+ "$value": "#4d1512"
311
+ },
312
+ "divider": {
313
+ "$value": "#333333"
557
314
  },
558
315
  "error": {
559
- "$value": "{color.error.80}"
316
+ "$value": "{semantic.dark.critical}"
560
317
  },
561
318
  "errorContainer": {
562
- "$value": "{color.error.30}"
319
+ "$value": "{semantic.dark.criticalSoft}"
320
+ },
321
+ "focusRing": {
322
+ "$value": "{semantic.dark.accent}"
323
+ },
324
+ "ink": {
325
+ "$value": "#ececec"
326
+ },
327
+ "inkMuted": {
328
+ "$value": "#b3b3b3"
563
329
  },
564
330
  "inverseError": {
565
- "$value": "{color.error.40}"
331
+ "$value": "{semantic.light.critical}"
566
332
  },
567
333
  "inverseOnSurface": {
568
- "$value": "{color.neutral.20}"
334
+ "$value": "{semantic.dark.onInk}"
569
335
  },
570
336
  "inversePrimary": {
571
- "$value": "{color.primary.40}"
337
+ "$value": "{semantic.dark.accentOnInk}"
572
338
  },
573
339
  "inverseSurface": {
574
- "$value": "{color.neutral.90}"
340
+ "$value": "{semantic.dark.ink}"
341
+ },
342
+ "kansoSurface": {
343
+ "$value": "#1c1c1c"
575
344
  },
576
345
  "negative": {
577
- "$value": "{color.negative.80}"
346
+ "$value": "#ffb4a1"
578
347
  },
579
348
  "negativeContainer": {
580
- "$value": "{color.negative.30}"
349
+ "$value": "{semantic.dark.negativeSoft}"
350
+ },
351
+ "negativeSoft": {
352
+ "$value": "#4a1a10"
353
+ },
354
+ "onAccent": {
355
+ "$value": "{semantic.dark.onInk}"
356
+ },
357
+ "onAccentSoft": {
358
+ "$value": "{semantic.dark.ink}"
581
359
  },
582
360
  "onBackground": {
583
- "$value": "{color.neutral.90}"
361
+ "$value": "{semantic.dark.ink}"
362
+ },
363
+ "onCautionSoft": {
364
+ "$value": "#ffddb3"
365
+ },
366
+ "onCritical": {
367
+ "$value": "#601410"
368
+ },
369
+ "onCriticalSoft": {
370
+ "$value": "#ffdad6"
584
371
  },
585
372
  "onError": {
586
- "$value": "{color.error.20}"
373
+ "$value": "{semantic.dark.onCritical}"
587
374
  },
588
375
  "onErrorContainer": {
589
- "$value": "{color.error.90}"
376
+ "$value": "{semantic.dark.onCriticalSoft}"
377
+ },
378
+ "onInk": {
379
+ "$value": "#121212"
590
380
  },
591
381
  "onNegative": {
592
- "$value": "{color.negative.20}"
382
+ "$value": "{semantic.dark.paper}"
593
383
  },
594
384
  "onNegativeContainer": {
595
- "$value": "{color.negative.90}"
385
+ "$value": "{semantic.dark.onNegativeSoft}"
386
+ },
387
+ "onNegativeSoft": {
388
+ "$value": "#ffdad0"
596
389
  },
597
390
  "onPositive": {
598
- "$value": "{color.positive.20}"
391
+ "$value": "{semantic.dark.paper}"
599
392
  },
600
393
  "onPositiveContainer": {
601
- "$value": "{color.positive.90}"
394
+ "$value": "{semantic.dark.onPositiveSoft}"
395
+ },
396
+ "onPositiveSoft": {
397
+ "$value": "#c6f2d2"
602
398
  },
603
399
  "onPrimary": {
604
- "$value": "{color.primary.20}"
400
+ "$value": "{semantic.dark.onAccent}"
605
401
  },
606
402
  "onPrimaryContainer": {
607
- "$value": "{color.primary.90}"
403
+ "$value": "{semantic.dark.onAccentSoft}"
608
404
  },
609
405
  "onPrimaryFixed": {
610
- "$value": "{color.primary.10}"
406
+ "$value": "{semantic.dark.onAccentSoft}"
611
407
  },
612
408
  "onPrimaryFixedVariant": {
613
- "$value": "{color.primary.30}"
409
+ "$value": "{semantic.dark.onAccentSoft}"
614
410
  },
615
411
  "onSecondary": {
616
- "$value": "{color.secondary.20}"
412
+ "$value": "{semantic.dark.onInk}"
617
413
  },
618
414
  "onSecondaryContainer": {
619
- "$value": "{color.secondary.90}"
415
+ "$value": "{semantic.dark.ink}"
620
416
  },
621
417
  "onSecondaryFixed": {
622
- "$value": "{color.secondary.10}"
418
+ "$value": "{semantic.dark.onAccentSoft}"
623
419
  },
624
420
  "onSecondaryFixedVariant": {
625
- "$value": "{color.secondary.30}"
421
+ "$value": "{semantic.dark.onAccentSoft}"
422
+ },
423
+ "onSpotlight": {
424
+ "$value": "#ffffff"
425
+ },
426
+ "onSpotlightButton": {
427
+ "$value": "#1a1a1a"
428
+ },
429
+ "onSpotlightMuted": {
430
+ "$value": "rgba(255, 255, 255, 0.8)"
626
431
  },
627
432
  "onSurface": {
628
- "$value": "{color.neutral.90}"
433
+ "$value": "{semantic.dark.ink}"
629
434
  },
630
435
  "onSurfaceVariant": {
631
- "$value": "{color.neutralVariant.80}"
436
+ "$value": "{semantic.dark.inkMuted}"
632
437
  },
633
438
  "onTertiary": {
634
- "$value": "{color.tertiary.20}"
439
+ "$value": "{semantic.dark.onAccentSoft}"
635
440
  },
636
441
  "onTertiaryContainer": {
637
- "$value": "{color.tertiary.90}"
442
+ "$value": "{semantic.dark.onAccentSoft}"
638
443
  },
639
444
  "onTertiaryFixed": {
640
- "$value": "{color.tertiary.10}"
445
+ "$value": "{semantic.dark.onAccentSoft}"
641
446
  },
642
447
  "onTertiaryFixedVariant": {
643
- "$value": "{color.tertiary.30}"
448
+ "$value": "{semantic.dark.onAccentSoft}"
644
449
  },
645
450
  "outline": {
646
- "$value": "{color.neutralVariant.60}"
451
+ "$value": "#8c8c8c"
647
452
  },
648
453
  "outlineVariant": {
649
- "$value": "{color.neutralVariant.30}"
454
+ "$value": "{semantic.dark.divider}"
455
+ },
456
+ "paper": {
457
+ "$value": "#121212"
650
458
  },
651
459
  "positive": {
652
- "$value": "{color.positive.80}"
460
+ "$value": "#7bd99a"
653
461
  },
654
462
  "positiveContainer": {
655
- "$value": "{color.positive.30}"
463
+ "$value": "{semantic.dark.positiveSoft}"
464
+ },
465
+ "positiveSoft": {
466
+ "$value": "#123a20"
656
467
  },
657
468
  "primary": {
658
- "$value": "{color.primary.80}"
469
+ "$value": "{semantic.dark.accent}"
659
470
  },
660
471
  "primaryContainer": {
661
- "$value": "{color.primary.30}"
472
+ "$value": "{semantic.dark.accentSoft}"
662
473
  },
663
474
  "primaryFixed": {
664
- "$value": "{color.primary.90}"
475
+ "$value": "{semantic.dark.accentSoft}"
665
476
  },
666
477
  "primaryFixedDim": {
667
- "$value": "{color.primary.80}"
478
+ "$value": "{semantic.dark.accentSoft}"
668
479
  },
669
480
  "scrim": {
670
- "$value": "{color.neutral.0}"
481
+ "$value": "rgba(0, 0, 0, 0.6)"
671
482
  },
672
483
  "secondary": {
673
- "$value": "{color.secondary.80}"
484
+ "$value": "{semantic.dark.ink}"
674
485
  },
675
486
  "secondaryContainer": {
676
- "$value": "{color.secondary.30}"
487
+ "$value": "{semantic.dark.container}"
677
488
  },
678
489
  "secondaryFixed": {
679
- "$value": "{color.secondary.90}"
490
+ "$value": "{semantic.dark.accentSoft}"
680
491
  },
681
492
  "secondaryFixedDim": {
682
- "$value": "{color.secondary.80}"
493
+ "$value": "{semantic.dark.accentSoft}"
683
494
  },
684
495
  "shadow": {
685
- "$value": "{color.neutral.0}"
496
+ "$value": "#000000"
497
+ },
498
+ "spotlight": {
499
+ "$value": "{semantic.dark.container}"
500
+ },
501
+ "spotlightButton": {
502
+ "$value": "#ffffff"
503
+ },
504
+ "spotlightLine": {
505
+ "$value": "rgba(255, 255, 255, 0.6)"
506
+ },
507
+ "spotlightTonal": {
508
+ "$value": "rgba(255, 255, 255, 0.14)"
686
509
  },
687
510
  "surface": {
688
- "$value": "{color.neutral.6}"
511
+ "$value": "{semantic.dark.paper}"
689
512
  },
690
513
  "surfaceBright": {
691
- "$value": "{color.neutral.24}"
514
+ "$value": "{semantic.dark.kansoSurface}"
692
515
  },
693
516
  "surfaceContainer": {
694
- "$value": "{color.neutral.12}"
517
+ "$value": "{semantic.dark.kansoSurface}"
695
518
  },
696
519
  "surfaceContainerHigh": {
697
- "$value": "{color.neutral.17}"
520
+ "$value": "{semantic.dark.kansoSurface}"
698
521
  },
699
522
  "surfaceContainerHighest": {
700
- "$value": "{color.neutral.22}"
523
+ "$value": "{semantic.dark.surfaceSunken}"
701
524
  },
702
525
  "surfaceContainerLow": {
703
- "$value": "{color.neutral.10}"
526
+ "$value": "{semantic.dark.kansoSurface}"
704
527
  },
705
528
  "surfaceContainerLowest": {
706
- "$value": "{color.neutral.4}"
529
+ "$value": "{semantic.dark.kansoSurface}"
707
530
  },
708
531
  "surfaceDim": {
709
- "$value": "{color.neutral.6}"
532
+ "$value": "{semantic.dark.paper}"
533
+ },
534
+ "surfaceSunken": {
535
+ "$value": "#262626"
710
536
  },
711
537
  "surfaceTint": {
712
- "$value": "{color.primary.80}"
538
+ "$value": "{semantic.dark.accent}"
713
539
  },
714
540
  "surfaceVariant": {
715
- "$value": "{color.neutralVariant.30}"
541
+ "$value": "{semantic.dark.surfaceSunken}"
716
542
  },
717
543
  "tertiary": {
718
- "$value": "{color.tertiary.80}"
544
+ "$value": "{semantic.dark.accentSoft}"
719
545
  },
720
546
  "tertiaryContainer": {
721
- "$value": "{color.tertiary.30}"
547
+ "$value": "{semantic.dark.accentSoft}"
722
548
  },
723
549
  "tertiaryFixed": {
724
- "$value": "{color.tertiary.90}"
550
+ "$value": "{semantic.dark.accentSoft}"
725
551
  },
726
552
  "tertiaryFixedDim": {
727
- "$value": "{color.tertiary.80}"
553
+ "$value": "{semantic.dark.accentSoft}"
728
554
  }
729
555
  }
730
556
  },
731
557
  "typography": {
732
558
  "fontFamily": {
733
559
  "$type": "fontFamily",
734
- "$description": "Two typeface roles: 'brand' (expressive, used by display/headline/title) and 'plain' (neutral, used by body/label). 'mono' is a kanso-specific extension for numeric/code display, outside the base scale.",
560
+ "$description": "Typeface roles. 'brand' sets the display, headline and title-large roles and 'plain' the rest; 'mono' sets numbers and code. 'voice' is Kanso's serif, set light, which its own voice styles in typography.style use; it holds brand's face.",
735
561
  "brand": {
736
562
  "$value": ["Roboto Serif", "Iowan Old Style", "Georgia", "serif"]
737
563
  },
@@ -753,22 +579,31 @@
753
579
  "Roboto",
754
580
  "sans-serif"
755
581
  ]
582
+ },
583
+ "voice": {
584
+ "$value": ["Roboto Serif", "Iowan Old Style", "Georgia", "serif"]
756
585
  }
757
586
  },
758
587
  "fontWeight": {
759
588
  "$type": "fontWeight",
760
- "bold": {
761
- "$value": 700
589
+ "light": {
590
+ "$value": 300
591
+ },
592
+ "regular": {
593
+ "$value": 400
762
594
  },
763
595
  "medium": {
764
596
  "$value": 500
765
597
  },
766
- "regular": {
767
- "$value": 400
598
+ "semibold": {
599
+ "$value": 600
600
+ },
601
+ "bold": {
602
+ "$value": 700
768
603
  }
769
604
  },
770
605
  "scale": {
771
- "$description": "The full 15-style type scale \u2014 display/headline/title/body/label, each in large/medium/small. Sizes are px, converted from a verified rem-based scale at a 16px root. `font` names which typeface role (brand/plain) each style uses.",
606
+ "$description": "The 15 Material Design type roles components read today. Display, headline and title-large take Kanso's voice, Roboto Serif at weight 300, at their own sizes; the rest stay in Roboto Flex. `font` names the typeface role each uses.",
772
607
  "displayLarge": {
773
608
  "font": {
774
609
  "$value": "{typography.fontFamily.brand}"
@@ -786,7 +621,7 @@
786
621
  "$value": "-0.25px"
787
622
  },
788
623
  "weight": {
789
- "$value": "{typography.fontWeight.regular}"
624
+ "$value": "{typography.fontWeight.light}"
790
625
  }
791
626
  },
792
627
  "displayMedium": {
@@ -806,7 +641,7 @@
806
641
  "$value": "0px"
807
642
  },
808
643
  "weight": {
809
- "$value": "{typography.fontWeight.regular}"
644
+ "$value": "{typography.fontWeight.light}"
810
645
  }
811
646
  },
812
647
  "displaySmall": {
@@ -826,7 +661,7 @@
826
661
  "$value": "0px"
827
662
  },
828
663
  "weight": {
829
- "$value": "{typography.fontWeight.regular}"
664
+ "$value": "{typography.fontWeight.light}"
830
665
  }
831
666
  },
832
667
  "headlineLarge": {
@@ -846,7 +681,7 @@
846
681
  "$value": "0px"
847
682
  },
848
683
  "weight": {
849
- "$value": "{typography.fontWeight.regular}"
684
+ "$value": "{typography.fontWeight.light}"
850
685
  }
851
686
  },
852
687
  "headlineMedium": {
@@ -866,7 +701,7 @@
866
701
  "$value": "0px"
867
702
  },
868
703
  "weight": {
869
- "$value": "{typography.fontWeight.regular}"
704
+ "$value": "{typography.fontWeight.light}"
870
705
  }
871
706
  },
872
707
  "headlineSmall": {
@@ -886,7 +721,7 @@
886
721
  "$value": "0px"
887
722
  },
888
723
  "weight": {
889
- "$value": "{typography.fontWeight.regular}"
724
+ "$value": "{typography.fontWeight.light}"
890
725
  }
891
726
  },
892
727
  "titleLarge": {
@@ -906,7 +741,7 @@
906
741
  "$value": "0px"
907
742
  },
908
743
  "weight": {
909
- "$value": "{typography.fontWeight.regular}"
744
+ "$value": "{typography.fontWeight.light}"
910
745
  }
911
746
  },
912
747
  "titleMedium": {
@@ -1069,11 +904,314 @@
1069
904
  "$value": "{typography.fontWeight.medium}"
1070
905
  }
1071
906
  }
1072
- }
907
+ },
908
+ "style": {
909
+ "$description": "Kanso's own type styles, named as it names them (`t-hero` is tHero). `font` names the face: voice for the serif titles, plain for the interface, mono for figures, which are set with tabular numbers.",
910
+ "tHero": {
911
+ "font": {
912
+ "$value": "{typography.fontFamily.voice}"
913
+ },
914
+ "size": {
915
+ "$type": "dimension",
916
+ "$value": "52px"
917
+ },
918
+ "lineHeight": {
919
+ "$type": "dimension",
920
+ "$value": "58px"
921
+ },
922
+ "tracking": {
923
+ "$type": "dimension",
924
+ "$value": "-0.78px"
925
+ },
926
+ "weight": {
927
+ "$value": "{typography.fontWeight.light}"
928
+ }
929
+ },
930
+ "tDisplay": {
931
+ "font": {
932
+ "$value": "{typography.fontFamily.voice}"
933
+ },
934
+ "size": {
935
+ "$type": "dimension",
936
+ "$value": "44px"
937
+ },
938
+ "lineHeight": {
939
+ "$type": "dimension",
940
+ "$value": "52px"
941
+ },
942
+ "tracking": {
943
+ "$type": "dimension",
944
+ "$value": "-0.66px"
945
+ },
946
+ "weight": {
947
+ "$value": "{typography.fontWeight.light}"
948
+ }
949
+ },
950
+ "tHeadline": {
951
+ "font": {
952
+ "$value": "{typography.fontFamily.voice}"
953
+ },
954
+ "size": {
955
+ "$type": "dimension",
956
+ "$value": "34px"
957
+ },
958
+ "lineHeight": {
959
+ "$type": "dimension",
960
+ "$value": "40px"
961
+ },
962
+ "tracking": {
963
+ "$type": "dimension",
964
+ "$value": "-0.34px"
965
+ },
966
+ "weight": {
967
+ "$value": "{typography.fontWeight.light}"
968
+ }
969
+ },
970
+ "tTitle": {
971
+ "font": {
972
+ "$value": "{typography.fontFamily.voice}"
973
+ },
974
+ "size": {
975
+ "$type": "dimension",
976
+ "$value": "32px"
977
+ },
978
+ "lineHeight": {
979
+ "$type": "dimension",
980
+ "$value": "38px"
981
+ },
982
+ "tracking": {
983
+ "$type": "dimension",
984
+ "$value": "0px"
985
+ },
986
+ "weight": {
987
+ "$value": "{typography.fontWeight.light}"
988
+ }
989
+ },
990
+ "tSection": {
991
+ "font": {
992
+ "$value": "{typography.fontFamily.voice}"
993
+ },
994
+ "size": {
995
+ "$type": "dimension",
996
+ "$value": "22px"
997
+ },
998
+ "lineHeight": {
999
+ "$type": "dimension",
1000
+ "$value": "28px"
1001
+ },
1002
+ "tracking": {
1003
+ "$type": "dimension",
1004
+ "$value": "0px"
1005
+ },
1006
+ "weight": {
1007
+ "$value": "{typography.fontWeight.light}"
1008
+ }
1009
+ },
1010
+ "tBodyLarge": {
1011
+ "font": {
1012
+ "$value": "{typography.fontFamily.plain}"
1013
+ },
1014
+ "size": {
1015
+ "$type": "dimension",
1016
+ "$value": "17px"
1017
+ },
1018
+ "lineHeight": {
1019
+ "$type": "dimension",
1020
+ "$value": "26px"
1021
+ },
1022
+ "tracking": {
1023
+ "$type": "dimension",
1024
+ "$value": "0px"
1025
+ },
1026
+ "weight": {
1027
+ "$value": "{typography.fontWeight.regular}"
1028
+ }
1029
+ },
1030
+ "tBodyStrong": {
1031
+ "font": {
1032
+ "$value": "{typography.fontFamily.plain}"
1033
+ },
1034
+ "size": {
1035
+ "$type": "dimension",
1036
+ "$value": "16px"
1037
+ },
1038
+ "lineHeight": {
1039
+ "$type": "dimension",
1040
+ "$value": "22px"
1041
+ },
1042
+ "tracking": {
1043
+ "$type": "dimension",
1044
+ "$value": "0px"
1045
+ },
1046
+ "weight": {
1047
+ "$value": "{typography.fontWeight.medium}"
1048
+ }
1049
+ },
1050
+ "tBody": {
1051
+ "font": {
1052
+ "$value": "{typography.fontFamily.plain}"
1053
+ },
1054
+ "size": {
1055
+ "$type": "dimension",
1056
+ "$value": "15px"
1057
+ },
1058
+ "lineHeight": {
1059
+ "$type": "dimension",
1060
+ "$value": "20px"
1061
+ },
1062
+ "tracking": {
1063
+ "$type": "dimension",
1064
+ "$value": "0px"
1065
+ },
1066
+ "weight": {
1067
+ "$value": "{typography.fontWeight.regular}"
1068
+ }
1069
+ },
1070
+ "tBodySmall": {
1071
+ "font": {
1072
+ "$value": "{typography.fontFamily.plain}"
1073
+ },
1074
+ "size": {
1075
+ "$type": "dimension",
1076
+ "$value": "14px"
1077
+ },
1078
+ "lineHeight": {
1079
+ "$type": "dimension",
1080
+ "$value": "20px"
1081
+ },
1082
+ "tracking": {
1083
+ "$type": "dimension",
1084
+ "$value": "0px"
1085
+ },
1086
+ "weight": {
1087
+ "$value": "{typography.fontWeight.regular}"
1088
+ }
1089
+ },
1090
+ "tLabelStrong": {
1091
+ "font": {
1092
+ "$value": "{typography.fontFamily.plain}"
1093
+ },
1094
+ "size": {
1095
+ "$type": "dimension",
1096
+ "$value": "15px"
1097
+ },
1098
+ "lineHeight": {
1099
+ "$type": "dimension",
1100
+ "$value": "20px"
1101
+ },
1102
+ "tracking": {
1103
+ "$type": "dimension",
1104
+ "$value": "0px"
1105
+ },
1106
+ "weight": {
1107
+ "$value": "{typography.fontWeight.semibold}"
1108
+ }
1109
+ },
1110
+ "tLabel": {
1111
+ "font": {
1112
+ "$value": "{typography.fontFamily.plain}"
1113
+ },
1114
+ "size": {
1115
+ "$type": "dimension",
1116
+ "$value": "13px"
1117
+ },
1118
+ "lineHeight": {
1119
+ "$type": "dimension",
1120
+ "$value": "18px"
1121
+ },
1122
+ "tracking": {
1123
+ "$type": "dimension",
1124
+ "$value": "0px"
1125
+ },
1126
+ "weight": {
1127
+ "$value": "{typography.fontWeight.medium}"
1128
+ }
1129
+ },
1130
+ "tCaption": {
1131
+ "font": {
1132
+ "$value": "{typography.fontFamily.plain}"
1133
+ },
1134
+ "size": {
1135
+ "$type": "dimension",
1136
+ "$value": "12px"
1137
+ },
1138
+ "lineHeight": {
1139
+ "$type": "dimension",
1140
+ "$value": "16px"
1141
+ },
1142
+ "tracking": {
1143
+ "$type": "dimension",
1144
+ "$value": "0px"
1145
+ },
1146
+ "weight": {
1147
+ "$value": "{typography.fontWeight.medium}"
1148
+ }
1149
+ },
1150
+ "tFigureLarge": {
1151
+ "font": {
1152
+ "$value": "{typography.fontFamily.mono}"
1153
+ },
1154
+ "size": {
1155
+ "$type": "dimension",
1156
+ "$value": "24px"
1157
+ },
1158
+ "lineHeight": {
1159
+ "$type": "dimension",
1160
+ "$value": "30px"
1161
+ },
1162
+ "tracking": {
1163
+ "$type": "dimension",
1164
+ "$value": "0px"
1165
+ },
1166
+ "weight": {
1167
+ "$value": "{typography.fontWeight.medium}"
1168
+ }
1169
+ },
1170
+ "tFigure": {
1171
+ "font": {
1172
+ "$value": "{typography.fontFamily.mono}"
1173
+ },
1174
+ "size": {
1175
+ "$type": "dimension",
1176
+ "$value": "15px"
1177
+ },
1178
+ "lineHeight": {
1179
+ "$type": "dimension",
1180
+ "$value": "20px"
1181
+ },
1182
+ "tracking": {
1183
+ "$type": "dimension",
1184
+ "$value": "0px"
1185
+ },
1186
+ "weight": {
1187
+ "$value": "{typography.fontWeight.medium}"
1188
+ }
1189
+ },
1190
+ "tFigureSmall": {
1191
+ "font": {
1192
+ "$value": "{typography.fontFamily.mono}"
1193
+ },
1194
+ "size": {
1195
+ "$type": "dimension",
1196
+ "$value": "13px"
1197
+ },
1198
+ "lineHeight": {
1199
+ "$type": "dimension",
1200
+ "$value": "18px"
1201
+ },
1202
+ "tracking": {
1203
+ "$type": "dimension",
1204
+ "$value": "0px"
1205
+ },
1206
+ "weight": {
1207
+ "$value": "{typography.fontWeight.medium}"
1208
+ }
1209
+ }
1210
+ }
1073
1211
  },
1074
1212
  "spacing": {
1075
1213
  "$type": "dimension",
1076
- "$description": "kanso-specific \u2014 not derived from an external spacing scale, a general 4px-grid principle, with 6px and 20px as steps between steps for the metrics Material Design gives there.",
1214
+ "$description": "kanso-specific — not derived from an external spacing scale, a general 4px-grid principle, with 6px and 20px as steps between steps for the metrics Material Design gives there.",
1077
1215
  "primitive": {
1078
1216
  "2": {
1079
1217
  "$value": "2px"
@@ -1147,6 +1285,39 @@
1147
1285
  "xxxl": {
1148
1286
  "$value": "{spacing.primitive.40}"
1149
1287
  }
1288
+ },
1289
+ "kanso": {
1290
+ "$description": "Kanso's spacing, a 4px grid: every gap and inset is one of these steps.",
1291
+ "2xs": {
1292
+ "$value": "{spacing.primitive.2}"
1293
+ },
1294
+ "xs": {
1295
+ "$value": "{spacing.primitive.4}"
1296
+ },
1297
+ "sm": {
1298
+ "$value": "{spacing.primitive.8}"
1299
+ },
1300
+ "md": {
1301
+ "$value": "{spacing.primitive.12}"
1302
+ },
1303
+ "lg": {
1304
+ "$value": "{spacing.primitive.16}"
1305
+ },
1306
+ "xl": {
1307
+ "$value": "{spacing.primitive.20}"
1308
+ },
1309
+ "2xl": {
1310
+ "$value": "{spacing.primitive.24}"
1311
+ },
1312
+ "3xl": {
1313
+ "$value": "{spacing.primitive.32}"
1314
+ },
1315
+ "4xl": {
1316
+ "$value": "{spacing.primitive.40}"
1317
+ },
1318
+ "5xl": {
1319
+ "$value": "{spacing.primitive.56}"
1320
+ }
1150
1321
  }
1151
1322
  },
1152
1323
  "radii": {
@@ -1168,9 +1339,18 @@
1168
1339
  "16": {
1169
1340
  "$value": "16px"
1170
1341
  },
1342
+ "20": {
1343
+ "$value": "20px"
1344
+ },
1345
+ "24": {
1346
+ "$value": "24px"
1347
+ },
1171
1348
  "28": {
1172
1349
  "$value": "28px"
1173
1350
  },
1351
+ "999": {
1352
+ "$value": "999px"
1353
+ },
1174
1354
  "9999": {
1175
1355
  "$value": "9999px"
1176
1356
  }
@@ -1200,6 +1380,33 @@
1200
1380
  "circle": {
1201
1381
  "$value": "{radii.primitive.9999}"
1202
1382
  }
1383
+ },
1384
+ "kanso": {
1385
+ "$description": "Kanso's corners: what you press is a pill, what holds content has a clear corner, and the larger the container, the larger the corner.",
1386
+ "xs": {
1387
+ "$value": "{radii.primitive.4}"
1388
+ },
1389
+ "sm": {
1390
+ "$value": "{radii.primitive.8}"
1391
+ },
1392
+ "md": {
1393
+ "$value": "{radii.primitive.12}"
1394
+ },
1395
+ "lg": {
1396
+ "$value": "{radii.primitive.16}"
1397
+ },
1398
+ "xl": {
1399
+ "$value": "{radii.primitive.20}"
1400
+ },
1401
+ "2xl": {
1402
+ "$value": "{radii.primitive.24}"
1403
+ },
1404
+ "3xl": {
1405
+ "$value": "{radii.primitive.28}"
1406
+ },
1407
+ "pill": {
1408
+ "$value": "{radii.primitive.999}"
1409
+ }
1203
1410
  }
1204
1411
  },
1205
1412
  "sizing": {
@@ -1218,18 +1425,30 @@
1218
1425
  "24": {
1219
1426
  "$value": "24px"
1220
1427
  },
1428
+ "28": {
1429
+ "$value": "28px"
1430
+ },
1221
1431
  "32": {
1222
1432
  "$value": "32px"
1223
1433
  },
1434
+ "36": {
1435
+ "$value": "36px"
1436
+ },
1224
1437
  "40": {
1225
1438
  "$value": "40px"
1226
1439
  },
1440
+ "44": {
1441
+ "$value": "44px"
1442
+ },
1227
1443
  "48": {
1228
1444
  "$value": "48px"
1229
1445
  },
1230
1446
  "56": {
1231
1447
  "$value": "56px"
1232
1448
  },
1449
+ "60": {
1450
+ "$value": "60px"
1451
+ },
1233
1452
  "72": {
1234
1453
  "$value": "72px"
1235
1454
  },
@@ -1289,13 +1508,55 @@
1289
1508
  "iconXl": {
1290
1509
  "$value": "{sizing.primitive.40}"
1291
1510
  }
1511
+ },
1512
+ "kanso": {
1513
+ "$description": "Kanso's control and row heights, icons and avatars. A touch target is never under 48px on phones, or 32px on the web.",
1514
+ "controlSm": {
1515
+ "$value": "{sizing.primitive.32}"
1516
+ },
1517
+ "controlMd": {
1518
+ "$value": "{sizing.primitive.40}"
1519
+ },
1520
+ "controlLg": {
1521
+ "$value": "{sizing.primitive.48}"
1522
+ },
1523
+ "controlXl": {
1524
+ "$value": "{sizing.primitive.56}"
1525
+ },
1526
+ "rowCompact": {
1527
+ "$value": "{sizing.primitive.44}"
1528
+ },
1529
+ "row": {
1530
+ "$value": "{sizing.primitive.60}"
1531
+ },
1532
+ "iconSm": {
1533
+ "$value": "{sizing.primitive.16}"
1534
+ },
1535
+ "iconMd": {
1536
+ "$value": "{sizing.primitive.20}"
1537
+ },
1538
+ "iconLg": {
1539
+ "$value": "{sizing.primitive.24}"
1540
+ },
1541
+ "iconXl": {
1542
+ "$value": "{sizing.primitive.40}"
1543
+ },
1544
+ "avatarSm": {
1545
+ "$value": "{sizing.primitive.28}"
1546
+ },
1547
+ "avatarMd": {
1548
+ "$value": "{sizing.primitive.36}"
1549
+ },
1550
+ "avatarLg": {
1551
+ "$value": "{sizing.primitive.56}"
1552
+ }
1292
1553
  }
1293
1554
  },
1294
1555
  "layout": {
1295
1556
  "$type": "dimension",
1296
- "$description": "Window size classes, as the lower bound of each class. Published because a consuming app has to line its own media queries up with the library's, and it can only do that if the thresholds are part of the contract rather than a number each component picked for itself. A breakpoint chosen because a particular piece of content stops fitting is not one of these and belongs at its call site \u2014 see the NARROW constant in index.stories.tsx for that case.",
1557
+ "$description": "Window size classes, as the lower bound of each class. Published because a consuming app has to line its own media queries up with the library's, and it can only do that if the thresholds are part of the contract rather than a number each component picked for itself. A breakpoint chosen because a particular piece of content stops fitting is not one of these and belongs at its call site — see the NARROW constant in index.stories.tsx for that case.",
1297
1558
  "breakpoint": {
1298
- "$description": "Unlike every other group in this file these are NOT generated as CSS custom properties: a media query condition cannot read var(), so `@media (width >= var(--kui-layout-breakpoint-medium))` is invalid CSS, and a breakpoint held in a custom property would be unusable in the one place it exists to be used. They are emitted instead as stylex.defineConsts() \u2014 inlined by the compiler \u2014 which is also why they are absent from design.tokens.css and so are not part of the runtime override contract. See `breakpoints` and `media` in design.tokens.stylex.ts. compact gets no query of its own: it is the unprefixed base every style starts from, and `width >= 0px` is always true.",
1559
+ "$description": "Unlike every other group in this file these are NOT generated as CSS custom properties: a media query condition cannot read var(), so `@media (width >= var(--kui-layout-breakpoint-medium))` is invalid CSS, and a breakpoint held in a custom property would be unusable in the one place it exists to be used. They are emitted instead as stylex.defineConsts() — inlined by the compiler — which is also why they are absent from design.tokens.css and so are not part of the runtime override contract. See `breakpoints` and `media` in design.tokens.stylex.ts. compact gets no query of its own: it is the unprefixed base every style starts from, and `width >= 0px` is always true.",
1299
1560
  "compact": {
1300
1561
  "$value": "0px"
1301
1562
  },
@@ -1315,7 +1576,7 @@
1315
1576
  },
1316
1577
  "elevation": {
1317
1578
  "$type": "number",
1318
- "$description": "Elevation levels, expressed in dp. Informational \u2014 see shadow.* below for the actual box-shadow each level renders as.",
1579
+ "$description": "Elevation levels, expressed in dp. Informational — see shadow.* below for the actual box-shadow each level renders as.",
1319
1580
  "level0": {
1320
1581
  "$value": 0
1321
1582
  },
@@ -1337,101 +1598,136 @@
1337
1598
  },
1338
1599
  "shadow": {
1339
1600
  "$type": "shadow",
1340
- "$description": "Elevation shadows are theme-invariant (always rendered in a fixed black \u2014 elevation is instead conveyed in dark mode via the surface-container tones above). Two-layer key+ambient formula, with verified per-level offset/blur/spread. No level0 entry \u2014 level0 renders no shadow.",
1601
+ "$description": "Elevation, one shadow per level and scheme. Kanso has three shadows, kanso.light and kanso.dark: level 1 takes its shadow-1, level 2 its shadow-2, and levels 3 to 5 its shadow-3. The light level sits at the group's top, 1 to 5, and the dark one under dark. Dark shadows are deeper, and the surface tones do most of the lifting there. No level0 entry: level0 renders no shadow.",
1341
1602
  "1": {
1342
- "$value": [
1343
- {
1344
- "color": "rgba(0, 0, 0, 0.3)",
1345
- "offsetX": "0px",
1346
- "offsetY": "1px",
1347
- "blur": "2px",
1348
- "spread": "0px"
1349
- },
1350
- {
1351
- "color": "rgba(0, 0, 0, 0.15)",
1352
- "offsetX": "0px",
1353
- "offsetY": "1px",
1354
- "blur": "3px",
1355
- "spread": "1px"
1356
- }
1357
- ]
1603
+ "$value": "{shadow.kanso.light.1}"
1358
1604
  },
1359
1605
  "2": {
1360
- "$value": [
1361
- {
1362
- "color": "rgba(0, 0, 0, 0.3)",
1363
- "offsetX": "0px",
1364
- "offsetY": "1px",
1365
- "blur": "2px",
1366
- "spread": "0px"
1367
- },
1368
- {
1369
- "color": "rgba(0, 0, 0, 0.15)",
1370
- "offsetX": "0px",
1371
- "offsetY": "2px",
1372
- "blur": "6px",
1373
- "spread": "2px"
1374
- }
1375
- ]
1606
+ "$value": "{shadow.kanso.light.2}"
1376
1607
  },
1377
1608
  "3": {
1378
- "$value": [
1379
- {
1380
- "color": "rgba(0, 0, 0, 0.3)",
1381
- "offsetX": "0px",
1382
- "offsetY": "1px",
1383
- "blur": "3px",
1384
- "spread": "0px"
1385
- },
1386
- {
1387
- "color": "rgba(0, 0, 0, 0.15)",
1388
- "offsetX": "0px",
1389
- "offsetY": "4px",
1390
- "blur": "8px",
1391
- "spread": "3px"
1392
- }
1393
- ]
1609
+ "$value": "{shadow.kanso.light.3}"
1394
1610
  },
1395
1611
  "4": {
1396
- "$value": [
1397
- {
1398
- "color": "rgba(0, 0, 0, 0.3)",
1399
- "offsetX": "0px",
1400
- "offsetY": "2px",
1401
- "blur": "3px",
1402
- "spread": "0px"
1403
- },
1404
- {
1405
- "color": "rgba(0, 0, 0, 0.15)",
1406
- "offsetX": "0px",
1407
- "offsetY": "6px",
1408
- "blur": "10px",
1409
- "spread": "4px"
1410
- }
1411
- ]
1612
+ "$value": "{shadow.kanso.light.3}"
1412
1613
  },
1413
1614
  "5": {
1414
- "$value": [
1415
- {
1416
- "color": "rgba(0, 0, 0, 0.3)",
1417
- "offsetX": "0px",
1418
- "offsetY": "4px",
1419
- "blur": "4px",
1420
- "spread": "0px"
1421
- },
1422
- {
1423
- "color": "rgba(0, 0, 0, 0.15)",
1424
- "offsetX": "0px",
1425
- "offsetY": "8px",
1426
- "blur": "12px",
1427
- "spread": "6px"
1615
+ "$value": "{shadow.kanso.light.3}"
1616
+ },
1617
+ "dark": {
1618
+ "1": {
1619
+ "$value": "{shadow.kanso.dark.1}"
1620
+ },
1621
+ "2": {
1622
+ "$value": "{shadow.kanso.dark.2}"
1623
+ },
1624
+ "3": {
1625
+ "$value": "{shadow.kanso.dark.3}"
1626
+ },
1627
+ "4": {
1628
+ "$value": "{shadow.kanso.dark.3}"
1629
+ },
1630
+ "5": {
1631
+ "$value": "{shadow.kanso.dark.3}"
1632
+ }
1633
+ },
1634
+ "kanso": {
1635
+ "light": {
1636
+ "1": {
1637
+ "$value": [
1638
+ {
1639
+ "color": "rgba(0, 0, 0, 0.06)",
1640
+ "offsetX": "0px",
1641
+ "offsetY": "1px",
1642
+ "blur": "2px",
1643
+ "spread": "0px"
1644
+ },
1645
+ {
1646
+ "color": "rgba(0, 0, 0, 0.04)",
1647
+ "offsetX": "0px",
1648
+ "offsetY": "2px",
1649
+ "blur": "8px",
1650
+ "spread": "0px"
1651
+ }
1652
+ ]
1653
+ },
1654
+ "2": {
1655
+ "$value": [
1656
+ {
1657
+ "color": "rgba(0, 0, 0, 0.08)",
1658
+ "offsetX": "0px",
1659
+ "offsetY": "2px",
1660
+ "blur": "6px",
1661
+ "spread": "0px"
1662
+ },
1663
+ {
1664
+ "color": "rgba(0, 0, 0, 0.1)",
1665
+ "offsetX": "0px",
1666
+ "offsetY": "8px",
1667
+ "blur": "20px",
1668
+ "spread": "0px"
1669
+ }
1670
+ ]
1671
+ },
1672
+ "3": {
1673
+ "$value": [
1674
+ {
1675
+ "color": "rgba(0, 0, 0, 0.12)",
1676
+ "offsetX": "0px",
1677
+ "offsetY": "8px",
1678
+ "blur": "24px",
1679
+ "spread": "0px"
1680
+ },
1681
+ {
1682
+ "color": "rgba(0, 0, 0, 0.14)",
1683
+ "offsetX": "0px",
1684
+ "offsetY": "24px",
1685
+ "blur": "56px",
1686
+ "spread": "0px"
1687
+ }
1688
+ ]
1689
+ }
1690
+ },
1691
+ "dark": {
1692
+ "1": {
1693
+ "$value": [
1694
+ {
1695
+ "color": "rgba(0, 0, 0, 0.5)",
1696
+ "offsetX": "0px",
1697
+ "offsetY": "1px",
1698
+ "blur": "2px",
1699
+ "spread": "0px"
1700
+ }
1701
+ ]
1702
+ },
1703
+ "2": {
1704
+ "$value": [
1705
+ {
1706
+ "color": "rgba(0, 0, 0, 0.6)",
1707
+ "offsetX": "0px",
1708
+ "offsetY": "4px",
1709
+ "blur": "16px",
1710
+ "spread": "0px"
1711
+ }
1712
+ ]
1713
+ },
1714
+ "3": {
1715
+ "$value": [
1716
+ {
1717
+ "color": "rgba(0, 0, 0, 0.7)",
1718
+ "offsetX": "0px",
1719
+ "offsetY": "12px",
1720
+ "blur": "40px",
1721
+ "spread": "0px"
1722
+ }
1723
+ ]
1428
1724
  }
1429
- ]
1725
+ }
1430
1726
  }
1431
1727
  },
1432
1728
  "stateLayerOpacity": {
1433
1729
  "$type": "number",
1434
- "$description": "State-layer opacities from the Material Design spec pages (the icon buttons page lists them): hover 8%, focus 10%, pressed 10%, dragged 16%, plus the disabled container at 12% and disabled content at 38%. Focus and pressed were 12%, the values Material Design published first; the current pages give 10%. Consumers composite the relevant 'on-*' color over the container color at this opacity \u2014 e.g. a filled button's hover state is onPrimary painted over primary at hoverOpacity, not a separate discrete color.",
1730
+ "$description": "State-layer opacities from the Material Design spec pages (the icon buttons page lists them): hover 8%, focus 10%, pressed 10%, dragged 16%, plus the disabled container at 12% and disabled content at 38%. Focus and pressed were 12%, the values Material Design published first; the current pages give 10%. Consumers composite the relevant 'on-*' color over the container color at this opacity — e.g. a filled button's hover state is onPrimary painted over primary at hoverOpacity, not a separate discrete color.",
1435
1731
  "hover": {
1436
1732
  "$value": 0.08
1437
1733
  },
@@ -1449,6 +1745,24 @@
1449
1745
  },
1450
1746
  "disabledContent": {
1451
1747
  "$value": 0.38
1748
+ },
1749
+ "kanso": {
1750
+ "$description": "Kanso's state layers: the content colour of a control painted over it at this strength.",
1751
+ "hover": {
1752
+ "$value": 0.08
1753
+ },
1754
+ "focus": {
1755
+ "$value": 0.1
1756
+ },
1757
+ "pressed": {
1758
+ "$value": 0.12
1759
+ },
1760
+ "disabledContainer": {
1761
+ "$value": 0.12
1762
+ },
1763
+ "disabledContent": {
1764
+ "$value": 0.38
1765
+ }
1452
1766
  }
1453
1767
  },
1454
1768
  "motion": {
@@ -1486,7 +1800,7 @@
1486
1800
  },
1487
1801
  "easing": {
1488
1802
  "$type": "cubicBezier",
1489
- "$description": "Cubic-bezier approximations of the spring curves the motion spec describes. 'standard' and 'emphasized' hold the same four control points \u2014 emphasis is carried by duration, not by a different curve \u2014 but both names exist because they express different intent at the call site and may diverge later. The two spring curves overshoot (control points above 1) and so are only valid on properties that tolerate going past their target: transform and opacity, not color.",
1803
+ "$description": "Cubic-bezier approximations of the spring curves the motion spec describes. 'standard' and 'emphasized' hold the same four control points — emphasis is carried by duration, not by a different curve — but both names exist because they express different intent at the call site and may diverge later. The two spring curves overshoot (control points above 1) and so are only valid on properties that tolerate going past their target: transform and opacity, not color.",
1490
1804
  "emphasized": {
1491
1805
  "$value": [0.2, 0, 0, 1]
1492
1806
  },
@@ -1508,37 +1822,37 @@
1508
1822
  }
1509
1823
  },
1510
1824
  "$extensions": {
1511
- "$description": "DTCG's reserved escape hatch for data that is not a token. Style Dictionary walks past it (confirmed \u2014 it emits nothing for this subtree and does not warn), so nothing below reaches the generated StyleX or CSS output. It is here rather than in the README because the audience is whoever or whatever is holding this file: an agent handed design.tokens.json and asked to build or restyle something can read the whole contract without being told which other files to go and find.",
1825
+ "$description": "DTCG's reserved escape hatch for data that is not a token. Style Dictionary walks past it (confirmed — it emits nothing for this subtree and does not warn), so nothing below reaches the generated StyleX or CSS output. It is here rather than in the README because the audience is whoever or whatever is holding this file: an agent handed design.tokens.json and asked to build or restyle something can read the whole contract without being told which other files to go and find.",
1512
1826
  "com.github.kanso-labs.kanso-ui": {
1513
1827
  "system": {
1514
1828
  "name": "kanso-ui",
1515
1829
  "repository": "https://github.com/kanso-labs/kanso-ui",
1516
- "tiers": "Reference (color.*, spacing.primitive, radii.primitive) holds raw values and is not consumed directly. System (semantic.light / semantic.dark) maps roles onto specific tones and is what components use for color. The remaining groups \u2014 typography, spacing.component, radii.component, elevation, shadow, stateLayerOpacity, motion, layout \u2014 are component-facing as written.",
1517
- "rule": "Reach for the most specific tier that says what you mean. A surface is semantic.surfaceContainer, never color.neutral.94; a gap is spacing.component.md, never 12px."
1830
+ "tiers": "Reference (spacing.primitive, radii.primitive, sizing.primitive, and shadow.kanso for the shadows) holds raw values and is not consumed directly. System (semantic.light / semantic.dark) holds the colours: Kanso's own tokens and the Material Design roles that alias them, which are what components use for colour today. The remaining groups — typography, spacing.component and spacing.kanso, radii.component and radii.kanso, sizing.component and sizing.kanso, elevation, shadow, stateLayerOpacity, motion, layout — are component-facing as written.",
1831
+ "rule": "Reach for the most specific tier that says what you mean. A surface is semantic.surfaceContainer or Kanso's semantic.kansoSurface, never #ffffff; a gap is spacing.component.md, never 12px."
1518
1832
  },
1519
1833
  "consumption": {
1520
- "$description": "This file generates three files, and picking the wrong one is the mistake worth guarding against \u2014 see the 'rule' entry below. Both JS modules are internal: the package exports components and the stylesheet, not the token modules, so a consumer retheming kanso-ui does it through the custom properties rather than through StyleX.",
1834
+ "$description": "This file generates three files, and picking the wrong one is the mistake worth guarding against — see the 'rule' entry below. Both JS modules are internal: the package exports components and the stylesheet, not the token modules, so a consumer retheming kanso-ui does it through the custom properties rather than through StyleX.",
1521
1835
  "rule": "Reach for the StyleX theme anywhere a CSS property value will do, and for values.ts only when something has to compute with a token rather than declare it. The StyleX bindings are var(--kui-*, literal) references, so a consumer who redeclares the custom property moves them; the plain values are frozen at build time and cannot honour that override. Choosing values.ts out of convenience silently opts that declaration out of the theming contract.",
1522
1836
  "stylex": "src/tokens/design.tokens.stylex.ts. Inside this repo: import { colors, typography, spacing, radii, shadows, stateLayerOpacity, motion, breakpoints, media } from '../../tokens/design.tokens.stylex' and reference them inside stylex.create(). No CSS files, no inline style objects.",
1523
- "values": "src/tokens/values.ts. Tokens as plain JS values \u2014 motion durations as a number of milliseconds, easing curves as strings, spacing in px. Only the groups something computes with are generated here: element.animate() throws a TypeError on a var() duration, and useRipple does arithmetic with spacing, so neither can take a CSS value. Color, radii, shadows, typography, and the state-layer opacities are declared rather than computed and are deliberately absent.",
1837
+ "values": "src/tokens/values.ts. Tokens as plain JS values — motion durations as a number of milliseconds, easing curves as strings, spacing in px. Only the groups something computes with are generated here: element.animate() throws a TypeError on a var() duration, and useRipple does arithmetic with spacing, so neither can take a CSS value. Color, radii, shadows, typography, and the state-layer opacities are declared rather than computed and are deliberately absent.",
1524
1838
  "css": "src/tokens/design.tokens.css, published as the '@kanso-labs/kanso-ui/tokens.css' export. This is the public override contract: redeclare any custom property in it to retheme every component, with no StyleX toolchain of your own required.",
1525
1839
  "cssVarPrefix": "--kui-",
1526
- "theming": "Color follows prefers-color-scheme by default. colorDefaultsLightTheme and colorDefaultsDarkTheme, also exported from design.tokens.stylex.ts, pin one scheme for a manual toggle; tokenScope resolves every token again on the element it lands on, so a --kui-* override declared there or above it reaches the subtree. The package exports both as classes, colorScheme and themeScope, and as the ThemeScope component. Breakpoints are the one group with no CSS custom property \u2014 see layout.breakpoint above.",
1840
+ "theming": "Color follows prefers-color-scheme by default. colorDefaultsLightTheme and colorDefaultsDarkTheme, also exported from design.tokens.stylex.ts, pin one scheme for a manual toggle; tokenScope resolves every token again on the element it lands on, so a --kui-* override declared there or above it reaches the subtree. The package exports both as classes, colorScheme and themeScope, and as the ThemeScope component. Breakpoints are the one group with no CSS custom property — see layout.breakpoint above.",
1527
1841
  "regenerate": "npm run tokens:build after editing this file. All three generated files (design.tokens.stylex.ts, values.ts, design.tokens.css) are committed, and the same build also runs automatically under storybook, vitest, and the package build."
1528
1842
  },
1529
1843
  "voice": {
1530
- "$description": "Copy conventions for anything user-visible the library ships or documents: component labels, story text, error and empty states. Kept alongside the visual tokens on the same reasoning \u2014 'sentence case, no exclamation marks' is as much a part of looking like kanso-ui as the type scale is, and it is just as easy to get wrong when the writing is spread across a dozen files.",
1531
- "tone": "plain, concrete, unadorned \u2014 kanso (\u7c21\u7d20) is the elimination of clutter, and the writing follows the visual system in that",
1844
+ "$description": "Copy conventions for anything user-visible the library ships or documents: component labels, story text, error and empty states. Kept alongside the visual tokens on the same reasoning — 'sentence case, no exclamation marks' is as much a part of looking like kanso-ui as the type scale is, and it is just as easy to get wrong when the writing is spread across a dozen files.",
1845
+ "tone": "plain, concrete, unadorned — kanso (簡素) is the elimination of clutter, and the writing follows the visual system in that",
1532
1846
  "labelCase": "sentence case for every label, heading, button, and menu item",
1533
- "ctaStyle": "imperative, verb first, naming the actual outcome \u2014 'Save changes', not 'Click here to save' and not 'Submit'",
1847
+ "ctaStyle": "imperative, verb first, naming the actual outcome — 'Save changes', not 'Click here to save' and not 'Submit'",
1534
1848
  "avoid": [
1535
1849
  "title case in UI labels",
1536
1850
  "exclamation marks",
1537
1851
  "jargon and internal component names in user-facing copy",
1538
- "hedging \u2014 'might', 'try to', 'please wait'",
1539
- "blaming the reader in error text \u2014 say what happened and what to do next"
1852
+ "hedging — 'might', 'try to', 'please wait'",
1853
+ "blaming the reader in error text — say what happened and what to do next"
1540
1854
  ],
1541
- "sampleCopy": "The entries above govern how copy is written; what the placeholder text in stories, tests, and comments is allowed to say is a separate rule with the same weight. It must stay domain-neutral and name the slot it fills, never lifted from a consuming app's screens. AGENTS.md, under 'Sample copy', holds that rule and its placeholder vocabulary \u2014 recorded here so a reader holding only this file knows to go and find it."
1855
+ "sampleCopy": "The entries above govern how copy is written; what the placeholder text in stories, tests, and comments is allowed to say is a separate rule with the same weight. It must stay domain-neutral and name the slot it fills, never lifted from a consuming app's screens. AGENTS.md, under 'Sample copy', holds that rule and its placeholder vocabulary — recorded here so a reader holding only this file knows to go and find it."
1542
1856
  }
1543
1857
  }
1544
1858
  }