@filipgutica/design-system 1.0.18 → 1.0.20

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.js CHANGED
@@ -43,8 +43,8 @@ export const tokens = {
43
43
  "color-error-surface": "#efe4e4",
44
44
  "color-info-surface": "#d9e3f2",
45
45
  "color-status-ink": "black",
46
- "color-command-bg": "color-mix(in srgb, #4b45d1 25%, #101010)",
47
- "color-command-border": "transparent",
46
+ "color-command-bg": "#e9ebed",
47
+ "color-command-border": "#d3d8dd",
48
48
  "color-terminal": "#0a0c0e",
49
49
  "color-terminal-text": "#e6e9eb",
50
50
  "color-terminal-border": "#2a3036",
@@ -157,8 +157,8 @@ export const tokens = {
157
157
  "color-error-surface": "#312020",
158
158
  "color-info-surface": "#202938",
159
159
  "color-status-ink": "#e6e9eb",
160
- "color-command-bg": "color-mix(in srgb, #a5a1ff 16%, black)",
161
- "color-command-border": "color-mix(in srgb, #a5a1ff 28%, black)",
160
+ "color-command-bg": "#13171a",
161
+ "color-command-border": "#262d33",
162
162
  "color-terminal": "#0a0c0e",
163
163
  "color-terminal-text": "#e6e9eb",
164
164
  "color-terminal-border": "#2a3036",
@@ -273,8 +273,8 @@ export const tokens = {
273
273
  "color-error-surface": "#efe4e4",
274
274
  "color-info-surface": "#d9e3f2",
275
275
  "color-status-ink": "black",
276
- "color-command-bg": "color-mix(in srgb, #8839ef 25%, #101010)",
277
- "color-command-border": "transparent",
276
+ "color-command-bg": "#e6e9ef",
277
+ "color-command-border": "#ccd0da",
278
278
  "color-terminal": "#0a0c0e",
279
279
  "color-terminal-text": "#e6e9eb",
280
280
  "color-terminal-border": "#2a3036",
@@ -387,8 +387,8 @@ export const tokens = {
387
387
  "color-error-surface": "#312020",
388
388
  "color-info-surface": "#202938",
389
389
  "color-status-ink": "#cdd6f4",
390
- "color-command-bg": "color-mix(in srgb, #cba6f7 16%, black)",
391
- "color-command-border": "color-mix(in srgb, #cba6f7 28%, black)",
390
+ "color-command-bg": "#181825",
391
+ "color-command-border": "#45475a",
392
392
  "color-terminal": "#0a0c0e",
393
393
  "color-terminal-text": "#e6e9eb",
394
394
  "color-terminal-border": "#2a3036",
@@ -503,8 +503,8 @@ export const tokens = {
503
503
  "color-error-surface": "#efe4e4",
504
504
  "color-info-surface": "#d9e3f2",
505
505
  "color-status-ink": "black",
506
- "color-command-bg": "color-mix(in srgb, #b04003 25%, #101010)",
507
- "color-command-border": "transparent",
506
+ "color-command-bg": "#e9ebed",
507
+ "color-command-border": "#d3d8dd",
508
508
  "color-terminal": "#0a0c0e",
509
509
  "color-terminal-text": "#e6e9eb",
510
510
  "color-terminal-border": "#2a3036",
@@ -617,8 +617,8 @@ export const tokens = {
617
617
  "color-error-surface": "#312020",
618
618
  "color-info-surface": "#202938",
619
619
  "color-status-ink": "#e6e9eb",
620
- "color-command-bg": "color-mix(in srgb, #f39a62 16%, black)",
621
- "color-command-border": "color-mix(in srgb, #f39a62 28%, black)",
620
+ "color-command-bg": "#13171a",
621
+ "color-command-border": "#262d33",
622
622
  "color-terminal": "#0a0c0e",
623
623
  "color-terminal-text": "#e6e9eb",
624
624
  "color-terminal-border": "#2a3036",
@@ -733,8 +733,8 @@ export const tokens = {
733
733
  "color-error-surface": "#efe4e4",
734
734
  "color-info-surface": "#d9e3f2",
735
735
  "color-status-ink": "black",
736
- "color-command-bg": "color-mix(in srgb, #27752a 25%, #101010)",
737
- "color-command-border": "transparent",
736
+ "color-command-bg": "#e9ebed",
737
+ "color-command-border": "#d3d8dd",
738
738
  "color-terminal": "#0a0c0e",
739
739
  "color-terminal-text": "#e6e9eb",
740
740
  "color-terminal-border": "#2a3036",
@@ -847,8 +847,8 @@ export const tokens = {
847
847
  "color-error-surface": "#312020",
848
848
  "color-info-surface": "#202938",
849
849
  "color-status-ink": "#e6e9eb",
850
- "color-command-bg": "color-mix(in srgb, #7fd083 16%, black)",
851
- "color-command-border": "color-mix(in srgb, #7fd083 28%, black)",
850
+ "color-command-bg": "#13171a",
851
+ "color-command-border": "#262d33",
852
852
  "color-terminal": "#0a0c0e",
853
853
  "color-terminal-text": "#e6e9eb",
854
854
  "color-terminal-border": "#2a3036",
@@ -963,8 +963,8 @@ export const tokens = {
963
963
  "color-error-surface": "#efe4e4",
964
964
  "color-info-surface": "#d9e3f2",
965
965
  "color-status-ink": "black",
966
- "color-command-bg": "color-mix(in srgb, #1f883d 25%, #101010)",
967
- "color-command-border": "transparent",
966
+ "color-command-bg": "#f6f8fa",
967
+ "color-command-border": "#d1d9e0",
968
968
  "color-terminal": "#0a0c0e",
969
969
  "color-terminal-text": "#e6e9eb",
970
970
  "color-terminal-border": "#2a3036",
@@ -1077,8 +1077,8 @@ export const tokens = {
1077
1077
  "color-error-surface": "#312020",
1078
1078
  "color-info-surface": "#202938",
1079
1079
  "color-status-ink": "#f0f6fc",
1080
- "color-command-bg": "color-mix(in srgb, #3fb950 16%, black)",
1081
- "color-command-border": "color-mix(in srgb, #3fb950 28%, black)",
1080
+ "color-command-bg": "#151b23",
1081
+ "color-command-border": "#3d444d",
1082
1082
  "color-terminal": "#0a0c0e",
1083
1083
  "color-terminal-text": "#e6e9eb",
1084
1084
  "color-terminal-border": "#2a3036",
@@ -1193,8 +1193,8 @@ export const tokens = {
1193
1193
  "color-error-surface": "#efe4e4",
1194
1194
  "color-info-surface": "#d9e3f2",
1195
1195
  "color-status-ink": "black",
1196
- "color-command-bg": "color-mix(in srgb, #6d3fd6 25%, #101010)",
1197
- "color-command-border": "transparent",
1196
+ "color-command-bg": "#e9ebed",
1197
+ "color-command-border": "#d3d8dd",
1198
1198
  "color-terminal": "#0a0c0e",
1199
1199
  "color-terminal-text": "#e6e9eb",
1200
1200
  "color-terminal-border": "#2a3036",
@@ -1307,8 +1307,8 @@ export const tokens = {
1307
1307
  "color-error-surface": "#312020",
1308
1308
  "color-info-surface": "#202938",
1309
1309
  "color-status-ink": "#e6e9eb",
1310
- "color-command-bg": "color-mix(in srgb, #b49cff 16%, black)",
1311
- "color-command-border": "color-mix(in srgb, #b49cff 28%, black)",
1310
+ "color-command-bg": "#13171a",
1311
+ "color-command-border": "#262d33",
1312
1312
  "color-terminal": "#0a0c0e",
1313
1313
  "color-terminal-text": "#e6e9eb",
1314
1314
  "color-terminal-border": "#2a3036",
@@ -1423,8 +1423,8 @@ export const tokens = {
1423
1423
  "color-error-surface": "#efe4e4",
1424
1424
  "color-info-surface": "#d9e3f2",
1425
1425
  "color-status-ink": "black",
1426
- "color-command-bg": "color-mix(in srgb, #087266 25%, #101010)",
1427
- "color-command-border": "transparent",
1426
+ "color-command-bg": "#e9ebed",
1427
+ "color-command-border": "#d3d8dd",
1428
1428
  "color-terminal": "#0a0c0e",
1429
1429
  "color-terminal-text": "#e6e9eb",
1430
1430
  "color-terminal-border": "#2a3036",
@@ -1537,8 +1537,8 @@ export const tokens = {
1537
1537
  "color-error-surface": "#312020",
1538
1538
  "color-info-surface": "#202938",
1539
1539
  "color-status-ink": "#e6e9eb",
1540
- "color-command-bg": "color-mix(in srgb, #5cc8b8 16%, black)",
1541
- "color-command-border": "color-mix(in srgb, #5cc8b8 28%, black)",
1540
+ "color-command-bg": "#13171a",
1541
+ "color-command-border": "#262d33",
1542
1542
  "color-terminal": "#0a0c0e",
1543
1543
  "color-terminal-text": "#e6e9eb",
1544
1544
  "color-terminal-border": "#2a3036",
@@ -1653,8 +1653,8 @@ export const tokens = {
1653
1653
  "color-error-surface": "#efe4e4",
1654
1654
  "color-info-surface": "#d9e3f2",
1655
1655
  "color-status-ink": "black",
1656
- "color-command-bg": "color-mix(in srgb, #2b59d6 25%, #101010)",
1657
- "color-command-border": "transparent",
1656
+ "color-command-bg": "#e9ebed",
1657
+ "color-command-border": "#d3d8dd",
1658
1658
  "color-terminal": "#0a0c0e",
1659
1659
  "color-terminal-text": "#e6e9eb",
1660
1660
  "color-terminal-border": "#2a3036",
@@ -1767,8 +1767,8 @@ export const tokens = {
1767
1767
  "color-error-surface": "#312020",
1768
1768
  "color-info-surface": "#202938",
1769
1769
  "color-status-ink": "#e6e9eb",
1770
- "color-command-bg": "color-mix(in srgb, #8aa8ff 16%, black)",
1771
- "color-command-border": "color-mix(in srgb, #8aa8ff 28%, black)",
1770
+ "color-command-bg": "#13171a",
1771
+ "color-command-border": "#262d33",
1772
1772
  "color-terminal": "#0a0c0e",
1773
1773
  "color-terminal-text": "#e6e9eb",
1774
1774
  "color-terminal-border": "#2a3036",
package/dist/tokens.json CHANGED
@@ -42,8 +42,8 @@
42
42
  "color-error-surface": "#efe4e4",
43
43
  "color-info-surface": "#d9e3f2",
44
44
  "color-status-ink": "black",
45
- "color-command-bg": "color-mix(in srgb, #4b45d1 25%, #101010)",
46
- "color-command-border": "transparent",
45
+ "color-command-bg": "#e9ebed",
46
+ "color-command-border": "#d3d8dd",
47
47
  "color-terminal": "#0a0c0e",
48
48
  "color-terminal-text": "#e6e9eb",
49
49
  "color-terminal-border": "#2a3036",
@@ -156,8 +156,8 @@
156
156
  "color-error-surface": "#312020",
157
157
  "color-info-surface": "#202938",
158
158
  "color-status-ink": "#e6e9eb",
159
- "color-command-bg": "color-mix(in srgb, #a5a1ff 16%, black)",
160
- "color-command-border": "color-mix(in srgb, #a5a1ff 28%, black)",
159
+ "color-command-bg": "#13171a",
160
+ "color-command-border": "#262d33",
161
161
  "color-terminal": "#0a0c0e",
162
162
  "color-terminal-text": "#e6e9eb",
163
163
  "color-terminal-border": "#2a3036",
@@ -272,8 +272,8 @@
272
272
  "color-error-surface": "#efe4e4",
273
273
  "color-info-surface": "#d9e3f2",
274
274
  "color-status-ink": "black",
275
- "color-command-bg": "color-mix(in srgb, #8839ef 25%, #101010)",
276
- "color-command-border": "transparent",
275
+ "color-command-bg": "#e6e9ef",
276
+ "color-command-border": "#ccd0da",
277
277
  "color-terminal": "#0a0c0e",
278
278
  "color-terminal-text": "#e6e9eb",
279
279
  "color-terminal-border": "#2a3036",
@@ -386,8 +386,8 @@
386
386
  "color-error-surface": "#312020",
387
387
  "color-info-surface": "#202938",
388
388
  "color-status-ink": "#cdd6f4",
389
- "color-command-bg": "color-mix(in srgb, #cba6f7 16%, black)",
390
- "color-command-border": "color-mix(in srgb, #cba6f7 28%, black)",
389
+ "color-command-bg": "#181825",
390
+ "color-command-border": "#45475a",
391
391
  "color-terminal": "#0a0c0e",
392
392
  "color-terminal-text": "#e6e9eb",
393
393
  "color-terminal-border": "#2a3036",
@@ -502,8 +502,8 @@
502
502
  "color-error-surface": "#efe4e4",
503
503
  "color-info-surface": "#d9e3f2",
504
504
  "color-status-ink": "black",
505
- "color-command-bg": "color-mix(in srgb, #b04003 25%, #101010)",
506
- "color-command-border": "transparent",
505
+ "color-command-bg": "#e9ebed",
506
+ "color-command-border": "#d3d8dd",
507
507
  "color-terminal": "#0a0c0e",
508
508
  "color-terminal-text": "#e6e9eb",
509
509
  "color-terminal-border": "#2a3036",
@@ -616,8 +616,8 @@
616
616
  "color-error-surface": "#312020",
617
617
  "color-info-surface": "#202938",
618
618
  "color-status-ink": "#e6e9eb",
619
- "color-command-bg": "color-mix(in srgb, #f39a62 16%, black)",
620
- "color-command-border": "color-mix(in srgb, #f39a62 28%, black)",
619
+ "color-command-bg": "#13171a",
620
+ "color-command-border": "#262d33",
621
621
  "color-terminal": "#0a0c0e",
622
622
  "color-terminal-text": "#e6e9eb",
623
623
  "color-terminal-border": "#2a3036",
@@ -732,8 +732,8 @@
732
732
  "color-error-surface": "#efe4e4",
733
733
  "color-info-surface": "#d9e3f2",
734
734
  "color-status-ink": "black",
735
- "color-command-bg": "color-mix(in srgb, #27752a 25%, #101010)",
736
- "color-command-border": "transparent",
735
+ "color-command-bg": "#e9ebed",
736
+ "color-command-border": "#d3d8dd",
737
737
  "color-terminal": "#0a0c0e",
738
738
  "color-terminal-text": "#e6e9eb",
739
739
  "color-terminal-border": "#2a3036",
@@ -846,8 +846,8 @@
846
846
  "color-error-surface": "#312020",
847
847
  "color-info-surface": "#202938",
848
848
  "color-status-ink": "#e6e9eb",
849
- "color-command-bg": "color-mix(in srgb, #7fd083 16%, black)",
850
- "color-command-border": "color-mix(in srgb, #7fd083 28%, black)",
849
+ "color-command-bg": "#13171a",
850
+ "color-command-border": "#262d33",
851
851
  "color-terminal": "#0a0c0e",
852
852
  "color-terminal-text": "#e6e9eb",
853
853
  "color-terminal-border": "#2a3036",
@@ -962,8 +962,8 @@
962
962
  "color-error-surface": "#efe4e4",
963
963
  "color-info-surface": "#d9e3f2",
964
964
  "color-status-ink": "black",
965
- "color-command-bg": "color-mix(in srgb, #1f883d 25%, #101010)",
966
- "color-command-border": "transparent",
965
+ "color-command-bg": "#f6f8fa",
966
+ "color-command-border": "#d1d9e0",
967
967
  "color-terminal": "#0a0c0e",
968
968
  "color-terminal-text": "#e6e9eb",
969
969
  "color-terminal-border": "#2a3036",
@@ -1076,8 +1076,8 @@
1076
1076
  "color-error-surface": "#312020",
1077
1077
  "color-info-surface": "#202938",
1078
1078
  "color-status-ink": "#f0f6fc",
1079
- "color-command-bg": "color-mix(in srgb, #3fb950 16%, black)",
1080
- "color-command-border": "color-mix(in srgb, #3fb950 28%, black)",
1079
+ "color-command-bg": "#151b23",
1080
+ "color-command-border": "#3d444d",
1081
1081
  "color-terminal": "#0a0c0e",
1082
1082
  "color-terminal-text": "#e6e9eb",
1083
1083
  "color-terminal-border": "#2a3036",
@@ -1192,8 +1192,8 @@
1192
1192
  "color-error-surface": "#efe4e4",
1193
1193
  "color-info-surface": "#d9e3f2",
1194
1194
  "color-status-ink": "black",
1195
- "color-command-bg": "color-mix(in srgb, #6d3fd6 25%, #101010)",
1196
- "color-command-border": "transparent",
1195
+ "color-command-bg": "#e9ebed",
1196
+ "color-command-border": "#d3d8dd",
1197
1197
  "color-terminal": "#0a0c0e",
1198
1198
  "color-terminal-text": "#e6e9eb",
1199
1199
  "color-terminal-border": "#2a3036",
@@ -1306,8 +1306,8 @@
1306
1306
  "color-error-surface": "#312020",
1307
1307
  "color-info-surface": "#202938",
1308
1308
  "color-status-ink": "#e6e9eb",
1309
- "color-command-bg": "color-mix(in srgb, #b49cff 16%, black)",
1310
- "color-command-border": "color-mix(in srgb, #b49cff 28%, black)",
1309
+ "color-command-bg": "#13171a",
1310
+ "color-command-border": "#262d33",
1311
1311
  "color-terminal": "#0a0c0e",
1312
1312
  "color-terminal-text": "#e6e9eb",
1313
1313
  "color-terminal-border": "#2a3036",
@@ -1422,8 +1422,8 @@
1422
1422
  "color-error-surface": "#efe4e4",
1423
1423
  "color-info-surface": "#d9e3f2",
1424
1424
  "color-status-ink": "black",
1425
- "color-command-bg": "color-mix(in srgb, #087266 25%, #101010)",
1426
- "color-command-border": "transparent",
1425
+ "color-command-bg": "#e9ebed",
1426
+ "color-command-border": "#d3d8dd",
1427
1427
  "color-terminal": "#0a0c0e",
1428
1428
  "color-terminal-text": "#e6e9eb",
1429
1429
  "color-terminal-border": "#2a3036",
@@ -1536,8 +1536,8 @@
1536
1536
  "color-error-surface": "#312020",
1537
1537
  "color-info-surface": "#202938",
1538
1538
  "color-status-ink": "#e6e9eb",
1539
- "color-command-bg": "color-mix(in srgb, #5cc8b8 16%, black)",
1540
- "color-command-border": "color-mix(in srgb, #5cc8b8 28%, black)",
1539
+ "color-command-bg": "#13171a",
1540
+ "color-command-border": "#262d33",
1541
1541
  "color-terminal": "#0a0c0e",
1542
1542
  "color-terminal-text": "#e6e9eb",
1543
1543
  "color-terminal-border": "#2a3036",
@@ -1652,8 +1652,8 @@
1652
1652
  "color-error-surface": "#efe4e4",
1653
1653
  "color-info-surface": "#d9e3f2",
1654
1654
  "color-status-ink": "black",
1655
- "color-command-bg": "color-mix(in srgb, #2b59d6 25%, #101010)",
1656
- "color-command-border": "transparent",
1655
+ "color-command-bg": "#e9ebed",
1656
+ "color-command-border": "#d3d8dd",
1657
1657
  "color-terminal": "#0a0c0e",
1658
1658
  "color-terminal-text": "#e6e9eb",
1659
1659
  "color-terminal-border": "#2a3036",
@@ -1766,8 +1766,8 @@
1766
1766
  "color-error-surface": "#312020",
1767
1767
  "color-info-surface": "#202938",
1768
1768
  "color-status-ink": "#e6e9eb",
1769
- "color-command-bg": "color-mix(in srgb, #8aa8ff 16%, black)",
1770
- "color-command-border": "color-mix(in srgb, #8aa8ff 28%, black)",
1769
+ "color-command-bg": "#13171a",
1770
+ "color-command-border": "#262d33",
1771
1771
  "color-terminal": "#0a0c0e",
1772
1772
  "color-terminal-text": "#e6e9eb",
1773
1773
  "color-terminal-border": "#2a3036",
@@ -213,7 +213,7 @@ Each depth tier has one token. [`tokens.css`](tokens.css) holds every shadow val
213
213
  ### Interaction and motion
214
214
 
215
215
  - Show visible focus and accessible names. A visual simplification must preserve useful controls, caveats, and keyboard paths.
216
- - Every focusable element but a field draws one ring, `outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset)`, with no glow, over its own raise or sink shadow. The `tokens.css` base sets it. `--color-focus` is the accent, which reaches 3:1 on `--color-bg`, `--color-surface`, and `--color-surface-raised` in both themes; a dark plate sets `--color-focus: var(--color-project-dark)`. Do not give a role its own ring colour. Fields (input, select, textarea, search) draw no ring: focus turns the edge `--color-accent` with a 2px inset line (`--shadow-field-focus`), and the fill stays. [Component specs](components.md#rules-for-every-control) give the values. Use an inset offset (`calc(var(--focus-width) * -1)`) only where a scrolling or clipping parent would cut the ring, or inside a segmented control; add a comment that names the reason. Keep the focus default in `@layer base`, so a component's own focus rule can refine it. Pointer hover never draws the outline.
216
+ - Every focusable element but a field draws one ring, `outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset)`, with no glow, over its own raise or sink shadow. The `tokens.css` base sets it. `--color-focus` is the accent, which reaches 3:1 on `--color-bg`, `--color-surface`, and `--color-surface-raised` in both themes; a terminal capture sets `--color-focus: var(--color-project-dark)`. Do not give a role its own ring colour. Fields (input, select, textarea, search) draw no ring: focus turns the edge `--color-accent` with a 2px inset line (`--shadow-field-focus`), and the fill stays. [Component specs](components.md#rules-for-every-control) give the values. Use an inset offset (`calc(var(--focus-width) * -1)`) only where a scrolling or clipping parent would cut the ring, or inside a segmented control; add a comment that names the reason. Keep the focus default in `@layer base`, so a component's own focus rule can refine it. Pointer hover never draws the outline.
217
217
  - Keep product navigation distinct from in-page section links. Current page and current section are different markers (`aria-current="page"` and `"location"`); see [Navigation](#navigation). Open sibling project links in the same tab; indicate a new tab only when the link opens one.
218
218
  - Use `--duration-fast` for hover/press and `--duration` for menus/panels. Animate opacity or transform only where it explains a state change. A component spec may set its own timing, as the segmented control's glide does.
219
219
  - Keep content visible without reveal effects, entrance sequences, or continuous decorative animation. Honor reduced motion, including anchor scrolling.
@@ -237,14 +237,14 @@ The personal sites are terminal tools that read Markdown and paths, so their ide
237
237
  - **Hue marks.** The hue also draws the `~/` header mark, the `##` mark on documentation, CLI tool, article, and product section headings, step numbers, and the `$` prompt.
238
238
  - **Header.** Personal product sites share a compact static header: a mono `~/name` identity with the `~/` in `--color-accent`, a project switcher, useful page links, appearance controls, and a solid `--color-text` rule below. Use the shared project registry for names, order, and destinations; the design-system site's header starts with the same switcher. The identity is the same on every page, and the links sit at the same x on every page; the page's path goes in [breadcrumbs](components.md#breadcrumbs) above its title. Keep a gallery's existing application navigation structure.
239
239
  - **Appearance.** Personal pages share the built-in System/Light/Dark choice, through the header's picker. An explicitly selected custom gallery theme overrides that choice until the reader selects a built-in appearance. Preserve installed themes.
240
- - **Terminal plates.** Commands sit on a dark plate tinted with the project hue (`--color-command-bg`), in both themes. A shell command gets a `$` prompt in `--color-project-dark`, drawn by CSS so it never enters copied or accessible text. Short commands use a headerless compact row with an accessible Copy control. Terminal captures keep the neutral `--color-terminal` plate, with a mono status-line caption below the screen; tabs on a capture switch to mono.
240
+ - **Terminal plates.** Commands use the normal code block and its source well (`--color-code`) in light and dark. A shell command gets a `$` prompt in `--color-accent`, drawn by CSS so it never enters copied or accessible text. Short commands use a headerless compact row with an accessible Copy control. Terminal captures keep the neutral `--color-terminal` plate, with a mono status-line caption below the screen; tabs on a capture switch to mono.
241
241
  - **Steps.** A real sequence is an ordered list with mono numbers in `--color-accent` on a ruled leading column, an h3 title per step, and an optional result note on the last step.
242
242
 
243
243
  ## Avoid recurring clutter
244
244
 
245
245
  - Decorative eyebrows, numbered markers on unordered content, and badge rows that repeat the title.
246
246
  - Multiple cards around ordinary prose, ornamental grids, glows, gradients, pill-shaped cards, and hover lifts.
247
- - Tinted wells or panels used for decoration. The hue-tinted command plate is the one tinted surface, because it carries the project's identity.
247
+ - Tinted wells or panels used for decoration.
248
248
  - Display typography on dense tool screens, or tiny application typography on a product landing page.
249
249
  - The `##` mark on every section of an application screen, where it repeats down the page and competes with the data.
250
250
  - Large blank gaps that push the action or evidence away from the introduction.
@@ -516,14 +516,9 @@
516
516
 
517
517
  /* ================= Identity: terminal folio ================= */
518
518
 
519
- /* Command plate: dark in both themes and tinted with the project hue. Its source panel is the plate darkened, so it reads as a panel on it. */
520
- /* The plate is dark in both themes, so its focus ring takes the dark-theme accent, which reaches 3:1 on it,
521
- and muted text, such as Copy at rest, takes the caption colour. */
522
- .code.command { --color-code: color-mix(in srgb, var(--color-command-bg) 55%, var(--color-terminal)); --color-code-text: var(--color-terminal-text); --color-muted: var(--color-terminal-caption-text); --color-focus: var(--color-project-dark); border-color: var(--color-command-border); background: var(--color-command-bg); color: var(--color-terminal-text); }
523
- .code.command .code-head { color: var(--color-terminal-caption-text); }
524
- .code.command .code-head .lang { color: var(--color-terminal-caption-text); }
519
+ /* Command plate: the normal code block with a CSS-drawn accent prompt. */
525
520
  /* The prompt is drawn by CSS, so copied and spoken text omit it. */
526
- .code.command .line::before { content: "$ " / ""; flex: none; white-space: pre; color: var(--color-project-dark); user-select: none; }
521
+ .code.command .line::before { content: "$ " / ""; flex: none; white-space: pre; color: var(--color-accent); user-select: none; }
527
522
 
528
523
  /* Terminal capture: neutral plate with a mono status line. The header stays terminal-dark in
529
524
  both page appearances, so the capture scopes its own tab, text, and focus colours. */
@@ -915,7 +910,7 @@
915
910
  </div>
916
911
  <div class="navlist" role="group" aria-labelledby="rail-identity">
917
912
  <span class="group-label" id="rail-identity">Identity</span>
918
- <a href="#command-plate" data-terms="command plate identity a shell command on a hue-tinted plate. install shell terminal">Command plate</a><a href="#terminal-capture" data-terms="terminal capture identity a recorded terminal screen with a status line. screenshot tui">Terminal capture</a><a href="#site-header" data-terms="site header identity the ~/name header with project switcher and appearance. header project switcher appearance">Site header</a><a href="#page-type-and-helpers" data-terms="page type and helpers identity mono headings, steps, definitions, facts, and the footer. headings steps footer definitions">Page type and helpers</a>
913
+ <a href="#command-plate" data-terms="command plate identity a shell command in the code well. install shell terminal">Command plate</a><a href="#terminal-capture" data-terms="terminal capture identity a recorded terminal screen with a status line. screenshot tui">Terminal capture</a><a href="#site-header" data-terms="site header identity the ~/name header with project switcher and appearance. header project switcher appearance">Site header</a><a href="#page-type-and-helpers" data-terms="page type and helpers identity mono headings, steps, definitions, facts, and the footer. headings steps footer definitions">Page type and helpers</a>
919
914
  </div>
920
915
  <div class="navlist" role="group" aria-labelledby="rail-reference">
921
916
  <span class="group-label" id="rail-reference">Reference</span>
@@ -945,7 +940,7 @@
945
940
  <div><h3><a href="#group-containers">Containers and overlays</a></h3><ul><li><a href="#surface-and-card">Surface and card</a><span>Panels and cards for parallel, comparable content.</span></li><li><a href="#figure">Figure</a><span>An image or diagram with a caption.</span></li><li><a href="#dialog">Dialog</a><span>A modal task that needs an answer before the page continues.</span></li><li><a href="#drawer">Drawer</a><span>A side panel, such as phone navigation.</span></li></ul></div>
946
941
  <div><h3><a href="#group-navigation">Navigation</a></h3><ul><li><a href="#navigation-list">Navigation list</a><span>Rows of links with current page and current location.</span></li><li><a href="#section-rail">Section rail</a><span>A sticky list of sections that moves into a drawer on phones.</span></li><li><a href="#find-field">Find field</a><span>Filter a navigation list as you type.</span></li><li><a href="#breadcrumbs">Breadcrumbs</a><span>The path from the site to this page.</span></li><li><a href="#pager">Pager</a><span>Previous and next pages in a sequence.</span></li><li><a href="#tabs">Tabs</a><span>Switch panels about one object, without leaving the page.</span></li><li><a href="#skip-link">Skip link</a><span>Jump past the header to the content.</span></li><li><a href="#keyboard-key">Keyboard key</a><span>Show a key or shortcut in text.</span></li></ul></div>
947
942
  <div><h3><a href="#group-code">Code and examples</a></h3><ul><li><a href="#code-block">Code block</a><span>Source code with an optional header and Copy, and a live example above it.</span></li></ul></div>
948
- <div><h3><a href="#group-identity">Identity: terminal folio</a></h3><ul><li><a href="#command-plate">Command plate</a><span>A shell command on a hue-tinted plate.</span></li><li><a href="#terminal-capture">Terminal capture</a><span>A recorded terminal screen with a status line.</span></li><li><a href="#site-header">Site header</a><span>The ~/name header with project switcher and appearance.</span></li><li><a href="#page-type-and-helpers">Page type and helpers</a><span>Mono headings, steps, definitions, facts, and the footer.</span></li></ul></div>
943
+ <div><h3><a href="#group-identity">Identity: terminal folio</a></h3><ul><li><a href="#command-plate">Command plate</a><span>A shell command in the code well.</span></li><li><a href="#terminal-capture">Terminal capture</a><span>A recorded terminal screen with a status line.</span></li><li><a href="#site-header">Site header</a><span>The ~/name header with project switcher and appearance.</span></li><li><a href="#page-type-and-helpers">Page type and helpers</a><span>Mono headings, steps, definitions, facts, and the footer.</span></li></ul></div>
949
944
  </div>
950
945
  </section>
951
946
 
@@ -1434,12 +1429,12 @@
1434
1429
 
1435
1430
  <section class="component" id="command-plate" data-layer="Identity" aria-labelledby="cmd-title">
1436
1431
  <header><h3 id="cmd-title">Command plate</h3><span class="badge">Identity</span><a href="components.md#command-plate">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="command-plate" aria-label="Copy link to Command plate" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1437
- <p class="purpose">A shell command on a hue-tinted plate.</p>
1432
+ <p class="purpose">A shell command in the code well.</p>
1438
1433
  <dl class="guidance"><dt>Do</dt><dd>Use it for a shell command the reader runs, one command per line.</dd><dt>Don’t</dt><dd>A <code>$</code> typed into the command. CSS draws the prompt; a typed one is copied with the command.</dd></dl>
1439
1434
  <div class="row"><h4>Commands</h4><div class="states">
1440
1435
  <div class="state wide"><div class="code command compact"><pre tabindex="0" role="region" aria-label="Install command"><code id="cmd-install"><span class="line"><span>brew install filipgutica/tap/filip-stack</span></span></code></pre><button class="quiet-action copy" type="button" data-copy="cmd-install" aria-label="Copy install command"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg></button></div><span class="caption">Compact, live; the <code>$</code> is drawn by CSS</span></div>
1441
1436
  <div class="state wide"><div class="code command"><div class="code-head"><b>Set up</b><button class="quiet-action copy" type="button" data-copy="cmd-setup"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg>Copy</button></div><pre tabindex="0" role="region" aria-label="Set up commands"><code id="cmd-setup"><span class="line"><span>pnpm install --frozen-lockfile</span></span><span class="line"><span>pnpm check</span></span></code></pre></div><span class="caption">With a header, two lines</span></div>
1442
- <div class="state wide" inert><div class="code command compact"><pre><code><span class="line"><span>filip-stack apply</span></span></code></pre><button class="quiet-action copy is-focus" type="button" aria-label="Copy apply command"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg></button></div><span class="caption">Focus visible on Copy, in <code>--color-project-dark</code></span></div>
1437
+ <div class="state wide" inert><div class="code command compact"><pre><code><span class="line"><span>filip-stack apply</span></span></code></pre><button class="quiet-action copy is-focus" type="button" aria-label="Copy apply command"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg></button></div><span class="caption">Focus visible on Copy, in <code>--color-focus</code></span></div>
1443
1438
  </div></div>
1444
1439
  </section>
1445
1440
 
@@ -37,7 +37,7 @@ A control's **States** line names each interactive state it has. In `components.
37
37
  - **Depth.** Each control takes its shadow from the [depth tiers](DESIGN.md#depth).
38
38
  - **Hover.** Hover fills apply only where the pointer can hover. Put every `:hover` rule that sets a background, shadow, border colour, or text colour in `@media (hover: hover)`, because a touch screen keeps `:hover` on the last element tapped. The pressed tint stays outside the query: it shows only while a finger is down.
39
39
  - **Press.** Only a button has a pressed state; see [Button](#button). A [quiet action](#quiet-action) tints on press without sinking. Other controls have no `:active` treatment: they show their latched state as their section says.
40
- - **Focus.** One ring for every role but fields: `outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset)` (2px, 3px), with no halo or glow. `--color-focus` is the accent (`--color-accent`), which reaches 3:1 on `--color-bg`, `--color-surface`, and `--color-surface-raised` in both themes. It sits around primary, danger, and selected controls too. Do not give a role its own ring colour; where a variant must recolour the ring, set only `outline-color`. The ring is drawn over the control's own raise or sink shadow, which does not change. It goes on the visible part of a composite control: the switch track, the radio card, and the slider thumb. A dark plate (command plate, terminal capture) sets `--color-focus: var(--color-project-dark)`, the dark-theme accent, which reaches 3:1 on the plate in both page themes. In forced colors, a control that opts out of adjustment (a checked box, the switch track, a pressed segmented option) sets `outline-color: CanvasText`. Inside a scrolling or clipping parent, the ring is inset (`outline-offset: calc(var(--focus-width) * -1)`), and a comment names the reason. Only `:focus-visible` shows a ring; pointer hover never does.
40
+ - **Focus.** One ring for every role but fields: `outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset)` (2px, 3px), with no halo or glow. `--color-focus` is the accent (`--color-accent`), which reaches 3:1 on `--color-bg`, `--color-surface`, and `--color-surface-raised` in both themes. It sits around primary, danger, and selected controls too. Do not give a role its own ring colour; where a variant must recolour the ring, set only `outline-color`. The ring is drawn over the control's own raise or sink shadow, which does not change. It goes on the visible part of a composite control: the switch track, the radio card, and the slider thumb. A terminal capture sets `--color-focus: var(--color-project-dark)`, the dark-theme accent, which reaches 3:1 on the capture in both page themes. In forced colors, a control that opts out of adjustment (a checked box, the switch track, a pressed segmented option) sets `outline-color: CanvasText`. Inside a scrolling or clipping parent, the ring is inset (`outline-offset: calc(var(--focus-width) * -1)`), and a comment names the reason. Only `:focus-visible` shows a ring; pointer hover never does.
41
41
  - **Field focus.** Fields (input, select, textarea, and the search wrapper) draw no ring. On `:focus-visible` (the search wrapper uses `:has(input:focus-visible)`) the 1px edge turns `--color-accent`, and `--shadow-field-focus` (`inset 0 0 0 2px`, the accent at 18% over transparent) draws a muted accent line inside it, with `outline: none`. The fill does not change in either theme. An invalid field keeps its `--color-error` edge while focused, and its inset line is `--shadow-field-focus-invalid` (`--color-error` at 18%). Forced colors drop the inset line, so a focused field there draws `outline: var(--focus-width) solid Highlight; outline-offset: -1px`.
42
42
  - **Disabled.** Opacity 0.58, `cursor: not-allowed`, and no hover or press. Buttons drop their shadow. Fields drop theirs and fill with the `--color-well` well (the grey well in light; the same as rest in dark). Other controls keep theirs. Use the native `disabled` attribute. A link styled as a button has no disabled state: use `<button disabled>`.
43
43
  - **Invalid.** Fields only: `aria-invalid="true"` and a `--color-error` border (not in forced colors; see [field focus](#rules-for-every-control)). Other controls show an invalid state through the [field wrapper](#field-wrapper)'s error text. Link the error text with `aria-describedby` or `aria-errormessage`.
@@ -441,14 +441,14 @@ Layer: Core.
441
441
 
442
442
  Layer: Identity.
443
443
 
444
- - **Anatomy.** A code block for a shell command, drawn as a dark plate in both themes: the frame is `--color-command-bg` with a `--color-command-border` edge (transparent in light). The source panel is the plate darkened, `color-mix(in srgb, var(--color-command-bg) 55%, var(--color-terminal))`, set as the plate's `--color-code`, so it reads as a panel on the plate. Text, syntax, and the caption all use `--color-terminal-text` or `--color-terminal-caption-text`. Each line starts with a `$ ` prompt in `--color-project-dark`, drawn with `content: "$ " / ""` and `user-select: none`, so copied and spoken text omit it. The plate sets `--color-muted: var(--color-terminal-caption-text)`, so Copy at rest takes the caption colour, and `--color-focus: var(--color-project-dark)`, the dark-theme accent, so every ring on it, Copy's included, reads at 3:1 or more on the dark plate in both page themes.
444
+ - **Anatomy.** The normal [code block](#code-block) for a shell command, with the same frame, source well (`--color-code`), text, syntax, header, Copy action, compact layout, and focus ring in light and dark. Each line starts with a `$ ` prompt in `--color-accent`, drawn with `content: "$ " / ""` and `user-select: none`, so copied and spoken text omit it. `--color-command-bg` and `--color-command-border` remain compatibility aliases for `--color-code` and `--color-border-subtle`; the component uses the normal code block tokens.
445
445
  - **States.** As for the code block.
446
446
  - **Do.** Use it for a shell command the reader runs, one command per line.
447
447
  - **Don't.** A `$` typed into the command. CSS draws the prompt; a typed one is copied with the command.
448
448
  - **Keyboard and screen reader.** As for the code block.
449
449
  - **Motion.** None: as for the code block.
450
- - **Forced colors.** The dark plate drops to the system background, with system text and edge, and the prompt takes the system text colour.
451
- - **Contrast.** Text at least 4.5:1 and the prompt at least 3:1 on the source panel, and the header text at least 4.5:1 on `--color-command-bg`, for each project hue.
450
+ - **Forced colors.** As for the code block; the prompt takes the system text colour.
451
+ - **Contrast.** Text at least 4.5:1 and the prompt at least 3:1 on `--color-code`, and the header text and Copy at least 4.5:1 on the normal raised frame, for each project hue.
452
452
 
453
453
  ## Terminal capture
454
454
 
@@ -14,7 +14,7 @@ Each entry records a choice this language made, the options it rejected, and why
14
14
  | Quiet action fill | Core | `currentColor` at 6% under a hovering pointer and 12% pressed, a faint overlay after Astryx's ghost button overlay (the idea only; no code copied). The user approved it from rendered demos. | 12% hover and 18% pressed, the previous values, replaced by the fainter overlay the user chose. No fill on hover, with only the icon brightening: it hides the hit target, so the reader cannot see what a click will reach. | hover and press alpha: `tests/catalogue/catalogue.spec.ts` "a hovering pointer adds a 6% fill, and a press 12%"; no fill after a tap: "a tap leaves no fill behind" |
15
15
  | One source per control | Core | Each control comes from the owning library's component or class, including a link styled as a button. | Local copies built from the same tokens drifted: a docs button had no raise and only faded when pressed. | copied rules unchanged: `tests/design-foundations.test.mjs` "example pages copy the catalogue rules for the shared controls and components they use unchanged" |
16
16
  | Section mark | Identity | The `##` mark goes only on the page-level section headings (h2) of documentation, CLI tool, article, and product pages, which are mono with a `--color-border-subtle` rule above. Application and inline-visualization section headings are plain `--font-ui` semibold at `--text-xl` or smaller, with no mark and no rule. h3 and lower never take it. | The mark on every section heading: on a dense screen, such as a metrics dashboard with six sections, it repeated down the page and competed with the data. The mark on h2 and h3: deeper levels repeat more often. A per-page opt-out class: every application page would need to remember it. Dropping the mark: reading pages lose the folio identity that ties them to the `~/name` header. Mono application section headings without the mark: the mono face alone still reads as a document heading among compact sans rows. | No test yet |
17
- | Command plate | Identity | A dark plate tinted with the project hue (`--color-command-bg`). Terminal captures keep the neutral plate. | The near-black plate looked too severe. | text and prompt contrast: `tests/catalogue/catalogue.spec.ts` "contrast: the command plate text reaches 4.5:1", "contrast: the command plate prompt reaches 3:1"; plate tint: no test yet |
17
+ | Command plate | Identity | Owner decision, 2026-11-15: a shell command uses the normal code block and its source well in light and dark, with a CSS-drawn `$ ` prompt in `--color-accent`. Header, Copy, compact layout, and focus follow the code block. Keep `--color-command-bg` and `--color-command-border` as compatibility aliases for `--color-code` and `--color-border-subtle`. Terminal captures stay unchanged. | A: the dark, hue-tinted plate in both modes. On a light page it was the darkest element and looked mismatched beside light source blocks; the owner noticed it on every site. B: a pale hue-tinted plate in light mode. It followed the mode but added a second tinted surface and still differed from source code; the owner preferred one consistent code surface (option C). | `tests/catalogue/catalogue.spec.ts`: "contrast: shell command text on the code well reaches 4.5:1", "contrast: the accent shell prompt on the code well reaches 3:1"; compatibility aliases and DS-1 exceptions: `tests/token-values.test.mjs`; shared code recipes: `tests/design-foundations.test.mjs`; imported-theme failures: `tests/theme-mapper.test.mjs` |
18
18
  | Navigation current row | Core | A quiet lifted fill (`--color-nav-current`, `--shadow-nav-current`) with 6px corners (`--radius-inline`) and accent text. In-page location is a 3×14 accent pip with no fill in strips and contents lists; a section rail's current section takes the current-page fill instead (see Rail current section). In forced colors the current page and a rail's current section take a `Highlight` edge, and the pip redraws in `Highlight`. | A raised pill looked odd. The old 2px inset bar curved away on rounded rows and disappeared in the dark drawer. | accent text contrast: `tests/design-foundations.test.mjs` "accent text on the selected fill reaches 4.5:1 on every surface in both themes"; 6px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one"; pip and forced colors: no test yet |
19
19
  | Fields | Core | 10px rounded rectangles (`--radius-field`) with a 1px `--color-border-subtle` edge (`--color-field-edge`) in both themes. Light fields take a `--color-surface-raised` fill and no shadow (`--color-field-bg`, `--shadow-field`). Dark fields stay in the sunk `--color-well` well with `--shadow-sink`; the well is about 1.01:1 against the canvas, so the edge carries the shape. A disabled field takes the `--color-well` well and no shadow. `--color-well` itself still fills tracks, pressed buttons, and selected radio cards. | Pill fields, the earlier shape. A grey sunk well with a transparent edge in light: the user said it looked disabled. Without the edge, dark fields disappeared. | 10px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one"; edge, fill, and depth: no test yet |
20
20
  | Switch | Core | Borderless track, 44×22 with an 18px knob. The off state shows through the track fill. | A visible track border, which was not needed. | No test yet |
@@ -22,7 +22,7 @@ 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, 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) |
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, or syntax colour on its fills. Command text and prompts follow the theme’s code text and accent, so their failures belong to the theme’s text and focus checks. 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
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` |
27
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" |
28
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" |
@@ -42,7 +42,7 @@ Each entry records a choice this language made, the options it rejected, and why
42
42
  | Header current page | Core | Header links are navigation rows 44px tall, and a link to the current page takes `aria-current="page"` with the current-page recipe. | Muted text links with no current state: the header did not show which page the reader was on. | No test yet |
43
43
  | One scroll offset | Core | `html { scroll-padding-top }` is the only offset: any sticky bar plus `--space-4`. The location tracker reads the same value. | `scroll-margin-top` on each section: every page set its own value, and the tracker needs one inset to compare against. | No test yet |
44
44
  | Specimen captions | Core | Every catalogue specimen has a caption that names its state, such as "Disabled" or "Rest, live". The owner chose it at Gate M. | Captions only on some specimens: a disabled or static specimen with no caption could read as broken. | every specimen captioned: `tests/catalogue/catalogue.spec.ts` "every specimen has a caption" |
45
- | Focus ring | Core | One accent ring for every role but fields: `outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset)` (2px, 3px), with no glow, over the control's own shadow. Variants recolour it with `outline-color` only. `--color-focus` is `--color-accent`: 6.26:1 on the page, 5.72:1 on a surface, and 6.61:1 on a raised surface in light; 8.31:1, 7.85:1, and 7.39:1 in dark. Dark plates use `--color-project-dark`: 6.98:1 on the command plate on a light page, 7.48:1 on a dark page, and 8.53:1 on the terminal capture. Inspired by Astryx `focusDefaults` (`utils/focusOutline.stylex.ts`), which writes the width, accent colour, and offset once from tokens. The user chose it from rendered demos and accepted an accent ring around primary, danger, and selected controls. | The neutral ink ring (`--color-focus: var(--color-text)`, offset 2px), the previous choice; the user preferred the accent ring with a 3px gap in rendered demos. Before that, an accent ring on controls and a `--color-link` ring on links, tabs, and navigation rows: two ring hues, cyan around the purple selected tab and current row. A ring in each control's own tone, such as `--color-error` around the danger button: every role needs its own ring rule, and the ring changes colour from control to control. A 2px ring with a 6px accent halo felt jarring, and a 1.5px ring was hard to see; Chromium drew it 1px at 1x. | one accent ring: `tests/design-foundations.test.mjs` "every focus ring is the one accent ring: no per-role ring colour or hand-written ring on any page or in tokens.css"; ring contrast: `tests/design-foundations.test.mjs` "the accent focus ring reaches 3:1 on --color-bg, --color-surface, and --color-surface-raised in both themes" |
45
+ | Focus ring | Core | One accent ring for every role but fields: `outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset)` (2px, 3px), with no glow, over the control's own shadow. Variants recolour it with `outline-color` only. `--color-focus` is `--color-accent`: 6.26:1 on the page, 5.72:1 on a surface, and 6.61:1 on a raised surface in light; 8.31:1, 7.85:1, and 7.39:1 in dark. Commands use the normal code block ring: the accent on `--color-code` (5.72:1 in light and 7.85:1 in dark). Terminal captures use `--color-project-dark`: 8.53:1 on the terminal plate. Inspired by Astryx `focusDefaults` (`utils/focusOutline.stylex.ts`), which writes the width, accent colour, and offset once from tokens. The user chose it from rendered demos and accepted an accent ring around primary, danger, and selected controls. | The neutral ink ring (`--color-focus: var(--color-text)`, offset 2px), the previous choice; the user preferred the accent ring with a 3px gap in rendered demos. Before that, an accent ring on controls and a `--color-link` ring on links, tabs, and navigation rows: two ring hues, cyan around the purple selected tab and current row. A ring in each control's own tone, such as `--color-error` around the danger button: every role needs its own ring rule, and the ring changes colour from control to control. A 2px ring with a 6px accent halo felt jarring, and a 1.5px ring was hard to see; Chromium drew it 1px at 1x. | one accent ring: `tests/design-foundations.test.mjs` "every focus ring is the one accent ring: no per-role ring colour or hand-written ring on any page or in tokens.css"; ring contrast: `tests/design-foundations.test.mjs` "the accent focus ring reaches 3:1 on --color-bg, --color-surface, and --color-surface-raised in both themes" |
46
46
  | Page colours outside the base layer | Core | `tokens.css` sets the body background and text colour unlayered; the rest of the base stays in `@layer base`, so component rules still outrank it. | Everything in the layer: a host that wraps the page in its own unlayered reset, such as an artifact viewer, kept its light body while the tokens switched to dark, so token-coloured text sat near-white on white. A note telling each page to restate the body: every delivered page would need to remember it, and the failure only shows in dark mode. | unlayered page colours: `tests/design-foundations.test.mjs` "keeps the page background and text colour outside the base layer, so a host reset cannot win" |
47
47
  | Field focus | Core | No ring. The 1px edge turns `--color-accent` with a 2px inset line of the accent at 18% (`--shadow-field-focus`; `--shadow-field-focus-invalid` for an invalid field), and the fill does not change in either theme. An invalid field keeps `--color-error` for the edge and the line. Forced colors drop the line, so a focused field there draws a `Highlight` outline 1px inside its edge. Inspired by Astryx `Field/inputStyles.stylex.ts`: a full accent border with an inset muted-accent line, and `Highlight` in forced colors. The user approved it from rendered demos. | The control ring plus a lift out of the well onto the control surface (`--field-focus`, `--color-control-thumb`, `--shadow-raise`), the previous choice, replaced by the edge the user chose from rendered demos. Before that, the lift with a 35% accent edge and no ring, which measured below 3:1 in light, and an accent edge with a halo and an underline, which felt too heavy. | edge contrast of focused inputs (valid and invalid), selects, textareas, and search fields, light and dark: `tests/catalogue/catalogue.spec.ts` "contrast: every focused field edge, on its fill and on the surface around it reaches 3:1"; inset line and forced colors: no test yet |
48
48
  | Selected tab | Core | The navigation row's lifted fill (`--color-nav-current`, `--shadow-nav-current`, accent text, 6px corners), with no underline. Navigation and tabs share one selected state. | A 2px accent underline curved at rounded corners and did not match navigation. | rule present: `tests/design-foundations.test.mjs` "every state rule the guard requires exists in the catalogue"; 6px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one"; fill recipe: no test yet |
@@ -6,6 +6,8 @@
6
6
  <title>Documentation example</title>
7
7
  <link rel="stylesheet" href="tokens.css">
8
8
  <style>
9
+ .icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
10
+ .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
9
11
  .frame { width: min(calc(var(--page-max) + var(--sidebar)), calc(100% - var(--space-12))); margin-inline: auto; }
10
12
  .header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); min-height: var(--space-16); border-bottom: 1px solid var(--color-border-subtle); }
11
13
  .brand { color: var(--color-text); font-weight: var(--weight-semibold); }
@@ -37,18 +39,35 @@ main > section > h2::before { content: "## " / ""; color: var(--color-accent); }
37
39
  /* The main gap alone separates sections. The rule above each heading belongs to the heading. */
38
40
  main > section > h2 { padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
39
41
  p { max-width: var(--measure); color: var(--color-muted); font-size: var(--text-reading); }
40
- /* Command plate: dark in both themes and tinted with the hue. Text takes the terminal colour and the focus ring the dark-theme accent, so both read on the dark plate. */
41
- .command { box-shadow: var(--shadow-surface); --color-focus: var(--color-project-dark); --color-text: var(--color-terminal-text); display: flex; align-items: center; gap: var(--space-3); max-width: var(--measure); padding: var(--space-1) var(--space-3); border: 1px solid var(--color-command-border); border-radius: var(--radius-panel); background: var(--color-command-bg); color: var(--color-terminal-text); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
42
- /* The prompt is drawn by CSS, so it is not copied and screen readers skip it. */
43
- .command code::before { content: "$ " / ""; color: var(--color-project-dark); }
44
- .command pre { min-width: 0; flex: 1; margin: 0; overflow-x: auto; font-size: var(--text-sm); }
45
- /* Copy is a quiet action: components.html#quiet-action, unchanged. The page adds its size and colour only. */
42
+ /* Compact code block: components.html#code-block, unchanged. */
43
+ .code { width: 100%; max-width: var(--measure); min-width: 0; overflow: hidden; padding: var(--space-1); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-panel); background: var(--color-surface-raised); color: var(--color-code-text); box-shadow: var(--shadow-surface); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
44
+ /* Copy is a quiet action; this sets its size and place. */
45
+ .copy { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-width: var(--control-lg); min-height: var(--control-lg); margin-left: auto; padding: var(--space-1) 0.375rem; color: inherit; }
46
+ /* Copy is muted at rest. The code block has its own palette, so on hover and while the tick shows it takes the block's text colour. */
47
+ .code .copy { color: var(--color-muted); }
48
+ .code .copy[data-copied] { color: var(--color-code-text); }
49
+ .code .copy.is-hover:where(:not(:disabled)) { color: var(--color-code-text); }
50
+ @media (hover: hover) { .code .copy:hover:where(:not(:disabled)) { color: var(--color-code-text); } }
51
+ /* Inset: the code block clips its content. */
52
+ .code pre:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
53
+ .code .copy.quiet-action:is(:focus-visible, .is-focus) { outline-offset: calc(var(--focus-width) * -1); }
54
+ /* The source is an inset panel. It sits --space-1 inside the frame, so its corners are concentric with the frame's. */
55
+ .code pre { margin: 0; padding: var(--space-4); overflow: auto; max-height: 32rem; border: 1px solid transparent; border-radius: calc(var(--radius-panel) - var(--space-1)); background: var(--color-code); font-size: var(--text-code); line-height: 1.65; tab-size: 2; }
56
+ /* Each line is a baseline-aligned row, so a prompt or line number sits on the text's baseline. */
57
+ .code .line { display: flex; align-items: baseline; min-height: 1.65em; }
58
+ .code .line > span { white-space: pre; }
59
+ /* 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. */
60
+ .code.compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-1); }
61
+ .code.compact pre { align-content: center; padding: var(--space-2) var(--space-3); }
62
+
63
+ /* The prompt is drawn by CSS, so copied and spoken text omit it. */
64
+ .code.command .line::before { content: "$ " / ""; flex: none; white-space: pre; color: var(--color-accent); user-select: none; }
65
+ /* Copy is a quiet action: components.html#quiet-action, unchanged. */
46
66
  :where(.quiet-action) { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; font: inherit; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
47
67
  .quiet-action.is-hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); }
48
68
  @media (hover: hover) { .quiet-action:hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); } }
49
69
  .quiet-action:is(:active, .is-active):where(:not(:disabled)) { background: color-mix(in srgb, currentColor 12%, transparent); }
50
70
  .quiet-action:disabled { opacity: 0.58; cursor: not-allowed; }
51
- .command button { flex: none; min-width: var(--control-lg); min-height: var(--control-lg); color: var(--color-terminal-caption-text); }
52
71
  .meta, #copy-status { color: var(--color-muted); font-size: var(--text-sm); }
53
72
  .definitions { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-3) var(--space-6); margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
54
73
  .definitions dt { font-family: var(--font-mono); font-size: var(--text-sm); }
@@ -59,12 +78,16 @@ footer { padding-block: var(--space-6); border-top: 1px solid var(--color-border
59
78
  </style>
60
79
  </head>
61
80
  <body>
81
+ <svg xmlns="http://www.w3.org/2000/svg" style="display:none" aria-hidden="true">
82
+ <symbol id="i-copy" viewBox="0 0 16 16"><rect x="5.5" y="5.5" width="8" height="8" rx="1.5"/><path d="M10.5 5.5V3.5a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2"/></symbol>
83
+ <symbol id="i-tick" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-7"/></symbol>
84
+ </svg>
62
85
  <div class="frame">
63
86
  <header class="header"><a class="brand" href="docs.html">Documentation example</a><nav aria-label="Reference formats"><a href="reference.html">Application</a><a href="product.html">Product page</a></nav></header>
64
87
  <div class="layout">
65
88
  <nav class="sidebar navlist rail" aria-label="Documentation"><a href="#start">Getting started</a><a href="#structure">Structure</a><a href="#interaction">Interaction</a></nav>
66
89
  <main>
67
- <section id="start"><h1>A smaller set of design decisions.</h1><p>Keep navigation, examples, and reference text in a balanced frame. The content stays left aligned and the first useful step is easy to find.</p><p class="meta">Illustrative setup command</p><div class="command"><pre><code id="command">npm install @example/ui</code></pre><button class="quiet-action" type="button" id="copy" aria-label="Copy installation command">Copy</button></div><p id="copy-status" role="status"></p></section>
90
+ <section id="start"><h1>A smaller set of design decisions.</h1><p>Keep navigation, examples, and reference text in a balanced frame. The content stays left aligned and the first useful step is easy to find.</p><p class="meta">Illustrative setup command</p><div class="code command compact"><pre tabindex="0" role="region" aria-label="Installation command"><code id="command"><span class="line"><span>npm install @example/ui</span></span></code></pre><button class="quiet-action copy" type="button" id="copy" aria-label="Copy installation command"><svg class="icon" aria-hidden="true"><use href="#i-copy"/></svg></button></div><p class="sr-only" id="copy-status" role="status"></p></section>
68
91
  <section id="structure"><h2>Let the structure do the work</h2><p>Use readable prose and clear section boundaries. Examples can use the full article width without stretching every paragraph.</p><dl class="definitions"><dt>Frame</dt><dd>The navigation and article are centered together.</dd><dt>Measure</dt><dd>Running text has a comfortable reading width.</dd><dt>Evidence</dt><dd>Commands, examples, and caveats stay near the task.</dd></dl></section>
69
92
  <section id="interaction"><h2>Keep the useful paths intact</h2><p>Native links work without JavaScript. Focus stays visible, wide code scrolls within its container, and the page follows the system appearance without an extra theme control.</p></section>
70
93
  </main>
@@ -107,10 +130,28 @@ sectionLinks.forEach((link, index) => link.addEventListener('click', () => jumpT
107
130
  scheduleMark();
108
131
  addEventListener('load', followHash, { once: true });
109
132
 
133
+ // A successful copy swaps the button's icon for a tick for 1.5s, and marks the button data-copied for the
134
+ // colour. A repeat click restarts the wait, and a failure puts the icon back at once. The label and
135
+ // accessible name do not change.
136
+ const ticks = new WeakMap();
137
+ const showCopied = (button, ok) => {
138
+ const use = button.querySelector('.icon use');
139
+ use.dataset.icon ??= use.getAttribute('href');
140
+ const restore = () => { use.setAttribute('href', use.dataset.icon); delete button.dataset.copied; };
141
+ clearTimeout(ticks.get(button));
142
+ if (!ok) { restore(); return; }
143
+ use.setAttribute('href', '#i-tick');
144
+ button.dataset.copied = '';
145
+ ticks.set(button, setTimeout(restore, 1500));
146
+ };
147
+
110
148
  document.getElementById('copy').addEventListener('click', async () => {
111
149
  const status = document.getElementById('copy-status');
112
- try { await navigator.clipboard.writeText(document.getElementById('command').textContent); status.textContent = 'Command copied.'; }
113
- catch { status.textContent = 'Could not copy. Select the command to copy it.'; }
150
+ let ok = true;
151
+ try { await navigator.clipboard.writeText(document.getElementById('command').textContent); }
152
+ catch { ok = false; }
153
+ status.textContent = ok ? 'Copied.' : 'Copy failed. Select the text instead.';
154
+ showCopied(document.getElementById('copy'), ok);
114
155
  });
115
156
  </script>
116
157
  </body>
@@ -1,6 +1,6 @@
1
1
  # Graphite Indigo
2
2
 
3
- Cool graphite surfaces, indigo primary actions, and blue links and focus. Sidebar hover is neutral; current rows use white in light mode and a restrained indigo tint in dark mode. Includes light and dark themes with VS Code Light+ and Dark+ syntax token colors.
3
+ Cool graphite surfaces, indigo primary actions, and blue links and focus. Sidebar hover is neutral; current rows use white in light mode and a restrained indigo tint in dark mode. Includes light and dark themes with VS Code Light+ and Dark+ syntax token colors. Four Light+ colors are a step darker (number, comment, type, attribute), the smallest OKLCH lightness step that keeps their hue and reaches 4.5:1 on the light sidebar, where the design system draws code.
4
4
 
5
5
  ## Try it in T3 Code
6
6
 
@@ -1,5 +1,5 @@
1
1
  # Third-party notices
2
2
 
3
- Syntax token rules and semantic token colors are derived from Microsoft Visual Studio Code Light+ and Dark+ and their base themes. The Microsoft MIT license is included in LICENSE.
3
+ Syntax token rules and semantic token colors are derived from Microsoft Visual Studio Code Light+ and Dark+ and their base themes. Four Light+ colors are darkened slightly for contrast. The Microsoft MIT license is included in LICENSE.
4
4
 
5
5
  Source: https://github.com/microsoft/vscode/tree/main/extensions/theme-defaults/themes
@@ -32,7 +32,7 @@
32
32
  {
33
33
  "scope": "comment",
34
34
  "settings": {
35
- "foreground": "#008000"
35
+ "foreground": "#007a00"
36
36
  }
37
37
  },
38
38
  {
@@ -49,7 +49,7 @@
49
49
  "keyword.operator.minus.exponent"
50
50
  ],
51
51
  "settings": {
52
- "foreground": "#098658"
52
+ "foreground": "#00784b"
53
53
  }
54
54
  },
55
55
  {
@@ -74,7 +74,7 @@
74
74
  {
75
75
  "scope": "entity.other.attribute-name",
76
76
  "settings": {
77
- "foreground": "#e50000"
77
+ "foreground": "#d40000"
78
78
  }
79
79
  },
80
80
  {
@@ -135,7 +135,7 @@
135
135
  {
136
136
  "scope": "markup.inserted",
137
137
  "settings": {
138
- "foreground": "#098658"
138
+ "foreground": "#00784b"
139
139
  }
140
140
  },
141
141
  {
@@ -190,7 +190,7 @@
190
190
  {
191
191
  "scope": "meta.preprocessor.numeric",
192
192
  "settings": {
193
- "foreground": "#098658"
193
+ "foreground": "#00784b"
194
194
  }
195
195
  },
196
196
  {
@@ -299,7 +299,7 @@
299
299
  "source.coffee.embedded"
300
300
  ],
301
301
  "settings": {
302
- "foreground": "#e50000"
302
+ "foreground": "#d40000"
303
303
  }
304
304
  },
305
305
  {
@@ -348,7 +348,7 @@
348
348
  {
349
349
  "scope": "keyword.other.unit",
350
350
  "settings": {
351
- "foreground": "#098658"
351
+ "foreground": "#00784b"
352
352
  }
353
353
  },
354
354
  {
@@ -369,7 +369,7 @@
369
369
  {
370
370
  "scope": "constant.sha.git-rebase",
371
371
  "settings": {
372
- "foreground": "#098658"
372
+ "foreground": "#00784b"
373
373
  }
374
374
  },
375
375
  {
@@ -440,7 +440,7 @@
440
440
  "storage.type.primitive.groovy"
441
441
  ],
442
442
  "settings": {
443
- "foreground": "#267f99"
443
+ "foreground": "#11728b"
444
444
  }
445
445
  },
446
446
  {
@@ -455,7 +455,7 @@
455
455
  "punctuation.separator.namespace.ruby"
456
456
  ],
457
457
  "settings": {
458
- "foreground": "#267f99"
458
+ "foreground": "#11728b"
459
459
  }
460
460
  },
461
461
  {
@@ -588,7 +588,7 @@
588
588
  "newOperator": "#AF00DB",
589
589
  "stringLiteral": "#a31515",
590
590
  "customLiteral": "#795E26",
591
- "numberLiteral": "#098658"
591
+ "numberLiteral": "#00784b"
592
592
  },
593
593
  "name": "Graphite Indigo Light",
594
594
  "type": "light",
@@ -297,13 +297,8 @@
297
297
  .code.compact pre { align-content: center; padding: var(--space-2) var(--space-3); }
298
298
 
299
299
  /* Command plate: components.html#command-plate, unchanged. */
300
- /* The plate is dark in both themes, so its focus ring takes the dark-theme accent, which reaches 3:1 on it,
301
- and muted text, such as Copy at rest, takes the caption colour. */
302
- .code.command { --color-code: color-mix(in srgb, var(--color-command-bg) 55%, var(--color-terminal)); --color-code-text: var(--color-terminal-text); --color-muted: var(--color-terminal-caption-text); --color-focus: var(--color-project-dark); border-color: var(--color-command-border); background: var(--color-command-bg); color: var(--color-terminal-text); }
303
- .code.command .code-head { color: var(--color-terminal-caption-text); }
304
- .code.command .code-head .lang { color: var(--color-terminal-caption-text); }
305
300
  /* The prompt is drawn by CSS, so copied and spoken text omit it. */
306
- .code.command .line::before { content: "$ " / ""; flex: none; white-space: pre; color: var(--color-project-dark); user-select: none; }
301
+ .code.command .line::before { content: "$ " / ""; flex: none; white-space: pre; color: var(--color-accent); user-select: none; }
307
302
 
308
303
  /* Table */
309
304
  .table-wrap { overflow-x: auto; }
@@ -574,7 +569,7 @@
574
569
  <li class="spec"><div class="spec-meta"><span>Reading text and links</span><code>--text-reading --leading --measure</code><span class="use">Underline links in prose</span></div><p class="spec-sample t-reading">A shared language for personal products and tools. The <a href="docs.html">documentation example</a> shows it in a full page.</p></li>
575
570
  <li class="spec"><div class="spec-meta"><span>Secondary text</span><code>--text-sm --color-muted</code></div><p class="spec-sample t-secondary">Updated 4 minutes ago by the nightly sync.</p></li>
576
571
  <li class="spec"><div class="spec-meta"><span>Inline code</span><code>--font-mono --text-code</code></div><p class="spec-sample">Set <code class="t-code">--measure</code> on reading text.</p></li>
577
- <li class="spec"><div class="spec-meta"><span>Shell command</span><code>--color-command-bg --color-project-dark</code><span class="use">A command plate tinted with the hue, with the <code>$</code> prompt drawn by CSS</span></div><div class="code command compact spec-sample"><pre tabindex="0" role="region" aria-label="Sample install command"><code><span class="line"><span>pnpm install --frozen-lockfile</span></span></code></pre></div></li>
572
+ <li class="spec"><div class="spec-meta"><span>Shell command</span><code>--color-code --color-accent</code><span class="use">The normal code well, with the <code>$</code> prompt drawn by CSS in the accent</span></div><div class="code command compact spec-sample"><pre tabindex="0" role="region" aria-label="Sample install command"><code><span class="line"><span>pnpm install --frozen-lockfile</span></span></code></pre></div></li>
578
573
  <li class="spec"><div class="spec-meta"><span>Source code</span><code>--color-code --color-syntax-*</code><span class="use">A theme-matched well with syntax colors and no prompt</span></div><div class="code spec-sample"><pre tabindex="0" role="region" aria-label="Sample monitor"><code><span class="line"><span><span class="c">// Sample monitor</span></span></span><span class="line"><span>{</span></span><span class="line"><span> <span class="k">"metric"</span>: <span class="s">"latency_p95"</span>,</span></span><span class="line"><span> <span class="k">"threshold"</span>: <span class="n">300</span></span></span><span class="line"><span>}</span></span></code></pre></div></li>
579
574
  </ul>
580
575
  </section>
@@ -612,8 +607,8 @@
612
607
  <h4>Identity, links, and focus</h4>
613
608
  <ul class="swatches">
614
609
  <li class="swatch" data-token="--color-project" data-on="--color-bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-project</code><span class="value"></span><span class="ratio"></span><span class="use">The project hue; <code>--color-accent</code> follows it</span></li>
615
- <li class="swatch" data-token="--color-project-dark" data-on="--color-terminal" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-project-dark</code><span class="value"></span><span class="ratio"></span><span class="use">The hue on the terminal plate</span></li>
616
- <li class="swatch" data-token="--color-accent" data-on="--color-bg --color-surface-raised" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-accent</code><span class="value"></span><span class="ratio"></span><span class="use">Primary action fill, marks, current items, checked controls; 4.5:1 where it colors text</span></li>
610
+ <li class="swatch" data-token="--color-project-dark" data-on="--color-terminal" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-project-dark</code><span class="value"></span><span class="ratio"></span><span class="use">The dark-theme hue and the terminal capture accent</span></li>
611
+ <li class="swatch" data-token="--color-accent" data-on="--color-bg --color-surface-raised --color-code" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-accent</code><span class="value"></span><span class="ratio"></span><span class="use">Primary action fill, marks, current items, checked controls; 4.5:1 where it colors text</span></li>
617
612
  <li class="swatch" data-token="--color-accent-text" data-on="--color-accent --color-button-hover" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-accent-text</code><span class="value"></span><span class="ratio"></span><span class="use">Primary button label</span></li>
618
613
  <li class="swatch" data-token="--color-button-hover" data-fg="var(--color-accent-text)" data-on="--color-button-hover" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-button-hover</code><span class="value"></span><span class="ratio"></span><span class="use">Primary button hover</span></li>
619
614
  <li class="swatch" data-token="--color-accent-hover"><i class="chip" aria-hidden="true"></i><code>--color-accent-hover</code><span class="value"></span><span class="use">Accent hover; no core component reads it</span></li>
@@ -651,10 +646,8 @@
651
646
  <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
647
  <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
648
  <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>
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>
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>
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>
657
- <li class="swatch" data-token="--color-project-dark" data-fg="var(--color-project-dark)" data-on="--color-command-bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-project-dark</code><span class="value"></span><span class="ratio"></span><span class="use">The <code>$</code> prompt on the command plate</span></li>
649
+ <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">Kept for compatibility: equals the code well (<code>--color-code</code>) in both appearances</span></li>
650
+ <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">Kept for compatibility: equals the code well edge (<code>--color-border-subtle</code>) in both appearances</span></li>
658
651
  <li class="swatch" data-token="--color-terminal"><i class="chip" aria-hidden="true"></i><code>--color-terminal</code><span class="value"></span><span class="use">Terminal capture plate, in both themes</span></li>
659
652
  <li class="swatch" data-token="--color-terminal-text" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-text</code><span class="value"></span><span class="ratio"></span></li>
660
653
  <li class="swatch" data-token="--color-terminal-border"><i class="chip" aria-hidden="true"></i><code>--color-terminal-border</code><span class="value"></span><span class="use">Terminal plate edge</span></li>
@@ -27,7 +27,7 @@
27
27
  color-scheme: light;
28
28
 
29
29
  /* Identity layer: a project swaps these four lines. --color-project is the light-theme hue;
30
- --color-project-dark is the dark-theme hue, also used on dark plates in both themes. */
30
+ --color-project-dark is the dark-theme hue, also used on terminal captures in both themes. */
31
31
  --color-project: #4b45d1;
32
32
  --color-project-dark: #a5a1ff;
33
33
  --font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
@@ -85,10 +85,10 @@
85
85
  --color-info-surface: #d9e3f2;
86
86
  --color-status-ink: black;
87
87
 
88
- /* Identity layer, derived: terminal folio plates. Commands take the hue; captures stay neutral.
89
- A project without terminal plates leaves these unused. */
90
- --color-command-bg: color-mix(in srgb, var(--color-project) 25%, #101010);
91
- --color-command-border: transparent;
88
+ /* Identity layer: neutral terminal captures in both appearances.
89
+ Command tokens stay as compatibility aliases for the code well and its edge. */
90
+ --color-command-bg: var(--color-code);
91
+ --color-command-border: var(--color-border-subtle);
92
92
  --color-terminal: #0a0c0e;
93
93
  --color-terminal-text: #e6e9eb;
94
94
  --color-terminal-border: #2a3036;
@@ -207,8 +207,6 @@
207
207
  --color-error-surface: #312020;
208
208
  --color-info-surface: #202938;
209
209
  --color-status-ink: var(--color-text);
210
- --color-command-bg: color-mix(in srgb, var(--color-project) 16%, black);
211
- --color-command-border: color-mix(in srgb, var(--color-project) 28%, black);
212
210
  --color-syntax-keyword: #d8c2a5;
213
211
  --color-syntax-string: #a8bd9c;
214
212
  --color-syntax-number: #d5b98c;
@@ -249,8 +247,6 @@
249
247
  --color-error-surface: #312020;
250
248
  --color-info-surface: #202938;
251
249
  --color-status-ink: var(--color-text);
252
- --color-command-bg: color-mix(in srgb, var(--color-project) 16%, black);
253
- --color-command-border: color-mix(in srgb, var(--color-project) 28%, black);
254
250
  --color-syntax-keyword: #d8c2a5;
255
251
  --color-syntax-string: #a8bd9c;
256
252
  --color-syntax-number: #d5b98c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filipgutica/design-system",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "Filip's design language, tokens, and component catalogue for any framework",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -136,14 +136,8 @@ export const core = {
136
136
  },
137
137
  {
138
138
  "tokens": {
139
- "color-command-bg": [
140
- "color-mix(in srgb, {color-project} 25%, #101010)",
141
- "color-mix(in srgb, {color-project} 16%, black)"
142
- ],
143
- "color-command-border": [
144
- "transparent",
145
- "color-mix(in srgb, {color-project} 28%, black)"
146
- ],
139
+ "color-command-bg": "{color-code}",
140
+ "color-command-border": "{color-border-subtle}",
147
141
  "color-terminal": "#0a0c0e",
148
142
  "color-terminal-text": "#e6e9eb",
149
143
  "color-terminal-border": "#2a3036",
@@ -262,6 +262,7 @@ const statusInk = (tone) => [mix(`{${tone}}`, 75, '{color-status-ink}'), mix(`{$
262
262
  */
263
263
  export const CHECKS = [
264
264
  // Rows, tabs, segmented buttons, and code blocks draw their ring inside, over their own fill.
265
+ // Accent on code also measures the shell prompt: color-focus follows color-accent.
265
266
  { id: 'focus', label: 'Focus ring on the page, a surface, a raised surface, and the fills an inset ring sits on', min: 3, kind: 'theme',
266
267
  pairs: on(['{color-focus}'], [
267
268
  ...ON_SURFACES, '{color-row-hover}', '{color-well}', ['{color-control-thumb}', '{color-well}'], '{color-code}',
@@ -277,10 +278,9 @@ export const CHECKS = [
277
278
  pairs: on(['{color-segmented-current-text}'], [['{color-control-thumb}', '{color-well}']]) },
278
279
  { id: 'primary', label: 'Primary label on its fill, at rest and on hover', min: 4.5, kind: 'theme',
279
280
  pairs: on(['{color-accent-text}'], ['{color-accent}', '{color-button-hover}']) },
280
- { id: 'prompt', label: 'The $ prompt on the command plate', min: 3, kind: 'theme',
281
- pairs: on(['{color-project-dark}'], ['{color-command-bg}']) },
282
281
  { id: 'text', label: 'Text and muted text on every fill that carries them, at rest, on hover, and pressed', min: 4.5, kind: 'theme',
283
282
  pairs: [
283
+ // Code and command text are included: color-code follows color-surface, and color-code-text follows color-text.
284
284
  // Surfaces, neutral badges, pressed and disabled-looking wells, fields, hovered rows, radio cards, and pressed toggles.
285
285
  ...on(['{color-text}', '{color-muted}'], [
286
286
  ...ON_SURFACES, '{color-surface-muted}', '{color-well}', '{color-field-bg}', '{color-row-hover}',
@@ -313,8 +313,6 @@ export const CHECKS = [
313
313
  // those pairs as the theme's.
314
314
  { id: 'syntax', label: 'Syntax colours on a code block', min: 4.5, kind: 'core',
315
315
  pairs: on(SYNTAX_ROLES.map((role) => `{color-syntax-${role}}`), ['{color-code}']) },
316
- { id: 'command', label: 'Text and captions on the command plate', min: 4.5, kind: 'core',
317
- pairs: on(['{color-terminal-text}', '{color-terminal-caption-text}'], ['{color-command-bg}', mix('{color-command-bg}', 55, '{color-terminal}')]) },
318
316
  ]
319
317
 
320
318
  /** @typedef {{ ink: string, fill: string, ratio: number }} PairResult */
@@ -10,7 +10,8 @@
10
10
  * theme then never counts as high contrast. Many theme files leave the type to the extension manifest's `uiTheme`;
11
11
  * translate it: `vs` is `light`, `vs-dark` is `dark`, `hc-black` is `hc`, and `hc-light` is `hcLight`.
12
12
  * @property {Record<string, unknown>} [colors] Workbench colours by key, as #rgb, #rgba, #rrggbb, or #rrggbbaa.
13
- * @property {unknown[]} [tokenColors] TextMate rules, `{ scope, settings: { foreground } }`. Merge an `include`'s
13
+ * @property {unknown} [tokenColors] TextMate rules, `{ scope, settings: { foreground } }`, as the file supplies them;
14
+ * anything but an array of rules is ignored, so `./open-vsx` output passes as is. Merge an `include`'s
14
15
  * rules first, so the including file's rules come later and win.
15
16
  */
16
17
  /**
@@ -32,7 +33,7 @@
32
33
  * @property {Mode} appearance The mode the theme is for; a page shows it in that mode only.
33
34
  * @property {boolean} highContrast Whether VS Code marks it high contrast (`hc` or `hcLight`).
34
35
  * @property {string} hue `--color-project`.
35
- * @property {string} hueOnDark `--color-project-dark`: the prompt on the command plate, which is dark in both modes.
36
+ * @property {string} hueOnDark `--color-project-dark`: the terminal capture accent, on its dark plate in both modes.
36
37
  * @property {Record<string, string>} neutrals Every neutral token, by name, such as `color-bg`.
37
38
  * @property {Record<string, string>} syntax The syntax colours the theme sets, by role, such as `comment`. A role
38
39
  * it leaves out stays core.
@@ -70,10 +71,11 @@ export type VsCodeTheme = {
70
71
  */
71
72
  colors?: Record<string, unknown> | undefined;
72
73
  /**
73
- * TextMate rules, `{ scope, settings: { foreground } }`. Merge an `include`'s
74
+ * TextMate rules, `{ scope, settings: { foreground } }`, as the file supplies them;
75
+ * anything but an array of rules is ignored, so `./open-vsx` output passes as is. Merge an `include`'s
74
76
  * rules first, so the including file's rules come later and win.
75
77
  */
76
- tokenColors?: unknown[] | undefined;
78
+ tokenColors?: unknown;
77
79
  };
78
80
  /**
79
81
  * A contrast check the mapped theme fails in its mode. A `theme` problem is in the theme's own colours, or a
@@ -118,7 +120,7 @@ export type MappedTheme = {
118
120
  */
119
121
  hue: string;
120
122
  /**
121
- * `--color-project-dark`: the prompt on the command plate, which is dark in both modes.
123
+ * `--color-project-dark`: the terminal capture accent, on its dark plate in both modes.
122
124
  */
123
125
  hueOnDark: string;
124
126
  /**
@@ -17,7 +17,8 @@ import { CHECKS, LIGHT, NEUTRALS, SYNTAX_ROLES, TEXT_ON_FILL_TOKENS, applyTheme,
17
17
  * theme then never counts as high contrast. Many theme files leave the type to the extension manifest's `uiTheme`;
18
18
  * translate it: `vs` is `light`, `vs-dark` is `dark`, `hc-black` is `hc`, and `hc-light` is `hcLight`.
19
19
  * @property {Record<string, unknown>} [colors] Workbench colours by key, as #rgb, #rgba, #rrggbb, or #rrggbbaa.
20
- * @property {unknown[]} [tokenColors] TextMate rules, `{ scope, settings: { foreground } }`. Merge an `include`'s
20
+ * @property {unknown} [tokenColors] TextMate rules, `{ scope, settings: { foreground } }`, as the file supplies them;
21
+ * anything but an array of rules is ignored, so `./open-vsx` output passes as is. Merge an `include`'s
21
22
  * rules first, so the including file's rules come later and win.
22
23
  */
23
24
  /**
@@ -39,7 +40,7 @@ import { CHECKS, LIGHT, NEUTRALS, SYNTAX_ROLES, TEXT_ON_FILL_TOKENS, applyTheme,
39
40
  * @property {Mode} appearance The mode the theme is for; a page shows it in that mode only.
40
41
  * @property {boolean} highContrast Whether VS Code marks it high contrast (`hc` or `hcLight`).
41
42
  * @property {string} hue `--color-project`.
42
- * @property {string} hueOnDark `--color-project-dark`: the prompt on the command plate, which is dark in both modes.
43
+ * @property {string} hueOnDark `--color-project-dark`: the terminal capture accent, on its dark plate in both modes.
43
44
  * @property {Record<string, string>} neutrals Every neutral token, by name, such as `color-bg`.
44
45
  * @property {Record<string, string>} syntax The syntax colours the theme sets, by role, such as `comment`. A role
45
46
  * it leaves out stays core.
@@ -289,9 +290,9 @@ export const mapVsCodeTheme = (theme) => {
289
290
  // When no hue key passes, the first present one stays and its failures are reported; without any, the text.
290
291
  const hue = select(HUE_KEYS, (value) => huePasses(value, value, ['focus', 'nav', 'thumb', 'primary']))
291
292
  ?? HUE_KEYS.map(colour).find((value) => value !== undefined) ?? text
292
- // The command plate and a terminal capture are dark in both modes; a dark theme's hue already reads on them.
293
+ // A terminal capture is dark in both modes; a dark theme's hue already reads on it.
293
294
  const hueOnDark = appearance === 'dark' ? hue
294
- : select([...HUE_KEYS, 'button.foreground'], (value) => huePasses(hue, value, ['prompt', 'terminal'])) ?? bg
295
+ : select([...HUE_KEYS, 'button.foreground'], (value) => huePasses(hue, value, ['terminal'])) ?? bg
295
296
  return { appearance, hue, hueOnDark, neutrals }
296
297
  }
297
298
  // Muted text sits on more fills than the surfaces, such as a hovered row; the text stands in when no key reads on all of them.