@filipgutica/design-system 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,11 +11,13 @@ Filip's design language for any framework: the spec, the tokens, the component c
11
11
  | Path | What it holds |
12
12
  | --- | --- |
13
13
  | `language/` | The payload: `DESIGN.md`, `components.md`, `decisions.md`, `visualizations.md`, `tokens.css`, the catalogue (`components.html`), example pages, visualization helpers, and the Graphite Indigo editor theme |
14
- | `tokens/graphite-indigo.json` | The Graphite Indigo token values |
15
- | `scripts/build-tokens.mjs` | The token generator |
16
- | `tests/` | Guard tests for the payload and the tokens |
14
+ | `tokens/graphite-indigo.json` | The Graphite Indigo token values: the only place a value lives |
15
+ | `scripts/build-tokens.mjs` | The token generator: writes `language/tokens.css` and `dist/` |
16
+ | `dist/` | Generated token files for the class flavour, theme overrides, JSON, and JavaScript |
17
+ | `fonts/` | IBM Plex latin `woff2` files, `fonts.css`, and their OFL licences |
18
+ | `tests/` | Guard tests for the payload and the tokens, and the React smoke test |
17
19
 
18
- `language/tokens.css` is a hand copy of the token values. The generator does not write it yet. Its command line still reads ui's `src/theme.css` and writes ui's files, so run it in ui until the JSON takes in the values that only `theme.css` defines. Until then, `tests/token-agreement.test.mjs` holds `tokens.css` to the JSON wherever both define a value.
20
+ To change a value, edit the JSON and run `pnpm tokens:build`. `pnpm tokens:check` fails when a generated file is stale.
19
21
 
20
22
  ## Install
21
23
 
@@ -23,7 +25,17 @@ Filip's design language for any framework: the spec, the tokens, the component c
23
25
  npm install @filipgutica/design-system
