@filipgutica/design-system 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/language/DESIGN.md +1 -1
- package/language/decisions.md +3 -3
- package/language/reference.html +1 -1
- package/language/tokens.css +104 -107
- package/package.json +1 -3
- package/dist/class/base.css +0 -188
- package/dist/class/themes/graphite-indigo.css +0 -133
- package/dist/class/themes/mauve.css +0 -133
- package/dist/class/themes/pine.css +0 -133
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Filip's design language for any framework: the spec, the tokens, the component c
|
|
|
14
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
15
|
| `scripts/build-tokens.mjs` | The token generator: writes `language/tokens.css` and `dist/` |
|
|
16
16
|
| `scripts/build-site.mjs` | The site build: writes `site/` for GitHub Pages from `components.html`, the tokens, and `package.json` |
|
|
17
|
-
| `dist/` | Generated
|
|
17
|
+
| `dist/` | Generated theme files, JSON, and JavaScript |
|
|
18
18
|
| `fonts/` | IBM Plex latin `woff2` files, `fonts.css`, and their OFL licences |
|
|
19
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 |
|
|
20
20
|
|
|
@@ -30,8 +30,7 @@ npm install @filipgutica/design-system
|
|
|
30
30
|
|
|
31
31
|
| Import | What it is |
|
|
32
32
|
| --- | --- |
|
|
33
|
-
| `@filipgutica/design-system/tokens.css` | The tokens
|
|
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. Import `class/base.css`, then one theme's roles: `class/themes/graphite-indigo.css` (the default), `mauve.css`, or `pine.css`. |
|
|
33
|
+
| `@filipgutica/design-system/tokens.css` | The tokens. Dark mode follows `prefers-color-scheme`; set `data-theme="light"` or `"dark"` on `<html>` to override it. |
|
|
35
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`. |
|
|
36
35
|
| `@filipgutica/design-system/fonts.css` | IBM Plex Sans and Mono. |
|
|
37
36
|
| `@filipgutica/design-system` | `tokens` (resolved values per theme and mode) and `cssVar(name)`, with types. |
|
package/language/DESIGN.md
CHANGED
|
@@ -39,7 +39,7 @@ Center the **container**, not every sentence. Align header, content, images, and
|
|
|
39
39
|
|
|
40
40
|
## Files and examples
|
|
41
41
|
|
|
42
|
-
- `tokens.css`: the values of the default theme, Graphite Indigo, generated from the token source (`tokens/core.json` and `tokens/themes/graphite-indigo.json`) in `@filipgutica/design-system`. Other themes ship as `themes/<id>.css`, which set only the identity inputs; load one after `tokens.css`, on `:root`. To change a value, edit the JSON there and run `pnpm tokens:build`; do not edit `tokens.css` by hand. The identity inputs sit in one block at the top.
|
|
42
|
+
- `tokens.css`: the values of the default theme, Graphite Indigo, generated from the token source (`tokens/core.json` and `tokens/themes/graphite-indigo.json`) in `@filipgutica/design-system`. Other themes ship as `themes/<id>.css`, which set only the identity inputs; load one after `tokens.css`, on `:root`. To change a value, edit the JSON there and run `pnpm tokens:build`; do not edit `tokens.css` by hand. The identity inputs sit in one block at the top.
|
|
43
43
|
- `components.md`: one spec for each component, with anatomy, states, Do and Don't lines, keyboard and screen-reader behavior, motion, and forced colors. Read it for any component work.
|
|
44
44
|
- `components.html`: every component in each of its states, in plain HTML and CSS on `tokens.css`. Copy component markup and styles from there.
|
|
45
45
|
- `decisions.md`: the choices behind the components, and the options they replaced.
|
package/language/decisions.md
CHANGED
|
@@ -55,7 +55,7 @@ Each entry records a choice this language made, the options it rejected, and why
|
|
|
55
55
|
| Live example code view | Core | The preview and its code show together. | Preview and Code tabs, as in Chakra UI: the reader never sees the element and its code together, the frame changes height with the tab, and reading the code takes an extra click. Storybook hides code by default, for the same cost. | No test yet |
|
|
56
56
|
| Live example stage | Core | The stage sits on the page background (`--color-bg`), not in a well or a panel. It is the named exception to the container depth tier. | A raised or inset stage changes the surface under the preview, so raised controls do not look as they do on a page. | No test yet |
|
|
57
57
|
| Live example source | Core | Inside the frame, the code block drops its own radius, border, and shadow, and spans the frame's width. The frame draws the one edge. | A rounded well with its own edge and shadow inside the frame is a frame inside a frame. | No test yet |
|
|
58
|
-
| Token names | Core | One set of names,
|
|
58
|
+
| Token names | Core | One set of names, the design system's own: `--color-*` for colours, `--shadow-*` for shadows, and `--text-*`, `--radius-*`, and `--font-*` for type sizes, radii, and fonts. See [Token names](#token-names). | Two sets, the [1.x short names](#token-names) here and `--color-*` names in ui: every site and agent translated between them through `ui:` comments, and the 1.x control radius used Tailwind's `-md` name for a 999px pill where Tailwind's is 0.375rem. Short names everywhere: about 920 references in 27 files across six repositories, a ui major release, and 18 new names. | no 1.x names: `tests/token-names.test.mjs` "no payload file uses a 1.x token name" |
|
|
59
59
|
| Versioning | Core | Releases are 1.0.x patches while the system has no outside users, tagged `ds-v*` from the `ds-v1.0.0` seed. Every release, a breaking one included, is a patch; the release notes name a breaking change written as `!` or a `BREAKING CHANGE:` footer in the commit message. npm already holds 1.1.0 through 2.4.0 from the earlier `v*` series, so leaving 1.0.x means 2.5.0 or 3.0.0. | Semver majors and minors (2.x): the numbers signalled a maturity the system does not have yet. 0.0.x: npm already holds 1.0.0, and a `^0.0.1` range matches only 0.0.1. | patch cap: `tests/release.test.mjs` "the release analyzer caps feat, fix, and breaking changes, from a commit or a PR body, at a patch", "the release analyzer releases nothing for chore-only commits"; tag series: `tests/release.test.mjs` "the site version comes from the latest ds-v tag and ignores the earlier v tags" |
|
|
60
60
|
|
|
61
61
|
## Token names
|
|
@@ -66,10 +66,10 @@ To update a page or stylesheet that still uses the old names, run `node scripts/
|
|
|
66
66
|
|
|
67
67
|
Name a new token by these rules:
|
|
68
68
|
|
|
69
|
-
- Give it one name
|
|
69
|
+
- Give it one name, with no alias.
|
|
70
70
|
- Use Tailwind 4's theme namespaces where one fits: `--color-<role>` for a colour, `--shadow-<role>` for a shadow, `--radius-<role>` for a radius, `--font-<role>` for a font family, and `--text-<step>` for a type size. Other families keep their prefix, such as `--space-*`, `--control-*`, `--weight-*`, and `--duration-*`.
|
|
71
71
|
- Name the role, not the value: `--color-error`, not `--color-red`.
|
|
72
|
-
- A component role that always has the same value as a general token is a
|
|
72
|
+
- A component role that always has the same value as a general token is not a new token. The component uses the general token.
|
|
73
73
|
- Do not reuse an old name from this table.
|
|
74
74
|
|
|
75
75
|
<!-- rename-table:start -->
|
package/language/reference.html
CHANGED
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
<li class="swatch" data-token="--color-accent" data-on="--color-bg --color-surface-raised" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-accent</code><span class="value"></span><span class="ratio"></span><span class="use">Primary action fill, marks, current items, checked controls; 4.5:1 where it colors text</span></li>
|
|
617
617
|
<li class="swatch" data-token="--color-accent-text" data-on="--color-accent --color-button-hover" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-accent-text</code><span class="value"></span><span class="ratio"></span><span class="use">Primary button label</span></li>
|
|
618
618
|
<li class="swatch" data-token="--color-button-hover" data-fg="var(--color-accent-text)" data-on="--color-button-hover" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-button-hover</code><span class="value"></span><span class="ratio"></span><span class="use">Primary button hover</span></li>
|
|
619
|
-
<li class="swatch" data-token="--color-accent-hover"><i class="chip" aria-hidden="true"></i><code>--color-accent-hover</code><span class="value"></span><span class="use">
|
|
619
|
+
<li class="swatch" data-token="--color-accent-hover"><i class="chip" aria-hidden="true"></i><code>--color-accent-hover</code><span class="value"></span><span class="use">Accent hover; no core component reads it</span></li>
|
|
620
620
|
<li class="swatch" data-token="--color-link" data-on="--color-bg --color-surface-raised" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-link</code><span class="value"></span><span class="ratio"></span><span class="use">Links</span></li>
|
|
621
621
|
<li class="swatch" data-token="--color-focus" data-on="--color-bg --color-surface --color-surface-raised" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-focus</code><span class="value"></span><span class="ratio"></span><span class="use">The one focus ring on every role but fields: the accent</span></li>
|
|
622
622
|
</ul>
|
package/language/tokens.css
CHANGED
|
@@ -15,9 +15,6 @@
|
|
|
15
15
|
* Standalone HTML: import or inline this file.
|
|
16
16
|
* Inline visuals: inherit the host font and theme variables; see DESIGN.md.
|
|
17
17
|
* Repos: map these names onto the repository's own token system.
|
|
18
|
-
* Sites on @filipgutica/ui: the names are the same. Each line's "ui:" comment lists the ui
|
|
19
|
-
* variables that carry its value, its own name first; the others are component roles with the same
|
|
20
|
-
* value. A var(…) comment is a fallback ui writes where it reads the role. ui's build reads these comments.
|
|
21
18
|
*
|
|
22
19
|
* Theme states: bare :root is light. prefers-color-scheme picks dark unless
|
|
23
20
|
* data-theme="light" is set. data-theme="dark" forces dark.
|
|
@@ -28,146 +25,146 @@
|
|
|
28
25
|
|
|
29
26
|
/* Identity layer: a project swaps these four lines. --color-project is the light-theme hue;
|
|
30
27
|
--color-project-dark is the dark-theme hue, also used on dark plates in both themes. */
|
|
31
|
-
--color-project: #4b45d1;
|
|
32
|
-
--color-project-dark: #a5a1ff;
|
|
33
|
-
--font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
34
|
-
--font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
28
|
+
--color-project: #4b45d1;
|
|
29
|
+
--color-project-dark: #a5a1ff;
|
|
30
|
+
--font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
31
|
+
--font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
35
32
|
|
|
36
33
|
/* Core roles: only the identity lines above feed them. Neutral paper and graphite surfaces. */
|
|
37
|
-
--color-bg: #f4f5f6;
|
|
38
|
-
--color-surface: #e9ebed;
|
|
39
|
-
--color-surface-raised: #fbfbfc;
|
|
40
|
-
--color-surface-muted: #e2e5e8;
|
|
34
|
+
--color-bg: #f4f5f6;
|
|
35
|
+
--color-surface: #e9ebed;
|
|
36
|
+
--color-surface-raised: #fbfbfc;
|
|
37
|
+
--color-surface-muted: #e2e5e8;
|
|
41
38
|
/* The well: segmented and switch tracks, pressed buttons, selected radio cards, and disabled fields. */
|
|
42
|
-
--color-well: var(--color-surface-muted);
|
|
39
|
+
--color-well: var(--color-surface-muted);
|
|
43
40
|
/* Fields (input, select, textarea, search): a white fill with a faint edge in light, the sunk well in dark.
|
|
44
41
|
Dark fields stay sunk in the well. It sits within about 1.01:1 of the canvas, so the edge carries the shape. */
|
|
45
|
-
--color-field-bg: var(--color-surface-raised);
|
|
46
|
-
--color-field-edge: var(--color-border-subtle);
|
|
47
|
-
--shadow-field: none;
|
|
48
|
-
--color-control-thumb: var(--color-surface-raised);
|
|
42
|
+
--color-field-bg: var(--color-surface-raised);
|
|
43
|
+
--color-field-edge: var(--color-border-subtle);
|
|
44
|
+
--shadow-field: none;
|
|
45
|
+
--color-control-thumb: var(--color-surface-raised);
|
|
49
46
|
/* Selected rows lift and take a faint accent tint, so the selection reads on near-white panels too. */
|
|
50
|
-
--color-nav-current: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface-raised));
|
|
47
|
+
--color-nav-current: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface-raised));
|
|
51
48
|
/* Text on the current nav row, selected tab, and selected list row: the first of --color-accent, --color-text, black, and white
|
|
52
49
|
that reaches 4.5:1 over --color-nav-current, on the page and on a surface. */
|
|
53
|
-
--color-nav-current-text: var(--color-accent);
|
|
50
|
+
--color-nav-current-text: var(--color-accent);
|
|
54
51
|
/* The selected segmented label: the first of --color-accent, --color-text, black, and white that reaches
|
|
55
52
|
4.5:1 on the thumb. An icon-only option needs 3:1. */
|
|
56
|
-
--color-segmented-current-text: var(--color-accent);
|
|
57
|
-
--color-row-hover: #e2e5e8;
|
|
58
|
-
--color-row-selected: var(--color-surface-raised);
|
|
59
|
-
--color-border-subtle: #d3d8dd;
|
|
60
|
-
--color-border: #6d747b;
|
|
61
|
-
--color-text: #101315;
|
|
62
|
-
--color-muted: #50575e;
|
|
63
|
-
--color-overlay: rgb(0 0 0 / 42%);
|
|
53
|
+
--color-segmented-current-text: var(--color-accent);
|
|
54
|
+
--color-row-hover: #e2e5e8;
|
|
55
|
+
--color-row-selected: var(--color-surface-raised);
|
|
56
|
+
--color-border-subtle: #d3d8dd;
|
|
57
|
+
--color-border: #6d747b;
|
|
58
|
+
--color-text: #101315;
|
|
59
|
+
--color-muted: #50575e;
|
|
60
|
+
--color-overlay: rgb(0 0 0 / 42%);
|
|
64
61
|
|
|
65
62
|
/* The hue fills primary actions and marks selection; links keep --color-link. */
|
|
66
|
-
--color-accent: var(--color-project);
|
|
67
|
-
--color-accent-text: var(--color-bg);
|
|
68
|
-
--color-accent-hover: var(--color-text);
|
|
69
|
-
--color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
|
|
70
|
-
--color-link: #0b5f7c;
|
|
63
|
+
--color-accent: var(--color-project);
|
|
64
|
+
--color-accent-text: var(--color-bg);
|
|
65
|
+
--color-accent-hover: var(--color-text);
|
|
66
|
+
--color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
|
|
67
|
+
--color-link: #0b5f7c;
|
|
71
68
|
/* One focus ring for every role: the accent, at 3:1 or more on --color-bg, --color-surface, and --color-surface-raised
|
|
72
69
|
in both themes. Fields mark focus with their own accent edge instead; see components.md. */
|
|
73
|
-
--color-focus: var(--color-accent);
|
|
74
|
-
--focus-width: 2px;
|
|
75
|
-
--focus-offset: 3px;
|
|
70
|
+
--color-focus: var(--color-accent);
|
|
71
|
+
--focus-width: 2px;
|
|
72
|
+
--focus-offset: 3px;
|
|
76
73
|
|
|
77
74
|
/* Status: only for state, never for decoration. */
|
|
78
|
-
--color-success: #157249;
|
|
79
|
-
--color-warning: #86532e;
|
|
80
|
-
--color-error: #bd342b;
|
|
81
|
-
--color-info: #175cd3;
|
|
82
|
-
--color-success-surface: #d9e5e1;
|
|
83
|
-
--color-warning-surface: #e7e2de;
|
|
84
|
-
--color-error-surface: #efe4e4;
|
|
85
|
-
--color-info-surface: #d9e3f2;
|
|
75
|
+
--color-success: #157249;
|
|
76
|
+
--color-warning: #86532e;
|
|
77
|
+
--color-error: #bd342b;
|
|
78
|
+
--color-info: #175cd3;
|
|
79
|
+
--color-success-surface: #d9e5e1;
|
|
80
|
+
--color-warning-surface: #e7e2de;
|
|
81
|
+
--color-error-surface: #efe4e4;
|
|
82
|
+
--color-info-surface: #d9e3f2;
|
|
86
83
|
|
|
87
84
|
/* Identity layer, derived: terminal folio plates. Commands take the hue; captures stay neutral.
|
|
88
85
|
A project without terminal plates leaves these unused. */
|
|
89
|
-
--color-command-bg: color-mix(in srgb, var(--color-project) 25%, #101010);
|
|
90
|
-
--color-command-border: transparent;
|
|
91
|
-
--color-terminal: #0a0c0e;
|
|
92
|
-
--color-terminal-text: #e6e9eb;
|
|
93
|
-
--color-terminal-border: #2a3036;
|
|
94
|
-
--color-terminal-caption: #13171a;
|
|
95
|
-
--color-terminal-caption-text: #c9d0d6;
|
|
86
|
+
--color-command-bg: color-mix(in srgb, var(--color-project) 25%, #101010);
|
|
87
|
+
--color-command-border: transparent;
|
|
88
|
+
--color-terminal: #0a0c0e;
|
|
89
|
+
--color-terminal-text: #e6e9eb;
|
|
90
|
+
--color-terminal-border: #2a3036;
|
|
91
|
+
--color-terminal-caption: #13171a;
|
|
92
|
+
--color-terminal-caption-text: #c9d0d6;
|
|
96
93
|
/* The terminal capture's header stays dark in both appearances, so its selected tab keeps the dark lift. */
|
|
97
|
-
--shadow-nav-current-dark: 0 1px 2px rgb(0 0 0 / 25%);
|
|
94
|
+
--shadow-nav-current-dark: 0 1px 2px rgb(0 0 0 / 25%);
|
|
98
95
|
|
|
99
96
|
/* Source code wells */
|
|
100
|
-
--color-code: var(--color-surface);
|
|
101
|
-
--color-code-text: var(--color-text);
|
|
102
|
-
--color-syntax-keyword: #715b42;
|
|
103
|
-
--color-syntax-string: #346347;
|
|
104
|
-
--color-syntax-number: #86532e;
|
|
105
|
-
--color-syntax-comment: #626772;
|
|
97
|
+
--color-code: var(--color-surface);
|
|
98
|
+
--color-code-text: var(--color-text);
|
|
99
|
+
--color-syntax-keyword: #715b42;
|
|
100
|
+
--color-syntax-string: #346347;
|
|
101
|
+
--color-syntax-number: #86532e;
|
|
102
|
+
--color-syntax-comment: #626772;
|
|
106
103
|
|
|
107
104
|
/* Type scale. The identity block names the families. */
|
|
108
|
-
--text-xs: 0.75rem;
|
|
109
|
-
--text-sm: 0.8125rem;
|
|
110
|
-
--text-md: 0.875rem;
|
|
111
|
-
--text-lg: 1rem;
|
|
112
|
-
--text-xl: 1.25rem;
|
|
113
|
-
--text-2xl: 1.5rem;
|
|
114
|
-
--text-3xl: 2.75rem;
|
|
115
|
-
--text-reading: 1rem;
|
|
116
|
-
--text-display: 3.5rem;
|
|
117
|
-
--text-display-sm: 2.125rem;
|
|
118
|
-
--leading-tight: 1.25;
|
|
119
|
-
--leading: 1.6;
|
|
120
|
-
--weight-regular: 400;
|
|
121
|
-
--weight-medium: 500;
|
|
122
|
-
--weight-semibold: 600;
|
|
123
|
-
--tracking-tight: -0.03em;
|
|
124
|
-
--text-code: 0.84375rem;
|
|
105
|
+
--text-xs: 0.75rem;
|
|
106
|
+
--text-sm: 0.8125rem;
|
|
107
|
+
--text-md: 0.875rem;
|
|
108
|
+
--text-lg: 1rem;
|
|
109
|
+
--text-xl: 1.25rem;
|
|
110
|
+
--text-2xl: 1.5rem;
|
|
111
|
+
--text-3xl: 2.75rem;
|
|
112
|
+
--text-reading: 1rem;
|
|
113
|
+
--text-display: 3.5rem;
|
|
114
|
+
--text-display-sm: 2.125rem;
|
|
115
|
+
--leading-tight: 1.25;
|
|
116
|
+
--leading: 1.6;
|
|
117
|
+
--weight-regular: 400;
|
|
118
|
+
--weight-medium: 500;
|
|
119
|
+
--weight-semibold: 600;
|
|
120
|
+
--tracking-tight: -0.03em;
|
|
121
|
+
--text-code: 0.84375rem;
|
|
125
122
|
|
|
126
123
|
/* Space: a 4px rhythm (0.25rem at the default 16px root). */
|
|
127
|
-
--space-1: 0.25rem;
|
|
128
|
-
--space-2: 0.5rem;
|
|
129
|
-
--space-3: 0.75rem;
|
|
130
|
-
--space-4: 1rem;
|
|
131
|
-
--space-5: 1.25rem;
|
|
132
|
-
--space-6: 1.5rem;
|
|
133
|
-
--space-8: 2rem;
|
|
134
|
-
--space-12: 3rem;
|
|
135
|
-
--space-16: 4rem;
|
|
136
|
-
--space-20: 5rem;
|
|
137
|
-
--space-24: 6rem;
|
|
124
|
+
--space-1: 0.25rem;
|
|
125
|
+
--space-2: 0.5rem;
|
|
126
|
+
--space-3: 0.75rem;
|
|
127
|
+
--space-4: 1rem;
|
|
128
|
+
--space-5: 1.25rem;
|
|
129
|
+
--space-6: 1.5rem;
|
|
130
|
+
--space-8: 2rem;
|
|
131
|
+
--space-12: 3rem;
|
|
132
|
+
--space-16: 4rem;
|
|
133
|
+
--space-20: 5rem;
|
|
134
|
+
--space-24: 6rem;
|
|
138
135
|
|
|
139
136
|
/* Size */
|
|
140
|
-
--control-sm: 2rem;
|
|
141
|
-
--control-md: 2.25rem;
|
|
142
|
-
--control-lg: 2.75rem;
|
|
143
|
-
--row: 2.25rem;
|
|
144
|
-
--measure: 68ch;
|
|
145
|
-
--page-max: 960px;
|
|
146
|
-
--page-wide: 1120px;
|
|
147
|
-
--sidebar: 224px;
|
|
137
|
+
--control-sm: 2rem;
|
|
138
|
+
--control-md: 2.25rem;
|
|
139
|
+
--control-lg: 2.75rem;
|
|
140
|
+
--row: 2.25rem;
|
|
141
|
+
--measure: 68ch;
|
|
142
|
+
--page-max: 960px;
|
|
143
|
+
--page-wide: 1120px;
|
|
144
|
+
--sidebar: 224px;
|
|
148
145
|
|
|
149
146
|
/* Shape */
|
|
150
|
-
--radius-inline: 6px;
|
|
151
|
-
--radius-control: 999px;
|
|
152
|
-
--radius-panel: 16px;
|
|
153
|
-
--radius-field: 10px;
|
|
154
|
-
--radius-pill: 999px;
|
|
147
|
+
--radius-inline: 6px;
|
|
148
|
+
--radius-control: 999px;
|
|
149
|
+
--radius-panel: 16px;
|
|
150
|
+
--radius-field: 10px;
|
|
151
|
+
--radius-pill: 999px;
|
|
155
152
|
|
|
156
153
|
/* Elevation: DESIGN.md#depth assigns each tier. Idle controls and surfaces take no outer light
|
|
157
154
|
highlight and no blur wider than 2px. */
|
|
158
|
-
--shadow-raise: 0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%);
|
|
159
|
-
--shadow-surface: 0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%);
|
|
160
|
-
--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%);
|
|
161
|
-
--shadow-dialog: 0 8px 24px rgb(16 16 24 / 12%), 0 0 0 1px var(--color-border-subtle);
|
|
162
|
-
--shadow-nav-current: 0 1px 3px rgb(130 142 158 / 40%);
|
|
155
|
+
--shadow-raise: 0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%);
|
|
156
|
+
--shadow-surface: 0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%);
|
|
157
|
+
--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%);
|
|
158
|
+
--shadow-dialog: 0 8px 24px rgb(16 16 24 / 12%), 0 0 0 1px var(--color-border-subtle);
|
|
159
|
+
--shadow-nav-current: 0 1px 3px rgb(130 142 158 / 40%);
|
|
163
160
|
/* A focused field's inset line inside its accent or danger edge. It takes each theme's accent and danger. */
|
|
164
|
-
--shadow-field-focus: inset 0 0 0 2px color-mix(in srgb, var(--color-accent) 18%, transparent);
|
|
165
|
-
--shadow-field-focus-invalid: inset 0 0 0 2px color-mix(in srgb, var(--color-error) 18%, transparent);
|
|
161
|
+
--shadow-field-focus: inset 0 0 0 2px color-mix(in srgb, var(--color-accent) 18%, transparent);
|
|
162
|
+
--shadow-field-focus-invalid: inset 0 0 0 2px color-mix(in srgb, var(--color-error) 18%, transparent);
|
|
166
163
|
|
|
167
164
|
/* Motion */
|
|
168
|
-
--duration-fast: 120ms;
|
|
169
|
-
--duration: 180ms;
|
|
170
|
-
--ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
165
|
+
--duration-fast: 120ms;
|
|
166
|
+
--duration: 180ms;
|
|
167
|
+
--ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
171
168
|
}
|
|
172
169
|
|
|
173
170
|
@media (prefers-color-scheme: dark) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@filipgutica/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Filip's design language, tokens, and component catalogue for any framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
"default": "./dist/tokens.js"
|
|
13
13
|
},
|
|
14
14
|
"./tokens.css": "./language/tokens.css",
|
|
15
|
-
"./class/base.css": "./dist/class/base.css",
|
|
16
|
-
"./class/themes/*.css": "./dist/class/themes/*.css",
|
|
17
15
|
"./themes/*.css": "./dist/themes/*.css",
|
|
18
16
|
"./tokens.json": "./dist/tokens.json",
|
|
19
17
|
"./fonts.css": "./fonts/fonts.css",
|
package/dist/class/base.css
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
/* Generated from tokens/core.json and tokens/themes/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
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/* Generated from tokens/core.json and tokens/themes/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
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/* Generated from tokens/core.json and tokens/themes/mauve.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
|
|
2
|
-
* Opt-in Mauve 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: #6c5267;
|
|
9
|
-
--color-project-dark: #d1b3c8;
|
|
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: #d1b3c8;
|
|
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
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/* Generated from tokens/core.json and tokens/themes/pine.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
|
|
2
|
-
* Opt-in Pine 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: #00543f;
|
|
9
|
-
--color-project-dark: #3fe0c0;
|
|
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: #3fe0c0;
|
|
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
|
-
}
|