@filipgutica/design-system 1.0.39 → 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 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, base radius, and neutrals |
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 it |
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/` | Inter and JetBrains Mono latin `woff2` files, `fonts.css`, and their OFL licences |
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,9 +33,9 @@ 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. `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, loaded after `tokens.css`, repeats its light values on `:root [data-theme="light"]` and its dark values on the selectors of the dark subtree block at the end of `tokens.css`, beside its `:root` and root dark rules, so its hue, neutrals, and text on the hue hold in a subtree too; a theme file from the token build does this already. |
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, 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`, 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
40
  | `@filipgutica/design-system/fonts.css` | Inter and JetBrains Mono, the default theme's fonts. |
41
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. |
@@ -43,10 +43,27 @@ npm install @filipgutica/design-system
43
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. |
44
44
  | `@filipgutica/design-system/language/*` | The spec, catalogue, and example pages. |
45
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. |
46
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. |
47
48
 
48
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.
49
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
+
50
67
  ## Install for agents
51
68
 
52
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.
@@ -1,7 +1,7 @@
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. */
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;
@@ -54,6 +54,7 @@
54
54
  --color-surface: #181825;
55
55
  --color-surface-raised: #1e1e2e;
56
56
  --color-surface-muted: #313244;
57
+ --color-nav-current-text: var(--color-accent);
57
58
  --color-row-hover: #313244;
58
59
  --color-border-subtle: #45475a;
59
60
  --color-border: #7f849c;
@@ -62,7 +63,6 @@
62
63
  }
63
64
 
64
65
  :root [data-theme="light"] {
65
- --color-project: #8839ef;
66
66
  --color-bg: #eff1f5;
67
67
  --color-surface: #e6e9ef;
68
68
  --color-surface-raised: #eff1f5;
@@ -1,7 +1,7 @@
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. */
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;
@@ -10,7 +10,3 @@
10
10
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
11
11
  --radius-base: 8px;
12
12
  }
13
-
14
- :root [data-theme="light"] {
15
- --color-project: #b04003;
16
- }
@@ -1,7 +1,7 @@
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. */
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;
@@ -10,7 +10,3 @@
10
10
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
11
11
  --radius-base: 8px;
12
12
  }
13
-
14
- :root [data-theme="light"] {
15
- --color-project: #27752a;
16
- }
@@ -1,7 +1,7 @@
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. */
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;
@@ -54,6 +54,7 @@
54
54
  --color-surface: #151b23;
55
55
  --color-surface-raised: #151b23;
56
56
  --color-surface-muted: #212830;
57
+ --color-nav-current-text: var(--color-accent);
57
58
  --color-row-hover: #262c36;
58
59
  --color-border-subtle: #3d444d;
59
60
  --color-border: #656c76;
@@ -62,7 +63,6 @@
62
63
  }
63
64
 
64
65
  :root [data-theme="light"] {
65
- --color-project: #1f883d;
66
66
  --color-bg: #ffffff;
67
67
  --color-surface: #f6f8fa;
68
68
  --color-surface-raised: #ffffff;
@@ -1,7 +1,7 @@
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. */
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;
@@ -1,7 +1,7 @@
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. */
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;
@@ -10,7 +10,3 @@
10
10
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
11
11
  --radius-base: 8px;
12
12
  }
13
-
14
- :root [data-theme="light"] {
15
- --color-project: #6d3fd6;
16
- }
@@ -1,7 +1,7 @@
1
- /* Generated from tokens/themes/lagoon.tokens.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
- * The Lagoon 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. */
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;
@@ -10,7 +10,3 @@
10
10
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
11
11
  --radius-base: 8px;
12
12
  }
13
-
14
- :root [data-theme="light"] {
15
- --color-project: #087266;
16
- }
@@ -1,7 +1,7 @@
1
- /* Generated from tokens/themes/lapis.tokens.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
2
- * The Lapis 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. */
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;
@@ -10,7 +10,3 @@
10
10
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
11
11
  --radius-base: 8px;