24
26
  ```
25
27
 
26
- Read files from `node_modules/@filipgutica/design-system/language/`. For example, link `language/tokens.css` from a standalone HTML page.
28
+ | Import | What it is |
29
+ | --- | --- |
30
+ | `@filipgutica/design-system/tokens.css` | The tokens with their standalone names. Dark mode follows `prefers-color-scheme`; set `data-theme="light"` or `"dark"` on `<html>` to override it. |
31
+ | `@filipgutica/design-system/class/base.css`, `class/themes/*.css` | The same values with `@filipgutica/ui`'s names, for apps that toggle a `.dark` class on `<html>`. Use one flavour per app. |
32
+ | `@filipgutica/design-system/themes/*.css` | A theme's identity inputs (hue pair and fonts), loaded after `tokens.css`. |
33
+ | `@filipgutica/design-system/fonts.css` | IBM Plex Sans and Mono. |
34
+ | `@filipgutica/design-system` | `tokens` (resolved values per theme and mode) and `cssVar(name)`, with types. |
35
+ | `@filipgutica/design-system/tokens.json` | The resolved values as JSON. |
36
+ | `@filipgutica/design-system/language/*` | The spec, catalogue, and example pages. |
37
+
38
+ In a React app, import `tokens.css` and `fonts.css` once in the entry and write `var(--text)` in styles, or `cssVar('text')` in TypeScript. `tests/react-smoke/` is a working example.
27
39
 
28
40
  ## Develop
29
41
 
@@ -33,7 +45,7 @@ pnpm install --frozen-lockfile
33
45
  pnpm verify
34
46
  ```
35
47
 
36
- `pnpm verify` runs the tests, `pnpm pack --dry-run`, and `publint`.
48
+ `pnpm verify` checks the generated files, runs the tests and the React smoke test, then `pnpm pack --dry-run` and `publint`. The smoke test needs Chromium: `pnpm exec playwright install chromium`.
37
49
 
38
50
  ## Release
39
51
 
@@ -47,8 +59,8 @@ Commits follow Conventional Commits, and CI checks them with commitlint. Do not
47
59
 
48
60
  ## History
49
61
 
50
- `language/` came from `host-config/design-language/` in [filip-stack](https://github.com/filipgutica/filip-stack), with its history. The token JSON and generator came from [ui](https://github.com/filipgutica/ui).
62
+ `language/` came from `host-config/design-language/` in [filip-stack](https://github.com/filipgutica/filip-stack), with its history. The token JSON, generator, and fonts came from [ui](https://github.com/filipgutica/ui).
51
63
 
52
64
  ## License
53
65
 
54
- MIT. The editor theme in `language/themes/graphite-indigo/` derives from Visual Studio Code's default themes; see its `LICENSE` and `THIRD_PARTY_NOTICES.md`.
66
+ MIT. The IBM Plex fonts in `fonts/` are under the SIL Open Font License; see the `OFL-*.txt` files beside them. The editor theme in `language/themes/graphite-indigo/` derives from Visual Studio Code's default themes; see its `LICENSE` and `THIRD_PARTY_NOTICES.md`.
@@ -0,0 +1,188 @@
1
+ /* Generated from tokens/graphite-indigo.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
+ * Base tokens for the class flavour: toggle .dark on <html> for dark mode.
3
+ * Keep exactly one :root.dark block: sites copy it into a <noscript> prefers-color-scheme rule. */
4
+
5
+ :root {
6
+ color-scheme: light;
7
+ --color-project: #4b45d1;
8
+ --color-project-dark: #a5a1ff;
9
+ --color-bg: #f4f5f6;
10
+ --color-surface: #e9ebed;
11
+ --color-surface-raised: #fbfbfc;
12
+ --color-surface-muted: #e2e5e8;
13
+ --color-text: #101315;
14
+ --color-muted: #50575e;
15
+ --color-link: #0b5f7c;
16
+ --color-accent: var(--color-project);
17
+ --color-accent-text: var(--color-bg);
18
+ --color-focus: var(--color-accent);
19
+ --color-border: #6d747b;
20
+ --color-border-subtle: #d3d8dd;
21
+ --color-button-bg: var(--color-accent);
22
+ --color-button-text: var(--color-accent-text);
23
+ --color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
24
+ --color-input-bg: var(--color-surface-raised);
25
+ --color-input-text: var(--color-text);
26
+ --color-input-border: var(--color-border);
27
+ --color-input-placeholder: var(--color-muted);
28
+ --color-row-hover: #e2e5e8;
29
+ --color-row-selected: var(--color-surface-raised);
30
+ --color-row-selected-text: var(--color-text);
31
+ --color-code: var(--color-surface);
32
+ --color-code-text: var(--color-text);
33
+ --color-syntax-comment: #626772;
34
+ --color-syntax-keyword: #715b42;
35
+ --color-syntax-string: #346347;
36
+ --color-syntax-number: #86532e;
37
+ --color-syntax-function: var(--color-syntax-keyword);
38
+ --color-syntax-type: var(--color-syntax-number);
39
+ --color-syntax-variable: var(--color-code-text);
40
+ --color-syntax-operator: var(--color-muted);
41
+ --color-syntax-punctuation: var(--color-muted);
42
+ --color-syntax-tag: var(--color-syntax-keyword);
43
+ --color-syntax-attribute: var(--color-syntax-number);
44
+ --color-error: #bd342b;
45
+ --color-warning: #86532e;
46
+ --color-success: #157249;
47
+ --color-info: #175cd3;
48
+ --color-progress: var(--color-accent);
49
+ --color-error-surface: #efe4e4;
50
+ --color-warning-surface: #e7e2de;
51
+ --color-success-surface: #d9e5e1;
52
+ --color-info-surface: #d9e3f2;
53
+ --shadow-dialog: 0 8px 24px rgb(16 16 24 / 12%), 0 0 0 1px var(--color-border-subtle);
54
+ --color-status-text: var(--color-text);
55
+ --color-terminal: #0a0c0e;
56
+ --color-terminal-text: #e6e9eb;
57
+ --color-terminal-border: #2a3036;
58
+ --color-terminal-caption: #13171a;
59
+ --color-terminal-caption-text: #c9d0d6;
60
+ --color-accent-hover: var(--color-text);
61
+ --color-command-bg: color-mix(in srgb, var(--color-project) 25%, #101010);
62
+ --color-command-border: transparent;
63
+ --color-well: var(--color-surface-muted);
64
+ --color-field-bg: var(--color-surface-raised);
65
+ --color-field-edge: var(--color-border-subtle);
66
+ --shadow-field: none;
67
+ --color-control-thumb: var(--color-surface-raised);
68
+ --color-nav-current: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface-raised));
69
+ --color-overlay: rgb(0 0 0 / 42%);
70
+ --shadow-field-focus: inset 0 0 0 2px color-mix(in srgb, var(--color-accent) 18%, transparent);
71
+ --shadow-field-focus-invalid: inset 0 0 0 2px color-mix(in srgb, var(--color-error) 18%, transparent);
72
+ --font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
73
+ --radius-inline: 6px;
74
+ --radius-control: 999px;
75
+ --radius-field: 10px;
76
+ --radius-panel: 16px;
77
+ --shadow-nav-current-dark: 0 1px 2px rgb(0 0 0 / 25%);
78
+ --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
79
+ --focus-width: 2px;
80
+ --focus-offset: 3px;
81
+ --text-xs: 0.75rem;
82
+ --text-sm: 0.8125rem;
83
+ --text-md: 0.875rem;
84
+ --text-lg: 1rem;
85
+ --text-xl: 1.25rem;
86
+ --text-2xl: 1.5rem;
87
+ --leading-tight: 1.25;
88
+ --leading: 1.6;
89
+ --weight-regular: 400;
90
+ --weight-medium: 500;
91
+ --weight-semibold: 600;
92
+ --text-code: 0.84375rem;
93
+ --space-1: 0.25rem;
94
+ --space-2: 0.5rem;
95
+ --space-3: 0.75rem;
96
+ --space-4: 1rem;
97
+ --space-5: 1.25rem;
98
+ --space-6: 1.5rem;
99
+ --space-8: 2rem;
100
+ --space-12: 3rem;
101
+ --space-16: 4rem;
102
+ --control-sm: 2rem;
103
+ --control-md: 2.25rem;
104
+ --control-lg: 2.75rem;
105
+ --measure: 68ch;
106
+ --page-max: 960px;
107
+ --sidebar: 224px;
108
+ --radius-pill: 999px;
109
+ --shadow-raise: 0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%);
110
+ --shadow-surface: 0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%);
111
+ --shadow-sink: inset 1.2px 1.2px 3.6px rgb(130 142 158 / 35%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 80%);
112
+ --shadow-nav-current: 0 1px 3px rgb(130 142 158 / 40%);
113
+ --duration-fast: 120ms;
114
+ --duration: 180ms;
115
+ --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
116
+ --color-shadow: rgb(16 24 40 / 10%);
117
+ --shadow-control: none;
118
+ }
119
+
120
+ :root.dark {
121
+ color-scheme: dark;
122
+ --color-project: var(--color-project-dark);
123
+ --color-project-dark: #a5a1ff;
124
+ --color-bg: #0d1012;
125
+ --color-surface: #13171a;
126
+ --color-surface-raised: #181d21;
127
+ --color-surface-muted: #20262b;
128
+ --color-text: #e6e9eb;
129
+ --color-muted: #9aa3ab;
130
+ --color-link: #67c1df;
131
+ --color-accent: var(--color-project);
132
+ --color-accent-text: var(--color-bg);
133
+ --color-border: #78818a;
134
+ --color-border-subtle: #262d33;
135
+ --color-button-bg: var(--color-accent);
136
+ --color-button-text: var(--color-accent-text);
137
+ --color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
138
+ --color-input-bg: var(--color-surface-raised);
139
+ --color-input-text: var(--color-text);
140
+ --color-input-border: var(--color-border);
141
+ --color-input-placeholder: var(--color-muted);
142
+ --color-row-hover: #20262b;
143
+ --color-row-selected: var(--color-surface-raised);
144
+ --color-row-selected-text: var(--color-text);
145
+ --color-code: var(--color-surface);
146
+ --color-code-text: var(--color-text);
147
+ --color-syntax-comment: #a0a6b1;
148
+ --color-syntax-keyword: #d8c2a5;
149
+ --color-syntax-string: #a8bd9c;
150
+ --color-syntax-number: #d5b98c;
151
+ --color-syntax-function: var(--color-syntax-keyword);
152
+ --color-syntax-type: var(--color-syntax-number);
153
+ --color-syntax-variable: var(--color-code-text);
154
+ --color-syntax-operator: var(--color-muted);
155
+ --color-syntax-punctuation: var(--color-muted);
156
+ --color-syntax-tag: var(--color-syntax-keyword);
157
+ --color-syntax-attribute: var(--color-syntax-number);
158
+ --color-error: #f0776c;
159
+ --color-warning: #e2a54b;
160
+ --color-success: #4cc38a;
161
+ --color-info: #84adff;
162
+ --color-progress: var(--color-accent);
163
+ --color-error-surface: #312020;
164
+ --color-warning-surface: #2f281b;
165
+ --color-success-surface: #172d25;
166
+ --color-info-surface: #202938;
167
+ --shadow-dialog: 0 8px 24px rgb(0 0 0 / 45%), 0 0 0 1px var(--color-border-subtle);
168
+ --color-status-text: var(--color-text);
169
+ --color-terminal: #0a0c0e;
170
+ --color-terminal-text: #e6e9eb;
171
+ --color-terminal-border: #2a3036;
172
+ --color-terminal-caption: #13171a;
173
+ --color-terminal-caption-text: #c9d0d6;
174
+ --color-accent-hover: var(--color-text);
175
+ --color-command-bg: color-mix(in srgb, var(--color-project) 16%, black);
176
+ --color-command-border: color-mix(in srgb, var(--color-project) 28%, black);
177
+ --color-well: color-mix(in srgb, var(--color-bg) 87.5%, black);
178
+ --color-field-bg: var(--color-well);
179
+ --shadow-field: var(--shadow-sink);
180
+ --color-control-thumb: color-mix(in srgb, var(--color-surface-raised) 88%, white);
181
+ --color-nav-current: color-mix(in srgb, var(--color-accent) 20%, transparent);
182
+ --color-overlay: rgb(0 0 0 / 62%);
183
+ --shadow-raise: inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%);
184
+ --shadow-surface: 0 0 0 1px rgb(255 255 255 / 6%);
185
+ --shadow-sink: inset 1.2px 1.2px 3.6px rgb(0 0 0 / 55%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 5%);
186
+ --shadow-nav-current: var(--shadow-nav-current-dark);
187
+ --color-shadow: rgb(0 0 0 / 32%);
188
+ }
@@ -0,0 +1,133 @@
1
+ /* Generated from tokens/graphite-indigo.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
+ * Opt-in Graphite Indigo roles for the class flavour. Import after class/base.css (theme.css in @filipgutica/ui).
3
+ * Dark mode uses the same .dark class as the base. Keep exactly one :root.dark block:
4
+ * sites copy it into a <noscript> prefers-color-scheme rule. */
5
+
6
+ :root {
7
+ color-scheme: light;
8
+ --color-project: #4b45d1;
9
+ --color-project-dark: #a5a1ff;
10
+ --color-bg: #f4f5f6;
11
+ --color-surface: #e9ebed;
12
+ --color-surface-raised: #fbfbfc;
13
+ --color-surface-muted: #e2e5e8;
14
+ --color-text: #101315;
15
+ --color-muted: #50575e;
16
+ --color-link: #0b5f7c;
17
+ --color-accent: var(--color-project);
18
+ --color-accent-text: var(--color-bg);
19
+ --color-focus: var(--color-accent);
20
+ --color-border: #6d747b;
21
+ --color-border-subtle: #d3d8dd;
22
+ --color-button-bg: var(--color-accent);
23
+ --color-button-text: var(--color-accent-text);
24
+ --color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
25
+ --color-input-bg: var(--color-surface-raised);
26
+ --color-input-text: var(--color-text);
27
+ --color-input-border: var(--color-border);
28
+ --color-input-placeholder: var(--color-muted);
29
+ --color-row-hover: #e2e5e8;
30
+ --color-row-selected: var(--color-surface-raised);
31
+ --color-row-selected-text: var(--color-text);
32
+ --color-code: var(--color-surface);
33
+ --color-code-text: var(--color-text);
34
+ --color-syntax-comment: #626772;
35
+ --color-syntax-keyword: #715b42;
36
+ --color-syntax-string: #346347;
37
+ --color-syntax-number: #86532e;
38
+ --color-syntax-function: var(--color-syntax-keyword);
39
+ --color-syntax-type: var(--color-syntax-number);
40
+ --color-syntax-variable: var(--color-code-text);
41
+ --color-syntax-operator: var(--color-muted);
42
+ --color-syntax-punctuation: var(--color-muted);
43
+ --color-syntax-tag: var(--color-syntax-keyword);
44
+ --color-syntax-attribute: var(--color-syntax-number);
45
+ --color-error: #bd342b;
46
+ --color-warning: #86532e;
47
+ --color-success: #157249;
48
+ --color-info: #175cd3;
49
+ --color-progress: var(--color-accent);
50
+ --color-error-surface: #efe4e4;
51
+ --color-warning-surface: #e7e2de;
52
+ --color-success-surface: #d9e5e1;
53
+ --color-info-surface: #d9e3f2;
54
+ --shadow-dialog: 0 8px 24px rgb(16 16 24 / 12%), 0 0 0 1px var(--color-border-subtle);
55
+ --color-status-text: var(--color-text);
56
+ --color-terminal: #0a0c0e;
57
+ --color-terminal-text: #e6e9eb;
58
+ --color-terminal-border: #2a3036;
59
+ --color-terminal-caption: #13171a;
60
+ --color-terminal-caption-text: #c9d0d6;
61
+ --color-accent-hover: var(--color-text);
62
+ --color-command-bg: color-mix(in srgb, var(--color-project) 25%, #101010);
63
+ --color-command-border: transparent;
64
+ --text-3xl: 2.75rem;
65
+ --text-reading: 1rem;
66
+ --text-display: 3.5rem;
67
+ --text-display-sm: 2.125rem;
68
+ --tracking-tight: -0.03em;
69
+ --space-20: 5rem;
70
+ --space-24: 6rem;
71
+ --row: 2.25rem;
72
+ --page-wide: 1120px;
73
+ }
74
+
75
+ :root.dark {
76
+ color-scheme: dark;
77
+ --color-project: var(--color-project-dark);
78
+ --color-project-dark: #a5a1ff;
79
+ --color-bg: #0d1012;
80
+ --color-surface: #13171a;
81
+ --color-surface-raised: #181d21;
82
+ --color-surface-muted: #20262b;
83
+ --color-text: #e6e9eb;
84
+ --color-muted: #9aa3ab;
85
+ --color-link: #67c1df;
86
+ --color-accent: var(--color-project);
87
+ --color-accent-text: var(--color-bg);
88
+ --color-focus: var(--color-accent);
89
+ --color-border: #78818a;
90
+ --color-border-subtle: #262d33;
91
+ --color-button-bg: var(--color-accent);
92
+ --color-button-text: var(--color-accent-text);
93
+ --color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
94
+ --color-input-bg: var(--color-surface-raised);
95
+ --color-input-text: var(--color-text);
96
+ --color-input-border: var(--color-border);
97
+ --color-input-placeholder: var(--color-muted);
98
+ --color-row-hover: #20262b;
99
+ --color-row-selected: var(--color-surface-raised);
100
+ --color-row-selected-text: var(--color-text);
101
+ --color-code: var(--color-surface);
102
+ --color-code-text: var(--color-text);
103
+ --color-syntax-comment: #a0a6b1;
104
+ --color-syntax-keyword: #d8c2a5;
105
+ --color-syntax-string: #a8bd9c;
106
+ --color-syntax-number: #d5b98c;
107
+ --color-syntax-function: var(--color-syntax-keyword);
108
+ --color-syntax-type: var(--color-syntax-number);
109
+ --color-syntax-variable: var(--color-code-text);
110
+ --color-syntax-operator: var(--color-muted);
111
+ --color-syntax-punctuation: var(--color-muted);
112
+ --color-syntax-tag: var(--color-syntax-keyword);
113
+ --color-syntax-attribute: var(--color-syntax-number);
114
+ --color-error: #f0776c;
115
+ --color-warning: #e2a54b;
116
+ --color-success: #4cc38a;
117
+ --color-info: #84adff;
118
+ --color-progress: var(--color-accent);
119
+ --color-error-surface: #312020;
120
+ --color-warning-surface: #2f281b;
121
+ --color-success-surface: #172d25;
122
+ --color-info-surface: #202938;
123
+ --shadow-dialog: 0 8px 24px rgb(0 0 0 / 45%), 0 0 0 1px var(--color-border-subtle);
124
+ --color-status-text: var(--color-text);
125
+ --color-terminal: #0a0c0e;
126
+ --color-terminal-text: #e6e9eb;
127
+ --color-terminal-border: #2a3036;
128
+ --color-terminal-caption: #13171a;
129
+ --color-terminal-caption-text: #c9d0d6;
130
+ --color-accent-hover: var(--color-text);
131
+ --color-command-bg: color-mix(in srgb, var(--color-project) 16%, black);
132
+ --color-command-border: color-mix(in srgb, var(--color-project) 28%, black);
133
+ }
@@ -0,0 +1,9 @@
1
+ /* Generated from tokens/graphite-indigo.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
+ * The graphite-indigo identity inputs for tokens.css. Load after tokens.css. */
3
+
4
+ :root {
5
+ --project: #4b45d1;
6
+ --project-dark: #a5a1ff;
7
+ --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
8
+ --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
9
+ }
@@ -0,0 +1,117 @@
1
+ // Generated from tokens/graphite-indigo.json by scripts/build-tokens.mjs. Do not edit.
2
+ /** A token name: its CSS variable in tokens.css without the leading dashes. */
3
+ export type TokenName =
4
+ | 'project'
5
+ | 'project-dark'
6
+ | 'font-sans'
7
+ | 'font-mono'
8
+ | 'bg'
9
+ | 'surface'
10
+ | 'surface-raised'
11
+ | 'surface-hover'
12
+ | 'field'
13
+ | 'field-bg'
14
+ | 'field-edge'
15
+ | 'field-shadow'
16
+ | 'control-thumb'
17
+ | 'nav-current'
18
+ | 'nav-current-text'
19
+ | 'segmented-current-text'
20
+ | 'row-hover'
21
+ | 'row-selected'
22
+ | 'border-subtle'
23
+ | 'border'
24
+ | 'text'
25
+ | 'text-muted'
26
+ | 'overlay'
27
+ | 'accent'
28
+ | 'accent-text'
29
+ | 'accent-hover'
30
+ | 'button-hover'
31
+ | 'link'
32
+ | 'focus'
33
+ | 'focus-width'
34
+ | 'focus-offset'
35
+ | 'success'
36
+ | 'warning'
37
+ | 'danger'
38
+ | 'info'
39
+ | 'success-soft'
40
+ | 'warning-soft'
41
+ | 'danger-soft'
42
+ | 'info-soft'
43
+ | 'command-bg'
44
+ | 'command-border'
45
+ | 'terminal'
46
+ | 'terminal-text'
47
+ | 'terminal-border'
48
+ | 'terminal-caption'
49
+ | 'terminal-caption-text'
50
+ | 'terminal-shadow-nav-current'
51
+ | 'code-bg'
52
+ | 'code-text'
53
+ | 'code-key'
54
+ | 'code-string'
55
+ | 'code-number'
56
+ | 'code-comment'
57
+ | 'text-xs'
58
+ | 'text-sm'
59
+ | 'text-md'
60
+ | 'text-lg'
61
+ | 'text-xl'
62
+ | 'text-2xl'
63
+ | 'text-3xl'
64
+ | 'text-reading'
65
+ | 'text-display'
66
+ | 'text-display-sm'
67
+ | 'leading-tight'
68
+ | 'leading'
69
+ | 'weight-regular'
70
+ | 'weight-medium'
71
+ | 'weight-semibold'
72
+ | 'tracking-tight'
73
+ | 'text-code'
74
+ | 'space-1'
75
+ | 'space-2'
76
+ | 'space-3'
77
+ | 'space-4'
78
+ | 'space-5'
79
+ | 'space-6'
80
+ | 'space-8'
81
+ | 'space-12'
82
+ | 'space-16'
83
+ | 'space-20'
84
+ | 'space-24'
85
+ | 'control-sm'
86
+ | 'control-md'
87
+ | 'control-lg'
88
+ | 'row'
89
+ | 'measure'
90
+ | 'page-max'
91
+ | 'page-wide'
92
+ | 'sidebar'
93
+ | 'radius-sm'
94
+ | 'radius-md'
95
+ | 'radius-lg'
96
+ | 'radius-field'
97
+ | 'radius-pill'
98
+ | 'shadow-raise'
99
+ | 'shadow-surface'
100
+ | 'shadow-sink'
101
+ | 'shadow-popover'
102
+ | 'shadow-nav-current'
103
+ | 'field-shadow-focus'
104
+ | 'field-shadow-focus-invalid'
105
+ | 'duration-fast'
106
+ | 'duration'
107
+ | 'ease-out'
108
+
109
+ export type ThemeName = 'graphite-indigo'
110
+
111
+ /** Resolved values, as getComputedStyle reports them on the root element. */
112
+ export declare const tokens: {
113
+ themes: Record<ThemeName, { light: Record<TokenName, string>, dark: Record<TokenName, string> }>
114
+ }
115
+
116
+ /** The var() reference for a token, such as cssVar('text') for 'var(--text)'. */
117
+ export declare const cssVar: <Name extends TokenName>(name: Name) => `var(--${Name})`