@filipgutica/design-system 1.0.0 → 1.0.1

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.
Files changed (38) hide show
  1. package/README.md +30 -14
  2. package/dist/class/base.css +188 -0
  3. package/dist/class/themes/graphite-indigo.css +133 -0
  4. package/dist/themes/graphite-indigo.css +9 -0
  5. package/dist/tokens.d.ts +117 -0
  6. package/dist/tokens.js +222 -0
  7. package/dist/tokens.json +218 -0
  8. package/fonts/OFL-IBM-Plex-Mono.txt +93 -0
  9. package/fonts/OFL-IBM-Plex-Sans.txt +93 -0
  10. package/fonts/fonts.css +55 -0
  11. package/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
  12. package/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
  13. package/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
  14. package/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
  15. package/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
  16. package/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
  17. package/language/DESIGN.md +88 -33
  18. package/language/components.html +1057 -408
  19. package/language/components.md +291 -103
  20. package/language/decisions.md +133 -34
  21. package/language/docs.html +29 -25
  22. package/language/implementations.json +85 -0
  23. package/language/product.html +22 -22
  24. package/language/reference.html +238 -227
  25. package/language/tokens.css +142 -143
  26. package/language/visualizations/build-count-report.mjs +4 -2
  27. package/language/visualizations/report.css +2 -2
  28. package/package.json +37 -6
  29. package/scripts/build-tokens.mjs +0 -236
  30. package/tokens/graphite-indigo.json +0 -298
  31. /package/language/{themes → editor-themes}/graphite-indigo/LICENSE +0 -0
  32. /package/language/{themes → editor-themes}/graphite-indigo/README.md +0 -0
  33. /package/language/{themes → editor-themes}/graphite-indigo/SOURCE.json +0 -0
  34. /package/language/{themes → editor-themes}/graphite-indigo/THIRD_PARTY_NOTICES.md +0 -0
  35. /package/language/{themes → editor-themes}/graphite-indigo/graphite-indigo.t3-theme.json +0 -0
  36. /package/language/{themes → editor-themes}/graphite-indigo/package.json +0 -0
  37. /package/language/{themes → editor-themes}/graphite-indigo/themes/graphite-indigo-dark-color-theme.json +0 -0
  38. /package/language/{themes → editor-themes}/graphite-indigo/themes/graphite-indigo-light-color-theme.json +0 -0
package/README.md CHANGED
@@ -4,18 +4,23 @@ Filip's design language for any framework: the spec, the tokens, the component c
4
4
 
5
5
  - **Agents** get `language/` at `~/design-language` through filip-stack host config.