12
12
  }
13
-
14
- :root [data-theme="light"] {
15
- --color-project: #2b59d6;
16
- }
package/dist/tokens.js CHANGED
@@ -138,7 +138,7 @@ export const tokens = {
138
138
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
139
139
  },
140
140
  "dark": {
141
- "color-project": "#a5a1ff",
141
+ "color-project": "#4b45d1",
142
142
  "color-project-dark": "#a5a1ff",
143
143
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
144
144
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -410,7 +410,7 @@ export const tokens = {
410
410
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
411
411
  },
412
412
  "dark": {
413
- "color-project": "#cba6f7",
413
+ "color-project": "#8839ef",
414
414
  "color-project-dark": "#cba6f7",
415
415
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
416
416
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -682,7 +682,7 @@ export const tokens = {
682
682
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
683
683
  },
684
684
  "dark": {
685
- "color-project": "#f39a62",
685
+ "color-project": "#b04003",
686
686
  "color-project-dark": "#f39a62",
687
687
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
688
688
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -954,7 +954,7 @@ export const tokens = {
954
954
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
955
955
  },
956
956
  "dark": {
957
- "color-project": "#7fd083",
957
+ "color-project": "#27752a",
958
958
  "color-project-dark": "#7fd083",
959
959
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
960
960
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -1226,7 +1226,7 @@ export const tokens = {
1226
1226
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
1227
1227
  },
1228
1228
  "dark": {
1229
- "color-project": "#3fb950",
1229
+ "color-project": "#1f883d",
1230
1230
  "color-project-dark": "#3fb950",
1231
1231
  "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\"",
1232
1232
  "font-mono": "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace",
@@ -1498,7 +1498,7 @@ export const tokens = {
1498
1498
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
1499
1499
  },
1500
1500
  "dark": {
1501
- "color-project": "#b49cff",
1501
+ "color-project": "#6d3fd6",
1502
1502
  "color-project-dark": "#b49cff",
1503
1503
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
1504
1504
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -1770,7 +1770,7 @@ export const tokens = {
1770
1770
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
1771
1771
  },
1772
1772
  "dark": {
1773
- "color-project": "#5cc8b8",
1773
+ "color-project": "#087266",
1774
1774
  "color-project-dark": "#5cc8b8",
1775
1775
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
1776
1776
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -2042,7 +2042,7 @@ export const tokens = {
2042
2042
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
2043
2043
  },
2044
2044
  "dark": {
2045
- "color-project": "#8aa8ff",
2045
+ "color-project": "#2b59d6",
2046
2046
  "color-project-dark": "#8aa8ff",
2047
2047
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
2048
2048
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
package/dist/tokens.json CHANGED
@@ -137,7 +137,7 @@
137
137
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
138
138
  },
139
139
  "dark": {
140
- "color-project": "#a5a1ff",
140
+ "color-project": "#4b45d1",
141
141
  "color-project-dark": "#a5a1ff",
142
142
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
143
143
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -409,7 +409,7 @@
409
409
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
410
410
  },
411
411
  "dark": {
412
- "color-project": "#cba6f7",
412
+ "color-project": "#8839ef",
413
413
  "color-project-dark": "#cba6f7",
414
414
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
415
415
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -681,7 +681,7 @@
681
681
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
682
682
  },
683
683
  "dark": {
684
- "color-project": "#f39a62",
684
+ "color-project": "#b04003",
685
685
  "color-project-dark": "#f39a62",
686
686
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
687
687
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -953,7 +953,7 @@
953
953
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
954
954
  },
955
955
  "dark": {
956
- "color-project": "#7fd083",
956
+ "color-project": "#27752a",
957
957
  "color-project-dark": "#7fd083",
958
958
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
959
959
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -1225,7 +1225,7 @@
1225
1225
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
1226
1226
  },
1227
1227
  "dark": {
1228
- "color-project": "#3fb950",
1228
+ "color-project": "#1f883d",
1229
1229
  "color-project-dark": "#3fb950",
1230
1230
  "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\"",
1231
1231
  "font-mono": "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace",
@@ -1497,7 +1497,7 @@
1497
1497
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
1498
1498
  },
1499
1499
  "dark": {
1500
- "color-project": "#b49cff",
1500
+ "color-project": "#6d3fd6",
1501
1501
  "color-project-dark": "#b49cff",
1502
1502
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
1503
1503
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -1769,7 +1769,7 @@
1769
1769
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
1770
1770
  },
1771
1771
  "dark": {
1772
- "color-project": "#5cc8b8",
1772
+ "color-project": "#087266",
1773
1773
  "color-project-dark": "#5cc8b8",
1774
1774
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
1775
1775
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -2041,7 +2041,7 @@
2041
2041
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
2042
2042
  },
2043
2043
  "dark": {
2044
- "color-project": "#8aa8ff",
2044
+ "color-project": "#2b59d6",
2045
2045
  "color-project-dark": "#8aa8ff",
2046
2046
  "font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
2047
2047
  "font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
@@ -0,0 +1,37 @@
1
+ {
2
+ "$description": "Where the font files come from. Each woff2 is copied unchanged from the npm package's files/ folder; fonts.css copies its unicode-range from the package's CSS.",
3
+ "packages": [
4
+ {
5
+ "name": "@fontsource/inter",
6
+ "version": "5.3.0",
7
+ "integrity": "sha512-RofMylZmjlJEfELXeNHFWBRcSs75rGU/6bV2S2jfnvv/3rPXPGe0LgUJTklcHZ9lM4OZmAVFhcJPnACfb91A3g==",
8
+ "upstream": "Google Fonts Inter v20",
9
+ "license": "OFL-1.1",
10
+ "licenseFile": "OFL-Inter.txt",
11
+ "files": {
12
+ "inter-latin-400-normal.woff2": "8909904ab6c872eb994093482a88a28eca2cd95912d7b6fecd72103b0dc07edc",
13
+ "inter-latin-500-normal.woff2": "f3779f1efccc4bdcdf9c0a02ab95bf6bd092ed09c48c08cedc725889edd1d19f",
14
+ "inter-latin-600-normal.woff2": "f9a06e79cd3a2a20951c0f0e28f66dd0e6d3fda73911d640a2125c8fcb78f21a",
15
+ "inter-latin-ext-400-normal.woff2": "6744a7f509ebc6ab220a6cd4ea77e898adf014f03d88dcda5d45d8a9feefb4e9",
16
+ "inter-latin-ext-500-normal.woff2": "2c6fbc42d315528beb06c1096df45487bf4186c4b78b8111d12c9c951f8acca2",
17
+ "inter-latin-ext-600-normal.woff2": "e4bdf67b0cd15ca9e184509275be95db942195d3cc2b17f6a0452f2adf75d0bf"
18
+ }
19
+ },
20
+ {
21
+ "name": "@fontsource/jetbrains-mono",
22
+ "version": "5.3.0",
23
+ "integrity": "sha512-fqDfB5I9f1p1TV486aUgB9t8zP84P0O1FtQR5Ol9vjwPy+S+EIGlVYm1cvj2W5shcZMTg2nZFdVMoH5wFu8a1A==",
24
+ "upstream": "Google Fonts JetBrains Mono v24",
25
+ "license": "OFL-1.1",
26
+ "licenseFile": "OFL-JetBrains-Mono.txt",
27
+ "files": {
28
+ "jetbrains-mono-latin-400-normal.woff2": "14425ba9c695763c1547f48a206b7aa60350a33ae23de09f0407877f3fcd89eb",
29
+ "jetbrains-mono-latin-500-normal.woff2": "cb182feeed4d798ff6961d3c79f7026279448fca0676438aaecb21f3fc39553a",
30
+ "jetbrains-mono-latin-600-normal.woff2": "400c6bfda18d5d14acad1c15d6dcb9f8e13c015e7286317e0b9a482539bef147",
31
+ "jetbrains-mono-latin-ext-400-normal.woff2": "505dfba8ecbe77e82765f36d317ed7ef4ac42719dc5f4ae68d1c483fd22d0d14",
32
+ "jetbrains-mono-latin-ext-500-normal.woff2": "879df9319f1cbf633bee1dd489e376a9e1e8c458f4abddcfe381cb83b5e6b027",
33
+ "jetbrains-mono-latin-ext-600-normal.woff2": "90899aac1c15552c028fd205376bb537a2a5205164fe8626efabad77d7260c20"
34
+ }
35
+ }
36
+ ]
37
+ }
package/fonts/fonts.css CHANGED
@@ -1,4 +1,62 @@
1
- /* Inter and JetBrains Mono, latin subset, from @fontsource/{inter,jetbrains-mono} 5.3.0. OFL licences beside this file. */
1
+ /* Inter and JetBrains Mono, latin and latin-ext subsets, 400, 500, and 600, from the npm packages
2
+ @fontsource/inter@5.3.0 (Google Fonts Inter v20) and @fontsource/jetbrains-mono@5.3.0 (Google Fonts
3
+ JetBrains Mono v24). Each file and unicode-range is copied unchanged, latin-ext first as the packages
4
+ declare it, so latin wins the marks both subsets hold. SOURCE.json records the packages and file hashes.
5
+ A browser downloads a subset only when the page uses a character in its range. OFL licences beside this file. */
6
+
7
+ @font-face {
8
+ font-family: 'Inter';
9
+ font-style: normal;
10
+ font-weight: 400;
11
+ font-display: swap;
12
+ src: url('./inter-latin-ext-400-normal.woff2') format('woff2');
13
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
14
+ }
15
+
16
+ @font-face {
17
+ font-family: 'Inter';
18
+ font-style: normal;
19
+ font-weight: 500;
20
+ font-display: swap;
21
+ src: url('./inter-latin-ext-500-normal.woff2') format('woff2');
22
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
23
+ }
24
+
25
+ @font-face {
26
+ font-family: 'Inter';
27
+ font-style: normal;
28
+ font-weight: 600;
29
+ font-display: swap;
30
+ src: url('./inter-latin-ext-600-normal.woff2') format('woff2');
31
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
32
+ }
33
+
34
+ @font-face {
35
+ font-family: 'JetBrains Mono';
36
+ font-style: normal;
37
+ font-weight: 400;
38
+ font-display: swap;
39
+ src: url('./jetbrains-mono-latin-ext-400-normal.woff2') format('woff2');
40
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
41
+ }
42
+
43
+ @font-face {
44
+ font-family: 'JetBrains Mono';
45
+ font-style: normal;
46
+ font-weight: 500;
47
+ font-display: swap;
48
+ src: url('./jetbrains-mono-latin-ext-500-normal.woff2') format('woff2');
49
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
50
+ }
51
+
52
+ @font-face {
53
+ font-family: 'JetBrains Mono';
54
+ font-style: normal;
55
+ font-weight: 600;
56
+ font-display: swap;
57
+ src: url('./jetbrains-mono-latin-ext-600-normal.woff2') format('woff2');
58
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
59
+ }
2
60
 
3
61
  @font-face {
4
62
  font-family: 'Inter';
@@ -41,7 +41,7 @@ Center the **container**, not every sentence. Align header, content, images, and
41
41
 
42
42
  ## Files and examples
43
43
 
44
- - `tokens.css`: the values of the default theme, Graphite Indigo, generated from the token source (`tokens/core.json` and `tokens/themes/graphite-indigo.tokens.json`) in `@filipgutica/design-system`. Other themes ship as `themes/<id>.css`, which set only a theme's inputs: its hue pair, and any fonts, base radius, or neutrals it brings; 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.
44
+ - `tokens.css`: the values of the default theme, Graphite Indigo, generated from the token source (`tokens/core.json` and `tokens/themes/graphite-indigo.tokens.json`) in `@filipgutica/design-system`. Other themes ship as `themes/<id>.css`, which set only a theme's inputs: its hue pair, and any fonts, base radius, or neutrals it brings; load one after `tokens.css`, in its cascade layer or a later one, 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.
45
45
  - `ui-sdk.css`: experimental. Draws ui-sdk's headless parts as the component specs do; see [ui-sdk](#ui-sdk-experimental).
46
46
  - `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.
47
47
  - `components.html`: every component in each of its states, in plain HTML and CSS on `tokens.css`. Copy component markup and styles from there.
@@ -85,7 +85,7 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
85
85
 
86
86
  - Inline visuals inherit the host theme. They do **not** need an independent theme switch.
87
87
  - Standalone pages follow the OS by default. A visible theme control is optional: include it when the user requests one, the product already has one, or choosing/comparing themes serves the task. Token inspection and UI-library documentation are valid uses; a simple chart or explainer usually is not.
88
- - To show part of a page in the other mode, such as a dark panel in a light page, set `data-theme="dark"` or `"light"` on that element (a `.dark` class works too) and give it its own background, such as `var(--color-bg)`. Every token that changes with the mode resolves again inside it; do not copy dark values by hand. The subtree takes its mode's text colour; on an element with both, `data-theme="light"` wins over `.dark`. A theme written by hand, loaded after `tokens.css`, repeats its light values on `:root [data-theme="light"]` and its dark values on the selectors of the dark subtree block at the end of `tokens.css`, beside its `:root` and root dark rules, so its hue, neutrals, and text on the hue hold in a subtree too; a theme file from the token build does this already.
88
+ - To show part of a page in the other mode, such as a dark panel in a light page, set `data-theme="dark"` or `"light"` on that element (a `.dark` class works too) and give it its own background, such as `var(--color-bg)`. Every token that changes with the mode resolves again inside it; do not copy dark values by hand. 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.
89
89
  - Existing products retain their theme preferences and persistence contracts. Where a standalone choice is needed, System removes the override and explicit Light/Dark choices set it. Wrap storage access in try/catch.
90
90
  - Use neutral `--color-bg`, `--color-surface`, and `--color-surface-raised` (paper in light, graphite in dark) to separate regions. Use `--color-text` and `--color-muted` for the main hierarchy.
91
91
  - Each project sets one hue, and `--color-accent` follows it. The hue fills the one primary action in each decision group, and marks identity and selection: current items, the selected tab's text, and checked or selected controls. It is never a fill for secondary buttons, cards, or wells. Check it at 3:1 for marks and bars, and at 4.5:1 wherever it colours text, on every surface it sits on. `--color-accent-text` on an `--color-accent` fill must reach 4.5:1 for each hue; a hue that misses does not colour text or carry a label there.
@@ -104,7 +104,7 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
104
104
 
105
105
  | Name | Media query | What changes |
106
106
  | --- | --- | --- |
107
- | Tablet | `@media (max-width: 800px)` | Multi-column layouts become one content column. Touch controls use `--control-touch`. |
107
+ | Tablet | `@media (max-width: 800px)` | Multi-column layouts become one content column. Touch controls use `--control-touch`: `tokens.css` sets `--control-sm`, `--control-md`, and `--control-lg` to it. |
108
108
  | Phone | `@media (max-width: 640px)` | Side gutters drop from `--space-6` to `--space-4`, and section gaps take their phone step. |
109
109
 
110
110
  Use `@media (min-width: 801px)` only for a rule that applies to desktop alone. One documented exception: the tool-home hero splits at `@media (min-width: 1024px)`, with the title across the top, the lede on the left, and the install block and facts on the right. Below 1024px it stacks in source order. Pages add no viewport breakpoint beyond the table and the hero split. A pane that must collapse at its own width uses a container query, as the detail column in `reference.html` does.
@@ -167,7 +167,7 @@ Each depth tier has one token. [`tokens.css`](tokens.css) holds every shadow val
167
167
  [`components.md`](components.md) specifies each component and [`components.html`](components.html) shows its states. These composition rules apply across them:
168
168
 
169
169
  - Build each control from the owning library's component or class, and style a link that acts as a button with the button's classes. A page adds layout only: size, spacing, and position. A local copy of a control drifts from the library, even when it uses the same tokens.
170
- - A page's own element rules, such as its heading, paragraph, and image type, go in `@layer base`, so a component's rules outrank them. An unlayered `h2` rule outranks every layered rule and restyles the title of a dialog, drawer, or viewer as a page heading.
170
+ - A page's own element rules, such as its heading, paragraph, and image type, go in `@layer base`, so a component's rules outrank them. An unlayered `h2` rule outranks every layered rule and restyles the title of a dialog, drawer, slideout, or viewer as a page heading.
171
171
  - One clearly primary action per visible decision group, filled with the hue. Other actions are secondary, ghost, or text buttons.
172
172
  - Use a segmented control for two to five short options that apply at once, a select for longer lists, and radio cards for options that need descriptions.
173
173
  - Callouts carry a real caveat, not decorative emphasis.
@@ -196,7 +196,7 @@ Each depth tier has one token. [`tokens.css`](tokens.css) holds every shadow val
196
196
  - [Tabs](components.md#tabs): `Tabs` with a horizontal `TabsList` (its `TabsIndicator` first, then the `TabsTab`s) and a `TabsPanel` for each tab. The list scrolls when it overflows.
197
197
  - [Slider](components.md#slider): a horizontal `Slider` with `SliderValue` and `SliderControl` > `SliderTrack` > `SliderIndicator` and `SliderThumb`, inside a `Field` for its label. `data-size="sm"` or `"lg"` goes on the `Slider`.
198
198
  - [Progress](components.md#progress): `Progress` with a value, `ProgressLabel`, `ProgressValue`, and `ProgressTrack` > `ProgressIndicator`.
199
- - [Drawer](components.md#drawer): `Drawer` with `side="left"` or `"right"`, `DrawerBackdrop`, and `DrawerContent` holding a `<header>` (`DrawerTitle`, then an icon `DrawerClose` with an `aria-label`) and the body in one element.
199
+ - [Drawer](components.md#drawer): `Drawer` with `side="left"` or `"right"`, `DrawerBackdrop`, and `DrawerContent` holding a `<header>` (`DrawerTitle`, then an icon `DrawerClose` with an `aria-label`) and the body in one element. It draws the navigation drawer on either side; the [slideout](components.md#slideout)'s width and footer are unsupported.
200
200
  - [Overflow menu](components.md#overflow-menu): `Menu`, `MenuTrigger`, `MenuContent`, `MenuItem`, `MenuSeparator`, and `MenuItemIcon`. Supply the More SVG as the trigger's child and an item-specific `aria-label`; use `align="end"` on `MenuContent` (its default 4px offset matches `--space-1`). Render each `MenuItem` as a button with `render={<button type="button" />}`; for disabled items, pass both `disabled` and `render={<button type="button" disabled />}` so the native button and ui-sdk agree. `destructive` on the last item draws the danger text through ui-sdk's `data-destructive`; separate it with `MenuSeparator`. `data-open`, `data-highlighted`, and `data-disabled` come from ui-sdk, not the app. `MenuItemIcon` wraps an app-supplied 16px SVG.
201
201
  - Beta.5 keyboard limitation: ui-sdk highlights disabled items instead of skipping them. With a native disabled button, focus stays on the preceding item and Down Arrow stops there; Up Arrow, Home, and End still reach the items after it. Use the plain-HTML recipe when disabled-item skipping is required; this stylesheet cannot correct ui-sdk's navigation.
202
202
  - At tablet width and below, the menu trigger and items, buttons, inputs, select triggers, toggle buttons, segmented tracks, tabs, sliders, and choice and switch rows grow to `--control-touch` (44px) for touch, at every size; segmented options sit inside the track's 2px inset, so they are 40px. The catalogue's size specimens keep their sizes.