@filipgutica/design-system 1.0.45 → 1.0.47

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
@@ -10,7 +10,7 @@ Filip's design language for any framework: the spec, the tokens, the component c
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 experimental `ui-sdk.css` component styles for ui-sdk, the catalogue (`components.html`), example pages, visualization helpers, and the Graphite Indigo editor theme |
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 badge's and alert's styles (`feedback.css`), the conversation components' styles (`conversation.css`), 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
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/` |
@@ -35,6 +35,8 @@ npm install @filipgutica/design-system
35
35
  | --- | --- |
36
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/language/conversation.css` | The conversation components (message row and group, message body, answer actions, hover toolbar, thread panel, composer, tool-call disclosure, and mention), the list row and app bar around them, and the quiet action as [components.md](language/components.md#message-row) specifies them, for any framework; the catalogue links the same file. Load it after `tokens.css`. Its rules are unlayered, as the catalogue's are; the badge and alert they hold come from `feedback.css`, and the button, quiet action, overflow menu, and field error from their own components. |
39
+ | `@filipgutica/design-system/language/feedback.css` | The [badge](language/components.md#badge) (neutral and the success, warning, danger, and info tones) and the [alert](language/components.md#alert), for any framework; ui-sdk has no badge or alert part, and the catalogue links the same file. Load it after `tokens.css`. Its rules are unlayered, as the catalogue's are. |
38
40
  | `@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
41
  | `@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
42
  | `@filipgutica/design-system/fonts.css` | Inter and JetBrains Mono, the default theme's fonts. |
@@ -45,6 +45,8 @@ Center the **container**, not every sentence. Align header, content, images, and
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.
48
+ - `conversation.css`: the conversation components' styles (message row and group, message body, answer actions, hover toolbar, thread panel, composer, tool-call disclosure, and mention), the list row and app bar of the application screen around them, and the quiet action's shared recipe. `components.html` links it, so it is their one source. Load it after `tokens.css`, unlayered, as the catalogue does; the parts these components hold, such as the badge and the button, come from their own components.
49
+ - `feedback.css`: the badge's and the alert's styles, with their status tones. It and `conversation.css` size and stroke the icons they hold (the alert's icon, the resolution note's check, and the app bar's icons), so a page supplies only the SVG sprite, not an icon class. `components.html` links it, so it is their one source; ui-sdk has no badge or alert part. Load it after `tokens.css`, unlayered.
48
50
  - `decisions.md`: the choices behind the components, and the options they replaced.
49
51
  - `reference.html`: an application example, and a Foundations catalogue (`#foundations`) of every token: type, color with contrast, spacing, shape, borders, elevation, focus, and motion.
50
52
  - `docs.html`: a balanced documentation shell and compact setup command, with a one-page site's "On this page" rail.
@@ -56,7 +58,7 @@ Token names depend on where the page runs. This file uses the `tokens.css` names
56
58
 
57
59
  | Context | Variable names to write |
58
60
  | --- | --- |
59
- | Standalone HTML | The `tokens.css` names. Import or inline `tokens.css`, and copy component styles from `components.html`. |
61
+ | Standalone HTML | The `tokens.css` names. Import or inline `tokens.css`, and copy component styles from `components.html`; link `feedback.css` for the badge and alert and `conversation.css` for the conversation components. |
60
62
  | 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. |
61
63
  | Other repository | That repository's own tokens and components, matched to these roles by meaning. |
62
64
  | Inline visual | The host's supplied CSS variables and font, with no separate page shell. |
@@ -138,8 +140,8 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
138
140
  | Small state mark | Pill | `--radius-pill` | Status badges, switch tracks and knobs, slider and progress tracks, score pips, the in-page location pip, and the icon-only segmented track |
139
141
  | A place, or a row you pick | 8px | `--radius-inline` | Navigation rows, group labels, breadcrumb links, the package catalogue's site name, tabs, list rows, menu rows, and message rows |
140
142
  | Something you type in, a control whose label wraps, or a one-line control that is not an action | 8px | `--radius-field` | Inputs, textareas, search fields, toggle cards, pager links, and one-line controls that are not actions: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary, and the skip link |
141
- | Holds other things | 12px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, example frames, tool-call details, composers, hover toolbars, and floating layers |
142
- | A small mark inside text or a row | 4px | `--radius-mark` | Checkboxes, keyboard keys, and mentions |
143
+ | Holds other things | 12px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, a message's code blocks, example frames, tool-call details, composers, hover toolbars, and floating layers |
144
+ | A small mark inside text or a row | 4px | `--radius-mark` | Checkboxes, a task list's box, an open todo's mark, keyboard keys, mentions, and a message's inline code |
143
145
 
144
146
  - A circle holds one icon and no text. An icon-only button is a box of equal width and height at every size, with `--radius-circle`. `--radius-circle` has the pill's value, 999px, and its own role: no button takes `--radius-pill`, and no action takes `50%`. An icon with no fill at rest is a [quiet action](components.md#quiet-action), an 8px tile.
145
147
  - A pill never holds text that can wrap: a status badge is the only pill with text, and it stays on one line. A control whose label can wrap, such as a toggle card or a radio card, is a rectangle.