@filipgutica/design-system 1.0.15 → 1.0.17

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 (40) hide show
  1. package/README.md +7 -4
  2. package/dist/themes/LICENSE-catppuccin.txt +21 -0
  3. package/dist/themes/LICENSE-primer.txt +21 -0
  4. package/dist/themes/THIRD_PARTY_NOTICES.md +8 -0
  5. package/dist/themes/catppuccin.css +49 -0
  6. package/dist/themes/catppuccin.tokens.json +154 -0
  7. package/dist/themes/copper.css +11 -0
  8. package/dist/themes/copper.tokens.json +28 -0
  9. package/dist/themes/fern.css +11 -0
  10. package/dist/themes/fern.tokens.json +28 -0
  11. package/dist/themes/github.css +49 -0
  12. package/dist/themes/github.tokens.json +182 -0
  13. package/dist/themes/graphite-indigo.css +4 -4
  14. package/dist/themes/graphite-indigo.tokens.json +28 -0
  15. package/dist/themes/iris.css +11 -0
  16. package/dist/themes/iris.tokens.json +28 -0
  17. package/dist/themes/lagoon.css +11 -0
  18. package/dist/themes/lagoon.tokens.json +28 -0
  19. package/dist/themes/lapis.css +11 -0
  20. package/dist/themes/lapis.tokens.json +28 -0
  21. package/dist/tokens.d.ts +9 -1
  22. package/dist/tokens.js +1242 -44
  23. package/dist/tokens.json +1242 -44
  24. package/language/DESIGN.md +2 -2
  25. package/language/components.html +5 -4
  26. package/language/components.md +2 -2
  27. package/language/decisions.md +2 -1
  28. package/language/reference.html +10 -2
  29. package/language/tokens.css +18 -5
  30. package/package.json +8 -2
  31. package/theme-mapper/core.d.ts +2 -0
  32. package/theme-mapper/core.js +275 -0
  33. package/theme-mapper/engine.d.ts +157 -0
  34. package/theme-mapper/engine.js +357 -0
  35. package/theme-mapper/index.d.ts +5 -0
  36. package/theme-mapper/index.js +8 -0
  37. package/theme-mapper/vscode.d.ts +140 -0
  38. package/theme-mapper/vscode.js +359 -0
  39. package/dist/themes/mauve.css +0 -11
  40. package/dist/themes/pine.css +0 -11
