@filipgutica/design-system 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/tokens.d.ts +17 -0
- package/dist/tokens.js +272 -0
- package/dist/tokens.json +272 -0
- package/language/DESIGN.md +16 -0
- package/language/components.html +23 -1
- package/language/components.md +2 -0
- package/language/decisions.md +2 -0
- package/language/reference.html +17 -0
- package/language/tokens.css +18 -1
- package/language/ui-sdk.css +111 -0
- package/package.json +20 -17
- package/theme-mapper/core.js +18 -1
- package/theme-mapper/engine.js +6 -0
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Filip's design language for any framework: the spec, the tokens, the component c
|
|
|
10
10
|
|
|
11
11
|
| Path | What it holds |
|
|
12
12
|
| --- | --- |
|
|
13
|
-
| `language/` | The payload: `DESIGN.md`, `components.md`, `decisions.md`, `visualizations.md`, `tokens.css`, the catalogue (`components.html`), example pages, visualization helpers, and the Graphite Indigo editor theme |
|
|
13
|
+
| `language/` | The payload: `DESIGN.md`, `components.md`, `decisions.md`, `visualizations.md`, `tokens.css`, the experimental `ui-sdk.css` component styles for ui-sdk, the catalogue (`components.html`), example pages, visualization helpers, and the Graphite Indigo editor theme |
|
|
14
14
|
| `skills/design-system/`, `.claude-plugin/`, `.codex-plugin/`, `.agents/plugins/` | The agent plugin: the skill that points agents at `language/`, and the Claude and Codex plugin and marketplace manifests. The repository root is the plugin root |
|
|
15
15
|
| `tokens/core.json`, `tokens/themes/*.tokens.json` | The token values, the only place a value lives, and each token's role. Core holds every token; each theme file is a W3C Design Tokens file (2025.10) that holds only its name, a note, its hue pair, and optional fonts and neutrals |
|
|
16
16
|
| `scripts/build-tokens.mjs` | The token generator: writes `language/tokens.css`, `dist/`, and the theme mapper's `core.js`; generates and checks declarations from JSDoc for `theme-mapper/` and `open-vsx/` |
|
|
@@ -34,6 +34,7 @@ npm install @filipgutica/design-system
|
|
|
34
34
|
| Import | What it is |
|
|
35
35
|
| --- | --- |
|
|
36
36
|
| `@filipgutica/design-system/tokens.css` | The tokens. Dark mode follows `prefers-color-scheme`; set `data-theme="light"` or `"dark"` on `<html>` to override it. |
|
|
37
|
+
| `@filipgutica/design-system/ui-sdk.css` | Experimental: draws [ui-sdk](https://ui-sdk.dev)'s headless Button, Field, Input, Textarea, Checkbox, and Radio as the component specs do, checked against `@ui-sdk/*` 0.1.0-beta.5. Load it after `tokens.css`, without ui-sdk's `web.css`; [DESIGN.md](language/DESIGN.md#ui-sdk-experimental) gives the layer order and the supported components. |
|
|
37
38
|
| `@filipgutica/design-system/themes/*.css` | A theme's inputs (hue pair, and any fonts or neutrals): `graphite-indigo` (the default, already in `tokens.css`); the family sites' hues `lagoon` (annoterm), `copper` (devps), `iris` (filip-stack), `lapis` (Workbench), and `fern` (wtree); or the open palettes `catppuccin` and `github`. Load one after `tokens.css`, on `:root`. |
|
|
38
39
|
| `@filipgutica/design-system/themes/*.tokens.json` | Each theme's source as a W3C Design Tokens file (2025.10), for design-token tools such as Style Dictionary and Tokens Studio. |
|
|
39
40
|
| `@filipgutica/design-system/fonts.css` | IBM Plex Sans and Mono. |
|
package/dist/tokens.d.ts
CHANGED
|
@@ -49,6 +49,23 @@ export type TokenName =
|
|
|
49
49
|
| 'color-terminal-caption'
|
|
50
50
|
| 'color-terminal-caption-text'
|
|
51
51
|
| 'shadow-nav-current-dark'
|
|
52
|
+
| 'color-terminal-ansi-0'
|
|
53
|
+
| 'color-terminal-ansi-1'
|
|
54
|
+
| 'color-terminal-ansi-2'
|
|
55
|
+
| 'color-terminal-ansi-3'
|
|
56
|
+
| 'color-terminal-ansi-4'
|
|
57
|
+
| 'color-terminal-ansi-5'
|
|
58
|
+
| 'color-terminal-ansi-6'
|
|
59
|
+
| 'color-terminal-ansi-7'
|
|
60
|
+
| 'color-terminal-ansi-8'
|
|
61
|
+
| 'color-terminal-ansi-9'
|
|
62
|
+
| 'color-terminal-ansi-10'
|
|
63
|
+
| 'color-terminal-ansi-11'
|
|
64
|
+
| 'color-terminal-ansi-12'
|
|
65
|
+
| 'color-terminal-ansi-13'
|
|
66
|
+
| 'color-terminal-ansi-14'
|
|
67
|
+
| 'color-terminal-ansi-15'
|
|
68
|
+
| 'color-terminal-ansi-4-bg'
|
|
52
69
|
| 'color-code'
|
|
53
70
|
| 'color-code-text'
|
|
54
71
|
| 'color-syntax-keyword'
|
package/dist/tokens.js
CHANGED
|
@@ -51,6 +51,23 @@ export const tokens = {
|
|
|
51
51
|
"color-terminal-caption": "#13171a",
|
|
52
52
|
"color-terminal-caption-text": "#c9d0d6",
|
|
53
53
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
54
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
55
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
56
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
57
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
58
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
59
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
60
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
61
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
62
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
63
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
64
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
65
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
66
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
67
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
68
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
69
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
70
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
54
71
|
"color-code": "#e9ebed",
|
|
55
72
|
"color-code-text": "#101315",
|
|
56
73
|
"color-syntax-keyword": "#715b42",
|
|
@@ -165,6 +182,23 @@ export const tokens = {
|
|
|
165
182
|
"color-terminal-caption": "#13171a",
|
|
166
183
|
"color-terminal-caption-text": "#c9d0d6",
|
|
167
184
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
185
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
186
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
187
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
188
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
189
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
190
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
191
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
192
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
193
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
194
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
195
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
196
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
197
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
198
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
199
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
200
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
201
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
168
202
|
"color-code": "#13171a",
|
|
169
203
|
"color-code-text": "#e6e9eb",
|
|
170
204
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -281,6 +315,23 @@ export const tokens = {
|
|
|
281
315
|
"color-terminal-caption": "#13171a",
|
|
282
316
|
"color-terminal-caption-text": "#c9d0d6",
|
|
283
317
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
318
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
319
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
320
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
321
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
322
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
323
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
324
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
325
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
326
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
327
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
328
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
329
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
330
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
331
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
332
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
333
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
334
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
284
335
|
"color-code": "#e6e9ef",
|
|
285
336
|
"color-code-text": "#4c4f69",
|
|
286
337
|
"color-syntax-keyword": "#715b42",
|
|
@@ -395,6 +446,23 @@ export const tokens = {
|
|
|
395
446
|
"color-terminal-caption": "#13171a",
|
|
396
447
|
"color-terminal-caption-text": "#c9d0d6",
|
|
397
448
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
449
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
450
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
451
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
452
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
453
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
454
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
455
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
456
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
457
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
458
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
459
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
460
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
461
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
462
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
463
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
464
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
465
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
398
466
|
"color-code": "#181825",
|
|
399
467
|
"color-code-text": "#cdd6f4",
|
|
400
468
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -511,6 +579,23 @@ export const tokens = {
|
|
|
511
579
|
"color-terminal-caption": "#13171a",
|
|
512
580
|
"color-terminal-caption-text": "#c9d0d6",
|
|
513
581
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
582
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
583
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
584
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
585
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
586
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
587
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
588
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
589
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
590
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
591
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
592
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
593
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
594
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
595
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
596
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
597
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
598
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
514
599
|
"color-code": "#e9ebed",
|
|
515
600
|
"color-code-text": "#101315",
|
|
516
601
|
"color-syntax-keyword": "#715b42",
|
|
@@ -625,6 +710,23 @@ export const tokens = {
|
|
|
625
710
|
"color-terminal-caption": "#13171a",
|
|
626
711
|
"color-terminal-caption-text": "#c9d0d6",
|
|
627
712
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
713
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
714
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
715
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
716
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
717
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
718
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
719
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
720
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
721
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
722
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
723
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
724
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
725
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
726
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
727
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
728
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
729
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
628
730
|
"color-code": "#13171a",
|
|
629
731
|
"color-code-text": "#e6e9eb",
|
|
630
732
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -741,6 +843,23 @@ export const tokens = {
|
|
|
741
843
|
"color-terminal-caption": "#13171a",
|
|
742
844
|
"color-terminal-caption-text": "#c9d0d6",
|
|
743
845
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
846
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
847
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
848
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
849
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
850
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
851
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
852
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
853
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
854
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
855
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
856
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
857
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
858
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
859
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
860
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
861
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
862
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
744
863
|
"color-code": "#e9ebed",
|
|
745
864
|
"color-code-text": "#101315",
|
|
746
865
|
"color-syntax-keyword": "#715b42",
|
|
@@ -855,6 +974,23 @@ export const tokens = {
|
|
|
855
974
|
"color-terminal-caption": "#13171a",
|
|
856
975
|
"color-terminal-caption-text": "#c9d0d6",
|
|
857
976
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
977
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
978
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
979
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
980
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
981
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
982
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
983
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
984
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
985
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
986
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
987
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
988
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
989
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
990
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
991
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
992
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
993
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
858
994
|
"color-code": "#13171a",
|
|
859
995
|
"color-code-text": "#e6e9eb",
|
|
860
996
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -971,6 +1107,23 @@ export const tokens = {
|
|
|
971
1107
|
"color-terminal-caption": "#13171a",
|
|
972
1108
|
"color-terminal-caption-text": "#c9d0d6",
|
|
973
1109
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1110
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1111
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1112
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1113
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1114
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1115
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1116
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1117
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1118
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1119
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1120
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1121
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1122
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1123
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1124
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1125
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1126
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
974
1127
|
"color-code": "#f6f8fa",
|
|
975
1128
|
"color-code-text": "#1f2328",
|
|
976
1129
|
"color-syntax-keyword": "#715b42",
|
|
@@ -1085,6 +1238,23 @@ export const tokens = {
|
|
|
1085
1238
|
"color-terminal-caption": "#13171a",
|
|
1086
1239
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1087
1240
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1241
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1242
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1243
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1244
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1245
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1246
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1247
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1248
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1249
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1250
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1251
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1252
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1253
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1254
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1255
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1256
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1257
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1088
1258
|
"color-code": "#151b23",
|
|
1089
1259
|
"color-code-text": "#f0f6fc",
|
|
1090
1260
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -1201,6 +1371,23 @@ export const tokens = {
|
|
|
1201
1371
|
"color-terminal-caption": "#13171a",
|
|
1202
1372
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1203
1373
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1374
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1375
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1376
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1377
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1378
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1379
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1380
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1381
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1382
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1383
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1384
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1385
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1386
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1387
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1388
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1389
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1390
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1204
1391
|
"color-code": "#e9ebed",
|
|
1205
1392
|
"color-code-text": "#101315",
|
|
1206
1393
|
"color-syntax-keyword": "#715b42",
|
|
@@ -1315,6 +1502,23 @@ export const tokens = {
|
|
|
1315
1502
|
"color-terminal-caption": "#13171a",
|
|
1316
1503
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1317
1504
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1505
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1506
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1507
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1508
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1509
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1510
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1511
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1512
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1513
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1514
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1515
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1516
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1517
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1518
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1519
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1520
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1521
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1318
1522
|
"color-code": "#13171a",
|
|
1319
1523
|
"color-code-text": "#e6e9eb",
|
|
1320
1524
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -1431,6 +1635,23 @@ export const tokens = {
|
|
|
1431
1635
|
"color-terminal-caption": "#13171a",
|
|
1432
1636
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1433
1637
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1638
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1639
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1640
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1641
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1642
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1643
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1644
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1645
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1646
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1647
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1648
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1649
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1650
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1651
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1652
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1653
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1654
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1434
1655
|
"color-code": "#e9ebed",
|
|
1435
1656
|
"color-code-text": "#101315",
|
|
1436
1657
|
"color-syntax-keyword": "#715b42",
|
|
@@ -1545,6 +1766,23 @@ export const tokens = {
|
|
|
1545
1766
|
"color-terminal-caption": "#13171a",
|
|
1546
1767
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1547
1768
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1769
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1770
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1771
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1772
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1773
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1774
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1775
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1776
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1777
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1778
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1779
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1780
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1781
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1782
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1783
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1784
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1785
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1548
1786
|
"color-code": "#13171a",
|
|
1549
1787
|
"color-code-text": "#e6e9eb",
|
|
1550
1788
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -1661,6 +1899,23 @@ export const tokens = {
|
|
|
1661
1899
|
"color-terminal-caption": "#13171a",
|
|
1662
1900
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1663
1901
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1902
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1903
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1904
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1905
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1906
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1907
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1908
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1909
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1910
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1911
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1912
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1913
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1914
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1915
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1916
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1917
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1918
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1664
1919
|
"color-code": "#e9ebed",
|
|
1665
1920
|
"color-code-text": "#101315",
|
|
1666
1921
|
"color-syntax-keyword": "#715b42",
|
|
@@ -1775,6 +2030,23 @@ export const tokens = {
|
|
|
1775
2030
|
"color-terminal-caption": "#13171a",
|
|
1776
2031
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1777
2032
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
2033
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
2034
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
2035
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
2036
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
2037
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
2038
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
2039
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
2040
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
2041
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
2042
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
2043
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
2044
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
2045
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
2046
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
2047
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
2048
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
2049
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1778
2050
|
"color-code": "#13171a",
|
|
1779
2051
|
"color-code-text": "#e6e9eb",
|
|
1780
2052
|
"color-syntax-keyword": "#d8c2a5",
|
package/dist/tokens.json
CHANGED
|
@@ -50,6 +50,23 @@
|
|
|
50
50
|
"color-terminal-caption": "#13171a",
|
|
51
51
|
"color-terminal-caption-text": "#c9d0d6",
|
|
52
52
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
53
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
54
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
55
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
56
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
57
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
58
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
59
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
60
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
61
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
62
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
63
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
64
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
65
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
66
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
67
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
68
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
69
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
53
70
|
"color-code": "#e9ebed",
|
|
54
71
|
"color-code-text": "#101315",
|
|
55
72
|
"color-syntax-keyword": "#715b42",
|
|
@@ -164,6 +181,23 @@
|
|
|
164
181
|
"color-terminal-caption": "#13171a",
|
|
165
182
|
"color-terminal-caption-text": "#c9d0d6",
|
|
166
183
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
184
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
185
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
186
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
187
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
188
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
189
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
190
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
191
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
192
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
193
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
194
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
195
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
196
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
197
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
198
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
199
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
200
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
167
201
|
"color-code": "#13171a",
|
|
168
202
|
"color-code-text": "#e6e9eb",
|
|
169
203
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -280,6 +314,23 @@
|
|
|
280
314
|
"color-terminal-caption": "#13171a",
|
|
281
315
|
"color-terminal-caption-text": "#c9d0d6",
|
|
282
316
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
317
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
318
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
319
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
320
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
321
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
322
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
323
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
324
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
325
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
326
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
327
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
328
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
329
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
330
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
331
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
332
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
333
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
283
334
|
"color-code": "#e6e9ef",
|
|
284
335
|
"color-code-text": "#4c4f69",
|
|
285
336
|
"color-syntax-keyword": "#715b42",
|
|
@@ -394,6 +445,23 @@
|
|
|
394
445
|
"color-terminal-caption": "#13171a",
|
|
395
446
|
"color-terminal-caption-text": "#c9d0d6",
|
|
396
447
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
448
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
449
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
450
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
451
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
452
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
453
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
454
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
455
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
456
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
457
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
458
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
459
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
460
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
461
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
462
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
463
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
464
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
397
465
|
"color-code": "#181825",
|
|
398
466
|
"color-code-text": "#cdd6f4",
|
|
399
467
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -510,6 +578,23 @@
|
|
|
510
578
|
"color-terminal-caption": "#13171a",
|
|
511
579
|
"color-terminal-caption-text": "#c9d0d6",
|
|
512
580
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
581
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
582
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
583
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
584
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
585
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
586
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
587
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
588
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
589
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
590
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
591
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
592
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
593
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
594
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
595
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
596
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
597
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
513
598
|
"color-code": "#e9ebed",
|
|
514
599
|
"color-code-text": "#101315",
|
|
515
600
|
"color-syntax-keyword": "#715b42",
|
|
@@ -624,6 +709,23 @@
|
|
|
624
709
|
"color-terminal-caption": "#13171a",
|
|
625
710
|
"color-terminal-caption-text": "#c9d0d6",
|
|
626
711
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
712
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
713
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
714
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
715
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
716
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
717
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
718
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
719
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
720
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
721
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
722
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
723
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
724
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
725
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
726
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
727
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
728
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
627
729
|
"color-code": "#13171a",
|
|
628
730
|
"color-code-text": "#e6e9eb",
|
|
629
731
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -740,6 +842,23 @@
|
|
|
740
842
|
"color-terminal-caption": "#13171a",
|
|
741
843
|
"color-terminal-caption-text": "#c9d0d6",
|
|
742
844
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
845
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
846
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
847
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
848
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
849
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
850
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
851
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
852
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
853
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
854
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
855
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
856
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
857
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
858
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
859
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
860
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
861
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
743
862
|
"color-code": "#e9ebed",
|
|
744
863
|
"color-code-text": "#101315",
|
|
745
864
|
"color-syntax-keyword": "#715b42",
|
|
@@ -854,6 +973,23 @@
|
|
|
854
973
|
"color-terminal-caption": "#13171a",
|
|
855
974
|
"color-terminal-caption-text": "#c9d0d6",
|
|
856
975
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
976
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
977
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
978
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
979
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
980
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
981
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
982
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
983
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
984
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
985
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
986
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
987
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
988
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
989
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
990
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
991
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
992
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
857
993
|
"color-code": "#13171a",
|
|
858
994
|
"color-code-text": "#e6e9eb",
|
|
859
995
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -970,6 +1106,23 @@
|
|
|
970
1106
|
"color-terminal-caption": "#13171a",
|
|
971
1107
|
"color-terminal-caption-text": "#c9d0d6",
|
|
972
1108
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1109
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1110
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1111
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1112
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1113
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1114
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1115
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1116
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1117
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1118
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1119
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1120
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1121
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1122
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1123
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1124
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1125
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
973
1126
|
"color-code": "#f6f8fa",
|
|
974
1127
|
"color-code-text": "#1f2328",
|
|
975
1128
|
"color-syntax-keyword": "#715b42",
|
|
@@ -1084,6 +1237,23 @@
|
|
|
1084
1237
|
"color-terminal-caption": "#13171a",
|
|
1085
1238
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1086
1239
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1240
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1241
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1242
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1243
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1244
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1245
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1246
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1247
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1248
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1249
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1250
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1251
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1252
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1253
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1254
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1255
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1256
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1087
1257
|
"color-code": "#151b23",
|
|
1088
1258
|
"color-code-text": "#f0f6fc",
|
|
1089
1259
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -1200,6 +1370,23 @@
|
|
|
1200
1370
|
"color-terminal-caption": "#13171a",
|
|
1201
1371
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1202
1372
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1373
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1374
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1375
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1376
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1377
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1378
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1379
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1380
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1381
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1382
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1383
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1384
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1385
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1386
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1387
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1388
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1389
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1203
1390
|
"color-code": "#e9ebed",
|
|
1204
1391
|
"color-code-text": "#101315",
|
|
1205
1392
|
"color-syntax-keyword": "#715b42",
|
|
@@ -1314,6 +1501,23 @@
|
|
|
1314
1501
|
"color-terminal-caption": "#13171a",
|
|
1315
1502
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1316
1503
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1504
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1505
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1506
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1507
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1508
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1509
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1510
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1511
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1512
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1513
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1514
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1515
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1516
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1517
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1518
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1519
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1520
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1317
1521
|
"color-code": "#13171a",
|
|
1318
1522
|
"color-code-text": "#e6e9eb",
|
|
1319
1523
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -1430,6 +1634,23 @@
|
|
|
1430
1634
|
"color-terminal-caption": "#13171a",
|
|
1431
1635
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1432
1636
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1637
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1638
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1639
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1640
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1641
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1642
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1643
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1644
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1645
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1646
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1647
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1648
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1649
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1650
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1651
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1652
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1653
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1433
1654
|
"color-code": "#e9ebed",
|
|
1434
1655
|
"color-code-text": "#101315",
|
|
1435
1656
|
"color-syntax-keyword": "#715b42",
|
|
@@ -1544,6 +1765,23 @@
|
|
|
1544
1765
|
"color-terminal-caption": "#13171a",
|
|
1545
1766
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1546
1767
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1768
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1769
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1770
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1771
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1772
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1773
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1774
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1775
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1776
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1777
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1778
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1779
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1780
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1781
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1782
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1783
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1784
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1547
1785
|
"color-code": "#13171a",
|
|
1548
1786
|
"color-code-text": "#e6e9eb",
|
|
1549
1787
|
"color-syntax-keyword": "#d8c2a5",
|
|
@@ -1660,6 +1898,23 @@
|
|
|
1660
1898
|
"color-terminal-caption": "#13171a",
|
|
1661
1899
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1662
1900
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
1901
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
1902
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
1903
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
1904
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
1905
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
1906
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
1907
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
1908
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
1909
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
1910
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
1911
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
1912
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
1913
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
1914
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
1915
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
1916
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
1917
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1663
1918
|
"color-code": "#e9ebed",
|
|
1664
1919
|
"color-code-text": "#101315",
|
|
1665
1920
|
"color-syntax-keyword": "#715b42",
|
|
@@ -1774,6 +2029,23 @@
|
|
|
1774
2029
|
"color-terminal-caption": "#13171a",
|
|
1775
2030
|
"color-terminal-caption-text": "#c9d0d6",
|
|
1776
2031
|
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
2032
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
2033
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
2034
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
2035
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
2036
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
2037
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
2038
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
2039
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
2040
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
2041
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
2042
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
2043
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
2044
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
2045
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
2046
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
2047
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
2048
|
+
"color-terminal-ansi-4-bg": "#3354c4",
|
|
1777
2049
|
"color-code": "#13171a",
|
|
1778
2050
|
"color-code-text": "#e6e9eb",
|
|
1779
2051
|
"color-syntax-keyword": "#d8c2a5",
|
package/language/DESIGN.md
CHANGED
|
@@ -40,6 +40,7 @@ Center the **container**, not every sentence. Align header, content, images, and
|
|
|
40
40
|
## Files and examples
|
|
41
41
|
|
|
42
42
|
- `tokens.css`: the values of the default theme, Graphite Indigo, generated from the token source (`tokens/core.json` and `tokens/themes/graphite-indigo.tokens.json`) in `@filipgutica/design-system`. Other themes ship as `themes/<id>.css`, which set only a theme's inputs: its hue pair, and any fonts or neutrals it brings; load one after `tokens.css`, on `:root`. To change a value, edit the JSON there and run `pnpm tokens:build`; do not edit `tokens.css` by hand. The identity inputs sit in one block at the top.
|
|
43
|
+
- `ui-sdk.css`: experimental. Draws ui-sdk's headless parts as the component specs do; see [ui-sdk](#ui-sdk-experimental).
|
|
43
44
|
- `components.md`: one spec for each component, with anatomy, states, Do and Don't lines, keyboard and screen-reader behavior, motion, and forced colors. Read it for any component work.
|
|
44
45
|
- `components.html`: every component in each of its states, in plain HTML and CSS on `tokens.css`. Copy component markup and styles from there.
|
|
45
46
|
- `decisions.md`: the choices behind the components, and the options they replaced.
|
|
@@ -169,6 +170,21 @@ Each depth tier has one token. [`tokens.css`](tokens.css) holds every shadow val
|
|
|
169
170
|
- Examples: show a live component on a stage above its code, in one frame, with Copy in the code's corner. The stage sits on the page background. See [code block with a live example](components.md#with-a-live-example).
|
|
170
171
|
- A screenshot opens at full size in a [viewer](components.md#viewer) when clicked; use a native accessible trigger and restore its focus on close.
|
|
171
172
|
|
|
173
|
+
### ui-sdk (experimental)
|
|
174
|
+
|
|
175
|
+
[ui-sdk](https://ui-sdk.dev) gives headless, accessible components that an agent can read and operate through its agent bridge. `ui-sdk.css` draws their parts as this file and [`components.md`](components.md) specify. Use ui-sdk only where no owning library covers the framework or the component, such as a React app or a control that `@filipgutica/ui` lacks; where an owning library has the component, use the library's.
|
|
176
|
+
|
|
177
|
+
- Pin every `@ui-sdk/*` package to the exact version `ui-sdk.css` names, `0.1.0-beta.5`. Do not load `@ui-sdk/core/web.css`, its `--ui-*` variables, or the unversioned `https://ui-sdk.dev/web.js`.
|
|
178
|
+
- Load a stylesheet that starts with `@layer ui-sdk, base, components;` first, then `tokens.css` and `ui-sdk.css`. ui-sdk adds the little CSS its behaviour needs to `@layer ui-sdk` at run time, so the declaration keeps it below the design system, and `ui-sdk.css` sits in `components`, above the base as the [component rule](#components) requires. With Tailwind, put the declaration above `@import "tailwindcss"`, so Tailwind's utilities still outrank the components.
|
|
179
|
+
- Supported components, with each variant, size, and state of its [component spec](components.md):
|
|
180
|
+
- [Button](components.md#button): no `data-variant` is primary; `data-variant="secondary"`, `"ghost"`, `"danger"`, or `"text"` picks another, and `data-size="sm"` or `"lg"` a size. A button whose `onClick` returns a promise is busy until it settles: it dims and shows the spinner, so do not add ui-sdk's `data-show="pending"` content. A button rendered as a link (`render={<a href=… />}`) keeps the button's look.
|
|
181
|
+
- [Field wrapper](components.md#field-wrapper) and [Text input and textarea](components.md#text-input-and-textarea): `Field`, `FieldLabel`, `FieldDescription`, `FieldError`, `Input`, and `Textarea`, with `data-size="sm"` or `"lg"` on an `Input`.
|
|
182
|
+
- [Checkbox and radio](components.md#checkbox-and-radio): each `Checkbox` or `Radio` as a direct child of a `<label data-slot="label">` with its text, and radios inside a `RadioGroup`. `data-size="sm"` or `"lg"` goes on the label.
|
|
183
|
+
- At tablet width and below, unsized buttons, inputs, and choice rows grow to `--control-lg` for touch, as the catalogue's do.
|
|
184
|
+
- Any other ui-sdk component or part is unsupported: it renders unstyled. That includes `InputGroup`, `InputClear`, a mixed (indeterminate) checkbox, and radio cards. Use the owning library's component or the [`components.html`](components.html) recipe, or add a spec and its `ui-sdk.css` rules first. Do not style an unsupported part on a page.
|
|
185
|
+
- This file owns the look and the load order. The ui-sdk skill and the docs in the installed `@ui-sdk/*` package own which component to use, composition, `render`, ARIA, and the agent bridge. `interface-design` owns states and copy. The repository's own testing rules apply, not the ui-sdk skill's `test.fails` advice.
|
|
186
|
+
- To let an agent operate the page, create the bridge with `createAgent()` before the app renders; the agent reads with `snapshot()` and acts with `act()`. The app decides whether to expose it, through `createAgent` or WebMCP, and which actions to allow.
|
|
187
|
+
|
|
172
188
|
### Navigation
|
|
173
189
|
|
|
174
190
|
[`components.md`](components.md) specifies each navigation component. These rules decide which one a page uses and how they agree.
|
package/language/components.html
CHANGED
|
@@ -559,6 +559,24 @@
|
|
|
559
559
|
.screen:is(:focus-visible, .is-focus) { outline-offset: calc(var(--focus-width) * -1); }
|
|
560
560
|
.screen .hi { color: var(--color-project-dark); }
|
|
561
561
|
.screen .dim { color: var(--color-terminal-caption-text); }
|
|
562
|
+
/* ANSI output: the classes a capture converter emits for the 16 colours. Black is a background only. */
|
|
563
|
+
.screen .tf1 { color: var(--color-terminal-ansi-1); }
|
|
564
|
+
.screen .tf2 { color: var(--color-terminal-ansi-2); }
|
|
565
|
+
.screen .tf3 { color: var(--color-terminal-ansi-3); }
|
|
566
|
+
.screen .tf4 { color: var(--color-terminal-ansi-4); }
|
|
567
|
+
.screen .tf5 { color: var(--color-terminal-ansi-5); }
|
|
568
|
+
.screen .tf6 { color: var(--color-terminal-ansi-6); }
|
|
569
|
+
.screen .tf7 { color: var(--color-terminal-ansi-7); }
|
|
570
|
+
.screen .tf8 { color: var(--color-terminal-ansi-8); }
|
|
571
|
+
.screen .tf9 { color: var(--color-terminal-ansi-9); }
|
|
572
|
+
.screen .tf10 { color: var(--color-terminal-ansi-10); }
|
|
573
|
+
.screen .tf11 { color: var(--color-terminal-ansi-11); }
|
|
574
|
+
.screen .tf12 { color: var(--color-terminal-ansi-12); }
|
|
575
|
+
.screen .tf13 { color: var(--color-terminal-ansi-13); }
|
|
576
|
+
.screen .tf14 { color: var(--color-terminal-ansi-14); }
|
|
577
|
+
.screen .tf15 { color: var(--color-terminal-ansi-15); }
|
|
578
|
+
.screen .tb0 { background: var(--color-terminal-ansi-0); }
|
|
579
|
+
.screen .tb4 { background: var(--color-terminal-ansi-4-bg); }
|
|
562
580
|
.capture-caption { padding: var(--space-1) var(--space-4); background: var(--color-terminal-caption); color: var(--color-terminal-caption-text); font: var(--text-xs) / var(--leading) var(--font-mono); overflow-wrap: anywhere; }
|
|
563
581
|
|
|
564
582
|
/* Site header */
|
|
@@ -1453,7 +1471,11 @@
|
|
|
1453
1471
|
<div class="capture-head" hidden><button class="quiet-action full" type="button" data-full-size><svg class="icon" aria-hidden="true"><use href="#i-expand"/></svg>Full size</button></div>
|
|
1454
1472
|
<section class="tabpanel" id="cap-status" aria-labelledby="cap-status-heading"><h4 class="tabs-heading" id="cap-status-heading">status</h4><pre class="screen" tabindex="0" role="region" aria-label="status capture"><span class="hi">●</span> host-config <span class="dim">3 targets current</span>
|
|
1455
1473
|
<span class="hi">●</span> field-guide <span class="dim">synced 2 minutes ago</span></pre><p class="capture-caption">~/code/filip-stack · main</p></section>
|
|
1456
|
-
<section class="tabpanel" id="cap-diff" aria-labelledby="cap-diff-heading"><h4 class="tabs-heading" id="cap-diff-heading">diff</h4><pre class="screen" tabindex="0" role="region" aria-label="diff capture"><span class="dim">tokens.css</span>
|
|
1474
|
+
<section class="tabpanel" id="cap-diff" aria-labelledby="cap-diff-heading"><h4 class="tabs-heading" id="cap-diff-heading">diff</h4><pre class="screen" tabindex="0" role="region" aria-label="diff capture"><span class="dim">tokens.css</span> <span class="tf2">+12</span> <span class="tf1">−4</span></pre><p class="capture-caption">~/code/filip-stack · docs/design-catalogue</p></section>
|
|
1475
|
+
<section class="tabpanel" id="cap-colours" aria-labelledby="cap-colours-heading"><h4 class="tabs-heading" id="cap-colours-heading">colours</h4><pre class="screen" tabindex="0" role="region" aria-label="colours capture"><span class="tb0"> </span> <span class="tf1">███</span> <span class="tf2">███</span> <span class="tf3">███</span> <span class="tf4">███</span> <span class="tf5">███</span> <span class="tf6">███</span> <span class="tf7">███</span>
|
|
1476
|
+
<span class="tf8">███</span> <span class="tf9">███</span> <span class="tf10">███</span> <span class="tf11">███</span> <span class="tf12">███</span> <span class="tf13">███</span> <span class="tf14">███</span> <span class="tf15">███</span>
|
|
1477
|
+
<span class="tb4">> tokens.css </span>
|
|
1478
|
+
components.md</pre><p class="capture-caption">~/code/filip-stack · main</p></section>
|
|
1457
1479
|
</div>
|
|
1458
1480
|
</section>
|
|
1459
1481
|
|
package/language/components.md
CHANGED
|
@@ -471,6 +471,8 @@ Layer: Identity.
|
|
|
471
471
|
- **Don't.** A capture for a screenshot of a graphical app. Use a figure.
|
|
472
472
|
- **Keyboard and screen reader.** Tabs follow the tabs spec. Full size opens the selected capture in a [viewer](#viewer) named after it, and focus returns to the button when the viewer closes. Without JavaScript the button is hidden. Focus rings are inset, because the panel clips its content. Without JavaScript, every capture is listed under its own heading.
|
|
473
473
|
- **Header.** The whole panel, header included, is the `--color-terminal` plate in both page appearances, with a 1px `--color-terminal-border` edge. It scopes its own palette so the tabs read on it: current fill `--color-project-dark` at 20% over transparent, with a `--shadow-nav-current-dark` lift, hover `--color-terminal-text` at 4%, selected text, accent, and focus `--color-project-dark`, text `--color-terminal-text`, muted text `--color-terminal-caption-text`, and dividers `--color-terminal-border`. The tab list keeps its 4px block padding, and the Full size control stays centred on the tab row.
|
|
474
|
+
- **ANSI output.** Coloured output reads `--color-terminal-ansi-1` to `-15` as text. Black (`--color-terminal-ansi-0`) is a background only, and a blue background reads `--color-terminal-ansi-4-bg`, which is darker than blue text so `--color-terminal-text` reads on it. Dim text reads `--color-terminal-ansi-8`. A site can still set its own palette over these.
|
|
475
|
+
- **Contrast.** ANSI colours 1 to 15 reach 4.5:1 on `--color-terminal`, and `--color-terminal-text` reaches 4.5:1 on `--color-terminal-ansi-4-bg`.
|
|
474
476
|
- **Motion.** Tabs glide as in the tabs spec; the panel has no motion of its own.
|
|
475
477
|
- **Forced colors.** The plate and the caption drop to the system background and text, the edge draws in the system colour, and the tabs follow the tabs rule.
|
|
476
478
|
|
package/language/decisions.md
CHANGED
|
@@ -15,6 +15,7 @@ Each entry records a choice this language made, the options it rejected, and why
|
|
|
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
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
|
+
| Terminal colours | Identity | Owner decision, 2026-11-14: the 16 ANSI colours that terminal captures use are design-system tokens, `--color-terminal-ansi-0` to `-15`, plus `--color-terminal-ansi-4-bg` for a blue background that terminal text reads on. They keep the values `@filipgutica/ui` drew before, so no capture changes. Colours 1 to 15 reach 4.5:1 on `--color-terminal`; black (colour 0) is a background only, and dim text reads colour 8. | Literal defaults in `@filipgutica/ui`: colour data outside the design system, which breaks the rule that the design system owns colours and component libraries only apply them. One token per colour role, such as a success green: terminal programs choose the slot, so the palette must name slots. | contrast: the core `ansi` check in `theme-mapper/engine.js`, which `tests/site/site.spec.ts` "Themes: every contrast check passes" runs for every theme; parity with the 1.x token set: `tests/token-values.test.mjs` |
|
|
18
19
|
| 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
20
|
| 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
21
|
| 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 |
|
|
@@ -24,6 +25,7 @@ Each entry records a choice this language made, the options it rejected, and why
|
|
|
24
25
|
| 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
26
|
| 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
27
|
| 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` |
|
|
28
|
+
| ui-sdk components | Core | Owner decision, 2026-11-16: the design system draws [ui-sdk](https://ui-sdk.dev)'s headless components itself. `ui-sdk.css` styles their `data-slot` and state attributes in `@layer components`, with the values of the `components.html` recipes, for the components DESIGN.md lists; any other ui-sdk component is unsupported until it has a spec and rules. It is experimental and checked against one exact ui-sdk version, because ui-sdk is in beta and renames parts between betas. The design system takes no runtime dependency on ui-sdk; component libraries keep their own components. | ui-sdk's optional `web.css` themed through its `--ui-*` variables: one radius, one spacing unit, and one ring could not draw shape by role, control sizes, depth, or field focus, and its link and focus rules replaced the base's. Shared `:is(.class, [data-slot])` rules: the parts differ in structure from the native recipes, such as a checkbox that is a button with an indicator. | Parity: `tests/react-smoke/ui-sdk.spec.ts` "ui-sdk parts match the catalogue" compares each part with its `components.html` specimen, state by state, in light and dark; rendered parts: "every part ui-sdk.css draws renders from the installed ui-sdk"; pins and tokens: `tests/ui-sdk-css.test.mjs` |
|
|
27
29
|
| 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
30
|
| 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" |
|
|
29
31
|
| One-line non-action controls | Core | A one-line control that is not an action takes the 10px field corner (`--radius-field`), as a select does: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary ("On this page"), and the skip link. The project trigger keeps the quiet-action tint. The owner chose it on 2026-11-10. | The pill (`--radius-control`): a pill means an action, and these controls open a menu or list, pick a value, or move focus. 16px (`--radius-panel`), like the menu and other floating layers: on a one-line control 40 to 44px tall it reads almost as a pill. | 10px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one" |
|
package/language/reference.html
CHANGED
|
@@ -653,6 +653,23 @@
|
|
|
653
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>
|
|
654
654
|
<li class="swatch" data-token="--color-terminal-caption"><i class="chip" aria-hidden="true"></i><code>--color-terminal-caption</code><span class="value"></span><span class="use">Status-line caption under a terminal capture</span></li>
|
|
655
655
|
<li class="swatch" data-token="--color-terminal-caption-text" data-on="--color-terminal-caption" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-caption-text</code><span class="value"></span><span class="ratio"></span></li>
|
|
656
|
+
<li class="swatch" data-token="--color-terminal-ansi-0"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-0</code><span class="value"></span><span class="use">ANSI colour 0, black, in a terminal capture; too dark for text on the plate, so captures use it as a background</span></li>
|
|
657
|
+
<li class="swatch" data-token="--color-terminal-ansi-1" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-1</code><span class="value"></span><span class="ratio"></span></li>
|
|
658
|
+
<li class="swatch" data-token="--color-terminal-ansi-2" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-2</code><span class="value"></span><span class="ratio"></span></li>
|
|
659
|
+
<li class="swatch" data-token="--color-terminal-ansi-3" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-3</code><span class="value"></span><span class="ratio"></span></li>
|
|
660
|
+
<li class="swatch" data-token="--color-terminal-ansi-4" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-4</code><span class="value"></span><span class="ratio"></span></li>
|
|
661
|
+
<li class="swatch" data-token="--color-terminal-ansi-5" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-5</code><span class="value"></span><span class="ratio"></span></li>
|
|
662
|
+
<li class="swatch" data-token="--color-terminal-ansi-6" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-6</code><span class="value"></span><span class="ratio"></span></li>
|
|
663
|
+
<li class="swatch" data-token="--color-terminal-ansi-7" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-7</code><span class="value"></span><span class="ratio"></span></li>
|
|
664
|
+
<li class="swatch" data-token="--color-terminal-ansi-8" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-8</code><span class="value"></span><span class="ratio"></span></li>
|
|
665
|
+
<li class="swatch" data-token="--color-terminal-ansi-9" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-9</code><span class="value"></span><span class="ratio"></span></li>
|
|
666
|
+
<li class="swatch" data-token="--color-terminal-ansi-10" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-10</code><span class="value"></span><span class="ratio"></span></li>
|
|
667
|
+
<li class="swatch" data-token="--color-terminal-ansi-11" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-11</code><span class="value"></span><span class="ratio"></span></li>
|
|
668
|
+
<li class="swatch" data-token="--color-terminal-ansi-12" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-12</code><span class="value"></span><span class="ratio"></span></li>
|
|
669
|
+
<li class="swatch" data-token="--color-terminal-ansi-13" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-13</code><span class="value"></span><span class="ratio"></span></li>
|
|
670
|
+
<li class="swatch" data-token="--color-terminal-ansi-14" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-14</code><span class="value"></span><span class="ratio"></span></li>
|
|
671
|
+
<li class="swatch" data-token="--color-terminal-ansi-15" data-on="--color-terminal" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-15</code><span class="value"></span><span class="ratio"></span></li>
|
|
672
|
+
<li class="swatch" data-token="--color-terminal-ansi-4-bg"><i class="chip" aria-hidden="true"></i><code>--color-terminal-ansi-4-bg</code><span class="value"></span><span class="use">ANSI colour 4 as a background, darker than the text colour so terminal text reads on it</span></li>
|
|
656
673
|
</ul>
|
|
657
674
|
</section>
|
|
658
675
|
|
package/language/tokens.css
CHANGED
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
--color-info-surface: #d9e3f2;
|
|
86
86
|
--color-status-ink: black;
|
|
87
87
|
|
|
88
|
-
/* Identity layer: neutral terminal captures in both appearances.
|
|
88
|
+
/* Identity layer: neutral terminal captures in both appearances, with the ANSI colours their output uses.
|
|
89
89
|
Command tokens stay as compatibility aliases for the code well and its edge. */
|
|
90
90
|
--color-command-bg: var(--color-code);
|
|
91
91
|
--color-command-border: var(--color-border-subtle);
|
|
@@ -96,6 +96,23 @@
|
|
|
96
96
|
--color-terminal-caption-text: #c9d0d6;
|
|
97
97
|
/* The terminal capture's header stays dark in both appearances, so its selected tab keeps the dark lift. */
|
|
98
98
|
--shadow-nav-current-dark: 0 1px 2px rgb(0 0 0 / 25%);
|
|
99
|
+
--color-terminal-ansi-0: #2b2b31;
|
|
100
|
+
--color-terminal-ansi-1: #f0776c;
|
|
101
|
+
--color-terminal-ansi-2: #4cc38a;
|
|
102
|
+
--color-terminal-ansi-3: #e2a54b;
|
|
103
|
+
--color-terminal-ansi-4: #7d97ff;
|
|
104
|
+
--color-terminal-ansi-5: #c792ea;
|
|
105
|
+
--color-terminal-ansi-6: #5fd3d9;
|
|
106
|
+
--color-terminal-ansi-7: #c8c8d0;
|
|
107
|
+
--color-terminal-ansi-8: #a0a0ab;
|
|
108
|
+
--color-terminal-ansi-9: #ff8f85;
|
|
109
|
+
--color-terminal-ansi-10: #6fd3a0;
|
|
110
|
+
--color-terminal-ansi-11: #e8b56a;
|
|
111
|
+
--color-terminal-ansi-12: #7d97ff;
|
|
112
|
+
--color-terminal-ansi-13: #d9a8f0;
|
|
113
|
+
--color-terminal-ansi-14: #8ee3e8;
|
|
114
|
+
--color-terminal-ansi-15: #ffffff;
|
|
115
|
+
--color-terminal-ansi-4-bg: #3354c4;
|
|
99
116
|
|
|
100
117
|
/* Source code wells */
|
|
101
118
|
--color-code: var(--color-surface);
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Experimental: this design language drawn on ui-sdk's headless components (https://ui-sdk.dev),
|
|
3
|
+
* checked against @ui-sdk/* 0.1.0-beta.5. It may change in any release until ui-sdk leaves
|
|
4
|
+
* beta. Pin @ui-sdk/* to that exact version.
|
|
5
|
+
*
|
|
6
|
+
* ui-sdk renders unstyled markup with data-slot and state attributes, such as data-checked,
|
|
7
|
+
* data-disabled, and data-invalid. These rules draw those parts as components.md specifies,
|
|
8
|
+
* with the same values as the components.html recipes; do not load @ui-sdk/core/web.css.
|
|
9
|
+
* DESIGN.md "ui-sdk (experimental)" gives the load order and the supported components. A
|
|
10
|
+
* ui-sdk component this file does not draw is unsupported: it renders unstyled.
|
|
11
|
+
*
|
|
12
|
+
* The rules sit in @layer components, so they outrank the tokens.css base, and a page's
|
|
13
|
+
* utilities layer can adjust size, spacing, and position. ui-sdk adds its behaviour CSS to
|
|
14
|
+
* @layer ui-sdk at run time. In a plain app that loads tokens.css and then this file, the
|
|
15
|
+
* statement below ranks that layer under these rules. A page with Tailwind or another layered
|
|
16
|
+
* stylesheet declares the order first, as DESIGN.md says, because a layer ranks where its name
|
|
17
|
+
* first appears.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
@layer ui-sdk, components;
|
|
21
|
+
|
|
22
|
+
@layer components {
|
|
23
|
+
/* ---------- Button ---------- */
|
|
24
|
+
/* No data-variant is the primary button; data-variant="secondary", "ghost", "danger", or "text"
|
|
25
|
+
picks another, and data-size="sm" or "lg" another size. */
|
|
26
|
+
[data-slot="button"] { --depth: var(--shadow-raise); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-md); padding: 0 var(--space-3); border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-accent); color: var(--color-accent-text); box-shadow: var(--depth); font: var(--weight-medium) var(--text-md) / 1.25 var(--font-ui); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
|
|
27
|
+
[data-slot="button"][data-size="sm"] { min-height: var(--control-sm); padding: 0 0.625rem; font-size: var(--text-sm); }
|
|
28
|
+
[data-slot="button"][data-size="lg"] { min-height: var(--control-lg); padding: 0 var(--space-4); font-size: var(--text-lg); }
|
|
29
|
+
[data-slot="button"][data-variant="secondary"] { background: var(--color-control-thumb); color: var(--color-text); }
|
|
30
|
+
[data-slot="button"][data-variant="ghost"] { --depth: none; background: transparent; color: var(--color-muted); }
|
|
31
|
+
/* Danger rises like the other filled variants; its text mixes the hue toward --color-text, as status badges do. */
|
|
32
|
+
[data-slot="button"][data-variant="danger"] { background: var(--color-error-surface); color: light-dark(color-mix(in srgb, var(--color-error) 75%, var(--color-status-ink)), color-mix(in srgb, var(--color-error) 85%, var(--color-status-ink))); }
|
|
33
|
+
[data-slot="button"][data-variant="text"] { --depth: none; min-height: auto; padding: var(--space-1); background: transparent; color: var(--color-link); text-decoration: underline; text-underline-offset: 0.2em; }
|
|
34
|
+
@media (hover: hover) {
|
|
35
|
+
[data-slot="button"]:hover:not([data-disabled], [data-pending]) { background: var(--color-button-hover); }
|
|
36
|
+
[data-slot="button"][data-variant="secondary"]:hover:not([data-disabled], [data-pending]) { background: color-mix(in srgb, var(--color-text) 8%, var(--color-control-thumb)); }
|
|
37
|
+
[data-slot="button"][data-variant="ghost"]:hover:not([data-disabled], [data-pending]) { background: var(--color-row-hover); color: var(--color-text); }
|
|
38
|
+
[data-slot="button"][data-variant="danger"]:hover:not([data-disabled], [data-pending]) { background: color-mix(in srgb, var(--color-error) 10%, var(--color-error-surface)); }
|
|
39
|
+
[data-slot="button"][data-variant="text"]:hover:not([data-disabled], [data-pending]) { background: transparent; }
|
|
40
|
+
}
|
|
41
|
+
/* A press sinks the button 1px and changes its fill, so the click reads at a glance. */
|
|
42
|
+
[data-slot="button"]:not([data-variant]):is(:active, [aria-pressed="true"]):not([data-disabled], [data-pending]) { background: var(--color-button-hover); }
|
|
43
|
+
[data-slot="button"]:is([data-variant="secondary"], [data-variant="ghost"]):is(:active, [aria-pressed="true"]):not([data-disabled], [data-pending]) { background: var(--color-well); }
|
|
44
|
+
[data-slot="button"][data-variant="danger"]:is(:active, [aria-pressed="true"]):not([data-disabled], [data-pending]) { background: color-mix(in srgb, var(--color-error) 16%, var(--color-error-surface)); }
|
|
45
|
+
[data-slot="button"]:not([data-variant="text"]):is(:active, [aria-pressed="true"]):not([data-disabled], [data-pending]) { --depth: var(--shadow-sink); transform: translateY(1px); }
|
|
46
|
+
/* ui-sdk marks a pending button, one whose async action is running, with data-pending and aria-busy
|
|
47
|
+
but not data-disabled. Busy is disabled in the spec, so it dims and takes no hover or press too. */
|
|
48
|
+
[data-slot="button"]:is([data-disabled], [data-pending]) { --depth: none; opacity: 0.58; cursor: not-allowed; }
|
|
49
|
+
[data-slot="button"][aria-busy="true"] { cursor: wait; }
|
|
50
|
+
[data-slot="button"][aria-busy="true"]::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ui-sdk-spin 700ms linear infinite; }
|
|
51
|
+
@keyframes ui-sdk-spin { to { transform: rotate(360deg); } }
|
|
52
|
+
|
|
53
|
+
/* ---------- Field wrapper, input, and textarea ---------- */
|
|
54
|
+
[data-slot="field"] { display: grid; gap: 0.375rem; justify-items: start; min-width: 0; }
|
|
55
|
+
[data-slot="field-label"] { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
|
|
56
|
+
[data-slot="field-description"] { font-size: var(--text-sm); color: var(--color-muted); }
|
|
57
|
+
[data-slot="field-error"] { font-size: var(--text-sm); color: var(--color-error); }
|
|
58
|
+
:is([data-slot="input"], [data-slot="textarea"]) { --depth: var(--shadow-field); width: 100%; border: 1px solid var(--color-field-edge); border-radius: var(--radius-field); background: var(--color-field-bg); box-shadow: var(--depth); color: var(--color-text); font: var(--text-md) / 1.35 var(--font-ui); }
|
|
59
|
+
[data-slot="input"] { height: var(--control-md); padding: 0 0.625rem; }
|
|
60
|
+
[data-slot="input"][data-size="sm"] { height: var(--control-sm); padding-inline: 0.5625rem; font-size: var(--text-sm); }
|
|
61
|
+
[data-slot="input"][data-size="lg"] { height: var(--control-lg); padding-inline: 0.6875rem; font-size: var(--text-lg); }
|
|
62
|
+
[data-slot="textarea"] { display: block; min-height: 5.5rem; padding: 0.625rem; resize: vertical; }
|
|
63
|
+
:is([data-slot="input"], [data-slot="textarea"])::placeholder { color: var(--color-muted); opacity: 1; }
|
|
64
|
+
/* A disabled field drops into the grey well (the same fill as rest in dark) and loses its shadow. */
|
|
65
|
+
:is([data-slot="input"], [data-slot="textarea"]):disabled { background-color: var(--color-well); box-shadow: none; opacity: 0.58; cursor: not-allowed; }
|
|
66
|
+
:is([data-slot="input"], [data-slot="textarea"])[aria-invalid="true"] { border-color: var(--color-error); }
|
|
67
|
+
/* Fields draw no ring: the edge turns the accent with a muted accent line inside it, and the fill stays. */
|
|
68
|
+
:is([data-slot="input"], [data-slot="textarea"]):focus-visible { outline: none; border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
|
|
69
|
+
:is([data-slot="input"], [data-slot="textarea"])[aria-invalid="true"]:focus-visible { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
|
|
70
|
+
|
|
71
|
+
/* ---------- Checkbox and radio ---------- */
|
|
72
|
+
/* ui-sdk's checkbox and radio are buttons with role="checkbox" or "radio" inside a data-slot="label" label;
|
|
73
|
+
the indicator exists only while the control is checked. */
|
|
74
|
+
[data-slot="radio-group"] { display: flex; flex-wrap: wrap; gap: var(--space-4); }
|
|
75
|
+
[data-slot="label"]:has(> :is([data-slot="checkbox"], [data-slot="radio"])) { display: inline-flex; align-items: center; gap: 0.5625rem; min-height: var(--control-md); cursor: pointer; }
|
|
76
|
+
[data-slot="label"][data-size="sm"]:has(> :is([data-slot="checkbox"], [data-slot="radio"])) { min-height: var(--control-sm); font-size: var(--text-sm); }
|
|
77
|
+
[data-slot="label"][data-size="lg"]:has(> :is([data-slot="checkbox"], [data-slot="radio"])) { min-height: var(--control-lg); font-size: var(--text-lg); }
|
|
78
|
+
[data-slot="label"]:has(> [data-disabled]:is([data-slot="checkbox"], [data-slot="radio"])) { opacity: 0.58; cursor: not-allowed; }
|
|
79
|
+
:is([data-slot="checkbox"], [data-slot="radio"]) { display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin: 0; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-inline); background: var(--color-surface-raised); color: var(--color-accent-text); cursor: inherit; }
|
|
80
|
+
[data-slot="label"][data-size="sm"] > :is([data-slot="checkbox"], [data-slot="radio"]) { width: 16px; height: 16px; }
|
|
81
|
+
[data-slot="label"][data-size="lg"] > :is([data-slot="checkbox"], [data-slot="radio"]) { width: 20px; height: 20px; }
|
|
82
|
+
[data-slot="radio"] { border-radius: 50%; }
|
|
83
|
+
[data-slot="checkbox"][data-checked] { border-color: var(--color-accent); background: var(--color-accent); }
|
|
84
|
+
[data-slot="radio"][data-checked] { border-width: 5px; border-color: var(--color-accent); background: var(--color-surface-raised); }
|
|
85
|
+
[data-slot="checkbox-indicator"] { display: grid; place-items: center; }
|
|
86
|
+
/* The spec has no mixed state, and keepMounted leaves the indicator in an unchecked box: neither shows a mark. */
|
|
87
|
+
[data-slot="checkbox-indicator"]:not([data-checked]) { display: none; }
|
|
88
|
+
[data-slot="checkbox-indicator"]:not(:has(svg))::before { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
|
|
89
|
+
[data-slot="checkbox-indicator"] > svg { width: 14px; height: 14px; }
|
|
90
|
+
/* The radio's thick accent border is its mark. */
|
|
91
|
+
[data-slot="radio-indicator"] { display: none; }
|
|
92
|
+
|
|
93
|
+
/* ---------- Focus ---------- */
|
|
94
|
+
/* One ring for every role, over the control's own raise or sink; the base draws the same ring, and this pins it. */
|
|
95
|
+
:is([data-slot="button"], [data-slot="checkbox"], [data-slot="radio"]):focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
|
|
96
|
+
|
|
97
|
+
/* Touch: at tablet width and below, unsized controls grow to --control-lg, as the catalogue's do. */
|
|
98
|
+
@media (max-width: 800px) {
|
|
99
|
+
[data-slot="button"]:not([data-size]) { min-height: var(--control-lg); }
|
|
100
|
+
[data-slot="input"]:not([data-size]) { height: var(--control-lg); }
|
|
101
|
+
[data-slot="label"]:not([data-size]):has(> :is([data-slot="checkbox"], [data-slot="radio"])) { min-height: var(--control-lg); }
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@media (forced-colors: active) {
|
|
105
|
+
/* The inset accent line drops, so a focused field draws the system ring just inside its edge. */
|
|
106
|
+
:is([data-slot="input"], [data-slot="textarea"]):focus-visible { outline: var(--focus-width) solid Highlight; outline-offset: -1px; }
|
|
107
|
+
[data-slot="checkbox"][data-checked] { forced-color-adjust: none; border-color: Highlight; background: Highlight; color: HighlightText; }
|
|
108
|
+
[data-slot="radio"][data-checked] { forced-color-adjust: none; border-color: Highlight; background: HighlightText; }
|
|
109
|
+
:is([data-slot="checkbox"], [data-slot="radio"]):focus-visible { outline-color: CanvasText; }
|
|
110
|
+
}
|
|
111
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@filipgutica/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "Filip's design language, tokens, and component catalogue for any framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"default": "./dist/tokens.js"
|
|
13
13
|
},
|
|
14
14
|
"./tokens.css": "./language/tokens.css",
|
|
15
|
+
"./ui-sdk.css": "./language/ui-sdk.css",
|
|
15
16
|
"./themes/*.css": "./dist/themes/*.css",
|
|
16
17
|
"./themes/*.tokens.json": "./dist/themes/*.tokens.json",
|
|
17
18
|
"./tokens.json": "./dist/tokens.json",
|
|
@@ -66,24 +67,26 @@
|
|
|
66
67
|
},
|
|
67
68
|
"homepage": "https://github.com/filipgutica/design-system#readme",
|
|
68
69
|
"devDependencies": {
|
|
69
|
-
"@axe-core/playwright": "
|
|
70
|
-
"@commitlint/cli": "
|
|
71
|
-
"@commitlint/config-conventional": "
|
|
72
|
-
"@playwright/test": "
|
|
70
|
+
"@axe-core/playwright": "4.14.0",
|
|
71
|
+
"@commitlint/cli": "21.2.4",
|
|
72
|
+
"@commitlint/config-conventional": "21.2.4",
|
|
73
|
+
"@playwright/test": "1.65.0",
|
|
73
74
|
"@semantic-release/commit-analyzer": "13.0.1",
|
|
74
|
-
"@semantic-release/git": "
|
|
75
|
-
"@types/node": "
|
|
76
|
-
"@types/react": "
|
|
77
|
-
"@types/react-dom": "
|
|
78
|
-
"@
|
|
79
|
-
"
|
|
75
|
+
"@semantic-release/git": "10.0.1",
|
|
76
|
+
"@types/node": "24.19.2",
|
|
77
|
+
"@types/react": "19.3.0",
|
|
78
|
+
"@types/react-dom": "19.3.0",
|
|
79
|
+
"@ui-sdk/core": "0.1.0-beta.5",
|
|
80
|
+
"@ui-sdk/react": "0.1.0-beta.5",
|
|
81
|
+
"@vitejs/plugin-react": "6.2.1",
|
|
82
|
+
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
80
83
|
"jszip": "3.10.1",
|
|
81
|
-
"publint": "
|
|
82
|
-
"react": "
|
|
83
|
-
"react-dom": "
|
|
84
|
-
"semantic-release": "
|
|
85
|
-
"typescript": "
|
|
86
|
-
"vite": "
|
|
84
|
+
"publint": "0.3.25",
|
|
85
|
+
"react": "19.3.1",
|
|
86
|
+
"react-dom": "19.3.1",
|
|
87
|
+
"semantic-release": "25.0.9",
|
|
88
|
+
"typescript": "5.9.3",
|
|
89
|
+
"vite": "8.3.6"
|
|
87
90
|
},
|
|
88
91
|
"dependencies": {
|
|
89
92
|
"jsonc-parser": "3.3.1"
|
package/theme-mapper/core.js
CHANGED
|
@@ -143,7 +143,24 @@ export const core = {
|
|
|
143
143
|
"color-terminal-border": "#2a3036",
|
|
144
144
|
"color-terminal-caption": "#13171a",
|
|
145
145
|
"color-terminal-caption-text": "#c9d0d6",
|
|
146
|
-
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)"
|
|
146
|
+
"shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
|
|
147
|
+
"color-terminal-ansi-0": "#2b2b31",
|
|
148
|
+
"color-terminal-ansi-1": "#f0776c",
|
|
149
|
+
"color-terminal-ansi-2": "#4cc38a",
|
|
150
|
+
"color-terminal-ansi-3": "#e2a54b",
|
|
151
|
+
"color-terminal-ansi-4": "#7d97ff",
|
|
152
|
+
"color-terminal-ansi-5": "#c792ea",
|
|
153
|
+
"color-terminal-ansi-6": "#5fd3d9",
|
|
154
|
+
"color-terminal-ansi-7": "#c8c8d0",
|
|
155
|
+
"color-terminal-ansi-8": "#a0a0ab",
|
|
156
|
+
"color-terminal-ansi-9": "#ff8f85",
|
|
157
|
+
"color-terminal-ansi-10": "#6fd3a0",
|
|
158
|
+
"color-terminal-ansi-11": "#e8b56a",
|
|
159
|
+
"color-terminal-ansi-12": "#7d97ff",
|
|
160
|
+
"color-terminal-ansi-13": "#d9a8f0",
|
|
161
|
+
"color-terminal-ansi-14": "#8ee3e8",
|
|
162
|
+
"color-terminal-ansi-15": "#ffffff",
|
|
163
|
+
"color-terminal-ansi-4-bg": "#3354c4"
|
|
147
164
|
}
|
|
148
165
|
},
|
|
149
166
|
{
|
package/theme-mapper/engine.js
CHANGED
|
@@ -301,6 +301,12 @@ export const CHECKS = [
|
|
|
301
301
|
// A terminal capture's highlight and its current tab, in the dark hue on the terminal.
|
|
302
302
|
{ id: 'terminal', label: 'Highlighted text in a terminal capture, and its current tab', min: 4.5, kind: 'theme',
|
|
303
303
|
pairs: on(['{color-project-dark}'], ['{color-terminal}', [mix('{color-project-dark}', 20, 'transparent'), '{color-terminal}']]) },
|
|
304
|
+
// ANSI colour 0 is black: captures use it as a background, so only colours 1 to 15 are measured as text.
|
|
305
|
+
{ id: 'ansi', label: 'ANSI text colours on a terminal capture, and its text on the ANSI blue background', min: 4.5, kind: 'core',
|
|
306
|
+
pairs: [
|
|
307
|
+
...on(Array.from({ length: 15 }, (_, slot) => `{color-terminal-ansi-${slot + 1}}`), ['{color-terminal}']),
|
|
308
|
+
...on(['{color-terminal-text}'], ['{color-terminal-ansi-4-bg}']),
|
|
309
|
+
] },
|
|
304
310
|
{ id: 'link', label: 'Link text on the page, a surface, and a raised surface', min: 4.5, kind: 'core',
|
|
305
311
|
pairs: on(['{color-link}'], ON_SURFACES) },
|
|
306
312
|
{ id: 'status', label: 'Status text on the page, a surface, and a raised surface, on its badge, and on a danger button', min: 4.5, kind: 'core',
|