@kanso-labs/kanso-ui-core 0.4.0 → 0.5.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,743 +1,652 @@
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 default to ink, as the brand has no colour of its own; product.* holds each product's own.",
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
- "typography": {
732
- "fontFamily": {
733
- "$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.",
735
- "brand": {
736
- "$value": ["Roboto Serif", "Iowan Old Style", "Georgia", "serif"]
557
+ "product": {
558
+ "$type": "color",
559
+ "$description": "Each product's own fill for the product roles in semantic.*: the roles it replaces, per scheme, and nothing else. Every colour aliasing one of them, the Material Design roles included, follows it.",
560
+ "daily": {
561
+ "$description": "Daily: ai (藍), an indigo, as the Kanso design system sets it.",
562
+ "light": {
563
+ "accent": {
564
+ "$value": "#2e46c0"
565
+ },
566
+ "onAccent": {
567
+ "$value": "#ffffff"
568
+ },
569
+ "accentSoft": {
570
+ "$value": "#e4e8fb"
571
+ },
572
+ "onAccentSoft": {
573
+ "$value": "#1f2f86"
574
+ },
575
+ "accentOnInk": {
576
+ "$value": "#9fb0ff"
577
+ },
578
+ "spotlight": {
579
+ "$value": "#2e46c0"
580
+ },
581
+ "onSpotlight": {
582
+ "$value": "#ffffff"
583
+ },
584
+ "onSpotlightMuted": {
585
+ "$value": "rgba(255, 255, 255, 0.8)"
586
+ },
587
+ "spotlightButton": {
588
+ "$value": "#fafafa"
589
+ },
590
+ "onSpotlightButton": {
591
+ "$value": "#1f2f86"
592
+ },
593
+ "spotlightTonal": {
594
+ "$value": "rgba(255, 255, 255, 0.16)"
595
+ },
596
+ "spotlightLine": {
597
+ "$value": "rgba(255, 255, 255, 0.6)"
598
+ }
737
599
  },
738
- "mono": {
739
- "$value": [
740
- "Roboto Mono",
600
+ "dark": {
601
+ "accent": {
602
+ "$value": "#9fb0ff"
603
+ },
604
+ "onAccent": {
605
+ "$value": "#0e1a5c"
606
+ },
607
+ "accentSoft": {
608
+ "$value": "#25306b"
609
+ },
610
+ "onAccentSoft": {
611
+ "$value": "#dde3ff"
612
+ },
613
+ "accentOnInk": {
614
+ "$value": "#2e46c0"
615
+ },
616
+ "spotlight": {
617
+ "$value": "#283c9f"
618
+ },
619
+ "onSpotlight": {
620
+ "$value": "#ffffff"
621
+ },
622
+ "onSpotlightMuted": {
623
+ "$value": "rgba(255, 255, 255, 0.8)"
624
+ },
625
+ "spotlightButton": {
626
+ "$value": "#ffffff"
627
+ },
628
+ "onSpotlightButton": {
629
+ "$value": "#1f2f86"
630
+ },
631
+ "spotlightTonal": {
632
+ "$value": "rgba(255, 255, 255, 0.14)"
633
+ },
634
+ "spotlightLine": {
635
+ "$value": "rgba(255, 255, 255, 0.6)"
636
+ }
637
+ }
638
+ }
639
+ },
640
+ "typography": {
641
+ "fontFamily": {
642
+ "$type": "fontFamily",
643
+ "$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.",
644
+ "brand": {
645
+ "$value": ["Roboto Serif", "Iowan Old Style", "Georgia", "serif"]
646
+ },
647
+ "mono": {
648
+ "$value": [
649
+ "Roboto Mono",
741
650
  "ui-monospace",
742
651
  "SF Mono",
743
652
  "Menlo",
@@ -753,49 +662,361 @@
753
662
  "Roboto",
754
663
  "sans-serif"
755
664
  ]
665
+ },
666
+ "voice": {
667
+ "$value": ["Roboto Serif", "Iowan Old Style", "Georgia", "serif"]
756
668
  }
757
669
  },
758
670
  "fontWeight": {
759
671
  "$type": "fontWeight",
672
+ "light": {
673
+ "$value": 300
674
+ },
675
+ "regular": {
676
+ "$value": 400
677
+ },
678
+ "medium": {
679
+ "$value": 500
680
+ },
681
+ "semibold": {
682
+ "$value": 600
683
+ },
760
684
  "bold": {
761
685
  "$value": 700
686
+ }
687
+ },
688
+ "scale": {
689
+ "$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.",
690
+ "displayLarge": {
691
+ "font": {
692
+ "$value": "{typography.fontFamily.brand}"
693
+ },
694
+ "size": {
695
+ "$type": "dimension",
696
+ "$value": "57px"
697
+ },
698
+ "lineHeight": {
699
+ "$type": "dimension",
700
+ "$value": "64px"
701
+ },
702
+ "tracking": {
703
+ "$type": "dimension",
704
+ "$value": "-0.25px"
705
+ },
706
+ "weight": {
707
+ "$value": "{typography.fontWeight.light}"
708
+ }
709
+ },
710
+ "displayMedium": {
711
+ "font": {
712
+ "$value": "{typography.fontFamily.brand}"
713
+ },
714
+ "size": {
715
+ "$type": "dimension",
716
+ "$value": "45px"
717
+ },
718
+ "lineHeight": {
719
+ "$type": "dimension",
720
+ "$value": "52px"
721
+ },
722
+ "tracking": {
723
+ "$type": "dimension",
724
+ "$value": "0px"
725
+ },
726
+ "weight": {
727
+ "$value": "{typography.fontWeight.light}"
728
+ }
729
+ },
730
+ "displaySmall": {
731
+ "font": {
732
+ "$value": "{typography.fontFamily.brand}"
733
+ },
734
+ "size": {
735
+ "$type": "dimension",
736
+ "$value": "36px"
737
+ },
738
+ "lineHeight": {
739
+ "$type": "dimension",
740
+ "$value": "44px"
741
+ },
742
+ "tracking": {
743
+ "$type": "dimension",
744
+ "$value": "0px"
745
+ },
746
+ "weight": {
747
+ "$value": "{typography.fontWeight.light}"
748
+ }
749
+ },
750
+ "headlineLarge": {
751
+ "font": {
752
+ "$value": "{typography.fontFamily.brand}"
753
+ },
754
+ "size": {
755
+ "$type": "dimension",
756
+ "$value": "32px"
757
+ },
758
+ "lineHeight": {
759
+ "$type": "dimension",
760
+ "$value": "40px"
761
+ },
762
+ "tracking": {
763
+ "$type": "dimension",
764
+ "$value": "0px"
765
+ },
766
+ "weight": {
767
+ "$value": "{typography.fontWeight.light}"
768
+ }
769
+ },
770
+ "headlineMedium": {
771
+ "font": {
772
+ "$value": "{typography.fontFamily.brand}"
773
+ },
774
+ "size": {
775
+ "$type": "dimension",
776
+ "$value": "28px"
777
+ },
778
+ "lineHeight": {
779
+ "$type": "dimension",
780
+ "$value": "36px"
781
+ },
782
+ "tracking": {
783
+ "$type": "dimension",
784
+ "$value": "0px"
785
+ },
786
+ "weight": {
787
+ "$value": "{typography.fontWeight.light}"
788
+ }
789
+ },
790
+ "headlineSmall": {
791
+ "font": {
792
+ "$value": "{typography.fontFamily.brand}"
793
+ },
794
+ "size": {
795
+ "$type": "dimension",
796
+ "$value": "24px"
797
+ },
798
+ "lineHeight": {
799
+ "$type": "dimension",
800
+ "$value": "32px"
801
+ },
802
+ "tracking": {
803
+ "$type": "dimension",
804
+ "$value": "0px"
805
+ },
806
+ "weight": {
807
+ "$value": "{typography.fontWeight.light}"
808
+ }
809
+ },
810
+ "titleLarge": {
811
+ "font": {
812
+ "$value": "{typography.fontFamily.brand}"
813
+ },
814
+ "size": {
815
+ "$type": "dimension",
816
+ "$value": "22px"
817
+ },
818
+ "lineHeight": {
819
+ "$type": "dimension",
820
+ "$value": "28px"
821
+ },
822
+ "tracking": {
823
+ "$type": "dimension",
824
+ "$value": "0px"
825
+ },
826
+ "weight": {
827
+ "$value": "{typography.fontWeight.light}"
828
+ }
829
+ },
830
+ "titleMedium": {
831
+ "font": {
832
+ "$value": "{typography.fontFamily.plain}"
833
+ },
834
+ "size": {
835
+ "$type": "dimension",
836
+ "$value": "16px"
837
+ },
838
+ "lineHeight": {
839
+ "$type": "dimension",
840
+ "$value": "24px"
841
+ },
842
+ "tracking": {
843
+ "$type": "dimension",
844
+ "$value": "0.15px"
845
+ },
846
+ "weight": {
847
+ "$value": "{typography.fontWeight.medium}"
848
+ }
849
+ },
850
+ "titleSmall": {
851
+ "font": {
852
+ "$value": "{typography.fontFamily.plain}"
853
+ },
854
+ "size": {
855
+ "$type": "dimension",
856
+ "$value": "14px"
857
+ },
858
+ "lineHeight": {
859
+ "$type": "dimension",
860
+ "$value": "20px"
861
+ },
862
+ "tracking": {
863
+ "$type": "dimension",
864
+ "$value": "0.1px"
865
+ },
866
+ "weight": {
867
+ "$value": "{typography.fontWeight.medium}"
868
+ }
869
+ },
870
+ "bodyLarge": {
871
+ "font": {
872
+ "$value": "{typography.fontFamily.plain}"
873
+ },
874
+ "size": {
875
+ "$type": "dimension",
876
+ "$value": "16px"
877
+ },
878
+ "lineHeight": {
879
+ "$type": "dimension",
880
+ "$value": "24px"
881
+ },
882
+ "tracking": {
883
+ "$type": "dimension",
884
+ "$value": "0.5px"
885
+ },
886
+ "weight": {
887
+ "$value": "{typography.fontWeight.regular}"
888
+ }
889
+ },
890
+ "bodyMedium": {
891
+ "font": {
892
+ "$value": "{typography.fontFamily.plain}"
893
+ },
894
+ "size": {
895
+ "$type": "dimension",
896
+ "$value": "14px"
897
+ },
898
+ "lineHeight": {
899
+ "$type": "dimension",
900
+ "$value": "20px"
901
+ },
902
+ "tracking": {
903
+ "$type": "dimension",
904
+ "$value": "0.25px"
905
+ },
906
+ "weight": {
907
+ "$value": "{typography.fontWeight.regular}"
908
+ }
909
+ },
910
+ "bodySmall": {
911
+ "font": {
912
+ "$value": "{typography.fontFamily.plain}"
913
+ },
914
+ "size": {
915
+ "$type": "dimension",
916
+ "$value": "12px"
917
+ },
918
+ "lineHeight": {
919
+ "$type": "dimension",
920
+ "$value": "16px"
921
+ },
922
+ "tracking": {
923
+ "$type": "dimension",
924
+ "$value": "0.4px"
925
+ },
926
+ "weight": {
927
+ "$value": "{typography.fontWeight.regular}"
928
+ }
929
+ },
930
+ "labelLarge": {
931
+ "font": {
932
+ "$value": "{typography.fontFamily.plain}"
933
+ },
934
+ "size": {
935
+ "$type": "dimension",
936
+ "$value": "14px"
937
+ },
938
+ "lineHeight": {
939
+ "$type": "dimension",
940
+ "$value": "20px"
941
+ },
942
+ "tracking": {
943
+ "$type": "dimension",
944
+ "$value": "0.1px"
945
+ },
946
+ "weight": {
947
+ "$value": "{typography.fontWeight.medium}"
948
+ }
762
949
  },
763
- "medium": {
764
- "$value": 500
950
+ "labelMedium": {
951
+ "font": {
952
+ "$value": "{typography.fontFamily.plain}"
953
+ },
954
+ "size": {
955
+ "$type": "dimension",
956
+ "$value": "12px"
957
+ },
958
+ "lineHeight": {
959
+ "$type": "dimension",
960
+ "$value": "16px"
961
+ },
962
+ "tracking": {
963
+ "$type": "dimension",
964
+ "$value": "0.5px"
965
+ },
966
+ "weight": {
967
+ "$value": "{typography.fontWeight.medium}"
968
+ }
765
969
  },
766
- "regular": {
767
- "$value": 400
970
+ "labelSmall": {
971
+ "font": {
972
+ "$value": "{typography.fontFamily.plain}"
973
+ },
974
+ "size": {
975
+ "$type": "dimension",
976
+ "$value": "11px"
977
+ },
978
+ "lineHeight": {
979
+ "$type": "dimension",
980
+ "$value": "16px"
981
+ },
982
+ "tracking": {
983
+ "$type": "dimension",
984
+ "$value": "0.5px"
985
+ },
986
+ "weight": {
987
+ "$value": "{typography.fontWeight.medium}"
988
+ }
768
989
  }
769
990
  },
770
- "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.",
772
- "displayLarge": {
991
+ "style": {
992
+ "$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.",
993
+ "tHero": {
773
994
  "font": {
774
- "$value": "{typography.fontFamily.brand}"
995
+ "$value": "{typography.fontFamily.voice}"
775
996
  },
776
997
  "size": {
777
998
  "$type": "dimension",
778
- "$value": "57px"
999
+ "$value": "52px"
779
1000
  },
780
1001
  "lineHeight": {
781
1002
  "$type": "dimension",
782
- "$value": "64px"
1003
+ "$value": "58px"
783
1004
  },
784
1005
  "tracking": {
785
1006
  "$type": "dimension",
786
- "$value": "-0.25px"
1007
+ "$value": "-0.78px"
787
1008
  },
788
1009
  "weight": {
789
- "$value": "{typography.fontWeight.regular}"
1010
+ "$value": "{typography.fontWeight.light}"
790
1011
  }
791
1012
  },
792
- "displayMedium": {
1013
+ "tDisplay": {
793
1014
  "font": {
794
- "$value": "{typography.fontFamily.brand}"
1015
+ "$value": "{typography.fontFamily.voice}"
795
1016
  },
796
1017
  "size": {
797
1018
  "$type": "dimension",
798
- "$value": "45px"
1019
+ "$value": "44px"
799
1020
  },
800
1021
  "lineHeight": {
801
1022
  "$type": "dimension",
@@ -803,35 +1024,35 @@
803
1024
  },
804
1025
  "tracking": {
805
1026
  "$type": "dimension",
806
- "$value": "0px"
1027
+ "$value": "-0.66px"
807
1028
  },
808
1029
  "weight": {
809
- "$value": "{typography.fontWeight.regular}"
1030
+ "$value": "{typography.fontWeight.light}"
810
1031
  }
811
1032
  },
812
- "displaySmall": {
1033
+ "tHeadline": {
813
1034
  "font": {
814
- "$value": "{typography.fontFamily.brand}"
1035
+ "$value": "{typography.fontFamily.voice}"
815
1036
  },
816
1037
  "size": {
817
1038
  "$type": "dimension",
818
- "$value": "36px"
1039
+ "$value": "34px"
819
1040
  },
820
1041
  "lineHeight": {
821
1042
  "$type": "dimension",
822
- "$value": "44px"
1043
+ "$value": "40px"
823
1044
  },
824
1045
  "tracking": {
825
1046
  "$type": "dimension",
826
- "$value": "0px"
1047
+ "$value": "-0.34px"
827
1048
  },
828
1049
  "weight": {
829
- "$value": "{typography.fontWeight.regular}"
1050
+ "$value": "{typography.fontWeight.light}"
830
1051
  }
831
1052
  },
832
- "headlineLarge": {
1053
+ "tTitle": {
833
1054
  "font": {
834
- "$value": "{typography.fontFamily.brand}"
1055
+ "$value": "{typography.fontFamily.voice}"
835
1056
  },
836
1057
  "size": {
837
1058
  "$type": "dimension",
@@ -839,47 +1060,47 @@
839
1060
  },
840
1061
  "lineHeight": {
841
1062
  "$type": "dimension",
842
- "$value": "40px"
1063
+ "$value": "38px"
843
1064
  },
844
1065
  "tracking": {
845
1066
  "$type": "dimension",
846
1067
  "$value": "0px"
847
1068
  },
848
1069
  "weight": {
849
- "$value": "{typography.fontWeight.regular}"
1070
+ "$value": "{typography.fontWeight.light}"
850
1071
  }
851
1072
  },
852
- "headlineMedium": {
1073
+ "tSection": {
853
1074
  "font": {
854
- "$value": "{typography.fontFamily.brand}"
1075
+ "$value": "{typography.fontFamily.voice}"
855
1076
  },
856
1077
  "size": {
857
1078
  "$type": "dimension",
858
- "$value": "28px"
1079
+ "$value": "22px"
859
1080
  },
860
1081
  "lineHeight": {
861
1082
  "$type": "dimension",
862
- "$value": "36px"
1083
+ "$value": "28px"
863
1084
  },
864
1085
  "tracking": {
865
1086
  "$type": "dimension",
866
1087
  "$value": "0px"
867
1088
  },
868
1089
  "weight": {
869
- "$value": "{typography.fontWeight.regular}"
1090
+ "$value": "{typography.fontWeight.light}"
870
1091
  }
871
1092
  },
872
- "headlineSmall": {
1093
+ "tBodyLarge": {
873
1094
  "font": {
874
- "$value": "{typography.fontFamily.brand}"
1095
+ "$value": "{typography.fontFamily.plain}"
875
1096
  },
876
1097
  "size": {
877
1098
  "$type": "dimension",
878
- "$value": "24px"
1099
+ "$value": "17px"
879
1100
  },
880
1101
  "lineHeight": {
881
1102
  "$type": "dimension",
882
- "$value": "32px"
1103
+ "$value": "26px"
883
1104
  },
884
1105
  "tracking": {
885
1106
  "$type": "dimension",
@@ -889,47 +1110,47 @@
889
1110
  "$value": "{typography.fontWeight.regular}"
890
1111
  }
891
1112
  },
892
- "titleLarge": {
1113
+ "tBodyStrong": {
893
1114
  "font": {
894
- "$value": "{typography.fontFamily.brand}"
1115
+ "$value": "{typography.fontFamily.plain}"
895
1116
  },
896
1117
  "size": {
897
1118
  "$type": "dimension",
898
- "$value": "22px"
1119
+ "$value": "16px"
899
1120
  },
900
1121
  "lineHeight": {
901
1122
  "$type": "dimension",
902
- "$value": "28px"
1123
+ "$value": "22px"
903
1124
  },
904
1125
  "tracking": {
905
1126
  "$type": "dimension",
906
1127
  "$value": "0px"
907
1128
  },
908
1129
  "weight": {
909
- "$value": "{typography.fontWeight.regular}"
1130
+ "$value": "{typography.fontWeight.medium}"
910
1131
  }
911
1132
  },
912
- "titleMedium": {
1133
+ "tBody": {
913
1134
  "font": {
914
1135
  "$value": "{typography.fontFamily.plain}"
915
1136
  },
916
1137
  "size": {
917
1138
  "$type": "dimension",
918
- "$value": "16px"
1139
+ "$value": "15px"
919
1140
  },
920
1141
  "lineHeight": {
921
1142
  "$type": "dimension",
922
- "$value": "24px"
1143
+ "$value": "20px"
923
1144
  },
924
1145
  "tracking": {
925
1146
  "$type": "dimension",
926
- "$value": "0.15px"
1147
+ "$value": "0px"
927
1148
  },
928
1149
  "weight": {
929
- "$value": "{typography.fontWeight.medium}"
1150
+ "$value": "{typography.fontWeight.regular}"
930
1151
  }
931
1152
  },
932
- "titleSmall": {
1153
+ "tBodySmall": {
933
1154
  "font": {
934
1155
  "$value": "{typography.fontFamily.plain}"
935
1156
  },
@@ -943,53 +1164,53 @@
943
1164
  },
944
1165
  "tracking": {
945
1166
  "$type": "dimension",
946
- "$value": "0.1px"
1167
+ "$value": "0px"
947
1168
  },
948
1169
  "weight": {
949
- "$value": "{typography.fontWeight.medium}"
1170
+ "$value": "{typography.fontWeight.regular}"
950
1171
  }
951
1172
  },
952
- "bodyLarge": {
1173
+ "tLabelStrong": {
953
1174
  "font": {
954
1175
  "$value": "{typography.fontFamily.plain}"
955
1176
  },
956
1177
  "size": {
957
1178
  "$type": "dimension",
958
- "$value": "16px"
1179
+ "$value": "15px"
959
1180
  },
960
1181
  "lineHeight": {
961
1182
  "$type": "dimension",
962
- "$value": "24px"
1183
+ "$value": "20px"
963
1184
  },
964
1185
  "tracking": {
965
1186
  "$type": "dimension",
966
- "$value": "0.5px"
1187
+ "$value": "0px"
967
1188
  },
968
1189
  "weight": {
969
- "$value": "{typography.fontWeight.regular}"
1190
+ "$value": "{typography.fontWeight.semibold}"
970
1191
  }
971
1192
  },
972
- "bodyMedium": {
1193
+ "tLabel": {
973
1194
  "font": {
974
1195
  "$value": "{typography.fontFamily.plain}"
975
1196
  },
976
1197
  "size": {
977
1198
  "$type": "dimension",
978
- "$value": "14px"
1199
+ "$value": "13px"
979
1200
  },
980
1201
  "lineHeight": {
981
1202
  "$type": "dimension",
982
- "$value": "20px"
1203
+ "$value": "18px"
983
1204
  },
984
1205
  "tracking": {
985
1206
  "$type": "dimension",
986
- "$value": "0.25px"
1207
+ "$value": "0px"
987
1208
  },
988
1209
  "weight": {
989
- "$value": "{typography.fontWeight.regular}"
1210
+ "$value": "{typography.fontWeight.medium}"
990
1211
  }
991
1212
  },
992
- "bodySmall": {
1213
+ "tCaption": {
993
1214
  "font": {
994
1215
  "$value": "{typography.fontFamily.plain}"
995
1216
  },
@@ -1003,67 +1224,67 @@
1003
1224
  },
1004
1225
  "tracking": {
1005
1226
  "$type": "dimension",
1006
- "$value": "0.4px"
1227
+ "$value": "0px"
1007
1228
  },
1008
1229
  "weight": {
1009
- "$value": "{typography.fontWeight.regular}"
1230
+ "$value": "{typography.fontWeight.medium}"
1010
1231
  }
1011
1232
  },
1012
- "labelLarge": {
1233
+ "tFigureLarge": {
1013
1234
  "font": {
1014
- "$value": "{typography.fontFamily.plain}"
1235
+ "$value": "{typography.fontFamily.mono}"
1015
1236
  },
1016
1237
  "size": {
1017
1238
  "$type": "dimension",
1018
- "$value": "14px"
1239
+ "$value": "24px"
1019
1240
  },
1020
1241
  "lineHeight": {
1021
1242
  "$type": "dimension",
1022
- "$value": "20px"
1243
+ "$value": "30px"
1023
1244
  },
1024
1245
  "tracking": {
1025
1246
  "$type": "dimension",
1026
- "$value": "0.1px"
1247
+ "$value": "0px"
1027
1248
  },
1028
1249
  "weight": {
1029
1250
  "$value": "{typography.fontWeight.medium}"
1030
1251
  }
1031
1252
  },
1032
- "labelMedium": {
1253
+ "tFigure": {
1033
1254
  "font": {
1034
- "$value": "{typography.fontFamily.plain}"
1255
+ "$value": "{typography.fontFamily.mono}"
1035
1256
  },
1036
1257
  "size": {
1037
1258
  "$type": "dimension",
1038
- "$value": "12px"
1259
+ "$value": "15px"
1039
1260
  },
1040
1261
  "lineHeight": {
1041
1262
  "$type": "dimension",
1042
- "$value": "16px"
1263
+ "$value": "20px"
1043
1264
  },
1044
1265
  "tracking": {
1045
1266
  "$type": "dimension",
1046
- "$value": "0.5px"
1267
+ "$value": "0px"
1047
1268
  },
1048
1269
  "weight": {
1049
1270
  "$value": "{typography.fontWeight.medium}"
1050
1271
  }
1051
1272
  },
1052
- "labelSmall": {
1273
+ "tFigureSmall": {
1053
1274
  "font": {
1054
- "$value": "{typography.fontFamily.plain}"
1275
+ "$value": "{typography.fontFamily.mono}"
1055
1276
  },
1056
1277
  "size": {
1057
1278
  "$type": "dimension",
1058
- "$value": "11px"
1279
+ "$value": "13px"
1059
1280
  },
1060
1281
  "lineHeight": {
1061
1282
  "$type": "dimension",
1062
- "$value": "16px"
1283
+ "$value": "18px"
1063
1284
  },
1064
1285
  "tracking": {
1065
1286
  "$type": "dimension",
1066
- "$value": "0.5px"
1287
+ "$value": "0px"
1067
1288
  },
1068
1289
  "weight": {
1069
1290
  "$value": "{typography.fontWeight.medium}"
@@ -1073,7 +1294,7 @@
1073
1294
  },
1074
1295
  "spacing": {
1075
1296
  "$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.",
1297
+ "$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
1298
  "primitive": {
1078
1299
  "2": {
1079
1300
  "$value": "2px"
@@ -1147,6 +1368,39 @@
1147
1368
  "xxxl": {
1148
1369
  "$value": "{spacing.primitive.40}"
1149
1370
  }
1371
+ },
1372
+ "kanso": {
1373
+ "$description": "Kanso's spacing, a 4px grid: every gap and inset is one of these steps.",
1374
+ "2xs": {
1375
+ "$value": "{spacing.primitive.2}"
1376
+ },
1377
+ "xs": {
1378
+ "$value": "{spacing.primitive.4}"
1379
+ },
1380
+ "sm": {
1381
+ "$value": "{spacing.primitive.8}"
1382
+ },
1383
+ "md": {
1384
+ "$value": "{spacing.primitive.12}"
1385
+ },
1386
+ "lg": {
1387
+ "$value": "{spacing.primitive.16}"
1388
+ },
1389
+ "xl": {
1390
+ "$value": "{spacing.primitive.20}"
1391
+ },
1392
+ "2xl": {
1393
+ "$value": "{spacing.primitive.24}"
1394
+ },
1395
+ "3xl": {
1396
+ "$value": "{spacing.primitive.32}"
1397
+ },
1398
+ "4xl": {
1399
+ "$value": "{spacing.primitive.40}"
1400
+ },
1401
+ "5xl": {
1402
+ "$value": "{spacing.primitive.56}"
1403
+ }
1150
1404
  }
1151
1405
  },
1152
1406
  "radii": {
@@ -1168,9 +1422,18 @@
1168
1422
  "16": {
1169
1423
  "$value": "16px"
1170
1424
  },
1425
+ "20": {
1426
+ "$value": "20px"
1427
+ },
1428
+ "24": {
1429
+ "$value": "24px"
1430
+ },
1171
1431
  "28": {
1172
1432
  "$value": "28px"
1173
1433
  },
1434
+ "999": {
1435
+ "$value": "999px"
1436
+ },
1174
1437
  "9999": {
1175
1438
  "$value": "9999px"
1176
1439
  }
@@ -1200,6 +1463,33 @@
1200
1463
  "circle": {
1201
1464
  "$value": "{radii.primitive.9999}"
1202
1465
  }
1466
+ },
1467
+ "kanso": {
1468
+ "$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.",
1469
+ "xs": {
1470
+ "$value": "{radii.primitive.4}"
1471
+ },
1472
+ "sm": {
1473
+ "$value": "{radii.primitive.8}"
1474
+ },
1475
+ "md": {
1476
+ "$value": "{radii.primitive.12}"
1477
+ },
1478
+ "lg": {
1479
+ "$value": "{radii.primitive.16}"
1480
+ },
1481
+ "xl": {
1482
+ "$value": "{radii.primitive.20}"
1483
+ },
1484
+ "2xl": {
1485
+ "$value": "{radii.primitive.24}"
1486
+ },
1487
+ "3xl": {
1488
+ "$value": "{radii.primitive.28}"
1489
+ },
1490
+ "pill": {
1491
+ "$value": "{radii.primitive.999}"
1492
+ }
1203
1493
  }
1204
1494
  },
1205
1495
  "sizing": {
@@ -1218,18 +1508,30 @@
1218
1508
  "24": {
1219
1509
  "$value": "24px"
1220
1510
  },
1511
+ "28": {
1512
+ "$value": "28px"
1513
+ },
1221
1514
  "32": {
1222
1515
  "$value": "32px"
1223
1516
  },
1517
+ "36": {
1518
+ "$value": "36px"
1519
+ },
1224
1520
  "40": {
1225
1521
  "$value": "40px"
1226
1522
  },
1523
+ "44": {
1524
+ "$value": "44px"
1525
+ },
1227
1526
  "48": {
1228
1527
  "$value": "48px"
1229
1528
  },
1230
1529
  "56": {
1231
1530
  "$value": "56px"
1232
1531
  },
1532
+ "60": {
1533
+ "$value": "60px"
1534
+ },
1233
1535
  "72": {
1234
1536
  "$value": "72px"
1235
1537
  },
@@ -1289,13 +1591,55 @@
1289
1591
  "iconXl": {
1290
1592
  "$value": "{sizing.primitive.40}"
1291
1593
  }
1594
+ },
1595
+ "kanso": {
1596
+ "$description": "Kanso's control and row heights, icons and avatars. A touch target is never under 48px on phones, or 32px on the web.",
1597
+ "controlSm": {
1598
+ "$value": "{sizing.primitive.32}"
1599
+ },
1600
+ "controlMd": {
1601
+ "$value": "{sizing.primitive.40}"
1602
+ },
1603
+ "controlLg": {
1604
+ "$value": "{sizing.primitive.48}"
1605
+ },
1606
+ "controlXl": {
1607
+ "$value": "{sizing.primitive.56}"
1608
+ },
1609
+ "rowCompact": {
1610
+ "$value": "{sizing.primitive.44}"
1611
+ },
1612
+ "row": {
1613
+ "$value": "{sizing.primitive.60}"
1614
+ },
1615
+ "iconSm": {
1616
+ "$value": "{sizing.primitive.16}"
1617
+ },
1618
+ "iconMd": {
1619
+ "$value": "{sizing.primitive.20}"
1620
+ },
1621
+ "iconLg": {
1622
+ "$value": "{sizing.primitive.24}"
1623
+ },
1624
+ "iconXl": {
1625
+ "$value": "{sizing.primitive.40}"
1626
+ },
1627
+ "avatarSm": {
1628
+ "$value": "{sizing.primitive.28}"
1629
+ },
1630
+ "avatarMd": {
1631
+ "$value": "{sizing.primitive.36}"
1632
+ },
1633
+ "avatarLg": {
1634
+ "$value": "{sizing.primitive.56}"
1635
+ }
1292
1636
  }
1293
1637
  },
1294
1638
  "layout": {
1295
1639
  "$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.",
1640
+ "$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
1641
  "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.",
1642
+ "$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
1643
  "compact": {
1300
1644
  "$value": "0px"
1301
1645
  },
@@ -1315,7 +1659,7 @@
1315
1659
  },
1316
1660
  "elevation": {
1317
1661
  "$type": "number",
1318
- "$description": "Elevation levels, expressed in dp. Informational \u2014 see shadow.* below for the actual box-shadow each level renders as.",
1662
+ "$description": "Elevation levels, expressed in dp. Informational — see shadow.* below for the actual box-shadow each level renders as.",
1319
1663
  "level0": {
1320
1664
  "$value": 0
1321
1665
  },
@@ -1337,101 +1681,136 @@
1337
1681
  },
1338
1682
  "shadow": {
1339
1683
  "$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.",
1684
+ "$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
1685
  "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
- ]
1686
+ "$value": "{shadow.kanso.light.1}"
1358
1687
  },
1359
1688
  "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
- ]
1689
+ "$value": "{shadow.kanso.light.2}"
1376
1690
  },
1377
1691
  "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
- ]
1692
+ "$value": "{shadow.kanso.light.3}"
1394
1693
  },
1395
1694
  "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
- ]
1695
+ "$value": "{shadow.kanso.light.3}"
1412
1696
  },
1413
1697
  "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"
1698
+ "$value": "{shadow.kanso.light.3}"
1699
+ },
1700
+ "dark": {
1701
+ "1": {
1702
+ "$value": "{shadow.kanso.dark.1}"
1703
+ },
1704
+ "2": {
1705
+ "$value": "{shadow.kanso.dark.2}"
1706
+ },
1707
+ "3": {
1708
+ "$value": "{shadow.kanso.dark.3}"
1709
+ },
1710
+ "4": {
1711
+ "$value": "{shadow.kanso.dark.3}"
1712
+ },
1713
+ "5": {
1714
+ "$value": "{shadow.kanso.dark.3}"
1715
+ }
1716
+ },
1717
+ "kanso": {
1718
+ "light": {
1719
+ "1": {
1720
+ "$value": [
1721
+ {
1722
+ "color": "rgba(0, 0, 0, 0.06)",
1723
+ "offsetX": "0px",
1724
+ "offsetY": "1px",
1725
+ "blur": "2px",
1726
+ "spread": "0px"
1727
+ },
1728
+ {
1729
+ "color": "rgba(0, 0, 0, 0.04)",
1730
+ "offsetX": "0px",
1731
+ "offsetY": "2px",
1732
+ "blur": "8px",
1733
+ "spread": "0px"
1734
+ }
1735
+ ]
1736
+ },
1737
+ "2": {
1738
+ "$value": [
1739
+ {
1740
+ "color": "rgba(0, 0, 0, 0.08)",
1741
+ "offsetX": "0px",
1742
+ "offsetY": "2px",
1743
+ "blur": "6px",
1744
+ "spread": "0px"
1745
+ },
1746
+ {
1747
+ "color": "rgba(0, 0, 0, 0.1)",
1748
+ "offsetX": "0px",
1749
+ "offsetY": "8px",
1750
+ "blur": "20px",
1751
+ "spread": "0px"
1752
+ }
1753
+ ]
1754
+ },
1755
+ "3": {
1756
+ "$value": [
1757
+ {
1758
+ "color": "rgba(0, 0, 0, 0.12)",
1759
+ "offsetX": "0px",
1760
+ "offsetY": "8px",
1761
+ "blur": "24px",
1762
+ "spread": "0px"
1763
+ },
1764
+ {
1765
+ "color": "rgba(0, 0, 0, 0.14)",
1766
+ "offsetX": "0px",
1767
+ "offsetY": "24px",
1768
+ "blur": "56px",
1769
+ "spread": "0px"
1770
+ }
1771
+ ]
1772
+ }
1773
+ },
1774
+ "dark": {
1775
+ "1": {
1776
+ "$value": [
1777
+ {
1778
+ "color": "rgba(0, 0, 0, 0.5)",
1779
+ "offsetX": "0px",
1780
+ "offsetY": "1px",
1781
+ "blur": "2px",
1782
+ "spread": "0px"
1783
+ }
1784
+ ]
1785
+ },
1786
+ "2": {
1787
+ "$value": [
1788
+ {
1789
+ "color": "rgba(0, 0, 0, 0.6)",
1790
+ "offsetX": "0px",
1791
+ "offsetY": "4px",
1792
+ "blur": "16px",
1793
+ "spread": "0px"
1794
+ }
1795
+ ]
1796
+ },
1797
+ "3": {
1798
+ "$value": [
1799
+ {
1800
+ "color": "rgba(0, 0, 0, 0.7)",
1801
+ "offsetX": "0px",
1802
+ "offsetY": "12px",
1803
+ "blur": "40px",
1804
+ "spread": "0px"
1805
+ }
1806
+ ]
1428
1807
  }
1429
- ]
1808
+ }
1430
1809
  }
1431
1810
  },
1432
1811
  "stateLayerOpacity": {
1433
1812
  "$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.",
1813
+ "$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
1814
  "hover": {
1436
1815
  "$value": 0.08
1437
1816
  },
@@ -1449,6 +1828,24 @@
1449
1828
  },
1450
1829
  "disabledContent": {
1451
1830
  "$value": 0.38
1831
+ },
1832
+ "kanso": {
1833
+ "$description": "Kanso's state layers: the content colour of a control painted over it at this strength.",
1834
+ "hover": {
1835
+ "$value": 0.08
1836
+ },
1837
+ "focus": {
1838
+ "$value": 0.1
1839
+ },
1840
+ "pressed": {
1841
+ "$value": 0.12
1842
+ },
1843
+ "disabledContainer": {
1844
+ "$value": 0.12
1845
+ },
1846
+ "disabledContent": {
1847
+ "$value": 0.38
1848
+ }
1452
1849
  }
1453
1850
  },
1454
1851
  "motion": {
@@ -1486,7 +1883,7 @@
1486
1883
  },
1487
1884
  "easing": {
1488
1885
  "$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.",
1886
+ "$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
1887
  "emphasized": {
1491
1888
  "$value": [0.2, 0, 0, 1]
1492
1889
  },
@@ -1508,37 +1905,37 @@
1508
1905
  }
1509
1906
  },
1510
1907
  "$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.",
1908
+ "$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
1909
  "com.github.kanso-labs.kanso-ui": {
1513
1910
  "system": {
1514
1911
  "name": "kanso-ui",
1515
1912
  "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."
1913
+ "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; product.* holds each product's fill for the product roles. 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.",
1914
+ "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
1915
  },
1519
1916
  "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.",
1917
+ "$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
1918
  "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
1919
  "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.",
1920
+ "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
1921
  "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
1922
  "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.",
1923
+ "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
1924
  "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
1925
  },
1529
1926
  "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",
1927
+ "$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.",
1928
+ "tone": "plain, concrete, unadorned — kanso (簡素) is the elimination of clutter, and the writing follows the visual system in that",
1532
1929
  "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'",
1930
+ "ctaStyle": "imperative, verb first, naming the actual outcome — 'Save changes', not 'Click here to save' and not 'Submit'",
1534
1931
  "avoid": [
1535
1932
  "title case in UI labels",
1536
1933
  "exclamation marks",
1537
1934
  "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"
1935
+ "hedging — 'might', 'try to', 'please wait'",
1936
+ "blaming the reader in error text — say what happened and what to do next"
1540
1937
  ],
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."
1938
+ "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
1939
  }
1543
1940
  }
1544
1941
  }