package/README.md CHANGED
@@ -11,8 +11,9 @@ 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/core.json`, `tokens/themes/*.json` | The token values, the only place a value lives, and each token's role. Core holds every token; each theme file holds only its name, a note, its hue pair, and optional fonts |
15
- | `scripts/build-tokens.mjs` | The token generator: writes `language/tokens.css` and `dist/` |
14
+ | `tokens/core.json`, `tokens/themes/*.tokens.json` | The token values, the only place a value lives, and each token's role. Core holds every token; each theme file is a W3C Design Tokens file (2025.10) that holds only its name, a note, its hue pair, and optional fonts and neutrals |
15
+ | `scripts/build-tokens.mjs` | The token generator: writes `language/tokens.css`, `dist/`, and the theme mapper's `core.js` and `.d.ts` files, typechecking its JSDoc |
16
+ | `theme-mapper/` | The theme engine the token build shares, and the experimental theme mapper built on it |
16
17
  | `scripts/build-site.mjs` | The site build: writes `site/` for GitHub Pages from `components.html`, the tokens, and `package.json` |
17
18
  | `dist/` | Generated theme files, JSON, and JavaScript |
18
19
  | `fonts/` | IBM Plex latin `woff2` files, `fonts.css`, and their OFL licences |
@@ -31,11 +32,13 @@ npm install @filipgutica/design-system
31
32
  | Import | What it is |
32
33
  | --- | --- |
33
34
  | `@filipgutica/design-system/tokens.css` | The tokens. Dark mode follows `prefers-color-scheme`; set `data-theme="light"` or `"dark"` on `<html>` to override it. |
34
- | `@filipgutica/design-system/themes/*.css` | A theme's identity inputs (hue pair and fonts): `graphite-indigo` (the default, already in `tokens.css`), `mauve`, or `pine`. Load one after `tokens.css`, on `:root`. |
35
+ | `@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`. |
36
+ | `@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. |
35
37
  | `@filipgutica/design-system/fonts.css` | IBM Plex Sans and Mono. |
36
38
  | `@filipgutica/design-system` | `tokens` (resolved values per theme and mode) and `cssVar(name)`, with types. |
37
39
  | `@filipgutica/design-system/tokens.json` | The resolved values as JSON. |
38
40
  | `@filipgutica/design-system/language/*` | The spec, catalogue, and example pages. |
41
+ | `@filipgutica/design-system/theme-mapper` | Experimental: the API may change until a component library uses it. `mapVsCodeTheme(theme)` maps a VS Code colour theme onto theme inputs for its one mode, by selecting the theme's own colours, keeps the syntax colours its `tokenColors` set, and lists each check it still fails as a `theme` or `core` problem. `themeVariables(mapped)` returns the CSS custom properties to set inline on `<html>`, with `data-theme` forced to the theme's mode. Typed, with no framework and no runtime dependencies. |
39
42
 
40
43
  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.
41
44
 
@@ -66,4 +69,4 @@ Commits follow Conventional Commits, and CI checks them with commitlint. Do not
66
69
 
67
70
  ## License
68
71
 
69
- 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`.
72
+ 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`. The Catppuccin and GitHub themes take their colours from those projects' MIT palettes; see `dist/themes/THIRD_PARTY_NOTICES.md` and the licenses beside it.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Catppuccin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 GitHub Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,8 @@
1
+ # Third-party notices
2
+
3
+ Two themes take their colours from open palettes, in their CSS and in their Design Tokens files. The values are copied unaltered; each palette's MIT license sits beside this file.
4
+
5
+ | Theme file | Source | License |
6
+ | --- | --- | --- |
7
+ | `catppuccin.css`, `catppuccin.tokens.json` | Catppuccin Latte and Mocha, from `@catppuccin/palette` 1.8.0 (https://github.com/catppuccin/palette) | [LICENSE-catppuccin.txt](LICENSE-catppuccin.txt) |
8
+ | `github.css`, `github.tokens.json` | GitHub Primer light and dark, from `@primer/primitives` 11.10.0 (https://github.com/primer/primitives) | [LICENSE-primer.txt](LICENSE-primer.txt) |
@@ -0,0 +1,49 @@
1
+ /* Generated from tokens/themes/catppuccin.tokens.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
+ * The Catppuccin theme for tokens.css. Load after tokens.css, on :root only: the tokens that follow the
3
+ * theme resolve on :root, so a theme scoped to an element below it changes its inputs there, but the
4
+ * accent, focus ring, and selection keep the default theme's colours. */
5
+
6
+ :root {
7
+ --color-project: #8839ef;
8
+ --color-project-dark: #cba6f7;
9
+ --font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
10
+ --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
11
+ --color-bg: #eff1f5;
12
+ --color-surface: #e6e9ef;
13
+ --color-surface-raised: #eff1f5;
14
+ --color-surface-muted: #dce0e8;
15
+ --color-nav-current-text: var(--color-text);
16
+ --color-row-hover: #dce0e8;
17
+ --color-border-subtle: #ccd0da;
18
+ --color-border: #7c7f93;
19
+ --color-text: #4c4f69;
20
+ --color-muted: #5c5f77;
21
+ }
22
+
23
+ @media (prefers-color-scheme: dark) {
24
+ :root:not([data-theme="light"]) {
25
+ --color-bg: #11111b;
26
+ --color-surface: #181825;
27
+ --color-surface-raised: #1e1e2e;
28
+ --color-surface-muted: #313244;
29
+ --color-nav-current-text: var(--color-accent);
30
+ --color-row-hover: #313244;
31
+ --color-border-subtle: #45475a;
32
+ --color-border: #7f849c;
33
+ --color-text: #cdd6f4;
34
+ --color-muted: #a6adc8;
35
+ }
36
+ }
37
+
38
+ :root[data-theme="dark"] {
39
+ --color-bg: #11111b;
40
+ --color-surface: #181825;
41
+ --color-surface-raised: #1e1e2e;
42
+ --color-surface-muted: #313244;
43
+ --color-nav-current-text: var(--color-accent);
44
+ --color-row-hover: #313244;
45
+ --color-border-subtle: #45475a;
46
+ --color-border: #7f849c;
47
+ --color-text: #cdd6f4;
48
+ --color-muted: #a6adc8;
49
+ }
@@ -0,0 +1,154 @@
1
+ {
2
+ "$description": "Catppuccin's open palette (@catppuccin/palette 1.8.0, MIT): Latte in light and Mocha in dark, with Mauve as the hue. Base is the raised surface in both modes; Latte has nothing lighter, so base is also its page. Muted text is Subtext 1 in Latte, where Subtext 0 misses 4.5:1.",
3
+ "$extensions": {
4
+ "io.github.filipgutica.design-system": {
5
+ "name": "Catppuccin"
6
+ }
7
+ },
8
+ "light": {
9
+ "$type": "color",
10
+ "color-project": {
11
+ "$value": {
12
+ "colorSpace": "srgb",
13
+ "components": [0.5333, 0.2235, 0.9373],
14
+ "hex": "#8839ef"
15
+ }
16
+ },
17
+ "color-bg": {
18
+ "$value": {
19
+ "colorSpace": "srgb",
20
+ "components": [0.9373, 0.9451, 0.9608],
21
+ "hex": "#eff1f5"
22
+ }
23
+ },
24
+ "color-surface": {
25
+ "$value": {
26
+ "colorSpace": "srgb",
27
+ "components": [0.902, 0.9137, 0.9373],
28
+ "hex": "#e6e9ef"
29
+ }
30
+ },
31
+ "color-surface-raised": {
32
+ "$value": {
33
+ "colorSpace": "srgb",
34
+ "components": [0.9373, 0.9451, 0.9608],
35
+ "hex": "#eff1f5"
36
+ }
37
+ },
38
+ "color-surface-muted": {
39
+ "$value": {
40
+ "colorSpace": "srgb",
41
+ "components": [0.8627, 0.8784, 0.9098],
42
+ "hex": "#dce0e8"
43
+ }
44
+ },
45
+ "color-row-hover": {
46
+ "$value": {
47
+ "colorSpace": "srgb",
48
+ "components": [0.8627, 0.8784, 0.9098],
49
+ "hex": "#dce0e8"
50
+ }
51
+ },
52
+ "color-border-subtle": {
53
+ "$value": {
54
+ "colorSpace": "srgb",
55
+ "components": [0.8, 0.8157, 0.8549],
56
+ "hex": "#ccd0da"
57
+ }
58
+ },
59
+ "color-border": {
60
+ "$value": {
61
+ "colorSpace": "srgb",
62
+ "components": [0.4863, 0.498, 0.5765],
63
+ "hex": "#7c7f93"
64
+ }
65
+ },
66
+ "color-text": {
67
+ "$value": {
68
+ "colorSpace": "srgb",
69
+ "components": [0.298, 0.3098, 0.4118],
70
+ "hex": "#4c4f69"
71
+ }
72
+ },
73
+ "color-muted": {
74
+ "$value": {
75
+ "colorSpace": "srgb",
76
+ "components": [0.3608, 0.3725, 0.4667],
77
+ "hex": "#5c5f77"
78
+ }
79
+ }
80
+ },
81
+ "dark": {
82
+ "$type": "color",
83
+ "color-project": {
84
+ "$value": {
85
+ "colorSpace": "srgb",
86
+ "components": [0.7961, 0.651, 0.9686],
87
+ "hex": "#cba6f7"
88
+ }
89
+ },
90
+ "color-bg": {
91
+ "$value": {
92
+ "colorSpace": "srgb",
93
+ "components": [0.0667, 0.0667, 0.1059],
94
+ "hex": "#11111b"
95
+ }
96
+ },
97
+ "color-surface": {
98
+ "$value": {
99
+ "colorSpace": "srgb",
100
+ "components": [0.0941, 0.0941, 0.1451],
101
+ "hex": "#181825"
102
+ }
103
+ },
104
+ "color-surface-raised": {
105
+ "$value": {
106
+ "colorSpace": "srgb",
107
+ "components": [0.1176, 0.1176, 0.1804],
108
+ "hex": "#1e1e2e"
109
+ }
110
+ },
111
+ "color-surface-muted": {
112
+ "$value": {
113
+ "colorSpace": "srgb",
114
+ "components": [0.1922, 0.1961, 0.2667],
115
+ "hex": "#313244"
116
+ }
117
+ },
118
+ "color-row-hover": {
119
+ "$value": {
120
+ "colorSpace": "srgb",
121
+ "components": [0.1922, 0.1961, 0.2667],
122
+ "hex": "#313244"
123
+ }
124
+ },
125
+ "color-border-subtle": {
126
+ "$value": {
127
+ "colorSpace": "srgb",
128
+ "components": [0.2706, 0.2784, 0.3529],
129
+ "hex": "#45475a"
130
+ }
131
+ },
132
+ "color-border": {
133
+ "$value": {
134
+ "colorSpace": "srgb",
135
+ "components": [0.498, 0.5176, 0.6118],
136
+ "hex": "#7f849c"
137
+ }
138
+ },
139
+ "color-text": {
140
+ "$value": {
141
+ "colorSpace": "srgb",
142
+ "components": [0.8039, 0.8392, 0.9569],
143
+ "hex": "#cdd6f4"
144
+ }
145
+ },
146
+ "color-muted": {
147
+ "$value": {
148
+ "colorSpace": "srgb",
149
+ "components": [0.651, 0.6784, 0.7843],
150
+ "hex": "#a6adc8"
151
+ }
152
+ }
153
+ }
154
+ }
@@ -0,0 +1,11 @@
1
+ /* Generated from tokens/themes/copper.tokens.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
+ * The Copper theme for tokens.css. Load after tokens.css, on :root only: the tokens that follow the
3
+ * theme resolve on :root, so a theme scoped to an element below it changes its inputs there, but the
4
+ * accent, focus ring, and selection keep the default theme's colours. */
5
+
6
+ :root {
7
+ --color-project: #b04003;
8
+ --color-project-dark: #f39a62;
9
+ --font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
10
+ --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
11
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$description": "The devps site's orange, a step darker in light so a selected row reads at 4.5:1: a burnt orange in light and a soft apricot in dark.",
3
+ "$extensions": {
4
+ "io.github.filipgutica.design-system": {
5
+ "name": "Copper"
6
+ }
7
+ },
8
+ "light": {
9
+ "$type": "color",
10
+ "color-project": {
11
+ "$value": {
12
+ "colorSpace": "srgb",
13
+ "components": [0.6902, 0.251, 0.0118],
14
+ "hex": "#b04003"
15
+ }
16
+ }
17
+ },
18
+ "dark": {
19
+ "$type": "color",
20
+ "color-project": {
21
+ "$value": {
22
+ "colorSpace": "srgb",
23
+ "components": [0.9529, 0.6039, 0.3843],
24
+ "hex": "#f39a62"
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,11 @@
1
+ /* Generated from tokens/themes/fern.tokens.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
+ * The Fern theme for tokens.css. Load after tokens.css, on :root only: the tokens that follow the
3
+ * theme resolve on :root, so a theme scoped to an element below it changes its inputs there, but the
4
+ * accent, focus ring, and selection keep the default theme's colours. */
5
+
6
+ :root {
7
+ --color-project: #27752a;
8
+ --color-project-dark: #7fd083;
9
+ --font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
10
+ --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
11
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$description": "The wtree site's green, a step darker in light so a selected row reads at 4.5:1: a leaf green in light and a pale green in dark.",
3
+ "$extensions": {
4
+ "io.github.filipgutica.design-system": {
5
+ "name": "Fern"
6
+ }
7
+ },
8
+ "light": {
9
+ "$type": "color",
10
+ "color-project": {
11
+ "$value": {
12
+ "colorSpace": "srgb",
13
+ "components": [0.1529, 0.4588, 0.1647],
14
+ "hex": "#27752a"
15
+ }
16
+ }
17
+ },
18
+ "dark": {
19
+ "$type": "color",
20
+ "color-project": {
21
+ "$value": {
22
+ "colorSpace": "srgb",
23
+ "components": [0.498, 0.8157, 0.5137],
24
+ "hex": "#7fd083"
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,49 @@
1
+ /* Generated from tokens/themes/github.tokens.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
+ * The GitHub theme for tokens.css. Load after tokens.css, on :root only: the tokens that follow the
3
+ * theme resolve on :root, so a theme scoped to an element below it changes its inputs there, but the
4
+ * accent, focus ring, and selection keep the default theme's colours. */
5
+
6
+ :root {
7
+ --color-project: #1f883d;
8
+ --color-project-dark: #3fb950;
9
+ --font-ui: "Mona Sans VF", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Backtick Fix", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
10
+ --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
11
+ --color-bg: #ffffff;
12
+ --color-surface: #f6f8fa;
13
+ --color-surface-raised: #ffffff;
14
+ --color-surface-muted: #eff2f5;
15
+ --color-nav-current-text: var(--color-text);
16
+ --color-row-hover: #eff2f5;
17
+ --color-border-subtle: #d1d9e0;
18
+ --color-border: #818b98;
19
+ --color-text: #1f2328;
20
+ --color-muted: #59636e;
21
+ }
22
+
23
+ @media (prefers-color-scheme: dark) {
24
+ :root:not([data-theme="light"]) {
25
+ --color-bg: #0d1117;
26
+ --color-surface: #151b23;
27
+ --color-surface-raised: #151b23;
28
+ --color-surface-muted: #212830;
29
+ --color-nav-current-text: var(--color-accent);
30
+ --color-row-hover: #262c36;
31
+ --color-border-subtle: #3d444d;
32
+ --color-border: #656c76;
33
+ --color-text: #f0f6fc;
34
+ --color-muted: #9198a1;
35
+ }
36
+ }
37
+
38
+ :root[data-theme="dark"] {
39
+ --color-bg: #0d1117;
40
+ --color-surface: #151b23;
41
+ --color-surface-raised: #151b23;
42
+ --color-surface-muted: #212830;
43
+ --color-nav-current-text: var(--color-accent);
44
+ --color-row-hover: #262c36;
45
+ --color-border-subtle: #3d444d;
46
+ --color-border: #656c76;
47
+ --color-text: #f0f6fc;
48
+ --color-muted: #9198a1;
49
+ }
@@ -0,0 +1,182 @@
1
+ {
2
+ "$description": "GitHub's open Primer palette and font stacks (@primer/primitives 11.10.0, MIT), light and dark. The hue is GitHub's green: the primary button in light, and the success foreground in dark, since this system's dark buttons take a dark label. The page is Primer's default background, and surfaces its muted one.",
3
+ "$extensions": {
4
+ "io.github.filipgutica.design-system": {
5
+ "name": "GitHub"
6
+ }
7
+ },
8
+ "font-ui": {
9
+ "$type": "fontFamily",
10
+ "$value": [
11
+ "Mona Sans VF",
12
+ "-apple-system",
13
+ "BlinkMacSystemFont",
14
+ "Segoe UI",
15
+ "Noto Sans Backtick Fix",
16
+ "Noto Sans",
17
+ "Helvetica",
18
+ "Arial",
19
+ "sans-serif",
20
+ "Apple Color Emoji",
21
+ "Segoe UI Emoji"
22
+ ]
23
+ },
24
+ "font-mono": {
25
+ "$type": "fontFamily",
26
+ "$value": [
27
+ "ui-monospace",
28
+ "SFMono-Regular",
29
+ "SF Mono",
30
+ "Menlo",
31
+ "Consolas",
32
+ "Liberation Mono",
33
+ "monospace"
34
+ ]
35
+ },
36
+ "light": {
37
+ "$type": "color",
38
+ "color-project": {
39
+ "$value": {
40
+ "colorSpace": "srgb",
41
+ "components": [0.1216, 0.5333, 0.2392],
42
+ "hex": "#1f883d"
43
+ }
44
+ },
45
+ "color-bg": {
46
+ "$value": {
47
+ "colorSpace": "srgb",
48
+ "components": [1, 1, 1],
49
+ "hex": "#ffffff"
50
+ }
51
+ },
52
+ "color-surface": {
53
+ "$value": {
54
+ "colorSpace": "srgb",
55
+ "components": [0.9647, 0.9725, 0.9804],
56
+ "hex": "#f6f8fa"
57
+ }
58
+ },
59
+ "color-surface-raised": {
60
+ "$value": {
61
+ "colorSpace": "srgb",
62
+ "components": [1, 1, 1],
63
+ "hex": "#ffffff"
64
+ }
65
+ },
66
+ "color-surface-muted": {
67
+ "$value": {
68
+ "colorSpace": "srgb",
69
+ "components": [0.9373, 0.949, 0.9608],
70
+ "hex": "#eff2f5"
71
+ }
72
+ },
73
+ "color-row-hover": {
74
+ "$value": {
75
+ "colorSpace": "srgb",
76
+ "components": [0.9373, 0.949, 0.9608],
77
+ "hex": "#eff2f5"
78
+ }
79
+ },
80
+ "color-border-subtle": {
81
+ "$value": {
82
+ "colorSpace": "srgb",
83
+ "components": [0.8196, 0.851, 0.8784],
84
+ "hex": "#d1d9e0"
85
+ }
86
+ },
87
+ "color-border": {
88
+ "$value": {
89
+ "colorSpace": "srgb",
90
+ "components": [0.5059, 0.5451, 0.5961],
91
+ "hex": "#818b98"
92
+ }
93
+ },
94
+ "color-text": {
95
+ "$value": {
96
+ "colorSpace": "srgb",
97
+ "components": [0.1216, 0.1373, 0.1569],
98
+ "hex": "#1f2328"
99
+ }
100
+ },
101
+ "color-muted": {
102
+ "$value": {
103
+ "colorSpace": "srgb",
104
+ "components": [0.349, 0.3882, 0.4314],
105
+ "hex": "#59636e"
106
+ }
107
+ }
108
+ },
109
+ "dark": {
110
+ "$type": "color",
111
+ "color-project": {
112
+ "$value": {
113
+ "colorSpace": "srgb",
114
+ "components": [0.2471, 0.7255, 0.3137],
115
+ "hex": "#3fb950"
116
+ }
117
+ },
118
+ "color-bg": {
119
+ "$value": {
120
+ "colorSpace": "srgb",
121
+ "components": [0.051, 0.0667, 0.0902],
122
+ "hex": "#0d1117"
123
+ }
124
+ },
125
+ "color-surface": {
126
+ "$value": {
127
+ "colorSpace": "srgb",
128
+ "components": [0.0824, 0.1059, 0.1373],
129
+ "hex": "#151b23"
130
+ }
131
+ },
132
+ "color-surface-raised": {
133
+ "$value": {
134
+ "colorSpace": "srgb",
135
+ "components": [0.0824, 0.1059, 0.1373],
136
+ "hex": "#151b23"
137
+ }
138
+ },
139
+ "color-surface-muted": {
140
+ "$value": {
141
+ "colorSpace": "srgb",
142
+ "components": [0.1294, 0.1569, 0.1882],
143
+ "hex": "#212830"
144
+ }
145
+ },
146
+ "color-row-hover": {
147
+ "$value": {
148
+ "colorSpace": "srgb",
149
+ "components": [0.149, 0.1725, 0.2118],
150
+ "hex": "#262c36"
151
+ }
152
+ },
153
+ "color-border-subtle": {
154
+ "$value": {
155
+ "colorSpace": "srgb",
156
+ "components": [0.2392, 0.2667, 0.302],
157
+ "hex": "#3d444d"
158
+ }
159
+ },
160
+ "color-border": {
161
+ "$value": {
162
+ "colorSpace": "srgb",
163
+ "components": [0.3961, 0.4235, 0.4627],
164
+ "hex": "#656c76"
165
+ }
166
+ },
167
+ "color-text": {
168
+ "$value": {
169
+ "colorSpace": "srgb",
170
+ "components": [0.9412, 0.9647, 0.9882],
171
+ "hex": "#f0f6fc"
172
+ }
173
+ },
174
+ "color-muted": {
175
+ "$value": {
176
+ "colorSpace": "srgb",
177
+ "components": [0.5686, 0.5961, 0.6314],
178
+ "hex": "#9198a1"
179
+ }
180
+ }
181
+ }
182
+ }
@@ -1,7 +1,7 @@
1
- /* Generated from tokens/themes/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, on :root only: the tokens that
3
- * follow the hue resolve on :root, so a theme scoped to an element below it changes the hue there, but
4
- * the accent, focus ring, and selection keep the default theme's colours. */
1
+ /* Generated from tokens/themes/graphite-indigo.tokens.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
+ * The Graphite Indigo theme for tokens.css. Load after tokens.css, on :root only: the tokens that follow the
3
+ * theme resolve on :root, so a theme scoped to an element below it changes its inputs there, but the
4
+ * accent, focus ring, and selection keep the default theme's colours. */
5
5
 
6
6
  :root {
7
7
  --color-project: #4b45d1;
@@ -0,0 +1,28 @@
1
+ {
2
+ "$description": "The default: an indigo hue on graphite neutrals.",
3
+ "$extensions": {
4
+ "io.github.filipgutica.design-system": {
5
+ "name": "Graphite Indigo"
6
+ }
7
+ },
8
+ "light": {
9
+ "$type": "color",
10
+ "color-project": {
11
+ "$value": {
12
+ "colorSpace": "srgb",
13
+ "components": [0.2941, 0.2706, 0.8196],
14
+ "hex": "#4b45d1"
15
+ }
16
+ }
17
+ },
18
+ "dark": {
19
+ "$type": "color",
20
+ "color-project": {
21
+ "$value": {
22
+ "colorSpace": "srgb",
23
+ "components": [0.6471, 0.6314, 1],
24
+ "hex": "#a5a1ff"
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,11 @@
1
+ /* Generated from tokens/themes/iris.tokens.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
+ * The Iris theme for tokens.css. Load after tokens.css, on :root only: the tokens that follow the
3
+ * theme resolve on :root, so a theme scoped to an element below it changes its inputs there, but the
4
+ * accent, focus ring, and selection keep the default theme's colours. */
5
+
6
+ :root {
7
+ --color-project: #6d3fd6;
8
+ --color-project-dark: #b49cff;
9
+ --font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
10
+ --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
11
+ }