@filipgutica/design-system 1.0.20 → 1.0.21

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
@@ -2,7 +2,7 @@
2
2
 
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
- - **Agents** get `language/` at `~/design-system` 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.
5
+ - **Agents** get the `design-system` plugin for Claude and Codex. Its skill reads `language/`; see [Install for agents](#install-for-agents).
6
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
 
@@ -11,6 +11,7 @@ Filip's design language for any framework: the spec, the tokens, the component c
11
11
  | Path | What it holds |
12
12
  | --- | --- |
13
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
+ | `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 |
14
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 and neutrals |
15
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/` |
16
17
  | `open-vsx/` | Experimental JSONC theme-file parser and Open VSX client, with resolved includes and unaltered colours and syntax rules |
@@ -44,6 +45,22 @@ npm install @filipgutica/design-system
44
45
 
45
46
  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.
46
47
 
48
+ ## Install for agents
49
+
50
+ 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.
51
+
52
+ ```sh
53
+ claude plugin marketplace add filipgutica/design-system
54
+ claude plugin install design-system@design-system
55
+ ```
56
+
57
+ ```sh
58
+ codex plugin marketplace add filipgutica/design-system
59
+ codex plugin add design-system@design-system
60
+ ```
61
+
62
+ Update with `claude plugin update design-system@design-system` or `codex plugin marketplace upgrade design-system`. Each release stamps its version into the plugin manifests, so an update fetches the new files.
63
+
47
64
  ## Develop
48
65
 
49
66
  ```sh
@@ -58,12 +75,13 @@ pnpm verify
58
75
 
59
76
  semantic-release publishes from `main` with npm provenance. Releases stay 1.0.x while the design system has no outside users ([decisions.md](language/decisions.md), Versioning):
60
77
 
61
- - Any commit that releases, such as `fix`, `feat`, or a breaking change, releases a patch.
78
+ - Any commit that releases, such as `fix`, `feat`, `docs`, or a breaking change, releases a patch. `docs` releases because agents read `language/` through the plugin.
62
79
  - The release notes name a breaking change only when its commit message has `!` after the type or a `BREAKING CHANGE:` or `BREAKING-CHANGE:` footer. Put it there; a marker only in the PR body releases a patch but does not reach the notes.
63
- - `build`, `chore`, `docs`, `test`, and similar types release nothing, unless the commit or its PR marks a breaking change.
80
+ - `build`, `chore`, `test`, and similar types release nothing, unless the commit or its PR marks a breaking change.
81
+ - Each release stamps its version into the four plugin manifests and commits them to `main` as `chore(release): <version> [skip ci]`. `package.json` keeps `0.0.0-development`.
64
82
  - Release tags are `ds-v*`. The `v1.0.0`–`v2.4.0` tags and npm versions are the earlier series.
65
83
 
66
- Commits follow Conventional Commits, and CI checks them with commitlint. Do not edit the version by hand.
84
+ Commits follow Conventional Commits, and CI checks them with commitlint. Do not edit a version by hand.
67
85
 
68
86
  ## History
69
87
 
@@ -8,7 +8,7 @@ A shared visual language for personal products, documentation, tools, mockups, a
8
8
  2. A repository's own design system owns its tokens and components.
9
9
  3. Other personal work follows this language. Use a consistent palette, type family, and component vocabulary across projects.
10
10
 
11
- Interaction, flows, states, interface copy, and accessibility checks follow the `interface-design` skill (`~/.agents/skills/interface-design`). This file owns visual hierarchy and composition.
11
+ Interaction, flows, states, interface copy, and accessibility checks follow the `interface-design` skill. This file owns visual hierarchy and composition.
12
12
 
13
13
  ## Two layers
14
14
 
@@ -58,6 +58,8 @@ Each entry records a choice this language made, the options it rejected, and why
58
58
  | Live example source | Core | Inside the frame, the code block drops its own radius, border, and shadow, and spans the frame's width. The frame draws the one edge. | A rounded well with its own edge and shadow inside the frame is a frame inside a frame. | No test yet |
59
59
  | Token names | Core | One set of names, the design system's own: `--color-*` for colours, `--shadow-*` for shadows, and `--text-*`, `--radius-*`, and `--font-*` for type sizes, radii, and fonts. See [Token names](#token-names). | Two sets, the [1.x short names](#token-names) here and `--color-*` names in ui: every site and agent translated between them through `ui:` comments, and the 1.x control radius used Tailwind's `-md` name for a 999px pill where Tailwind's is 0.375rem. Short names everywhere: about 920 references in 27 files across six repositories, a ui major release, and 18 new names. | no 1.x names: `tests/token-names.test.mjs` "no payload file uses a 1.x token name" |
60
60
  | Versioning | Core | Releases are 1.0.x patches while the system has no outside users, tagged `ds-v*` from the `ds-v1.0.0` seed. Every release, a breaking one included, is a patch; the release notes name a breaking change written as `!` or a `BREAKING CHANGE:` footer in the commit message. npm already holds 1.1.0 through 2.4.0 from the earlier `v*` series, so leaving 1.0.x means 2.5.0 or 3.0.0. | Semver majors and minors (2.x): the numbers signalled a maturity the system does not have yet. 0.0.x: npm already holds 1.0.0, and a `^0.0.1` range matches only 0.0.1. | patch cap: `tests/release.test.mjs` "the release analyzer caps feat, fix, and breaking changes, from a commit or a PR body, at a patch", "the release analyzer releases nothing for chore-only commits"; tag series: `tests/release.test.mjs` "the site version comes from the latest ds-v tag and ignores the earlier v tags" |
61
+ | Agent delivery | Core | A Claude and Codex plugin whose root is this repository. Its `design-system` skill reads `language/` in place, and each release stamps its version into the plugin manifests and commits them back, since both hosts cache a plugin by version. A `docs` commit releases a patch, because agents read `language/` as instructions. | filip-stack host config copying the pinned package to `~/design-system`: it tied the design system to filip-stack and needed its own installer. A plugin folder holding a copy of `language/`: plugin caches cannot reach outside the plugin folder, so the copy would need a build step and a staleness check. | skill path: `tests/plugin.test.mjs` "the design-system skill names a DESIGN.md that exists in the plugin"; version stamp: `tests/plugin.test.mjs` "a release stamps its version into every plugin manifest and keeps the other fields"; docs release: `tests/release.test.mjs` "the release analyzer releases a patch for a docs commit, since agents read language/ through the plugin" |
62
+ | Command-line tool | Core | None yet. A VS Code theme import built on `open-vsx` and `theme-mapper` is the one job no other tool covers; it waits until `@filipgutica/ui` uses the theme mapper, since both APIs are experimental. It would ship as a `bin` in this package, run with `npx`. | A `check` command for off-token values: the `interface-design` skill's `ui-check --tokens` and fallow already find them. A separate Homebrew tool: more release setup than one command needs. | No test yet |
61
63
 
62
64
  ## Token names
63
65
 
@@ -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-system/tokens.css` to inline the installed design system 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.
11
+ Use `--mode standalone --tokens <language>/tokens.css`, where `<language>` is the design system's `language/` folder, to inline its 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
 
@@ -12,16 +12,16 @@ Proceed when the source and scope are explicit and the retrieved coverage suppor
12
12
 
13
13
  ## Build the view
14
14
 
15
- Follow the repository's design system, or `~/design-system/DESIGN.md` when present. Inline views inherit host fonts and theme; standalone exports use the same design system's tokens. Use semantic success/warning/error colors with text labels. Preserve readability when fitting overview and detail together; relax height before shrinking table text below 12px or hiding requested rows.
15
+ Follow the repository's design system, or this design system's `DESIGN.md`. Inline views inherit host fonts and theme; standalone exports use the same design system's tokens. Use semantic success/warning/error colors with text labels. Preserve readability when fitting overview and detail together; relax height before shrinking table text below 12px or hiding requested rows.
16
16
 
17
17
  - For additive count breakdowns with a group filter and a time picker, use the bundled renderer and [snapshot contract](visualizations/count-snapshots.md). It derives totals and percentages from the same cells, rejects incomplete or inconsistent input, and uses one render function for initial and interactive states.
18
18
  - For latency, distributions, time series, or non-additive estimates, choose the appropriate chart and retain the same measurement and delivery checks. Do not force these into the count renderer or add percentile values together.
19
19
 
20
- The count renderer accepts a normalized JSON snapshot; it does not query a provider:
20
+ The count renderer accepts a normalized JSON snapshot; it does not query a provider. `<language>` is the folder that holds this file:
21
21
 
22
22
  ```sh
23
- node ~/design-system/visualizations/build-count-report.mjs snapshot.json report-inline.html --mode inline
24
- node ~/design-system/visualizations/build-count-report.mjs snapshot.json report.html --mode standalone --tokens ~/design-system/tokens.css
23
+ node <language>/visualizations/build-count-report.mjs snapshot.json report-inline.html --mode inline
24
+ node <language>/visualizations/build-count-report.mjs snapshot.json report.html --mode standalone --tokens <language>/tokens.css
25
25
  ```
26
26
 
27
27
  Choose readable density for the actual number of items. Keep the overview and requested detail together without hiding important categories on narrow screens. The count-table layout and responsive behavior are described in the snapshot contract. Exact codes and category classes must have different labels.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filipgutica/design-system",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Filip's design language, tokens, and component catalogue for any framework",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -71,6 +71,7 @@
71
71
  "@commitlint/config-conventional": "^21.2.2",
72
72
  "@playwright/test": "^1.65.0",
73
73
  "@semantic-release/commit-analyzer": "13.0.1",
74
+ "@semantic-release/git": "^10.0.1",
74
75
  "@types/node": "^24.19.2",
75
76
  "@types/react": "^19.3.0",
76
77
  "@types/react-dom": "^19.3.0",