@filipgutica/design-system 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,7 +12,8 @@ Filip's design language for any framework: the spec, the tokens, the component c
12
12
  | --- | --- |
13
13
  | `language/` | The payload: `DESIGN.md`, `components.md`, `decisions.md`, `visualizations.md`, `tokens.css`, the catalogue (`components.html`), example pages, visualization helpers, and the Graphite Indigo editor theme |
14
14
  | `tokens/core.json`, `tokens/themes/*.tokens.json` | The token values, the only place a value lives, and each token's role. Core holds every token; each theme file is a W3C Design Tokens file (2025.10) that holds only its name, a note, its hue pair, and optional fonts and neutrals |
15
- | `scripts/build-tokens.mjs` | The token generator: writes `language/tokens.css`, `dist/`, and the theme mapper's `core.js` and `.d.ts` files, typechecking its JSDoc |
15
+ | `scripts/build-tokens.mjs` | The token generator: writes `language/tokens.css`, `dist/`, and the theme mapper's `core.js`; generates and checks declarations from JSDoc for `theme-mapper/` and `open-vsx/` |
16
+ | `open-vsx/` | Experimental JSONC theme-file parser and Open VSX client, with resolved includes and unaltered colours and syntax rules |
16
17
  | `theme-mapper/` | The theme engine the token build shares, and the experimental theme mapper built on it |
17
18
  | `scripts/build-site.mjs` | The site build: writes `site/` for GitHub Pages from `components.html`, the tokens, and `package.json` |
18
19
  | `dist/` | Generated theme files, JSON, and JavaScript |
@@ -38,7 +39,8 @@ npm install @filipgutica/design-system
38
39
  | `@filipgutica/design-system` | `tokens` (resolved values per theme and mode) and `cssVar(name)`, with types. |
39
40
  | `@filipgutica/design-system/tokens.json` | The resolved values as JSON. |
40
41
  | `@filipgutica/design-system/language/*` | The spec, catalogue, and example pages. |
41
- | `@filipgutica/design-system/theme-mapper` | Experimental: the API may change until a component library uses it. `mapVsCodeTheme(theme)` maps a VS Code colour theme onto theme inputs for its one mode, by selecting the theme's own colours, and lists each check it still fails as a `theme` or `core` problem. `themeVariables(mapped)` returns the CSS custom properties to set inline on `<html>`, with `data-theme` forced to the theme's mode. Typed, with no framework and no runtime dependencies. |
42
+ | `@filipgutica/design-system/theme-mapper` | Experimental: the API may change until a component library uses it. `mapVsCodeTheme(theme)` maps a VS Code colour theme onto theme inputs for its one mode, by selecting the theme's own colours, keeps the syntax colours its `tokenColors` set, and lists each check it still fails as a `theme` or `core` problem. `themeVariables(mapped)` returns the CSS custom properties to set inline on `<html>`, with `data-theme` forced to the theme's mode. Typed, with no framework and no runtime dependencies. |
43
+ | `@filipgutica/design-system/open-vsx` | Experimental: the API may change in a minor release. `parseVsCodeTheme({ source, fileName })` parses a JSONC theme file and normalises its name. `createOpenVsxThemeService({ fetchImpl })` accepts an optional fetch implementation, searches Open VSX, and imports a verified package, resolving includes into `{ name, type?, colors, tokenColors? }` for `mapVsCodeTheme`. The parser throws `ThemeValidationError` with `malformed-json` or `invalid-shape`; the client returns success or error results. Uses native ZIP decompression and `jsonc-parser`; picker UI, persistence, and applying a theme belong to component libraries. |
42
44
 
43
45
  In a React app, import `tokens.css` and `fonts.css` once in the entry and write `var(--color-text)` in styles, or `cssVar('color-text')` in TypeScript. `tests/react-smoke/` is a working example.
44
46
 
package/dist/tokens.d.ts CHANGED
@@ -55,6 +55,13 @@ export type TokenName =
55
55
  | 'color-syntax-string'
56
56
  | 'color-syntax-number'
57
57
  | 'color-syntax-comment'
58
+ | 'color-syntax-function'
59
+ | 'color-syntax-type'
60
+ | 'color-syntax-variable'
61
+ | 'color-syntax-operator'
62
+ | 'color-syntax-punctuation'
63
+ | 'color-syntax-tag'
64
+ | 'color-syntax-attribute'
58
65
  | 'text-xs'
59
66
  | 'text-sm'
60
67
  | 'text-md'
