@filipgutica/design-system 1.0.38 → 1.0.40
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 +27 -9
- package/dist/theme-inputs.json +75 -0
- package/dist/themes/catppuccin.css +33 -6
- package/dist/themes/copper.css +7 -6
- package/dist/themes/fern.css +7 -6
- package/dist/themes/github.css +31 -4
- package/dist/themes/graphite-indigo.css +7 -6
- package/dist/themes/iris.css +7 -6
- package/dist/themes/lagoon.css +7 -6
- package/dist/themes/lapis.css +7 -6
- package/dist/tokens.d.ts +2 -1
- package/dist/tokens.js +100 -84
- package/dist/tokens.json +100 -84
- package/fonts/{OFL-IBM-Plex-Sans.txt → OFL-Inter.txt} +1 -1
- package/fonts/{OFL-IBM-Plex-Mono.txt → OFL-JetBrains-Mono.txt} +1 -1
- package/fonts/SOURCE.json +37 -0
- package/fonts/fonts.css +71 -13
- package/fonts/inter-latin-400-normal.woff2 +0 -0
- package/fonts/inter-latin-500-normal.woff2 +0 -0
- package/fonts/inter-latin-600-normal.woff2 +0 -0
- package/fonts/inter-latin-ext-400-normal.woff2 +0 -0
- package/fonts/inter-latin-ext-500-normal.woff2 +0 -0
- package/fonts/inter-latin-ext-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-600-normal.woff2 +0 -0
- package/language/DESIGN.md +13 -12
- package/language/components.html +79 -40
- package/language/components.md +31 -13
- package/language/decisions.md +15 -6
- package/language/docs.html +2 -5
- package/language/product.html +0 -3
- package/language/reference.html +16 -17
- package/language/tokens.css +170 -17
- package/language/ui-sdk.css +2 -2
- package/package.json +6 -1
- package/theme-mapper/core.d.ts +2 -0
- package/theme-mapper/core.js +22 -10
- package/theme-mapper/css.d.ts +19 -0
- package/theme-mapper/css.js +151 -0
- package/theme-mapper/engine.d.ts +37 -2
- package/theme-mapper/engine.js +50 -5
- package/theme-mapper/index.d.ts +5 -0
- package/theme-mapper/index.js +15 -0
- package/theme-mapper/theme-builder.d.ts +12 -0
- package/theme-mapper/theme-builder.js +36 -0
- package/theme-mapper/theme-file.d.ts +61 -0
- package/theme-mapper/theme-file.js +193 -0
- package/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
package/README.md
CHANGED
|
@@ -12,13 +12,13 @@ Filip's design language for any framework: the spec, the tokens, the component c
|
|
|
12
12
|
| --- | --- |
|
|
13
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
|
-
| `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
|
|
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, base radius, neutrals, and text on the hue; see [Theme files](#theme-files) |
|
|
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/` |
|
|
17
17
|
| `open-vsx/` | Experimental JSONC theme-file parser and Open VSX client, with resolved includes and unaltered colours and syntax rules |
|
|
18
|
-
| `theme-mapper/` | The theme engine the token build shares, and the experimental theme mapper built on
|
|
18
|
+
| `theme-mapper/` | The theme engine and theme builder the token build shares, and the experimental theme mapper built on them |
|
|
19
19
|
| `scripts/build-site.mjs` | The site build: writes `site/` for GitHub Pages from `components.html`, the tokens, and `package.json` |
|
|
20
20
|
| `dist/` | Generated theme files, JSON, and JavaScript |
|
|
21
|
-
| `fonts/` |
|
|
21
|
+
| `fonts/` | Inter and JetBrains Mono latin and latin-ext `woff2` files, `fonts.css`, `SOURCE.json` (the packages and file hashes they come from), and their OFL licences |
|
|
22
22
|
| `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 |
|
|
23
23
|
|
|
24
24
|
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.
|
|
@@ -33,19 +33,37 @@ npm install @filipgutica/design-system
|
|
|
33
33
|
|
|
34
34
|
| Import | What it is |
|
|
35
35
|
| --- | --- |
|
|
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. |
|
|
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. `data-theme="light"` or `"dark"` on any element below `<html>`, or a `.dark` class on `<html>` or below it, themes that subtree: every token that changes with the mode resolves again inside it. The subtree takes its mode's text colour; on an element with both, `data-theme="light"` wins over `.dark`. A theme written by hand sets its hue pair once, on `:root`: `tokens.css` switches `--color-accent` between `--color-project` and `--color-project-dark` by mode, so the rule works after `tokens.css`, in its cascade layer or a later one. A theme that also sets neutrals or text on the hue repeats those light values on `:root [data-theme="light"]` and the dark ones on the selectors of the dark subtree block at the end of `tokens.css`, beside its `:root` and root dark rules, so they hold in a subtree too; a theme file from the token build does this already. |
|
|
37
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. |
|
|
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
|
+
| `@filipgutica/design-system/themes/*.css` | A theme's inputs (hue pair, and any fonts, base radius, 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`, in its cascade layer or a later one, on `:root`. |
|
|
39
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. |
|
|
40
|
-
| `@filipgutica/design-system/fonts.css` |
|
|
41
|
-
| `@filipgutica/design-system` | `tokens` (resolved values per theme and mode) and `cssVar(name)`, with types. |
|
|
40
|
+
| `@filipgutica/design-system/fonts.css` | Inter and JetBrains Mono, the default theme's fonts. |
|
|
41
|
+
| `@filipgutica/design-system` | `tokens` (resolved values per theme and mode, as `getComputedStyle` reports them, so `radius-panel` and `radius-mark` are `calc()` strings of `radius-base`) and `cssVar(name)`, with types. |
|
|
42
42
|
| `@filipgutica/design-system/tokens.json` | The resolved values as JSON. |
|
|
43
|
+
| `@filipgutica/design-system/theme-inputs.json` | The tokens a theme may set, without their dashes: `names`, and the same names by kind in `groups` (`hue`, `textOnHue`, `fonts`, `radius`, `neutrals`, `syntax`). Every other token is core. A component library's test can read it and fail when one of its themes sets any other token. |
|
|
43
44
|
| `@filipgutica/design-system/language/*` | The spec, catalogue, and example pages. |
|
|
44
|
-
| `@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. |
|
|
45
|
+
| `@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. `checkTheme(inputs)` runs the contrast checks every shipped theme passes on any theme's inputs (`{ hue: { light, dark }, fonts?, radius?, neutrals?, textOnHue? }`; colours are `#rrggbb`, `white`, `black`, or a token reference such as `{color-bg}`, for example `textOnHue: { light: { 'color-accent-text': '#ffffff' } }`) and returns each check's lowest ratio per mode with `ok`. `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. |
|
|
46
|
+
| `@filipgutica/design-system/theme-builder` | `themeCss(file, { source? })` turns a [theme file](#theme-files), parsed from JSON, into the CSS to load after `tokens.css`: the same CSS the package's `themes/*.css` come from, so a consumer does not copy `tokens.css`'s selectors. `source` names the file in the CSS's first comment line. It throws `ThemeFileError`, whose `problems` lists each problem; `parseTheme(file)` returns `{ problems, inputs }` without throwing, with `inputs` only when `problems` is empty. Typed, with no framework and no runtime dependencies. |
|
|
45
47
|
| `@filipgutica/design-system/open-vsx` | Experimental: the API may change in a minor release. `parseVsCodeTheme({ source, fileName })` parses a JSONC theme file and normalises its name. `createOpenVsxThemeService({ fetchImpl })` accepts an optional fetch implementation, searches Open VSX, and imports a verified package, resolving includes into `{ name, type?, colors, tokenColors? }` for `mapVsCodeTheme`. The parser throws `ThemeValidationError` with `malformed-json` or `invalid-shape`; the client returns success or error results. Uses native ZIP decompression and `jsonc-parser`; picker UI, persistence, and applying a theme belong to component libraries. |
|
|
46
48
|
|
|
47
49
|
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.
|
|
48
50
|
|
|
51
|
+
## Theme files
|
|
52
|
+
|
|
53
|
+
A theme file is a W3C Design Tokens file (Format and Color modules 2025.10) that holds only a theme's inputs. `tokens/themes/*.tokens.json` are examples, and `@filipgutica/design-system/theme-builder` turns one into CSS.
|
|
54
|
+
|
|
55
|
+
| Key | Type | What it sets |
|
|
56
|
+
| --- | --- | --- |
|
|
57
|
+
| `$description` | string | A note about the theme. Required |
|
|
58
|
+
| `$extensions["io.github.filipgutica.design-system"].name` | string | The theme's name. Required |
|
|
59
|
+
| `light.color-project`, `dark.color-project` | color | The hue in each mode: `--color-project` and `--color-project-dark`. Required |
|
|
60
|
+
| `light` and `dark` neutrals | color | `color-bg`, `color-surface`, `color-surface-raised`, `color-surface-muted`, `color-row-hover`, `color-border-subtle`, `color-border`, `color-text`, and `color-muted`, as a whole set in both modes. Optional |
|
|
61
|
+
| `light` and `dark` text on the hue | color | `color-accent-text` (the primary button label), `color-nav-current-text`, and `color-segmented-current-text`, in either mode, for a hue that cannot carry the default at 4.5:1. Optional; without them the build picks the first readable candidate for the last two, and `checkTheme` from `./theme-mapper` checks the result |
|
|
62
|
+
| `font-ui`, `font-mono` | fontFamily | The two font stacks: a name or a list of names. Optional |
|
|
63
|
+
| `radius-base` | dimension | The base corner, `{ "value": 8, "unit": "px" }`, in px or rem, 0 or more. Every corner but the pill and the circle follows it. Optional |
|
|
64
|
+
|
|
65
|
+
Colours are opaque sRGB, `{ "colorSpace": "srgb", "components": [r, g, b] }` with each channel from 0 to 1, and an optional `hex` that must agree. A token's `$type` is its own, else its group's, else the file's. Any other key is a problem.
|
|
66
|
+
|
|
49
67
|
## Install for agents
|
|
50
68
|
|
|
51
69
|
The repository is a Claude and Codex plugin marketplace. The `design-system` skill tells the agent to read `language/DESIGN.md` and the files it names.
|
|
@@ -90,4 +108,4 @@ Commits follow Conventional Commits, and CI checks them with commitlint. Do not
|
|
|
90
108
|
|
|
91
109
|
## License
|
|
92
110
|
|
|
93
|
-
MIT. The
|
|
111
|
+
MIT. The Inter and JetBrains Mono 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,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "The tokens a theme may set, without their leading dashes, by kind. Every other token in tokens.css is core: a theme or a component library never overrides it. Generated from tokens/core.json by scripts/build-tokens.mjs. Do not edit.",
|
|
3
|
+
"names": [
|
|
4
|
+
"color-project",
|
|
5
|
+
"color-project-dark",
|
|
6
|
+
"color-accent-text",
|
|
7
|
+
"color-nav-current-text",
|
|
8
|
+
"color-segmented-current-text",
|
|
9
|
+
"font-ui",
|
|
10
|
+
"font-mono",
|
|
11
|
+
"radius-base",
|
|
12
|
+
"color-bg",
|
|
13
|
+
"color-surface",
|
|
14
|
+
"color-surface-raised",
|
|
15
|
+
"color-surface-muted",
|
|
16
|
+
"color-row-hover",
|
|
17
|
+
"color-border-subtle",
|
|
18
|
+
"color-border",
|
|
19
|
+
"color-text",
|
|
20
|
+
"color-muted",
|
|
21
|
+
"color-syntax-keyword",
|
|
22
|
+
"color-syntax-string",
|
|
23
|
+
"color-syntax-number",
|
|
24
|
+
"color-syntax-comment",
|
|
25
|
+
"color-syntax-function",
|
|
26
|
+
"color-syntax-type",
|
|
27
|
+
"color-syntax-variable",
|
|
28
|
+
"color-syntax-operator",
|
|
29
|
+
"color-syntax-punctuation",
|
|
30
|
+
"color-syntax-tag",
|
|
31
|
+
"color-syntax-attribute"
|
|
32
|
+
],
|
|
33
|
+
"groups": {
|
|
34
|
+
"hue": [
|
|
35
|
+
"color-project",
|
|
36
|
+
"color-project-dark"
|
|
37
|
+
],
|
|
38
|
+
"textOnHue": [
|
|
39
|
+
"color-accent-text",
|
|
40
|
+
"color-nav-current-text",
|
|
41
|
+
"color-segmented-current-text"
|
|
42
|
+
],
|
|
43
|
+
"fonts": [
|
|
44
|
+
"font-ui",
|
|
45
|
+
"font-mono"
|
|
46
|
+
],
|
|
47
|
+
"radius": [
|
|
48
|
+
"radius-base"
|
|
49
|
+
],
|
|
50
|
+
"neutrals": [
|
|
51
|
+
"color-bg",
|
|
52
|
+
"color-surface",
|
|
53
|
+
"color-surface-raised",
|
|
54
|
+
"color-surface-muted",
|
|
55
|
+
"color-row-hover",
|
|
56
|
+
"color-border-subtle",
|
|
57
|
+
"color-border",
|
|
58
|
+
"color-text",
|
|
59
|
+
"color-muted"
|
|
60
|
+
],
|
|
61
|
+
"syntax": [
|
|
62
|
+
"color-syntax-keyword",
|
|
63
|
+
"color-syntax-string",
|
|
64
|
+
"color-syntax-number",
|
|
65
|
+
"color-syntax-comment",
|
|
66
|
+
"color-syntax-function",
|
|
67
|
+
"color-syntax-type",
|
|
68
|
+
"color-syntax-variable",
|
|
69
|
+
"color-syntax-operator",
|
|
70
|
+
"color-syntax-punctuation",
|
|
71
|
+
"color-syntax-tag",
|
|
72
|
+
"color-syntax-attribute"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
/* Generated from tokens/themes/catppuccin.tokens.json by
|
|
2
|
-
* The Catppuccin theme for tokens.css. Load after tokens.css,
|
|
3
|
-
* theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
-
* accent, focus ring, and selection keep the default theme's colours. */
|
|
1
|
+
/* Generated from tokens/themes/catppuccin.tokens.json by the theme builder in @filipgutica/design-system. Do not edit.
|
|
2
|
+
* The Catppuccin theme for tokens.css. Load after tokens.css, in its cascade layer or a later one, on :root
|
|
3
|
+
* only: the tokens that follow the theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
+
* its inputs there, but the accent, focus ring, and selection keep the default theme's colours. */
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--color-project: #8839ef;
|
|
8
8
|
--color-project-dark: #cba6f7;
|
|
9
|
-
--font-ui: "
|
|
10
|
-
--font-mono: "
|
|
9
|
+
--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
10
|
+
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
11
|
+
--radius-base: 8px;
|
|
11
12
|
--color-bg: #eff1f5;
|
|
12
13
|
--color-surface: #e6e9ef;
|
|
13
14
|
--color-surface-raised: #eff1f5;
|
|
@@ -47,3 +48,29 @@
|
|
|
47
48
|
--color-text: #cdd6f4;
|
|
48
49
|
--color-muted: #a6adc8;
|
|
49
50
|
}
|
|
51
|
+
|
|
52
|
+
:root.dark:not(:where([data-theme="light"])), :root [data-theme="dark"], :root .dark:not(:where([data-theme="light"])) {
|
|
53
|
+
--color-bg: #11111b;
|
|
54
|
+
--color-surface: #181825;
|
|
55
|
+
--color-surface-raised: #1e1e2e;
|
|
56
|
+
--color-surface-muted: #313244;
|
|
57
|
+
--color-nav-current-text: var(--color-accent);
|
|
58
|
+
--color-row-hover: #313244;
|
|
59
|
+
--color-border-subtle: #45475a;
|
|
60
|
+
--color-border: #7f849c;
|
|
61
|
+
--color-text: #cdd6f4;
|
|
62
|
+
--color-muted: #a6adc8;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:root [data-theme="light"] {
|
|
66
|
+
--color-bg: #eff1f5;
|
|
67
|
+
--color-surface: #e6e9ef;
|
|
68
|
+
--color-surface-raised: #eff1f5;
|
|
69
|
+
--color-surface-muted: #dce0e8;
|
|
70
|
+
--color-nav-current-text: var(--color-text);
|
|
71
|
+
--color-row-hover: #dce0e8;
|
|
72
|
+
--color-border-subtle: #ccd0da;
|
|
73
|
+
--color-border: #7c7f93;
|
|
74
|
+
--color-text: #4c4f69;
|
|
75
|
+
--color-muted: #5c5f77;
|
|
76
|
+
}
|
package/dist/themes/copper.css
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/* Generated from tokens/themes/copper.tokens.json by
|
|
2
|
-
* The Copper theme for tokens.css. Load after tokens.css,
|
|
3
|
-
* theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
-
* accent, focus ring, and selection keep the default theme's colours. */
|
|
1
|
+
/* Generated from tokens/themes/copper.tokens.json by the theme builder in @filipgutica/design-system. Do not edit.
|
|
2
|
+
* The Copper theme for tokens.css. Load after tokens.css, in its cascade layer or a later one, on :root
|
|
3
|
+
* only: the tokens that follow the theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
+
* its inputs there, but the accent, focus ring, and selection keep the default theme's colours. */
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--color-project: #b04003;
|
|
8
8
|
--color-project-dark: #f39a62;
|
|
9
|
-
--font-ui: "
|
|
10
|
-
--font-mono: "
|
|
9
|
+
--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
10
|
+
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
11
|
+
--radius-base: 8px;
|
|
11
12
|
}
|
package/dist/themes/fern.css
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/* Generated from tokens/themes/fern.tokens.json by
|
|
2
|
-
* The Fern theme for tokens.css. Load after tokens.css,
|
|
3
|
-
* theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
-
* accent, focus ring, and selection keep the default theme's colours. */
|
|
1
|
+
/* Generated from tokens/themes/fern.tokens.json by the theme builder in @filipgutica/design-system. Do not edit.
|
|
2
|
+
* The Fern theme for tokens.css. Load after tokens.css, in its cascade layer or a later one, on :root
|
|
3
|
+
* only: the tokens that follow the theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
+
* its inputs there, but the accent, focus ring, and selection keep the default theme's colours. */
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--color-project: #27752a;
|
|
8
8
|
--color-project-dark: #7fd083;
|
|
9
|
-
--font-ui: "
|
|
10
|
-
--font-mono: "
|
|
9
|
+
--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
10
|
+
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
11
|
+
--radius-base: 8px;
|
|
11
12
|
}
|
package/dist/themes/github.css
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
/* Generated from tokens/themes/github.tokens.json by
|
|
2
|
-
* The GitHub theme for tokens.css. Load after tokens.css,
|
|
3
|
-
* theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
-
* accent, focus ring, and selection keep the default theme's colours. */
|
|
1
|
+
/* Generated from tokens/themes/github.tokens.json by the theme builder in @filipgutica/design-system. Do not edit.
|
|
2
|
+
* The GitHub theme for tokens.css. Load after tokens.css, in its cascade layer or a later one, on :root
|
|
3
|
+
* only: the tokens that follow the theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
+
* its inputs there, but the accent, focus ring, and selection keep the default theme's colours. */
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--color-project: #1f883d;
|
|
8
8
|
--color-project-dark: #3fb950;
|
|
9
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
10
|
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
11
|
+
--radius-base: 8px;
|
|
11
12
|
--color-bg: #ffffff;
|
|
12
13
|
--color-surface: #f6f8fa;
|
|
13
14
|
--color-surface-raised: #ffffff;
|
|
@@ -47,3 +48,29 @@
|
|
|
47
48
|
--color-text: #f0f6fc;
|
|
48
49
|
--color-muted: #9198a1;
|
|
49
50
|
}
|
|
51
|
+
|
|
52
|
+
:root.dark:not(:where([data-theme="light"])), :root [data-theme="dark"], :root .dark:not(:where([data-theme="light"])) {
|
|
53
|
+
--color-bg: #0d1117;
|
|
54
|
+
--color-surface: #151b23;
|
|
55
|
+
--color-surface-raised: #151b23;
|
|
56
|
+
--color-surface-muted: #212830;
|
|
57
|
+
--color-nav-current-text: var(--color-accent);
|
|
58
|
+
--color-row-hover: #262c36;
|
|
59
|
+
--color-border-subtle: #3d444d;
|
|
60
|
+
--color-border: #656c76;
|
|
61
|
+
--color-text: #f0f6fc;
|
|
62
|
+
--color-muted: #9198a1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:root [data-theme="light"] {
|
|
66
|
+
--color-bg: #ffffff;
|
|
67
|
+
--color-surface: #f6f8fa;
|
|
68
|
+
--color-surface-raised: #ffffff;
|
|
69
|
+
--color-surface-muted: #eff2f5;
|
|
70
|
+
--color-nav-current-text: var(--color-text);
|
|
71
|
+
--color-row-hover: #eff2f5;
|
|
72
|
+
--color-border-subtle: #d1d9e0;
|
|
73
|
+
--color-border: #818b98;
|
|
74
|
+
--color-text: #1f2328;
|
|
75
|
+
--color-muted: #59636e;
|
|
76
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/* Generated from tokens/themes/graphite-indigo.tokens.json by
|
|
2
|
-
* The Graphite Indigo theme for tokens.css. Load after tokens.css,
|
|
3
|
-
* theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
-
* accent, focus ring, and selection keep the default theme's colours. */
|
|
1
|
+
/* Generated from tokens/themes/graphite-indigo.tokens.json by the theme builder in @filipgutica/design-system. Do not edit.
|
|
2
|
+
* The Graphite Indigo theme for tokens.css. Load after tokens.css, in its cascade layer or a later one, on :root
|
|
3
|
+
* only: the tokens that follow the theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
+
* its inputs there, but the accent, focus ring, and selection keep the default theme's colours. */
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--color-project: #4b45d1;
|
|
8
8
|
--color-project-dark: #a5a1ff;
|
|
9
|
-
--font-ui: "
|
|
10
|
-
--font-mono: "
|
|
9
|
+
--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
10
|
+
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
11
|
+
--radius-base: 8px;
|
|
11
12
|
}
|
package/dist/themes/iris.css
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/* Generated from tokens/themes/iris.tokens.json by
|
|
2
|
-
* The Iris theme for tokens.css. Load after tokens.css,
|
|
3
|
-
* theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
-
* accent, focus ring, and selection keep the default theme's colours. */
|
|
1
|
+
/* Generated from tokens/themes/iris.tokens.json by the theme builder in @filipgutica/design-system. Do not edit.
|
|
2
|
+
* The Iris theme for tokens.css. Load after tokens.css, in its cascade layer or a later one, on :root
|
|
3
|
+
* only: the tokens that follow the theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
+
* its inputs there, but the accent, focus ring, and selection keep the default theme's colours. */
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--color-project: #6d3fd6;
|
|
8
8
|
--color-project-dark: #b49cff;
|
|
9
|
-
--font-ui: "
|
|
10
|
-
--font-mono: "
|
|
9
|
+
--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
10
|
+
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
11
|
+
--radius-base: 8px;
|
|
11
12
|
}
|
package/dist/themes/lagoon.css
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/* Generated from tokens/themes/lagoon.tokens.json by
|
|
2
|
-
* The Lagoon theme for tokens.css. Load after tokens.css,
|
|
3
|
-
* theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
-
* accent, focus ring, and selection keep the default theme's colours. */
|
|
1
|
+
/* Generated from tokens/themes/lagoon.tokens.json by the theme builder in @filipgutica/design-system. Do not edit.
|
|
2
|
+
* The Lagoon theme for tokens.css. Load after tokens.css, in its cascade layer or a later one, on :root
|
|
3
|
+
* only: the tokens that follow the theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
+
* its inputs there, but the accent, focus ring, and selection keep the default theme's colours. */
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--color-project: #087266;
|
|
8
8
|
--color-project-dark: #5cc8b8;
|
|
9
|
-
--font-ui: "
|
|
10
|
-
--font-mono: "
|
|
9
|
+
--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
10
|
+
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
11
|
+
--radius-base: 8px;
|
|
11
12
|
}
|
package/dist/themes/lapis.css
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/* Generated from tokens/themes/lapis.tokens.json by
|
|
2
|
-
* The Lapis theme for tokens.css. Load after tokens.css,
|
|
3
|
-
* theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
-
* accent, focus ring, and selection keep the default theme's colours. */
|
|
1
|
+
/* Generated from tokens/themes/lapis.tokens.json by the theme builder in @filipgutica/design-system. Do not edit.
|
|
2
|
+
* The Lapis theme for tokens.css. Load after tokens.css, in its cascade layer or a later one, on :root
|
|
3
|
+
* only: the tokens that follow the theme resolve on :root, so a theme scoped to an element below it changes
|
|
4
|
+
* its inputs there, but the accent, focus ring, and selection keep the default theme's colours. */
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--color-project: #2b59d6;
|
|
8
8
|
--color-project-dark: #8aa8ff;
|
|
9
|
-
--font-ui: "
|
|
10
|
-
--font-mono: "
|
|
9
|
+
--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
10
|
+
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
11
|
+
--radius-base: 8px;
|
|
11
12
|
}
|
package/dist/tokens.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type TokenName =
|
|
|
5
5
|
| 'color-project-dark'
|
|
6
6
|
| 'font-ui'
|
|
7
7
|
| 'font-mono'
|
|
8
|
+
| 'radius-base'
|
|
8
9
|
| 'color-bg'
|
|
9
10
|
| 'color-surface'
|
|
10
11
|
| 'color-surface-raised'
|
|
@@ -115,7 +116,7 @@ export type TokenName =
|
|
|
115
116
|
| 'measure'
|
|
116
117
|
| 'page-max'
|
|
117
118
|
| 'page-wide'
|
|
118
|
-
| 'sidebar'
|
|
119
|
+
| 'sidebar-width'
|
|
119
120
|
| 'radius-inline'
|
|
120
121
|
| 'radius-control'
|
|
121
122
|
| 'radius-panel'
|