@filipgutica/design-system 1.0.10 → 1.0.12
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 -2
- package/language/DESIGN.md +5 -7
- package/language/components.html +14 -0
- package/language/components.md +36 -38
- package/language/docs.html +1 -1
- package/language/reference.html +1 -1
- package/language/visualizations/delivery.md +1 -1
- package/package.json +1 -1
- package/language/implementations.json +0 -85
package/README.md
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Filip's design language for any framework: the spec, the tokens, the component catalogue, and the editor themes. It ships as the npm package `@filipgutica/design-system`.
|
|
4
4
|
|
|
5
5
|
- **Agents** get `language/` at `~/design-language` through filip-stack host config, or by copying it from the package; the site's [Agents](https://filipgutica.github.io/design-system/#agents) section has both.
|
|
6
|
-
- **Vue apps** use [`@filipgutica/ui`](https://github.com/filipgutica/ui),
|
|
6
|
+
- **Vue apps** can use [`@filipgutica/ui`](https://github.com/filipgutica/ui), a Vue component library built on this design system.
|
|
7
7
|
- **Site:** <https://filipgutica.github.io/design-system/> has the Overview, Foundations, and Components pages, with `index.json` and `llms.txt` for agents.
|
|
8
8
|
|
|
9
9
|
## Contents
|
|
10
10
|
|
|
11
11
|
| Path | What it holds |
|
|
12
12
|
| --- | --- |
|
|
13
|
-
| `language/` | The payload: `DESIGN.md`, `components.md`, `decisions.md`, `visualizations.md`, `tokens.css`, the catalogue (`components.html`),
|
|
13
|
+
| `language/` | The payload: `DESIGN.md`, `components.md`, `decisions.md`, `visualizations.md`, `tokens.css`, the catalogue (`components.html`), example pages, visualization helpers, and the Graphite Indigo editor theme |
|
|
14
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` |
|
package/language/DESIGN.md
CHANGED
|
@@ -48,14 +48,12 @@ Center the **container**, not every sentence. Align header, content, images, and
|
|
|
48
48
|
- `product.html`: a restrained product-page hierarchy with illustrative product evidence.
|
|
49
49
|
- `DESIGN.md`: selection rules and acceptance criteria. It names tokens rather than repeating their values.
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Token names depend on where the page runs. This file uses the `tokens.css` names, which `@filipgutica/ui` shares.
|
|
51
|
+
Token names depend on where the page runs. This file uses the `tokens.css` names.
|
|
54
52
|
|
|
55
53
|
| Context | Variable names to write |
|
|
56
54
|
| --- | --- |
|
|
57
55
|
| Standalone HTML | The `tokens.css` names. Import or inline `tokens.css`, and copy component styles from `components.html`. |
|
|
58
|
-
| Site on
|
|
56
|
+
| Site on a component library built on this design language | The `tokens.css` names that the library declares. The library's own documentation lists any it lacks and any helper behaviour. |
|
|
59
57
|
| Other repository | That repository's own tokens and components, matched to these roles by meaning. |
|
|
60
58
|
| Inline visual | The host's supplied CSS variables and font, with no separate page shell. |
|
|
61
59
|
|
|
@@ -104,9 +102,9 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
|
|
|
104
102
|
| Tablet | `@media (max-width: 800px)` | Multi-column layouts become one content column. Touch controls use `--control-lg`. |
|
|
105
103
|
| Phone | `@media (max-width: 640px)` | Side gutters drop from `--space-6` to `--space-4`, and section gaps take their phone step. |
|
|
106
104
|
|
|
107
|
-
Use `@media (min-width: 801px)` only for a rule that applies to desktop alone. One documented exception: the tool-home hero
|
|
105
|
+
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.
|
|
108
106
|
- Density: an application screen has one size for each place, not a range. Toolbar controls (buttons, segmented filters, and search fields) are `sm`, `--control-sm` tall. Rows in a table or list, such as the console's monitor list, and rail and navigation rows, are `--row` tall. Other controls keep the default `md` (`--control-md`). At tablet width every touch target grows to `--control-lg`. The console in `reference.html` uses these sizes.
|
|
109
|
-
- [Navigation](#navigation) is a strip of 6 links or fewer, or a section rail that moves into a drawer at tablet width. A sticky side rail taller than the window scrolls its link list, not the element that draws its divider, so an overlay scrollbar sits clear of the line
|
|
107
|
+
- [Navigation](#navigation) is a strip of 6 links or fewer, or a section rail that moves into a drawer at tablet width. A sticky side rail taller than the window scrolls its link list, not the element that draws its divider, so an overlay scrollbar sits clear of the line. Keep wide code, tables, and charts scrolling inside their containers.
|
|
110
108
|
- Keep main headings, actions, and product evidence visible on load. Scrolling should reveal more content without being required to make existing content appear.
|
|
111
109
|
|
|
112
110
|
### Surfaces
|
|
@@ -234,7 +232,7 @@ Each depth tier has one token. [`tokens.css`](tokens.css) holds every shadow val
|
|
|
234
232
|
|
|
235
233
|
The personal sites are terminal tools that read Markdown and paths, so their identity comes from that world. A new project replaces this section with its own identity and keeps the core.
|
|
236
234
|
|
|
237
|
-
- **Mono identity.** `--font-mono` (IBM Plex Mono) sets identity, the page titles and section headings of documentation, CLI tool, article, and product pages, navigation rails, metadata, captions, and the footer.
|
|
235
|
+
- **Mono identity.** `--font-mono` (IBM Plex Mono) sets identity, the page titles and section headings of documentation, CLI tool, article, and product pages, navigation rails, metadata, captions, and the footer. `fonts.css` self-hosts IBM Plex; without it, the tokens fall back to the system stack.
|
|
238
236
|
- **Headings.** Documentation, CLI tool, article, and product page titles are mono; application titles are `--font-ui`. Page-level section headings (h2) on documentation, CLI tool, article, and product pages are mono, start with a `##` mark in `--color-accent` (decorative, so screen readers skip it), and have a `--color-border-subtle` rule above the section. Application and inline-visualization section headings, and every h3 or lower, are plain `--font-ui` with no mark. Product pages and tool homes may use a mono `--text-display` title, stepping down to `--text-display-sm` on phones; keep a short heading measure, place supporting copy and the primary action nearby, and let the first product image enter the initial desktop viewport.
|
|
239
237
|
- **Hue marks.** The hue also draws the `~/` header mark, the `##` mark on documentation, CLI tool, article, and product section headings, step numbers, and the `$` prompt.
|
|
240
238
|
- **Header.** Personal product sites share a compact static header: a mono `~/name` identity with the `~/` in `--color-accent`, a project switcher, useful page links, appearance controls, and a solid `--color-text` rule below. Use the shared project registry for names, order, and destinations; the design-system site's header starts with the same switcher. The identity is the same on every page, and the links sit at the same x on every page; the page's path goes in [breadcrumbs](components.md#breadcrumbs) above its title. Keep a gallery's existing application navigation structure.
|
package/language/components.html
CHANGED
|
@@ -733,6 +733,19 @@
|
|
|
733
733
|
.rail-specimen { display: grid; gap: var(--space-3); width: 240px; }
|
|
734
734
|
.phone-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); width: min(100%, 360px); padding-block: var(--space-2); border-bottom: 1px solid var(--color-text); }
|
|
735
735
|
.phone-head > .strip { flex-basis: 100%; margin-inline: -2px; }
|
|
736
|
+
/* At 640px and narrower, one or two links stay on the switcher's row as plain text links, 12px apart:
|
|
737
|
+
no row padding or hover fill, and the current page in the accent with no fill. The picker ends the row;
|
|
738
|
+
where all of it does not fit, as at 320px, only the picker wraps. */
|
|
739
|
+
.phone-head > .projects:has(~ .text-links) { margin-inline-end: auto; }
|
|
740
|
+
.navlist.text-links { display: flex; gap: var(--space-3); width: auto; }
|
|
741
|
+
.navlist.text-links a { min-height: var(--control-lg); padding-inline: 0; }
|
|
742
|
+
@media (hover: hover) { .navlist.text-links a:hover { background: none; } }
|
|
743
|
+
.navlist.text-links a[aria-current="page"] { background: none; box-shadow: none; color: var(--color-accent); }
|
|
744
|
+
.navlist.text-links a:is(:focus-visible, .is-focus) { outline-offset: var(--focus-offset); }
|
|
745
|
+
/* Forced colors: an underline marks the current page, as the system border would touch the text. */
|
|
746
|
+
@media (forced-colors: active) {
|
|
747
|
+
.navlist.text-links a[aria-current="page"] { border-inline-start: 0; padding-inline-start: 0; text-decoration: underline; }
|
|
748
|
+
}
|
|
736
749
|
|
|
737
750
|
/* By purpose: each group with its components, in two balanced columns. */
|
|
738
751
|
.index { display: grid; gap: var(--space-4); }
|
|
@@ -1320,6 +1333,7 @@
|
|
|
1320
1333
|
</div></div>
|
|
1321
1334
|
<div class="row"><h4>Phone header</h4><div class="states">
|
|
1322
1335
|
<div class="state wide" inert><div class="phone-head"><details class="projects"><summary class="quiet-action" aria-label="Project: Design system, phone sample"><span>Design system</span><svg class="icon" aria-hidden="true"><use href="#i-chevron-down"/></svg></summary></details><div class="segmented" role="group" aria-label="Appearance, phone sample" data-size="lg" data-icon-only><button type="button" aria-pressed="true" aria-label="System" title="System"><svg class="icon" aria-hidden="true"><use href="#i-system"/></svg></button><button type="button" aria-pressed="false" aria-label="Light" title="Light"><svg class="icon" aria-hidden="true"><use href="#i-light"/></svg></button><button type="button" aria-pressed="false" aria-label="Dark" title="Dark"><svg class="icon" aria-hidden="true"><use href="#i-dark"/></svg></button></div><nav class="navlist strip" aria-label="Pages, phone sample"><a href="#section-rail" data-label="Overview">Overview</a><a href="#section-rail" data-label="Foundations">Foundations</a><a href="#section-rail" aria-current="page" data-label="Components">Components</a><a href="#section-rail" data-label="Themes">Themes</a></nav></div><button class="btn secondary menu-glyph" type="button" data-size="lg">Components: By purpose</button><span class="caption">Rest at tablet width: the switcher and appearance, then the pages, then the labelled trigger below the header</span></div>
|
|
1336
|
+
<div class="state wide" inert><div class="phone-head"><details class="projects"><summary class="quiet-action" aria-label="Project: ui, phone sample with two links"><span>ui</span><svg class="icon" aria-hidden="true"><use href="#i-chevron-down"/></svg></summary></details><nav class="navlist text-links" aria-label="Site links, phone sample"><a href="#section-rail" aria-current="page">Docs</a><a href="#section-rail">GitHub</a></nav><div class="segmented" role="group" aria-label="Appearance, phone sample with two links" data-size="lg" data-icon-only><button type="button" aria-pressed="true" aria-label="System" title="System"><svg class="icon" aria-hidden="true"><use href="#i-system"/></svg></button><button type="button" aria-pressed="false" aria-label="Light" title="Light"><svg class="icon" aria-hidden="true"><use href="#i-light"/></svg></button><button type="button" aria-pressed="false" aria-label="Dark" title="Dark"><svg class="icon" aria-hidden="true"><use href="#i-dark"/></svg></button></div></div><span class="caption">Phone, two links: text links after the switcher, Docs current; where the row is full, only the picker wraps. A documentation page hides them, and its footer carries them</span></div>
|
|
1323
1337
|
</div></div>
|
|
1324
1338
|
</section>
|
|
1325
1339
|
|
package/language/components.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Component specs
|
|
2
2
|
|
|
3
|
-
One section for each component in the design language. Write any framework's version of a component from its section. [`components.html`](components.html) shows each state as static markup, and [`tokens.css`](tokens.css) holds the values. The [decisions](decisions.md) record why each choice was made.
|
|
3
|
+
One section for each component in the design language. Write any framework's version of a component from its section. [`components.html`](components.html) shows each state as static markup, and [`tokens.css`](tokens.css) holds the values. The [decisions](decisions.md) record why each choice was made.
|
|
4
4
|
|
|
5
5
|
Each section has these parts: anatomy, states, then Do and Don't, keyboard and screen reader, motion, and forced colors. A part that does not apply says "None", with the reason. Do names the choice to make, and Don't names the mistake to avoid; neither repeats the spec. A section may add tokens and parts of its own. Sizes are in CSS pixels at the default 16px root font size. Type, spacing, and control sizes are set in rem (pixels ÷ 16), so they follow the reader's font-size setting; borders, focus rings, and shadows stay in pixels. A percentage mix means `color-mix(in srgb, A n%, B)`.
|
|
6
6
|
|
|
@@ -45,9 +45,9 @@ A control's **States** line names each interactive state it has. In `components.
|
|
|
45
45
|
|
|
46
46
|
## Button
|
|
47
47
|
|
|
48
|
-
Layer: Core.
|
|
48
|
+
Layer: Core.
|
|
49
49
|
|
|
50
|
-
- **Anatomy.** A native `<button>` with a label and an optional 16px leading icon. A link that should look like a button is an `<a>` with the same classes and no underline
|
|
50
|
+
- **Anatomy.** A native `<button>` with a label and an optional 16px leading icon. A link that should look like a button is an `<a>` with the same classes and no underline. Medium weight, `-0.01em` tracking, line height 1.25, `--radius-control` (pill). Horizontal padding is 10px at `sm`, `--space-3` at `md`, and `--space-4` at `lg`.
|
|
51
51
|
- **Variants.**
|
|
52
52
|
|
|
53
53
|
| Variant | Rest | Hover | Pressed |
|
|
@@ -68,7 +68,7 @@ Layer: Core. ui: `UiButton`.
|
|
|
68
68
|
|
|
69
69
|
## Quiet action
|
|
70
70
|
|
|
71
|
-
Layer: Core.
|
|
71
|
+
Layer: Core.
|
|
72
72
|
|
|
73
73
|
- **Anatomy.** A native `<button>`, or the `<summary>` of a menu. Transparent fill, a transparent 1px border, `--radius-control`, and `--color-muted`. The project trigger overrides the corner with `--radius-field`, because it opens a menu and does not act (see [Site header](#site-header)). The content is centred in the box. An icon-only action holds an SVG icon, never a text glyph such as ×, because a font draws a glyph's ink off the centre of its box. Give the shared recipe zero specificity (`:where()`), so each component sets the action's size, place, and resting colour.
|
|
74
74
|
- **States.** Hover turns the text `--color-text` and fills `currentColor` at 6% over transparent, only where the pointer can hover (`@media (hover: hover)`). Pressed fills `currentColor` at 12%, with no sink. Focus-visible is the focus ring, inset where the parent clips. An open menu keeps its trigger at the 6% hover tint, below the press. The code block's Copy is `--color-muted` at rest and takes the block's text colour (`--color-code-text`) on hover and while its tick shows. A disabled quiet action follows the shared [disabled](#rules-for-every-control) rule.
|
|
@@ -80,7 +80,7 @@ Layer: Core. ui: the `fg-quiet-action` class.
|
|
|
80
80
|
|
|
81
81
|
## Checkbox and radio
|
|
82
82
|
|
|
83
|
-
Layer: Core.
|
|
83
|
+
Layer: Core.
|
|
84
84
|
|
|
85
85
|
- **Anatomy.** A `<label>` around the box and its text, with a gap of about 9px. The box is 16px at `sm`, 18px at `md`, and 20px at `lg`. Checkbox corners are `--radius-inline`; a radio is round. The row is at least the control height of its size, and the label takes that size's text: `--text-sm` at `sm`, `--text-md` at `md`, and `--text-lg` at `lg`.
|
|
86
86
|
- **Tokens.** Unchecked: `--color-surface-raised` fill and a 1px `--color-border` edge. Checked: `--color-accent` fill and edge, with a check mark in `--color-accent-text`. A checked radio shows a 5px `--color-accent` ring around a `--color-surface-raised` centre.
|
|
@@ -93,7 +93,7 @@ Layer: Core. ui: `UiCheckbox`. ui has no standalone radio; radio cards cover rad
|
|
|
93
93
|
|
|
94
94
|
## Radio card group
|
|
95
95
|
|
|
96
|
-
Layer: Core.
|
|
96
|
+
Layer: Core.
|
|
97
97
|
|
|
98
98
|
- **Anatomy.** A grid of cards (`repeat(auto-fit, minmax(160px, 1fr))`, `--space-3` gap). Each card is a `<label>` with a title, an optional muted description, and a 16px round indicator in the top right corner. The native radio stays inside the card.
|
|
99
99
|
- **Tokens.** Unselected: `--color-surface-raised`, `--shadow-raise`, transparent border, `--radius-panel`, `--space-3` padding. Hover: `--color-surface-muted` 45% into `--color-surface-raised`. Selected: `--color-well` fill and `--shadow-sink`, with the indicator filled `--color-accent` and an `--color-accent-text` check. The selected card has no accent ring.
|
|
@@ -106,7 +106,7 @@ Layer: Core. ui: `UiRadioCardGroup`, `UiRadioCard`.
|
|
|
106
106
|
|
|
107
107
|
## Switch
|
|
108
108
|
|
|
109
|
-
Layer: Core.
|
|
109
|
+
Layer: Core.
|
|
110
110
|
|
|
111
111
|
- **Anatomy.** A `<button role="switch" aria-checked>` that contains the track, and a separate `<label for>` with an optional description. The button's hit area is at least 32px wide and the control height tall. The track is 44×22 with a pill radius; the knob is 18px, inset 2px. `sm` scales both by 0.8 and `lg` by 1.2.
|
|
112
112
|
- **Tokens.** Off track: `--color-border` 90% into `--color-well`, `--shadow-sink`, transparent 1px border. Knob: `--color-surface-raised` with `--shadow-raise`. On: `--color-accent` track, `--color-accent-text` knob moved 22px to the right.
|
|
@@ -119,7 +119,7 @@ Layer: Core. ui: `UiSwitch`.
|
|
|
119
119
|
|
|
120
120
|
## Toggle button
|
|
121
121
|
|
|
122
|
-
Layer: Core.
|
|
122
|
+
Layer: Core.
|
|
123
123
|
|
|
124
124
|
- **Anatomy.** A `<button aria-pressed>` with a switch track at the start, then a label and an optional `--text-xs` muted description. `--radius-field` corners (a labelled card, so wrapped labels sit square), `--space-2` `--space-3` padding, `--color-surface-raised` fill, a 1px `--color-border-subtle` edge, and no shadow. The visible edge and the missing raise are a named exception; see [decisions](decisions.md).
|
|
125
125
|
- **States.** Rest, hover (`--color-border` edge), pressed (the track turns on as in the switch and carries the state; the card takes `--color-accent` at 8% over `--color-surface-raised` and a hairline of `--color-accent` at 35%), focus-visible, and disabled.
|
|
@@ -131,7 +131,7 @@ Layer: Core. ui: `UiToggleButton`.
|
|
|
131
131
|
|
|
132
132
|
## Segmented control
|
|
133
133
|
|
|
134
|
-
Layer: Core.
|
|
134
|
+
Layer: Core.
|
|
135
135
|
|
|
136
136
|
- **Anatomy.** A `role="group"` with an accessible name, containing one `<button aria-pressed>` for each option. The track is undivided: `--color-well` fill, `--shadow-sink`, a transparent 1px border, and `--radius-control`. Each button is the full control height (`--item`) with `--space-3` padding, and square when icon-only. At tablet width an unsized control sets `--item` to `--control-lg`, so its buttons grow to the touch size and icon-only options stay square. Its thumb is a `::before` layer inset 2px inside the button, behind the label.
|
|
137
137
|
- **Tokens.** Labels are `--color-muted`. The pressed option's thumb is `--color-control-thumb` with `--shadow-raise` and no ring. Its label is `--color-segmented-current-text`: `--color-accent` where it reaches 4.5:1 on the thumb, on the page and on a surface, and otherwise the first of `--color-text`, black, and white that does. An icon-only option needs 3:1. Hover on an unpressed option shows the thumb at 45% and turns the label `--color-text`.
|
|
@@ -144,7 +144,7 @@ Layer: Core. ui: `UiSegmentedControl`.
|
|
|
144
144
|
|
|
145
145
|
## Text input and textarea
|
|
146
146
|
|
|
147
|
-
Layer: Core.
|
|
147
|
+
Layer: Core. A textarea uses the same field recipe.
|
|
148
148
|
|
|
149
149
|
- **Anatomy.** A native `<input>` or `<textarea>`. Full width, line height 1.35. Input heights follow the control size, and horizontal padding is about 9px, 10px, or 11px.
|
|
150
150
|
- **Tokens.** Fill `--color-field-bg` (`--color-surface-raised` in light, the sunk `--color-well` well in dark), text `--color-text`, placeholder `--color-muted` at full opacity, corners `--radius-field`, border 1px `--color-field-edge` (`--color-border-subtle`), shadow `--shadow-field` (none in light, `--shadow-sink` in dark).
|
|
@@ -158,7 +158,7 @@ Layer: Core. ui: `UiInput`. ui has no textarea; a textarea uses the same field r
|
|
|
158
158
|
|
|
159
159
|
## Select
|
|
160
160
|
|
|
161
|
-
Layer: Core.
|
|
161
|
+
Layer: Core.
|
|
162
162
|
|
|
163
163
|
- **Anatomy.** A native `<select>` with the input's field recipe and a chevron on the right. Draw the chevron in `currentColor`, or with an 8px border corner in `--color-muted` turned 45°. Right padding leaves room for it at every size.
|
|
164
164
|
- **Picker.** Where `appearance: base-select` is supported, the open list is a floating layer: `--color-surface-raised`, a transparent 1px border, `--radius-panel`, `--shadow-dialog`, 4px padding, at least the select's width, and at most `min(20rem, 50dvh)` tall. Options are at least 32px tall (44px on coarse pointers), with `--space-2` `--space-3` padding and corners of `--radius-panel` minus 4px. Hover fills `--color-row-hover`. An `--color-accent` check at the end marks the checked option. The check carries the state: the option's `--color-row-selected` fill equals `--color-surface-raised`. Keyboard focus is the focus ring, inset because the list scrolls. Other browsers keep the native picker.
|
|
@@ -171,7 +171,7 @@ Layer: Core. ui: `UiSelect`.
|
|
|
171
171
|
|
|
172
172
|
## Field wrapper
|
|
173
173
|
|
|
174
|
-
Layer: Core.
|
|
174
|
+
Layer: Core.
|
|
175
175
|
|
|
176
176
|
- **Anatomy.** A grid with a 6px gap: label, control, then a description or an error. The error replaces the description.
|
|
177
177
|
- **Tokens.** Label `--text-sm` semibold `--color-text`. Description `--text-sm` `--color-muted`. Error `--text-sm` `--color-error`.
|
|
@@ -184,7 +184,7 @@ Layer: Core. ui: `UiField`.
|
|
|
184
184
|
|
|
185
185
|
## Slider
|
|
186
186
|
|
|
187
|
-
Layer: Core.
|
|
187
|
+
Layer: Core.
|
|
188
188
|
|
|
189
189
|
- **Anatomy.** A 6px track with `--radius-pill` and `--color-surface-muted`, an `--color-accent` range, and a round thumb (16px, 18px, or 20px) with a 2px `--color-accent` edge and a `--color-surface-raised` fill. The current value follows the track as `--text-sm` text in tabular numbers, in an `<output>` whose `for` names the slider.
|
|
190
190
|
- **States.** Rest, dragging (`cursor: grabbing`), focus-visible on the thumb, and disabled.
|
|
@@ -196,7 +196,7 @@ Layer: Core. ui: `UiSlider`.
|
|
|
196
196
|
|
|
197
197
|
## Progress
|
|
198
198
|
|
|
199
|
-
Layer: Core.
|
|
199
|
+
Layer: Core.
|
|
200
200
|
|
|
201
201
|
- **Anatomy.** A track about 9px tall with a 1px `--color-border-subtle` edge, `--radius-pill`, and `--color-surface-muted`, holding an `--color-accent` indicator moved with `translateX`.
|
|
202
202
|
- **States.** None: a progress bar takes no input, so it has no interaction states. Its value follows `aria-valuenow`.
|
|
@@ -208,7 +208,7 @@ Layer: Core. ui: `UiProgress`.
|
|
|
208
208
|
|
|
209
209
|
## Score
|
|
210
210
|
|
|
211
|
-
Layer: Core.
|
|
211
|
+
Layer: Core.
|
|
212
212
|
|
|
213
213
|
- **Anatomy.** A row of 8px round pips (`--radius-pill`) with 3px gaps, then the value in medium weight and `/max` in muted regular weight, in tabular numbers. Empty pips have a 1px `--color-border` edge; filled pips are `--color-accent`.
|
|
214
214
|
- **States.** None: a score is static, so it has no interaction states.
|
|
@@ -220,7 +220,7 @@ Layer: Core. ui: `UiScore`.
|
|
|
220
220
|
|
|
221
221
|
## Badge
|
|
222
222
|
|
|
223
|
-
Layer: Core.
|
|
223
|
+
Layer: Core.
|
|
224
224
|
|
|
225
225
|
- **Anatomy.** An inline pill: `--radius-pill`, about 3px by 9px padding, `--text-xs`, medium weight, and a transparent 1px border.
|
|
226
226
|
- **Tokens.** Neutral: `--color-surface-muted` fill, `--color-muted`, no dot. Status tones (success, warning, danger, info): the tone at 22% over `--color-surface-raised`, text of the tone mixed 75% with `--color-text` in light and 85% in dark, and a leading 6px dot in `currentColor`.
|
|
@@ -233,7 +233,7 @@ Layer: Core. ui: `UiBadge`.
|
|
|
233
233
|
|
|
234
234
|
## Alert
|
|
235
235
|
|
|
236
|
-
Layer: Core.
|
|
236
|
+
Layer: Core.
|
|
237
237
|
|
|
238
238
|
- **Anatomy.** An optional 16px icon and short text. `--space-3` `--space-4` padding, `--radius-panel`, and a transparent 1px border.
|
|
239
239
|
- **Tokens.** Neutral: `--color-surface`. Status tones use their `--color-*-surface` tint with `--color-text`; the icon takes the status colour.
|
|
@@ -246,7 +246,7 @@ Layer: Core. ui: `UiAlert`.
|
|
|
246
246
|
|
|
247
247
|
## Surface and card
|
|
248
248
|
|
|
249
|
-
Layer: Core.
|
|
249
|
+
Layer: Core.
|
|
250
250
|
|
|
251
251
|
- **Anatomy.** A panel: `--color-surface-raised`, transparent 1px border, `--radius-panel`, and `--shadow-surface`. A card adds a header (title in `--text-md` medium weight, with actions at the end), a body, and an optional footer above a `--color-border-subtle` rule in `--text-sm` muted text. Header and body padding is `--space-4`; padding is compact (`--space-3`) or default (`--space-4`).
|
|
252
252
|
- **States.** None: a panel is static. Controls inside it keep their own states.
|
|
@@ -258,7 +258,7 @@ Layer: Core. ui: `UiSurface`, `UiCard`.
|
|
|
258
258
|
|
|
259
259
|
## Figure
|
|
260
260
|
|
|
261
|
-
Layer: Core.
|
|
261
|
+
Layer: Core.
|
|
262
262
|
|
|
263
263
|
- **Anatomy.** A well (`--color-surface`, 1px `--color-border-subtle`, `--radius-panel`, `--space-5` padding, or `--space-4` on phones) with a caption below it in `--text-sm` muted text. Wide content scrolls inside the well. A figure number is `--color-text` in medium weight.
|
|
264
264
|
- **States.** None: a figure is static.
|
|
@@ -271,7 +271,7 @@ Layer: Core. ui: `UiFigure`.
|
|
|
271
271
|
|
|
272
272
|
## Dialog
|
|
273
273
|
|
|
274
|
-
Layer: Core.
|
|
274
|
+
Layer: Core.
|
|
275
275
|
|
|
276
276
|
- **Anatomy.** A floating layer centred on an `--color-overlay` backdrop, at most 512px wide and 672px tall. It has a header (title in 18px semibold with an optional muted description, and a 44px close button), a body that scrolls, and an optional footer on `--color-surface` with its actions at the end. Rules between the parts are `--color-border-subtle`. On phones it becomes a bottom sheet with rounded top corners.
|
|
277
277
|
- **Tokens.** `--color-surface-raised`, a transparent 1px border, `--radius-panel`, `--shadow-dialog`. The close button is a [quiet action](#quiet-action).
|
|
@@ -285,7 +285,7 @@ Layer: Core. ui: `UiDialog`.
|
|
|
285
285
|
|
|
286
286
|
## Drawer
|
|
287
287
|
|
|
288
|
-
Layer: Core.
|
|
288
|
+
Layer: Core.
|
|
289
289
|
|
|
290
290
|
- **Anatomy.** A dialog fixed to the edge its trigger sits on, full height, `min(--sidebar + 48px, 100vw - 48px)` wide, with a header (title and close button) and a body that scrolls on its own. It is a floating layer with square corners: `--color-surface-raised`, a transparent 1px border, and `--shadow-dialog`. The close button is a [quiet action](#quiet-action). The family's navigation triggers sit at the start, so navigation drawers open from the left.
|
|
291
291
|
- **Navigation drawer.** A drawer that holds navigation opens on the current row, scrolled to the centre of the body. A keyboard open moves focus to that row; a tap moves focus to the body, so no ring shows and no on-screen keyboard opens. An open with the `/` shortcut moves focus to the [find field](#find-field), which stays pinned at the top of the body while the list scrolls under it.
|
|
@@ -300,7 +300,7 @@ Layer: Core. ui: `UiDrawer`.
|
|
|
300
300
|
|
|
301
301
|
## Navigation list
|
|
302
302
|
|
|
303
|
-
Layer: Core. The mono font on rail rows is identity.
|
|
303
|
+
Layer: Core. The mono font on rail rows is identity.
|
|
304
304
|
|
|
305
305
|
- **Anatomy.** A `<nav>` with a name, holding links in rows: at least `--row` tall (`--control-lg` at tablet width), `0 --space-3` padding, `--radius-inline` corners (`calc(var(--radius-panel) - var(--space-1))`, 12px, inside a floating menu such as the project menu, so they are concentric with it), `--text-sm`, and `--color-muted`. A row may hold a leading 16px icon and a trailing muted count. A text-only row centres its label on the cap height: where `text-box` is supported, it is a block with `align-content: center`, `--space-2` block padding, and `text-box: trim-both cap alphabetic`, and the location pip centres itself. The padding keeps a wrapped label's first and last lines clear of the fill's edges and the focus ring. Rows with an icon or a count, and browsers without `text-box`, centre the line box, which leaves a label without descenders about 1px above centre. Groups have a `--text-xs` semibold muted label and 2px gaps between rows.
|
|
306
306
|
- **Groups.** Name groups by purpose, with 2 to 8 rows each. Collapse groups only in a list of more than about 40 rows. A collapsible group's label is a `<button aria-expanded>` in the label type, with `--radius-inline` corners and a chevron that turns −90° when the group is closed. Never collapse the group that holds the current row.
|
|
@@ -316,7 +316,7 @@ Layer: Core. The mono font on rail rows is identity. ui: the rows in `UiSiteNav`
|
|
|
316
316
|
|
|
317
317
|
## Section rail
|
|
318
318
|
|
|
319
|
-
Layer: Core.
|
|
319
|
+
Layer: Core.
|
|
320
320
|
|
|
321
321
|
- **Anatomy.** A named `<aside>`, so the find field and the footer sit in a landmark, with `position: sticky; top: 0`, `height: 100dvh`, and a column flex layout with `--space-3` gaps. An optional [find field](#find-field) sits at the top. Below it, a named `<nav>` holds grouped [navigation list](#navigation-list) rows and scrolls on its own (`overflow-y: auto`, `overscroll-behavior: contain`). An optional footer for rail settings, such as the single-key shortcut switch, sits last, above a `--color-border-subtle` rule. The element that draws a divider never scrolls. The rail's rows follow the page order.
|
|
322
322
|
- **States.** Rows take the navigation list states. The current section keeps `aria-current="location"` but takes the current-page look: `--color-nav-current` fill, `--shadow-nav-current`, and `--color-nav-current-text` in medium weight, with no pip. When the location changes, the rail scrolls its own list, never the page, to centre the current row if it is out of view. It leaves the list alone while the pointer is over the rail or focus is inside it.
|
|
@@ -329,7 +329,7 @@ Layer: Core. ui: `UiSiteNav`.
|
|
|
329
329
|
|
|
330
330
|
## Find field
|
|
331
331
|
|
|
332
|
-
Layer: Core.
|
|
332
|
+
Layer: Core.
|
|
333
333
|
|
|
334
334
|
- **Anatomy.** An `<input type="search">` in the [field](#text-input-and-textarea) recipe, with a leading 16px search icon in `--color-muted` (32px start padding) and a trailing [keyboard key](#keyboard-key) hint showing `/` (36px end padding). A visually hidden `role="status"` element, named in the field's `aria-describedby`, holds the match count.
|
|
335
335
|
- **States.** Rest, focus-visible (field focus), and a query. The key hint hides while the field has focus or a value, when shortcuts are off, and under `(hover: none)`. With no matches, the list shows "No component matches <q>…</q>." in `--text-sm` `--color-muted`, and a text-button Clear.
|
|
@@ -343,7 +343,7 @@ Layer: Core. ui: none yet.
|
|
|
343
343
|
|
|
344
344
|
## Breadcrumbs
|
|
345
345
|
|
|
346
|
-
Layer: Core.
|
|
346
|
+
Layer: Core.
|
|
347
347
|
|
|
348
348
|
- **Anatomy.** `<nav aria-label="Breadcrumb">` holding an `<ol>` in `--text-sm`, right above the page's h1. Separators are `--color-muted` chevrons, a 6px box (`0.375rem`) with 1.5px top and right borders turned 45°, so they hold no text to read. The labels centre on the cap height like navigation rows, and the chevrons centre on the row. Ancestors are `--color-muted` links with no underline, at least `--control-sm` tall (`--control-lg` at tablet width), with `--radius-inline` corners. The current page is plain text with `aria-current="page"`, in `--color-text` and medium weight. On folio sites the trail is mono (identity).
|
|
349
349
|
- **States.** Hover: `--color-text` and an underline. Focus-visible: the focus ring.
|
|
@@ -357,7 +357,7 @@ Layer: Core. ui: none yet.
|
|
|
357
357
|
|
|
358
358
|
## Pager
|
|
359
359
|
|
|
360
|
-
Layer: Core.
|
|
360
|
+
Layer: Core.
|
|
361
361
|
|
|
362
362
|
- **Anatomy.** `<nav aria-label="…">` at the end of `main`, with two equal columns and a `--space-4` gap, below a `--color-border-subtle` rule with `--space-6` padding. Each link is a block row with `--space-3` `--space-4` padding, `--radius-field` corners, and a transparent 1px border: a `--text-xs` `--color-muted` direction with an arrow ("Previous", "Next"), then a medium `--color-text` title. Links take `rel="prev"` and `rel="next"`. Next sits in the end column, end-aligned, even when it is alone.
|
|
363
363
|
- **States.** Hover: `--color-row-hover` fill. Focus-visible: the focus ring. There is no current state.
|
|
@@ -370,7 +370,7 @@ Layer: Core. ui: none yet.
|
|
|
370
370
|
|
|
371
371
|
## Tabs
|
|
372
372
|
|
|
373
|
-
Layer: Core.
|
|
373
|
+
Layer: Core.
|
|
374
374
|
|
|
375
375
|
- **Anatomy.** A `role="tablist"` with no rule below it and a 12px gap below it. It scrolls sideways when needed, and a 24px mask fades each clipped edge. Scrolling clips on every side, so the list has 4px (`--space-1`) padding all round: it keeps the selected tab's shadow whole and its fill off the frame edge. Each tab is a borderless button at least `--control-md` tall (`--control-lg` on phones), with `--space-2` `--space-3` padding, `--radius-inline` corners, medium weight, and `--color-muted`. The selected tab's fill is a `::before` layer behind the label, inset 0, with the tab's corners; the list sets `isolation: isolate`, so the layer stays inside it.
|
|
376
376
|
- **States.** Hover fills `--color-row-hover` and turns the text `--color-text`. The selected tab takes the [navigation row](#navigation-list)'s current-page recipe: `--color-nav-current` fill and `--shadow-nav-current`, with no underline. Its text is `--color-nav-current-text`: the first of `--color-accent`, `--color-text`, black, and white that reaches 4.5:1 over the tinted fill, both on the page and on a surface (composite a translucent fill over each first). Focus-visible is the focus ring, inset because the list scrolls.
|
|
@@ -382,7 +382,7 @@ Layer: Core. ui: `UiTabs`.
|
|
|
382
382
|
|
|
383
383
|
## Skip link
|
|
384
384
|
|
|
385
|
-
Layer: Core.
|
|
385
|
+
Layer: Core.
|
|
386
386
|
|
|
387
387
|
- **Anatomy.** The first focusable element on the page, linking to `main` (`id="main"`) and named "Skip to content". It sits above the page until it takes focus, then shows at the top left as a floating layer: `--color-surface-raised`, a transparent 1px border, `--radius-field`, `--shadow-dialog`, `--space-2` `--space-3` padding, and the focus ring. It takes the field corner, not the 16px corner of other floating layers, because it is a one-line control that is not an action.
|
|
388
388
|
- **States.** Hidden above the page at rest, and shown at the top left while it has focus.
|
|
@@ -395,7 +395,7 @@ Layer: Core. ui: the `fg-site-skip` class.
|
|
|
395
395
|
|
|
396
396
|
## Keyboard key
|
|
397
397
|
|
|
398
|
-
Layer: Core.
|
|
398
|
+
Layer: Core.
|
|
399
399
|
|
|
400
400
|
- **Anatomy.** A `<kbd>`: `--font-mono` `--text-xs` medium in `--color-muted`, on a `--color-surface` fill with a 1px `--color-border` edge and `--radius-inline` corners, 20px tall, at least 20px wide, with 5px inline padding and no shadow.
|
|
401
401
|
- **States.** None: a key is static text.
|
|
@@ -407,7 +407,7 @@ Layer: Core. ui: none yet.
|
|
|
407
407
|
|
|
408
408
|
## Code block
|
|
409
409
|
|
|
410
|
-
Layer: Core.
|
|
410
|
+
Layer: Core.
|
|
411
411
|
|
|
412
412
|
- **Anatomy.** A frame that holds an optional header and the source panel.
|
|
413
413
|
- **Frame.** `--color-surface-raised`, a 1px `--color-border-subtle` border, `--radius-panel`, and `--shadow-surface`. Its padding is `0 var(--space-1) var(--space-1)` under a header, and `var(--space-1)` on every side without one.
|
|
@@ -426,8 +426,6 @@ Layer: Core. ui: `UiCodeBlock`.
|
|
|
426
426
|
|
|
427
427
|
### With a live example
|
|
428
428
|
|
|
429
|
-
ui: `UiExample`.
|
|
430
|
-
|
|
431
429
|
- **Anatomy.** One frame: a `<figure>` with a 1px `--color-border-subtle` edge, `--radius-panel`, no shadow, and its content clipped to the corners. The stage comes first and holds the live preview, centred, at least 8rem tall, with `--space-8` padding. The code block follows directly below the stage, after one `--color-border-subtle` hairline. There is no header row and no language label. An optional caption follows the frame, as a [figure](#figure) caption does.
|
|
432
430
|
- **Tokens.** Frame edge `--color-border-subtle` and corners `--radius-panel`. Stage `--color-bg`. Hairline `--color-border-subtle`.
|
|
433
431
|
- **Stage.** The stage sits on the page background, not in a well or a panel. This is a named exception to the container [depth](DESIGN.md#depth) tier: a preview shows each component on the surface it sits on in a page; see [decisions](decisions.md).
|
|
@@ -441,7 +439,7 @@ ui: `UiExample`.
|
|
|
441
439
|
|
|
442
440
|
## Command plate
|
|
443
441
|
|
|
444
|
-
Layer: Identity.
|
|
442
|
+
Layer: Identity.
|
|
445
443
|
|
|
446
444
|
- **Anatomy.** A code block for a shell command, drawn as a dark plate in both themes: the frame is `--color-command-bg` with a `--color-command-border` edge (transparent in light). The source panel is the plate darkened, `color-mix(in srgb, var(--color-command-bg) 55%, var(--color-terminal))`, set as the plate's `--color-code`, so it reads as a panel on the plate. Text, syntax, and the caption all use `--color-terminal-text` or `--color-terminal-caption-text`. Each line starts with a `$ ` prompt in `--color-project-dark`, drawn with `content: "$ " / ""` and `user-select: none`, so copied and spoken text omit it. The plate sets `--color-muted: var(--color-terminal-caption-text)`, so Copy at rest takes the caption colour, and `--color-focus: var(--color-project-dark)`, the dark-theme accent, so every ring on it, Copy's included, reads at 3:1 or more on the dark plate in both page themes.
|
|
447
445
|
- **States.** As for the code block.
|
|
@@ -454,7 +452,7 @@ Layer: Identity. ui: `UiCodeBlock` with a shell language or the compact variant.
|
|
|
454
452
|
|
|
455
453
|
## Terminal capture
|
|
456
454
|
|
|
457
|
-
Layer: Identity.
|
|
455
|
+
Layer: Identity.
|
|
458
456
|
|
|
459
457
|
- **Anatomy.** A panel whose header holds mono tabs (one for each capture) and a Full size [quiet action](#quiet-action) at the end. The screen is the neutral `--color-terminal` plate, and a mono status-line caption sits below it on `--color-terminal-caption` with `--color-terminal-caption-text`. Full size opens the capture in a dialog.
|
|
460
458
|
- **States.** Tabs take the tab states in the capture's palette, and Full size takes the quiet action states.
|
|
@@ -467,21 +465,21 @@ Layer: Identity. ui: `UiCapture`.
|
|
|
467
465
|
|
|
468
466
|
## Site header
|
|
469
467
|
|
|
470
|
-
Layer: Identity.
|
|
468
|
+
Layer: Identity.
|
|
471
469
|
|
|
472
470
|
- **Anatomy.** A static header at least 64px tall on `--color-bg` with a solid 1px `--color-text` rule below it. At the start is the project switcher: a `<details>` whose summary, a [quiet action](#quiet-action), shows the mono, semibold project name after a `~/` mark in `--color-project` (drawn by CSS, so it is not read), then a chevron. It keeps the quiet-action tint, but it opens a menu and does not act, so it takes the 10px field corner (`--radius-field`), as a select does. Its menu is a floating layer, with the dialog's tokens, listing the shared project registry in the order it defines, as navigation rows with concentric 12px corners (`calc(var(--radius-panel) - var(--space-1))`), with the current project marked `aria-current="page"`. At the end are the site links and the appearance picker: an icon-only segmented control at `lg`. The site links are a [navigation strip](#navigation-list) of rows 44px tall (`--control-lg`). A link to a page inside the site takes `aria-current="page"` on that page, with the current-page recipe.
|
|
473
471
|
- **Position.** Every family site, this design system's site included, starts its header with the project switcher. It is the same on every page: never a breadcrumb or a page title, which go above the page's h1 as [breadcrumbs](#breadcrumbs), and the first breadcrumb is the way back to the site's home page. The links sit at the same x on every page, and the current link is as wide as it is on other pages (see the [horizontal strip](#navigation-list)). A header that puts its links right after the switcher, as this design system's site does, is a grid at `min-width: 801px` (`auto minmax(0, 1fr) auto`), so where the links start never depends on the page.
|
|
474
472
|
- **States.** The project menu is closed or open; while open, its summary keeps the quiet action's hover tint. Site links take the navigation row states.
|
|
475
473
|
- **Do.** Keep the same header and site links, six at most and in one order, on every page of a personal product site.
|
|
476
474
|
- **Don't.** The site header on an application screen. An application keeps its own navigation.
|
|
477
|
-
- **Phone.** At `max-width: 800px` the header is static, with `--space-2` above, below, and between its rows. The first row holds the switcher at the start and the picker at the end. Where both do not fit, as at 320px, the picker wraps to its own row at the start; the project name never truncates. With three or more links, the links take the next row, as a strip that scrolls with its fades. Where the strip clips a link, at least 16px of that link stays in view under the fade: on the narrowest phones (a strip 340px wide or less, by container query) the strip's rows take 6px (`0.375rem`) side padding. A page with a [section rail](#section-rail) puts the rail's labelled trigger `--space-2` below the header.
|
|
475
|
+
- **Phone.** At `max-width: 800px` the header is static, with `--space-2` above, below, and between its rows. The first row holds the switcher at the start and the picker at the end. Where both do not fit, as at 320px, the picker wraps to its own row at the start; the project name never truncates. With three or more links, the links take the next row, as a strip that scrolls with its fades. Where the strip clips a link, at least 16px of that link stays in view under the fade: on the narrowest phones (a strip 340px wide or less, by container query) the strip's rows take 6px (`0.375rem`) side padding. One or two links stay on the first row, beside the picker; at `max-width: 640px` they become plain text links after the switcher, 12px (`--space-3`) apart, and the current link takes `--color-accent` text in medium weight, with no fill. A documentation page hides them at that width, because its [footer](#page-type-and-helpers) carries them. A page with a [section rail](#section-rail) puts the rail's labelled trigger `--space-2` below the header.
|
|
478
476
|
- **Keyboard and screen reader.** The summary is named "Project: <name>". Escape closes the menu and returns focus to the summary; moving focus out of it closes it.
|
|
479
477
|
- **Motion.** The chevron turns 180° while the menu is open, over `--duration-fast` with `--ease-out`. The menu itself opens at once.
|
|
480
|
-
- **Forced colors.** The rule below the header takes the system text colour, and the menu and the site links follow the navigation list rules.
|
|
478
|
+
- **Forced colors.** The rule below the header takes the system text colour, and the menu and the site links follow the navigation list rules. A current text link on a phone takes an underline instead of the system border.
|
|
481
479
|
|
|
482
480
|
## Page type and helpers
|
|
483
481
|
|
|
484
|
-
Layer: Identity.
|
|
482
|
+
Layer: Identity.
|
|
485
483
|
|
|
486
484
|
- **Anatomy.** Type and layout helpers for identity pages: headings, steps, definitions, facts, a command list, and the footer, each below.
|
|
487
485
|
- **Headings.** Documentation, CLI tool, article, and product page titles (`--text-3xl`) use `--font-mono`; application titles use `--font-ui` at `--text-2xl` or smaller. On documentation, CLI tool, article, and product pages, a page-level section heading (h2) uses `--font-mono` at `--text-xl` (a product page may set it larger, up to `--text-3xl`), starts with a `## ` mark in `--color-accent`, drawn with `content: "## " / ""`, and has a `--color-border-subtle` rule above the section. Application and inline-visualization section headings use `--font-ui`, semibold, at `--text-xl` or smaller, with no mark and no rule; h3 and lower never take the mark. A product page or tool home may use a mono `--text-display` title (`--text-display-sm` on phones).
|
package/language/docs.html
CHANGED
|
@@ -34,7 +34,7 @@ h1 { font-size: var(--text-3xl); max-width: 24ch; }
|
|
|
34
34
|
h2 { font-size: var(--text-xl); }
|
|
35
35
|
/* The ## mark goes on page-level section headings only. It is decorative; the empty alternative text keeps it out of the accessible name. */
|
|
36
36
|
main > section > h2::before { content: "## " / ""; color: var(--color-accent); }
|
|
37
|
-
/* The main gap alone separates sections. The rule above each heading belongs to the heading
|
|
37
|
+
/* The main gap alone separates sections. The rule above each heading belongs to the heading. */
|
|
38
38
|
main > section > h2 { padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
|
|
39
39
|
p { max-width: var(--measure); color: var(--color-muted); font-size: var(--text-reading); }
|
|
40
40
|
/* Command plate: dark in both themes and tinted with the hue. Text takes the terminal colour and the focus ring the dark-theme accent, so both read on the dark plate. */
|
package/language/reference.html
CHANGED
|
@@ -531,7 +531,7 @@
|
|
|
531
531
|
|
|
532
532
|
<section class="foundation" id="typography" aria-labelledby="typography-title">
|
|
533
533
|
<h3 id="typography-title">Typography</h3>
|
|
534
|
-
<p class="note">Mono carries identity and structure; sans carries prose and controls. <code
|
|
534
|
+
<p class="note">Mono carries identity and structure; sans carries prose and controls. <code>fonts.css</code> self-hosts IBM Plex. A standalone page without the font installed, such as this one, shows the system fallback.</p>
|
|
535
535
|
|
|
536
536
|
<h4>Families</h4>
|
|
537
537
|
<ul class="specs">
|
|
@@ -8,7 +8,7 @@ The renderer's `--mode inline` output has a transparent outer surface and host t
|
|
|
8
8
|
|
|
9
9
|
## Standalone / Claude attachment
|
|
10
10
|
|
|
11
|
-
Use `--mode standalone --tokens ~/design-language/tokens.css` to inline the installed design-language tokens
|
|
11
|
+
Use `--mode standalone --tokens ~/design-language/tokens.css` to inline the installed design-language tokens. This keeps the export readable without host CSS, a Vue runtime, an npm install, or network access. The same normalized snapshot and view function drive both modes.
|
|
12
12
|
|
|
13
13
|
The HTML file is an uploadable, self-contained snapshot: embed its dataset, styles and JavaScript; keep filters local. It must work without `window.openai`, a connector, a server or a fetch request. Open the actual standalone file without host-provided styles before calling it portable. Describe it as ready to attach to Claude, not as uploaded or proven compatible with a particular Claude deployment unless that was verified.
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"vue": {
|
|
3
|
-
"button": {
|
|
4
|
-
"component": "UiButton",
|
|
5
|
-
"url": "https://filipgutica.github.io/ui/#/components/button"
|
|
6
|
-
},
|
|
7
|
-
"checkbox-and-radio": {
|
|
8
|
-
"component": "UiCheckbox",
|
|
9
|
-
"url": "https://filipgutica.github.io/ui/#/components/checkbox"
|
|
10
|
-
},
|
|
11
|
-
"radio-card-group": {
|
|
12
|
-
"component": "UiRadioCardGroup",
|
|
13
|
-
"url": "https://filipgutica.github.io/ui/#/components/radio-card-group"
|
|
14
|
-
},
|
|
15
|
-
"switch": {
|
|
16
|
-
"component": "UiSwitch",
|
|
17
|
-
"url": "https://filipgutica.github.io/ui/#/components/switch"
|
|
18
|
-
},
|
|
19
|
-
"toggle-button": {
|
|
20
|
-
"component": "UiToggleButton",
|
|
21
|
-
"url": "https://filipgutica.github.io/ui/#/components/toggle-button"
|
|
22
|
-
},
|
|
23
|
-
"segmented-control": {
|
|
24
|
-
"component": "UiSegmentedControl",
|
|
25
|
-
"url": "https://filipgutica.github.io/ui/#/components/segmented-control"
|
|
26
|
-
},
|
|
27
|
-
"text-input-and-textarea": {
|
|
28
|
-
"component": "UiInput",
|
|
29
|
-
"url": "https://filipgutica.github.io/ui/#/components/input"
|
|
30
|
-
},
|
|
31
|
-
"select": {
|
|
32
|
-
"component": "UiSelect",
|
|
33
|
-
"url": "https://filipgutica.github.io/ui/#/components/select"
|
|
34
|
-
},
|
|
35
|
-
"field-wrapper": {
|
|
36
|
-
"component": "UiField",
|
|
37
|
-
"url": "https://filipgutica.github.io/ui/#/components/field"
|
|
38
|
-
},
|
|
39
|
-
"slider": {
|
|
40
|
-
"component": "UiSlider",
|
|
41
|
-
"url": "https://filipgutica.github.io/ui/#/components/slider"
|
|
42
|
-
},
|
|
43
|
-
"progress": {
|
|
44
|
-
"component": "UiProgress",
|
|
45
|
-
"url": "https://filipgutica.github.io/ui/#/components/progress"
|
|
46
|
-
},
|
|
47
|
-
"score": {
|
|
48
|
-
"component": "UiScore",
|
|
49
|
-
"url": "https://filipgutica.github.io/ui/#/components/score"
|
|
50
|
-
},
|
|
51
|
-
"tabs": {
|
|
52
|
-
"component": "UiTabs",
|
|
53
|
-
"url": "https://filipgutica.github.io/ui/#/components/tabs"
|
|
54
|
-
},
|
|
55
|
-
"badge": {
|
|
56
|
-
"component": "UiBadge",
|
|
57
|
-
"url": "https://filipgutica.github.io/ui/#/components/badge"
|
|
58
|
-
},
|
|
59
|
-
"alert": {
|
|
60
|
-
"component": "UiAlert",
|
|
61
|
-
"url": "https://filipgutica.github.io/ui/#/components/alert"
|
|
62
|
-
},
|
|
63
|
-
"surface-and-card": {
|
|
64
|
-
"component": "UiCard",
|
|
65
|
-
"url": "https://filipgutica.github.io/ui/#/components/card"
|
|
66
|
-
},
|
|
67
|
-
"figure": {
|
|
68
|
-
"component": "UiFigure",
|
|
69
|
-
"url": "https://filipgutica.github.io/ui/#/components/figure"
|
|
70
|
-
},
|
|
71
|
-
"dialog": {
|
|
72
|
-
"component": "UiDialog",
|
|
73
|
-
"url": "https://filipgutica.github.io/ui/#/components/dialog"
|
|
74
|
-
},
|
|
75
|
-
"drawer": {
|
|
76
|
-
"component": "UiDrawer",
|
|
77
|
-
"url": "https://filipgutica.github.io/ui/#/components/drawer"
|
|
78
|
-
},
|
|
79
|
-
"code-block": {
|
|
80
|
-
"component": "UiCodeBlock",
|
|
81
|
-
"url": "https://filipgutica.github.io/ui/#/components/code-block"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"react": {}
|
|
85
|
-
}
|