package/dist/tokens.js CHANGED
@@ -57,6 +57,13 @@ export const tokens = {
57
57
  "color-syntax-string": "#346347",
58
58
  "color-syntax-number": "#86532e",
59
59
  "color-syntax-comment": "#626772",
60
+ "color-syntax-function": "#715b42",
61
+ "color-syntax-type": "#86532e",
62
+ "color-syntax-variable": "#101315",
63
+ "color-syntax-operator": "#50575e",
64
+ "color-syntax-punctuation": "#50575e",
65
+ "color-syntax-tag": "#715b42",
66
+ "color-syntax-attribute": "#86532e",
60
67
  "text-xs": "0.75rem",
61
68
  "text-sm": "0.8125rem",
62
69
  "text-md": "0.875rem",
@@ -164,6 +171,13 @@ export const tokens = {
164
171
  "color-syntax-string": "#a8bd9c",
165
172
  "color-syntax-number": "#d5b98c",
166
173
  "color-syntax-comment": "#a0a6b1",
174
+ "color-syntax-function": "#d8c2a5",
175
+ "color-syntax-type": "#d5b98c",
176
+ "color-syntax-variable": "#e6e9eb",
177
+ "color-syntax-operator": "#9aa3ab",
178
+ "color-syntax-punctuation": "#9aa3ab",
179
+ "color-syntax-tag": "#d8c2a5",
180
+ "color-syntax-attribute": "#d5b98c",
167
181
  "text-xs": "0.75rem",
168
182
  "text-sm": "0.8125rem",
169
183
  "text-md": "0.875rem",
@@ -273,6 +287,13 @@ export const tokens = {
273
287
  "color-syntax-string": "#346347",
274
288
  "color-syntax-number": "#86532e",
275
289
  "color-syntax-comment": "#626772",
290
+ "color-syntax-function": "#715b42",
291
+ "color-syntax-type": "#86532e",
292
+ "color-syntax-variable": "#4c4f69",
293
+ "color-syntax-operator": "#5c5f77",
294
+ "color-syntax-punctuation": "#5c5f77",
295
+ "color-syntax-tag": "#715b42",
296
+ "color-syntax-attribute": "#86532e",
276
297
  "text-xs": "0.75rem",
277
298
  "text-sm": "0.8125rem",
278
299
  "text-md": "0.875rem",
@@ -380,6 +401,13 @@ export const tokens = {
380
401
  "color-syntax-string": "#a8bd9c",
381
402
  "color-syntax-number": "#d5b98c",
382
403
  "color-syntax-comment": "#a0a6b1",
404
+ "color-syntax-function": "#d8c2a5",
405
+ "color-syntax-type": "#d5b98c",
406
+ "color-syntax-variable": "#cdd6f4",
407
+ "color-syntax-operator": "#a6adc8",
408
+ "color-syntax-punctuation": "#a6adc8",
409
+ "color-syntax-tag": "#d8c2a5",
410
+ "color-syntax-attribute": "#d5b98c",
383
411
  "text-xs": "0.75rem",
384
412
  "text-sm": "0.8125rem",
385
413
  "text-md": "0.875rem",
@@ -489,6 +517,13 @@ export const tokens = {
489
517
  "color-syntax-string": "#346347",
490
518
  "color-syntax-number": "#86532e",
491
519
  "color-syntax-comment": "#626772",
520
+ "color-syntax-function": "#715b42",
521
+ "color-syntax-type": "#86532e",
522
+ "color-syntax-variable": "#101315",
523
+ "color-syntax-operator": "#50575e",
524
+ "color-syntax-punctuation": "#50575e",
525
+ "color-syntax-tag": "#715b42",
526
+ "color-syntax-attribute": "#86532e",
492
527
  "text-xs": "0.75rem",
493
528
  "text-sm": "0.8125rem",
494
529
  "text-md": "0.875rem",
@@ -596,6 +631,13 @@ export const tokens = {
596
631
  "color-syntax-string": "#a8bd9c",
597
632
  "color-syntax-number": "#d5b98c",
598
633
  "color-syntax-comment": "#a0a6b1",
634
+ "color-syntax-function": "#d8c2a5",
635
+ "color-syntax-type": "#d5b98c",
636
+ "color-syntax-variable": "#e6e9eb",
637
+ "color-syntax-operator": "#9aa3ab",
638
+ "color-syntax-punctuation": "#9aa3ab",
639
+ "color-syntax-tag": "#d8c2a5",
640
+ "color-syntax-attribute": "#d5b98c",
599
641
  "text-xs": "0.75rem",
600
642
  "text-sm": "0.8125rem",
601
643
  "text-md": "0.875rem",
@@ -705,6 +747,13 @@ export const tokens = {
705
747
  "color-syntax-string": "#346347",
706
748
  "color-syntax-number": "#86532e",
707
749
  "color-syntax-comment": "#626772",
750
+ "color-syntax-function": "#715b42",
751
+ "color-syntax-type": "#86532e",
752
+ "color-syntax-variable": "#101315",
753
+ "color-syntax-operator": "#50575e",
754
+ "color-syntax-punctuation": "#50575e",
755
+ "color-syntax-tag": "#715b42",
756
+ "color-syntax-attribute": "#86532e",
708
757
  "text-xs": "0.75rem",
709
758
  "text-sm": "0.8125rem",
710
759
  "text-md": "0.875rem",
@@ -812,6 +861,13 @@ export const tokens = {
812
861
  "color-syntax-string": "#a8bd9c",
813
862
  "color-syntax-number": "#d5b98c",
814
863
  "color-syntax-comment": "#a0a6b1",
864
+ "color-syntax-function": "#d8c2a5",
865
+ "color-syntax-type": "#d5b98c",
866
+ "color-syntax-variable": "#e6e9eb",
867
+ "color-syntax-operator": "#9aa3ab",
868
+ "color-syntax-punctuation": "#9aa3ab",
869
+ "color-syntax-tag": "#d8c2a5",
870
+ "color-syntax-attribute": "#d5b98c",
815
871
  "text-xs": "0.75rem",
816
872
  "text-sm": "0.8125rem",
817
873
  "text-md": "0.875rem",
@@ -921,6 +977,13 @@ export const tokens = {
921
977
  "color-syntax-string": "#346347",
922
978
  "color-syntax-number": "#86532e",
923
979
  "color-syntax-comment": "#626772",
980
+ "color-syntax-function": "#715b42",
981
+ "color-syntax-type": "#86532e",
982
+ "color-syntax-variable": "#1f2328",
983
+ "color-syntax-operator": "#59636e",
984
+ "color-syntax-punctuation": "#59636e",
985
+ "color-syntax-tag": "#715b42",
986
+ "color-syntax-attribute": "#86532e",
924
987
  "text-xs": "0.75rem",
925
988
  "text-sm": "0.8125rem",
926
989
  "text-md": "0.875rem",
@@ -1028,6 +1091,13 @@ export const tokens = {
1028
1091
  "color-syntax-string": "#a8bd9c",
1029
1092
  "color-syntax-number": "#d5b98c",
1030
1093
  "color-syntax-comment": "#a0a6b1",
1094
+ "color-syntax-function": "#d8c2a5",
1095
+ "color-syntax-type": "#d5b98c",
1096
+ "color-syntax-variable": "#f0f6fc",
1097
+ "color-syntax-operator": "#9198a1",
1098
+ "color-syntax-punctuation": "#9198a1",
1099
+ "color-syntax-tag": "#d8c2a5",
1100
+ "color-syntax-attribute": "#d5b98c",
1031
1101
  "text-xs": "0.75rem",
1032
1102
  "text-sm": "0.8125rem",
1033
1103
  "text-md": "0.875rem",
@@ -1137,6 +1207,13 @@ export const tokens = {
1137
1207
  "color-syntax-string": "#346347",
1138
1208
  "color-syntax-number": "#86532e",
1139
1209
  "color-syntax-comment": "#626772",
1210
+ "color-syntax-function": "#715b42",
1211
+ "color-syntax-type": "#86532e",
1212
+ "color-syntax-variable": "#101315",
1213
+ "color-syntax-operator": "#50575e",
1214
+ "color-syntax-punctuation": "#50575e",
1215
+ "color-syntax-tag": "#715b42",
1216
+ "color-syntax-attribute": "#86532e",
1140
1217
  "text-xs": "0.75rem",
1141
1218
  "text-sm": "0.8125rem",
1142
1219
  "text-md": "0.875rem",
@@ -1244,6 +1321,13 @@ export const tokens = {
1244
1321
  "color-syntax-string": "#a8bd9c",
1245
1322
  "color-syntax-number": "#d5b98c",
1246
1323
  "color-syntax-comment": "#a0a6b1",
1324
+ "color-syntax-function": "#d8c2a5",
1325
+ "color-syntax-type": "#d5b98c",
1326
+ "color-syntax-variable": "#e6e9eb",
1327
+ "color-syntax-operator": "#9aa3ab",
1328
+ "color-syntax-punctuation": "#9aa3ab",
1329
+ "color-syntax-tag": "#d8c2a5",
1330
+ "color-syntax-attribute": "#d5b98c",
1247
1331
  "text-xs": "0.75rem",
1248
1332
  "text-sm": "0.8125rem",
1249
1333
  "text-md": "0.875rem",
@@ -1353,6 +1437,13 @@ export const tokens = {
1353
1437
  "color-syntax-string": "#346347",
1354
1438
  "color-syntax-number": "#86532e",
1355
1439
  "color-syntax-comment": "#626772",
1440
+ "color-syntax-function": "#715b42",
1441
+ "color-syntax-type": "#86532e",
1442
+ "color-syntax-variable": "#101315",
1443
+ "color-syntax-operator": "#50575e",
1444
+ "color-syntax-punctuation": "#50575e",
1445
+ "color-syntax-tag": "#715b42",
1446
+ "color-syntax-attribute": "#86532e",
1356
1447
  "text-xs": "0.75rem",
1357
1448
  "text-sm": "0.8125rem",
1358
1449
  "text-md": "0.875rem",
@@ -1460,6 +1551,13 @@ export const tokens = {
1460
1551
  "color-syntax-string": "#a8bd9c",
1461
1552
  "color-syntax-number": "#d5b98c",
1462
1553
  "color-syntax-comment": "#a0a6b1",
1554
+ "color-syntax-function": "#d8c2a5",
1555
+ "color-syntax-type": "#d5b98c",
1556
+ "color-syntax-variable": "#e6e9eb",
1557
+ "color-syntax-operator": "#9aa3ab",
1558
+ "color-syntax-punctuation": "#9aa3ab",
1559
+ "color-syntax-tag": "#d8c2a5",
1560
+ "color-syntax-attribute": "#d5b98c",
1463
1561
  "text-xs": "0.75rem",
1464
1562
  "text-sm": "0.8125rem",
1465
1563
  "text-md": "0.875rem",
@@ -1569,6 +1667,13 @@ export const tokens = {
1569
1667
  "color-syntax-string": "#346347",
1570
1668
  "color-syntax-number": "#86532e",
1571
1669
  "color-syntax-comment": "#626772",
1670
+ "color-syntax-function": "#715b42",
1671
+ "color-syntax-type": "#86532e",
1672
+ "color-syntax-variable": "#101315",
1673
+ "color-syntax-operator": "#50575e",
1674
+ "color-syntax-punctuation": "#50575e",
1675
+ "color-syntax-tag": "#715b42",
1676
+ "color-syntax-attribute": "#86532e",
1572
1677
  "text-xs": "0.75rem",
1573
1678
  "text-sm": "0.8125rem",
1574
1679
  "text-md": "0.875rem",
@@ -1676,6 +1781,13 @@ export const tokens = {
1676
1781
  "color-syntax-string": "#a8bd9c",
1677
1782
  "color-syntax-number": "#d5b98c",
1678
1783
  "color-syntax-comment": "#a0a6b1",
1784
+ "color-syntax-function": "#d8c2a5",
1785
+ "color-syntax-type": "#d5b98c",
1786
+ "color-syntax-variable": "#e6e9eb",
1787
+ "color-syntax-operator": "#9aa3ab",
1788
+ "color-syntax-punctuation": "#9aa3ab",
1789
+ "color-syntax-tag": "#d8c2a5",
1790
+ "color-syntax-attribute": "#d5b98c",
1679
1791
  "text-xs": "0.75rem",
1680
1792
  "text-sm": "0.8125rem",
1681
1793
  "text-md": "0.875rem",
package/dist/tokens.json CHANGED
@@ -56,6 +56,13 @@
56
56
  "color-syntax-string": "#346347",
57
57
  "color-syntax-number": "#86532e",
58
58
  "color-syntax-comment": "#626772",
59
+ "color-syntax-function": "#715b42",
60
+ "color-syntax-type": "#86532e",
61
+ "color-syntax-variable": "#101315",
62
+ "color-syntax-operator": "#50575e",
63
+ "color-syntax-punctuation": "#50575e",
64
+ "color-syntax-tag": "#715b42",
65
+ "color-syntax-attribute": "#86532e",
59
66
  "text-xs": "0.75rem",
60
67
  "text-sm": "0.8125rem",
61
68
  "text-md": "0.875rem",
@@ -163,6 +170,13 @@
163
170
  "color-syntax-string": "#a8bd9c",
164
171
  "color-syntax-number": "#d5b98c",
165
172
  "color-syntax-comment": "#a0a6b1",
173
+ "color-syntax-function": "#d8c2a5",
174
+ "color-syntax-type": "#d5b98c",
175
+ "color-syntax-variable": "#e6e9eb",
176
+ "color-syntax-operator": "#9aa3ab",
177
+ "color-syntax-punctuation": "#9aa3ab",
178
+ "color-syntax-tag": "#d8c2a5",
179
+ "color-syntax-attribute": "#d5b98c",
166
180
  "text-xs": "0.75rem",
167
181
  "text-sm": "0.8125rem",
168
182
  "text-md": "0.875rem",
@@ -272,6 +286,13 @@
272
286
  "color-syntax-string": "#346347",
273
287
  "color-syntax-number": "#86532e",
274
288
  "color-syntax-comment": "#626772",
289
+ "color-syntax-function": "#715b42",
290
+ "color-syntax-type": "#86532e",
291
+ "color-syntax-variable": "#4c4f69",
292
+ "color-syntax-operator": "#5c5f77",
293
+ "color-syntax-punctuation": "#5c5f77",
294
+ "color-syntax-tag": "#715b42",
295
+ "color-syntax-attribute": "#86532e",
275
296
  "text-xs": "0.75rem",
276
297
  "text-sm": "0.8125rem",
277
298
  "text-md": "0.875rem",
@@ -379,6 +400,13 @@
379
400
  "color-syntax-string": "#a8bd9c",
380
401
  "color-syntax-number": "#d5b98c",
381
402
  "color-syntax-comment": "#a0a6b1",
403
+ "color-syntax-function": "#d8c2a5",
404
+ "color-syntax-type": "#d5b98c",
405
+ "color-syntax-variable": "#cdd6f4",
406
+ "color-syntax-operator": "#a6adc8",
407
+ "color-syntax-punctuation": "#a6adc8",
408
+ "color-syntax-tag": "#d8c2a5",
409
+ "color-syntax-attribute": "#d5b98c",
382
410
  "text-xs": "0.75rem",
383
411
  "text-sm": "0.8125rem",
384
412
  "text-md": "0.875rem",
@@ -488,6 +516,13 @@
488
516
  "color-syntax-string": "#346347",
489
517
  "color-syntax-number": "#86532e",
490
518
  "color-syntax-comment": "#626772",
519
+ "color-syntax-function": "#715b42",
520
+ "color-syntax-type": "#86532e",
521
+ "color-syntax-variable": "#101315",
522
+ "color-syntax-operator": "#50575e",
523
+ "color-syntax-punctuation": "#50575e",
524
+ "color-syntax-tag": "#715b42",
525
+ "color-syntax-attribute": "#86532e",
491
526
  "text-xs": "0.75rem",
492
527
  "text-sm": "0.8125rem",
493
528
  "text-md": "0.875rem",
@@ -595,6 +630,13 @@
595
630
  "color-syntax-string": "#a8bd9c",
596
631
  "color-syntax-number": "#d5b98c",
597
632
  "color-syntax-comment": "#a0a6b1",
633
+ "color-syntax-function": "#d8c2a5",
634
+ "color-syntax-type": "#d5b98c",
635
+ "color-syntax-variable": "#e6e9eb",
636
+ "color-syntax-operator": "#9aa3ab",
637
+ "color-syntax-punctuation": "#9aa3ab",
638
+ "color-syntax-tag": "#d8c2a5",
639
+ "color-syntax-attribute": "#d5b98c",
598
640
  "text-xs": "0.75rem",
599
641
  "text-sm": "0.8125rem",
600
642
  "text-md": "0.875rem",
@@ -704,6 +746,13 @@
704
746
  "color-syntax-string": "#346347",
705
747
  "color-syntax-number": "#86532e",
706
748
  "color-syntax-comment": "#626772",
749
+ "color-syntax-function": "#715b42",
750
+ "color-syntax-type": "#86532e",
751
+ "color-syntax-variable": "#101315",
752
+ "color-syntax-operator": "#50575e",
753
+ "color-syntax-punctuation": "#50575e",
754
+ "color-syntax-tag": "#715b42",
755
+ "color-syntax-attribute": "#86532e",
707
756
  "text-xs": "0.75rem",
708
757
  "text-sm": "0.8125rem",
709
758
  "text-md": "0.875rem",
@@ -811,6 +860,13 @@
811
860
  "color-syntax-string": "#a8bd9c",
812
861
  "color-syntax-number": "#d5b98c",
813
862
  "color-syntax-comment": "#a0a6b1",
863
+ "color-syntax-function": "#d8c2a5",
864
+ "color-syntax-type": "#d5b98c",
865
+ "color-syntax-variable": "#e6e9eb",
866
+ "color-syntax-operator": "#9aa3ab",
867
+ "color-syntax-punctuation": "#9aa3ab",
868
+ "color-syntax-tag": "#d8c2a5",
869
+ "color-syntax-attribute": "#d5b98c",
814
870
  "text-xs": "0.75rem",
815
871
  "text-sm": "0.8125rem",
816
872
  "text-md": "0.875rem",
@@ -920,6 +976,13 @@
920
976
  "color-syntax-string": "#346347",
921
977
  "color-syntax-number": "#86532e",
922
978
  "color-syntax-comment": "#626772",
979
+ "color-syntax-function": "#715b42",
980
+ "color-syntax-type": "#86532e",
981
+ "color-syntax-variable": "#1f2328",
982
+ "color-syntax-operator": "#59636e",
983
+ "color-syntax-punctuation": "#59636e",
984
+ "color-syntax-tag": "#715b42",
985
+ "color-syntax-attribute": "#86532e",
923
986
  "text-xs": "0.75rem",
924
987
  "text-sm": "0.8125rem",
925
988
  "text-md": "0.875rem",
@@ -1027,6 +1090,13 @@
1027
1090
  "color-syntax-string": "#a8bd9c",
1028
1091
  "color-syntax-number": "#d5b98c",
1029
1092
  "color-syntax-comment": "#a0a6b1",
1093
+ "color-syntax-function": "#d8c2a5",
1094
+ "color-syntax-type": "#d5b98c",
1095
+ "color-syntax-variable": "#f0f6fc",
1096
+ "color-syntax-operator": "#9198a1",
1097
+ "color-syntax-punctuation": "#9198a1",
1098
+ "color-syntax-tag": "#d8c2a5",
1099
+ "color-syntax-attribute": "#d5b98c",
1030
1100
  "text-xs": "0.75rem",
1031
1101
  "text-sm": "0.8125rem",
1032
1102
  "text-md": "0.875rem",
@@ -1136,6 +1206,13 @@
1136
1206
  "color-syntax-string": "#346347",
1137
1207
  "color-syntax-number": "#86532e",
1138
1208
  "color-syntax-comment": "#626772",
1209
+ "color-syntax-function": "#715b42",
1210
+ "color-syntax-type": "#86532e",
1211
+ "color-syntax-variable": "#101315",
1212
+ "color-syntax-operator": "#50575e",
1213
+ "color-syntax-punctuation": "#50575e",
1214
+ "color-syntax-tag": "#715b42",
1215
+ "color-syntax-attribute": "#86532e",
1139
1216
  "text-xs": "0.75rem",
1140
1217
  "text-sm": "0.8125rem",
1141
1218
  "text-md": "0.875rem",
@@ -1243,6 +1320,13 @@
1243
1320
  "color-syntax-string": "#a8bd9c",
1244
1321
  "color-syntax-number": "#d5b98c",
1245
1322
  "color-syntax-comment": "#a0a6b1",
1323
+ "color-syntax-function": "#d8c2a5",
1324
+ "color-syntax-type": "#d5b98c",
1325
+ "color-syntax-variable": "#e6e9eb",
1326
+ "color-syntax-operator": "#9aa3ab",
1327
+ "color-syntax-punctuation": "#9aa3ab",
1328
+ "color-syntax-tag": "#d8c2a5",
1329
+ "color-syntax-attribute": "#d5b98c",
1246
1330
  "text-xs": "0.75rem",
1247
1331
  "text-sm": "0.8125rem",
1248
1332
  "text-md": "0.875rem",
@@ -1352,6 +1436,13 @@
1352
1436
  "color-syntax-string": "#346347",
1353
1437
  "color-syntax-number": "#86532e",
1354
1438
  "color-syntax-comment": "#626772",
1439
+ "color-syntax-function": "#715b42",
1440
+ "color-syntax-type": "#86532e",
1441
+ "color-syntax-variable": "#101315",
1442
+ "color-syntax-operator": "#50575e",
1443
+ "color-syntax-punctuation": "#50575e",
1444
+ "color-syntax-tag": "#715b42",
1445
+ "color-syntax-attribute": "#86532e",
1355
1446
  "text-xs": "0.75rem",
1356
1447
  "text-sm": "0.8125rem",
1357
1448
  "text-md": "0.875rem",
@@ -1459,6 +1550,13 @@
1459
1550
  "color-syntax-string": "#a8bd9c",
1460
1551
  "color-syntax-number": "#d5b98c",
1461
1552
  "color-syntax-comment": "#a0a6b1",
1553
+ "color-syntax-function": "#d8c2a5",
1554
+ "color-syntax-type": "#d5b98c",
1555
+ "color-syntax-variable": "#e6e9eb",
1556
+ "color-syntax-operator": "#9aa3ab",
1557
+ "color-syntax-punctuation": "#9aa3ab",
1558
+ "color-syntax-tag": "#d8c2a5",
1559
+ "color-syntax-attribute": "#d5b98c",
1462
1560
  "text-xs": "0.75rem",
1463
1561
  "text-sm": "0.8125rem",
1464
1562
  "text-md": "0.875rem",
@@ -1568,6 +1666,13 @@
1568
1666
  "color-syntax-string": "#346347",
1569
1667
  "color-syntax-number": "#86532e",
1570
1668
  "color-syntax-comment": "#626772",
1669
+ "color-syntax-function": "#715b42",
1670
+ "color-syntax-type": "#86532e",
1671
+ "color-syntax-variable": "#101315",
1672
+ "color-syntax-operator": "#50575e",
1673
+ "color-syntax-punctuation": "#50575e",
1674
+ "color-syntax-tag": "#715b42",
1675
+ "color-syntax-attribute": "#86532e",
1571
1676
  "text-xs": "0.75rem",
1572
1677
  "text-sm": "0.8125rem",
1573
1678
  "text-md": "0.875rem",
@@ -1675,6 +1780,13 @@
1675
1780
  "color-syntax-string": "#a8bd9c",
1676
1781
  "color-syntax-number": "#d5b98c",
1677
1782
  "color-syntax-comment": "#a0a6b1",
1783
+ "color-syntax-function": "#d8c2a5",
1784
+ "color-syntax-type": "#d5b98c",
1785
+ "color-syntax-variable": "#e6e9eb",
1786
+ "color-syntax-operator": "#9aa3ab",
1787
+ "color-syntax-punctuation": "#9aa3ab",
1788
+ "color-syntax-tag": "#d8c2a5",
1789
+ "color-syntax-attribute": "#d5b98c",
1678
1790
  "text-xs": "0.75rem",
1679
1791
  "text-sm": "0.8125rem",
1680
1792
  "text-md": "0.875rem",
@@ -498,6 +498,7 @@
498
498
  .code .line > span { white-space: pre; }
499
499
  .code .ln { min-width: 2.5em; padding-right: 1em; flex: none; text-align: right; color: var(--color-muted); user-select: none; }
500
500
  .code .k { color: var(--color-syntax-keyword); } .code .s { color: var(--color-syntax-string); } .code .n { color: var(--color-syntax-number); } .code .c { color: var(--color-syntax-comment); }
501
+ .code .f { color: var(--color-syntax-function); } .code .t { color: var(--color-syntax-type); } .code .v { color: var(--color-syntax-variable); } .code .o { color: var(--color-syntax-operator); } .code .p { color: var(--color-syntax-punctuation); } .code .g { color: var(--color-syntax-tag); } .code .a { color: var(--color-syntax-attribute); }
501
502
  /* The panel fills the row beside Copy, so it sits --space-1 from the frame and from Copy on every side, and centres its line. */
502
503
  .code.compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-1); }
503
504
  .code.compact pre { align-content: center; padding: var(--space-2) var(--space-3); }
@@ -1417,11 +1418,11 @@
1417
1418
  <p class="purpose">Source code with an optional header and Copy, and a live example above it.</p>
1418
1419
  <dl class="guidance"><dt>Do</dt><dd>Use a code block for source with no live result. When the reader should see the result too, use the variant with a live example.</dd><dt>Don’t</dt><dd>The same language label on every block of a page. Put useful setup context above the block instead.</dd></dl>
1419
1420
  <div class="row"><h4>Source well</h4><div class="states">
1420
- <div class="state wide"><div class="code"><div class="code-head"><b>monitor.ts</b><span class="lang">TypeScript</span><button class="quiet-action copy" type="button" data-copy="code-src"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg>Copy</button></div><pre tabindex="0" role="region" aria-label="monitor.ts"><code id="code-src"><span class="line"><span class="ln">1</span><span><span class="k">const</span> threshold = <span class="n">300</span> <span class="c">// ms at p95</span></span></span><span class="line"><span class="ln">2</span><span><span class="k">export const</span> name = <span class="s">'API p95 latency'</span></span></span></code></pre></div><span class="caption">Header, line numbers, and Copy, live</span></div>
1421
+ <div class="state wide"><div class="code"><div class="code-head"><b>monitor.ts</b><span class="lang">TypeScript</span><button class="quiet-action copy" type="button" data-copy="code-src"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg>Copy</button></div><pre tabindex="0" role="region" aria-label="monitor.ts"><code id="code-src"><span class="line"><span class="ln">1</span><span><span class="k">const</span> <span class="v">threshold</span> <span class="o">=</span> <span class="n">300</span> <span class="c">// ms at p95</span></span></span><span class="line"><span class="ln">2</span><span><span class="k">export const</span> <span class="v">name</span> <span class="o">=</span> <span class="s">'API p95 latency'</span></span></span><span class="line"><span class="ln">3</span><span><span class="k">export function</span> <span class="f">breached</span><span class="p">(</span><span class="v">p95</span><span class="p">:</span> <span class="t">number</span><span class="p">)</span> <span class="p">{</span> <span class="k">return</span> <span class="v">p95</span> <span class="o">&gt;</span> <span class="v">threshold</span> <span class="p">}</span></span></span></code></pre></div><span class="caption">Header, line numbers, and Copy, live</span></div>
1421
1422
  <div class="state wide" inert><div class="code compact"><pre><code><span class="line"><span>import { threshold } from './monitor'</span></span></code></pre><button class="quiet-action copy is-focus" type="button" aria-label="Copy import"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg></button></div><span class="caption">Compact, with focus visible on Copy</span></div>
1422
1423
  </div></div>
1423
1424
  <div class="row"><h4>With a live example</h4><div class="states">
1424
- <div class="state wide"><figure class="example"><div class="example-stage"><div style="display:flex;gap:var(--space-2);flex-wrap:wrap"><button class="btn secondary" type="button">Cancel</button><button class="btn" type="button">Save monitor</button></div></div><div class="code"><button class="quiet-action copy" type="button" data-copy="example-src" aria-label="Copy code" title="Copy code"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg></button><pre tabindex="0" role="region" aria-label="Example source"><code id="example-src"><span class="line"><span>&lt;<span class="k">button</span> class=<span class="s">"btn secondary"</span> type=<span class="s">"button"</span>&gt;Cancel&lt;/<span class="k">button</span>&gt;</span></span><span class="line"><span>&lt;<span class="k">button</span> class=<span class="s">"btn"</span> type=<span class="s">"button"</span>&gt;Save monitor&lt;/<span class="k">button</span>&gt;</span></span></code></pre></div></figure><span class="caption">Live: the stage on the page background, the source below one hairline, and Copy in its corner</span></div>
1425
+ <div class="state wide"><figure class="example"><div class="example-stage"><div style="display:flex;gap:var(--space-2);flex-wrap:wrap"><button class="btn secondary" type="button">Cancel</button><button class="btn" type="button">Save monitor</button></div></div><div class="code"><button class="quiet-action copy" type="button" data-copy="example-src" aria-label="Copy code" title="Copy code"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg></button><pre tabindex="0" role="region" aria-label="Example source"><code id="example-src"><span class="line"><span>&lt;<span class="g">button</span> <span class="a">class</span>=<span class="s">"btn secondary"</span> <span class="a">type</span>=<span class="s">"button"</span>&gt;Cancel&lt;/<span class="g">button</span>&gt;</span></span><span class="line"><span>&lt;<span class="g">button</span> <span class="a">class</span>=<span class="s">"btn"</span> <span class="a">type</span>=<span class="s">"button"</span>&gt;Save monitor&lt;/<span class="g">button</span>&gt;</span></span></code></pre></div></figure><span class="caption">Live: the stage on the page background, the source below one hairline, and Copy in its corner</span></div>
1425
1426
  </div></div>
1426
1427
  <p class="sr-only" role="status" id="copy-status"></p>
1427
1428
  </section>
@@ -22,7 +22,8 @@ Each entry records a choice this language made, the options it rejected, and why
22
22
  | Segmented label | Core | The selected label reads at 4.5:1 on its thumb, and an icon at 3:1 (`--color-segmented-current-text`): `--color-accent`, or the first of `--color-text`, black, and white that reads. | Accent at 3:1 for labels too, which let some hues' text fall below 4.5:1. | label contrast: `tests/catalogue/catalogue.spec.ts` "contrast: every selected segmented label on its thumb reaches 4.5:1"; icon at 3:1: no test yet |
23
23
  | Phone drawer trigger | Core | A page-level contents drawer opens from a soft secondary button with a three-line menu glyph and a label. The no-JavaScript fallback keeps a chevron, because it opens in place. The site shell uses the same trigger below its header (see Phone header). | A down chevron promised a dropdown, but the trigger opens a side drawer. | No test yet |
24
24
  | Shape follows role | Core | A pill acts, or sets a value in place with every option shown, on one line (`--radius-control`); a select, which opens a list, is a one-line non-action control. Small state marks are pills (`--radius-pill`). Places and picked rows are 6px (`--radius-inline`). Typed fields, controls whose label wraps, and one-line controls that are not actions are 10px (`--radius-field`). Containers are 16px (`--radius-panel`). A pill never holds text that can wrap, and nested rectangles are concentric. The token names predate the rule: they say inline, control, and field, where the uses are rows, pills, and typed fields. The names stay, because a rename breaks every page that uses them. | One shape for every control. All pills put wrapping labels in pills, which the toggle card, fields, and the raised pill row already rejected; all rectangles lose the shape that marks an action. A list of components for each token with no reason: a new component had no rule to pick from, and a reader took a 6px row beside a pill for an error. | rendered corners by role: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one", "the DESIGN.md shape table names each role token with its value"; slider track and thumb, and select picker: `tests/design-foundations.test.mjs` "the slider track, slider thumb, and select picker take their role’s corners"; no literal radius: `tests/design-foundations.test.mjs` "no page or the report stylesheet writes a literal corner radius" |
25
- | Themes | Core | A theme sets only its inputs: a hue for light and for dark, and optionally its two fonts and its neutrals (page, surfaces, hover, edges, and text, as a whole set for both modes). Shape, spacing, states, and status colours stay core, so actions are pills in every theme. Neutrals are an input so an open palette keeps its own surfaces: Catppuccin and GitHub's Primer ship as themes, each mapped by its palette's own roles and unaltered. Where a hue cannot carry the text on a selected fill at 4.5:1, the build takes the first of the theme's text colour, black, and white that can, as the token roles say. Every theme passes the contrast guards in both modes. Theme files use the W3C Design Tokens format (2025.10) and ship beside the CSS, so design-token tools can read and write them: one file per theme, with a `light` and a `dark` group of sRGB colour tokens. Tools read the two groups as separate tokens (`light.color-bg`, `dark.color-bg`), not as one token with two modes; the Design Tokens Resolver module expresses modes, and it can replace the groups once tools support it. Graphite Indigo is the default. The family sites' own hues ship as themes named for their colour, so a site can load its theme file in place of an inline hue pair: Lagoon (annoterm), Copper (devps), Iris (filip-stack), Lapis (Workbench), and Fern (wtree). Each theme's note names its site. Where a site's light hue falls just short of 4.5:1 as selected-row text, its theme takes the smallest OKLCH lightness step that passes and keeps the hue and chroma, so the selection keeps the hue; the site can adopt the theme's value. A third-party palette is never altered. The theme mapper (`./theme-mapper`, experimental) turns a VS Code colour theme into these inputs for its one mode by selection: each input takes the first of its keys whose colour passes that input's contrast gate, and no colour is changed. What still fails is reported, as a `theme` problem in the theme's colours or a `core` problem in a core link, status, syntax, or command-plate colour on its fills. The checks are data: every ink on every fill the catalogue draws, hover and pressed states included, so a state axe never renders is still measured. Syntax colours stay core: comment colours in 6 of 8 popular dark themes measure 2.3–4.0:1 on their own editor background, so syntax as an input would flag nearly every import. The build and the mapper share one engine for applying a theme, resolving it, and checking it. | The action shape as a theme input (a pill, the 10px field corner, or the 6px row corner): each rounded choice gives actions another role's shape, a select's at 10px and a tab's or row's at 6px, so shape stops telling an action from a field. Radix Themes and shadcn scale every corner together, and Primer, Carbon, Polaris, and Spectrum keep shape core; revisit it as a whole radius scale when a theme needs one. Linear and OpenAI themes: neither publishes an open palette, and their colours are brand identity. Pine and Mauve, the earlier invented themes: no product used them, and they read as unrelated to the family's sites. A grey-blue quiet theme (Slate): it sat beside the muted text and the info blue, so its selection read as metadata and its primary button looked disabled. Adjusting an imported colour until it passes: the result is no longer the theme, and nothing tells the reader it changed. Syntax colours as a theme input: most imports would fail on their comment colours alone. | Per-theme contrast guards (`tests/design-foundations.test.mjs`), the catalogue's rendered recipes in every theme, the Themes page tests, and the theme mapper's tests (`tests/theme-mapper.test.mjs`, the React smoke test with the mode locked opposite the system's, and the catalogue test that every axe contrast failure is a reported problem) |
25
+ | Themes | Core | A theme sets only its inputs: a hue for light and for dark, and optionally its two fonts, its neutrals (page, surfaces, hover, edges, and text, as a whole set for both modes), and, for a theme imported at runtime through the mapper, any of its 11 syntax colours (`--color-syntax-*`); theme files do not take syntax colours. Shape, spacing, states, and status colours stay core, so actions are pills in every theme. Neutrals are an input so an open palette keeps its own surfaces: Catppuccin and GitHub's Primer ship as themes, each mapped by its palette's own roles and unaltered. Where a hue cannot carry the text on a selected fill at 4.5:1, the build takes the first of the theme's text colour, black, and white that can, as the token roles say. Every theme passes the contrast guards in both modes. Theme files use the W3C Design Tokens format (2025.10) and ship beside the CSS, so design-token tools can read and write them: one file per theme, with a `light` and a `dark` group of sRGB colour tokens. Tools read the two groups as separate tokens (`light.color-bg`, `dark.color-bg`), not as one token with two modes; the Design Tokens Resolver module expresses modes, and it can replace the groups once tools support it. Graphite Indigo is the default. The family sites' own hues ship as themes named for their colour, so a site can load its theme file in place of an inline hue pair: Lagoon (annoterm), Copper (devps), Iris (filip-stack), Lapis (Workbench), and Fern (wtree). Each theme's note names its site. Where a site's light hue falls just short of 4.5:1 as selected-row text, its theme takes the smallest OKLCH lightness step that passes and keeps the hue and chroma, so the selection keeps the hue; the site can adopt the theme's value. A third-party palette is never altered. The theme mapper (`./theme-mapper`, experimental) turns a VS Code colour theme into these inputs for its one mode by selection: each input takes the first of its keys whose colour passes that input's contrast gate, and no colour is changed. What still fails is reported, as a `theme` problem in the theme's colours or a `core` problem in a core link, status, syntax, or command-plate colour on its fills. The checks are data: every ink on every fill the catalogue draws, hover and pressed states included, so a state axe never renders is still measured. The mapper keeps an imported theme's syntax colours too, from its `tokenColors`: each role takes the rule nearest its scope family. A role the theme leaves out takes its core colour; keyword, string, number, and comment have core colours, and the other 7 follow one of them or the code text. The owner chose this on 2026-11-14 to support open themes as their authors made them: the person who installs a theme owns its contrast, so a failing syntax colour is reported as a `theme` problem, never blocked or replaced. Most imports report one: comments in 5 of 8 popular themes measure 2.4–3.7:1 on their own background. The checks stay at 4.5:1, the WCAG AA minimum for text of this size; 3:1 would clear only 2 of those 5. The build and the mapper share one engine for applying a theme, resolving it, and checking it. | The action shape as a theme input (a pill, the 10px field corner, or the 6px row corner): each rounded choice gives actions another role's shape, a select's at 10px and a tab's or row's at 6px, so shape stops telling an action from a field. Radix Themes and shadcn scale every corner together, and Primer, Carbon, Polaris, and Spectrum keep shape core; revisit it as a whole radius scale when a theme needs one. Linear and OpenAI themes: neither publishes an open palette, and their colours are brand identity. Pine and Mauve, the earlier invented themes: no product used them, and they read as unrelated to the family's sites. A grey-blue quiet theme (Slate): it sat beside the muted text and the info blue, so its selection read as metadata and its primary button looked disabled. Adjusting an imported colour until it passes: the result is no longer the theme, and nothing tells the reader it changed. Syntax colours kept core for imports: an import lost its author's code colours to stay clear of reports. A looser bar for syntax, such as 3:1: it is below AA for code text, and it clears few imports. | Per-theme contrast guards (`tests/design-foundations.test.mjs`), the catalogue's rendered recipes in every theme, the Themes page tests, and the theme mapper's tests (`tests/theme-mapper.test.mjs`, the React smoke test with the mode locked opposite the system's, and the catalogue test that every axe contrast failure is a reported problem) |
26
+ | Open VSX theme imports | Core | `./open-vsx` is an experimental, framework-agnostic export for JSONC theme-file parsing and the Open VSX client. It returns VS Code theme data for `./theme-mapper`, with colours unchanged. Includes overlay colours child last and concatenate syntax rules base first, so later rules win. The client keeps the source client’s response, archive, path, checksum, include-depth, and timeout limits. The client reads ZIP headers and caps output from native `DecompressionStream('deflate-raw')`. `jsonc-parser` 3.3.1 reads comments and trailing commas and reports parse locations. It is the only runtime dependency and is pinned, used only by this export; `./theme-mapper` keeps no runtime dependencies. Component libraries own picker UI, persistence, and applying a theme. | Keeping parsing and fetching in a component library: each framework would need its own implementation and safety checks. JSZip at runtime: its synchronous inflation cannot enforce the output cap within a chunk. Handwritten JSONC parsing: more code to maintain for an established format. Making the mapper depend on the client: mapping an already parsed theme would load unused dependencies. | `tests/open-vsx.test.mjs`: offline client imports, JSONC validation, name normalisation, include merging and safety limits; generated declarations checked by `pnpm tokens:check`; package exports checked by `pnpm verify` |
26
27
  | Navigation row corners | Core | Navigation rows, header and strip rows, list-selection rows, collapsible group labels, and tabs take 6px corners (`--radius-inline`), except rows inside a floating menu (see Floating-menu rows). The owner chose the more rectangular rows from the Gate M mockup (2026-11-09). | 10px (`--radius-field`), the previous corners, shared with fields. | 6px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one"; Foundations swatch: `tests/design-foundations.test.mjs` "the Foundations current-row swatch and radius list follow the navigation row radius" |
27
28
  | Floating-menu rows | Core | Rows inside a floating menu, such as the project menu, are concentric with the 16px menu: `calc(var(--radius-panel) - var(--space-1))`, 12px, as select picker rows are. The owner approved it from the DS-3b comparison. | 6px like rail rows: a 6px row inside a 16px panel looks pinched. | 12px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one" |
28
29
  | One-line non-action controls | Core | A one-line control that is not an action takes the 10px field corner (`--radius-field`), as a select does: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary ("On this page"), and the skip link. The project trigger keeps the quiet-action tint. The owner chose it on 2026-11-10. | The pill (`--radius-control`): a pill means an action, and these controls open a menu or list, pick a value, or move focus. 16px (`--radius-panel`), like the menu and other floating layers: on a one-line control 40 to 44px tall it reads almost as a pill. | 10px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one" |
@@ -138,4 +139,5 @@ Prose patterns moved with the names: `--*-soft` is now `--color-*-surface`, and
138
139
  ## Known gaps
139
140
 
140
141
  - Field focus is a 1px `--color-accent` edge with a faint 2px inset line. The edge reaches 3:1 for a focus indicator (WCAG 1.4.11): 6.61:1 against the light field fill and 6.26:1 against `--color-bg`, and 8.43:1 and 8.31:1 in dark. It is thinner than the 2px perimeter that the WCAG 2.2 AAA focus appearance criterion (2.4.13) asks for; the inset line, at 18% of the accent, does not reach 3:1 on its own.
142
+ - The off track of a switch or toggle (`color-mix(in srgb, var(--color-border) 90%, var(--color-well))`) has no contrast check. It falls below the 3:1 that WCAG 1.4.11 asks of a component's visible boundary in two shipped themes: Catppuccin light, 2.86:1 on `--color-surface`, and GitHub, 2.84:1 on `--color-surface` in light and on `--color-surface` and `--color-surface-raised` in dark. Both palettes are open and never altered, so a check would fail them. The knob's position still shows the state. A checkable off track needs a new recipe, such as unmixed `--color-border`, which the `edge` check already guards; that darkens the off track in every theme.
141
143
  - In forced colors (high contrast), an invalid field shows the system edge, not the `--color-error` edge, focused or not; the error text carries the state. A visible high-contrast invalid edge needs an error colour validated against high-contrast fills.
@@ -644,6 +644,13 @@
644
644
  <li class="swatch" data-token="--color-syntax-string" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-string</code><span class="value"></span><span class="ratio"></span></li>
645
645
  <li class="swatch" data-token="--color-syntax-number" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-number</code><span class="value"></span><span class="ratio"></span></li>
646
646
  <li class="swatch" data-token="--color-syntax-comment" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-comment</code><span class="value"></span><span class="ratio"></span></li>
647
+ <li class="swatch" data-token="--color-syntax-function" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-function</code><span class="value"></span><span class="ratio"></span></li>
648
+ <li class="swatch" data-token="--color-syntax-type" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-type</code><span class="value"></span><span class="ratio"></span></li>
649
+ <li class="swatch" data-token="--color-syntax-variable" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-variable</code><span class="value"></span><span class="ratio"></span></li>
650
+ <li class="swatch" data-token="--color-syntax-operator" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-operator</code><span class="value"></span><span class="ratio"></span></li>
651
+ <li class="swatch" data-token="--color-syntax-punctuation" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-punctuation</code><span class="value"></span><span class="ratio"></span></li>
652
+ <li class="swatch" data-token="--color-syntax-tag" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-tag</code><span class="value"></span><span class="ratio"></span></li>
653
+ <li class="swatch" data-token="--color-syntax-attribute" data-on="--color-code" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-syntax-attribute</code><span class="value"></span><span class="ratio"></span></li>
647
654
  <li class="swatch" data-token="--color-command-bg"><i class="chip" aria-hidden="true"></i><code>--color-command-bg</code><span class="value"></span><span class="use">Command plate, tinted with the hue, in both themes</span></li>
648
655
  <li class="swatch" data-token="--color-command-border"><i class="chip" aria-hidden="true"></i><code>--color-command-border</code><span class="value"></span><span class="use">Command plate edge; transparent in light</span></li>
649
656
  <li class="swatch" data-token="--color-terminal-text" data-fg="var(--color-terminal-text)" data-on="--color-command-bg" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-text</code><span class="value"></span><span class="ratio"></span><span class="use">Command text</span></li>
@@ -104,6 +104,13 @@
104
104
  --color-syntax-string: #346347;
105
105
  --color-syntax-number: #86532e;
106
106
  --color-syntax-comment: #626772;
107
+ --color-syntax-function: var(--color-syntax-keyword);
108
+ --color-syntax-type: var(--color-syntax-number);
109
+ --color-syntax-variable: var(--color-code-text);
110
+ --color-syntax-operator: var(--color-muted);
111
+ --color-syntax-punctuation: var(--color-muted);
112
+ --color-syntax-tag: var(--color-syntax-keyword);
113
+ --color-syntax-attribute: var(--color-syntax-number);
107
114
 
108
115
  /* Type scale. The identity block names the families. */
109
116
  --text-xs: 0.75rem;