6
6
  - **Vue apps** use [`@filipgutica/ui`](https://github.com/filipgutica/ui), which implements this design language.
7
- - **Pages:** the catalogue and example pages are at <https://filipgutica.github.io/design-system/components.html>.
7
+ - **Site:** <https://filipgutica.github.io/design-system/> has the Overview, Foundations, and Components pages, with `index.json` and `llms.txt` for agents.
8
8
 
9
9
  ## Contents
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 |
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 |
13
+ | `language/` | The payload: `DESIGN.md`, `components.md`, `decisions.md`, `visualizations.md`, `tokens.css`, the catalogue (`components.html`), `implementations.json` (each component's Vue and React version), example pages, visualization helpers, and the Graphite Indigo editor theme |
14
+ | `tokens/graphite-indigo.json` | The Graphite Indigo token values, the only place a value lives, and each token's role |
15
+ | `scripts/build-tokens.mjs` | The token generator: writes `language/tokens.css` and `dist/` |
16
+ | `scripts/build-site.mjs` | The site build: writes `site/` for GitHub Pages from `components.html`, the tokens, and `package.json` |
17
+ | `dist/` | Generated token files for the class flavour, theme overrides, JSON, and JavaScript |
18
+ | `fonts/` | IBM Plex latin `woff2` files, `fonts.css`, and their OFL licences |
19
+ | `tests/` | Guard tests for the payload, the tokens, and the site build, the React smoke test, and behaviour tests for the catalogue and the built site |
17
20
 
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.
21
+ To change a value, edit the JSON and run `pnpm tokens:build`. `pnpm tokens:check` fails when a generated file is stale or a token has no role.
22
+
23
+ `pnpm site:build` writes the site to `site/`. It reads the version from the latest `ds-v*` tag, so it needs the tags in the checkout.
19
24
 
20
25
  ## Install
21
26
 
@@ -23,7 +28,17 @@ Filip's design language for any framework: the spec, the tokens, the component c
23
28
  npm install @filipgutica/design-system
24
29
  ```
25
30
 
26
- Read files from `node_modules/@filipgutica/design-system/language/`. For example, link `language/tokens.css` from a standalone HTML page.
31
+ | Import | What it is |
32
+ | --- | --- |
33
+ | `@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. |
34
+ | `@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. |
35
+ | `@filipgutica/design-system/themes/*.css` | A theme's identity inputs (hue pair and fonts), loaded after `tokens.css`. |
36
+ | `@filipgutica/design-system/fonts.css` | IBM Plex Sans and Mono. |
37
+ | `@filipgutica/design-system` | `tokens` (resolved values per theme and mode) and `cssVar(name)`, with types. |
38
+ | `@filipgutica/design-system/tokens.json` | The resolved values as JSON. |
39
+ | `@filipgutica/design-system/language/*` | The spec, catalogue, and example pages. |
40
+
41
+ In a React app, import `tokens.css` and `fonts.css` once in the entry and write `var(--color-text)` in styles, or `cssVar('color-text')` in TypeScript. `tests/react-smoke/` is a working example.
27
42
 
28
43
  ## Develop
29
44
 
@@ -33,22 +48,23 @@ pnpm install --frozen-lockfile
33
48
  pnpm verify
34
49
  ```
35
50
 
36
- `pnpm verify` runs the tests, `pnpm pack --dry-run`, and `publint`.
51
+ `pnpm verify` checks the generated files, runs the tests, the React smoke test, and the catalogue tests (Find, shortcuts, location, drawer, overflow, and axe), then `pnpm pack --dry-run` and `publint`. The browser tests need Chromium: `pnpm exec playwright install chromium`.
37
52
 
38
53
  ## Release
39
54
 
40
- semantic-release publishes from `main` with npm provenance, as in ui:
55
+ semantic-release publishes from `main` with npm provenance. Releases stay 1.0.x while the design system has no outside users ([decisions.md](language/decisions.md), Versioning):
41
56
 
42
- - `fix` releases a patch.
43
- - `feat` releases a minor.
44
- - A breaking change releases a major.
57
+ - Any commit that releases, such as `fix`, `feat`, or a breaking change, releases a patch.
58
+ - The release notes name a breaking change only when its commit message has `!` after the type or a `BREAKING CHANGE:` footer. Put it there; a marker only in the PR body releases a patch but does not reach the notes.
59
+ - `build`, `chore`, `docs`, `test`, and similar types release nothing, unless the commit or its PR marks a breaking change.
60
+ - Release tags are `ds-v*`. The `v1.0.0`–`v2.4.0` tags and npm versions are the earlier series.
45
61
 
46
62
  Commits follow Conventional Commits, and CI checks them with commitlint. Do not edit the version by hand.
47
63
 
48
64
  ## History
49
65
 
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).
66
+ `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
67
 
52
68
  ## License
53
69
 
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`.
70
+ 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/editor-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
+ --color-project: #4b45d1;
6
+ --color-project-dark: #a5a1ff;
7
+ --font-ui: "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
+ | 'color-project'
5
+ | 'color-project-dark'
6
+ | 'font-ui'
7
+ | 'font-mono'
8
+ | 'color-bg'
9
+ | 'color-surface'
10
+ | 'color-surface-raised'
11
+ | 'color-surface-muted'
12
+ | 'color-well'
13
+ | 'color-field-bg'
14
+ | 'color-field-edge'
15
+ | 'shadow-field'
16
+ | 'color-control-thumb'
17
+ | 'color-nav-current'
18
+ | 'color-nav-current-text'
19
+ | 'color-segmented-current-text'
20
+ | 'color-row-hover'
21
+ | 'color-row-selected'
22
+ | 'color-border-subtle'
23
+ | 'color-border'
24
+ | 'color-text'
25
+ | 'color-muted'
26
+ | 'color-overlay'
27
+ | 'color-accent'
28
+ | 'color-accent-text'
29
+ | 'color-accent-hover'
30
+ | 'color-button-hover'
31
+ | 'color-link'
32
+ | 'color-focus'
33
+ | 'focus-width'
34
+ | 'focus-offset'
35
+ | 'color-success'
36
+ | 'color-warning'
37
+ | 'color-error'
38
+ | 'color-info'
39
+ | 'color-success-surface'
40
+ | 'color-warning-surface'
41
+ | 'color-error-surface'
42
+ | 'color-info-surface'
43
+ | 'color-command-bg'
44
+ | 'color-command-border'
45
+ | 'color-terminal'
46
+ | 'color-terminal-text'
47
+ | 'color-terminal-border'
48
+ | 'color-terminal-caption'
49
+ | 'color-terminal-caption-text'
50
+ | 'shadow-nav-current-dark'
51
+ | 'color-code'
52
+ | 'color-code-text'
53
+ | 'color-syntax-keyword'
54
+ | 'color-syntax-string'
55
+ | 'color-syntax-number'
56
+ | 'color-syntax-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-inline'
94
+ | 'radius-control'
95
+ | 'radius-panel'
96
+ | 'radius-field'
97
+ | 'radius-pill'
98
+ | 'shadow-raise'
99
+ | 'shadow-surface'
100
+ | 'shadow-sink'
101
+ | 'shadow-dialog'
102
+ | 'shadow-nav-current'
103
+ | 'shadow-field-focus'
104
+ | 'shadow-field-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('color-text') for 'var(--color-text)'. */
117
+ export declare const cssVar: <Name extends TokenName>(name: Name) => `var(--${Name})`