@filipgutica/design-system 1.0.30 → 1.0.31

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.
@@ -21,6 +21,8 @@ The language has a reusable core and a replaceable identity layer.
21
21
 
22
22
  A new project keeps `tokens.css` unchanged and sets the identity inputs (`--color-project`, `--color-project-dark`, `--font-ui`, `--font-mono`, and `--color-accent-text`, `--color-nav-current-text`, and `--color-segmented-current-text` when the hue cannot carry them at 4.5:1) on `:root` in its own stylesheet, or loads a theme file. A theme file sets the last two for it; its hue must carry `--color-accent-text` itself, which the contrast tests check for every shipped theme. [Component specs](components.md) mark each component Core or Identity, and [decisions](decisions.md) record why each choice was made and which options were rejected. Read both before you build or change a component.
23
23
 
24
+ Choose the identity once per project, from its subject: the materials, vernacular, and audience of its world, as the [terminal folio](#identity-layer-terminal-folio) takes its marks from the terminal and Markdown tools it presents. When the subject is unclear, propose one and confirm it with the owner. Two limits come first. An identity the owner already set for a family of projects, such as the folio for the personal sites, stays as it is. Personal work keeps the shared type family and neutrals ([Scope and precedence](#scope-and-precedence)), so its subject sets only the hue and the identity marks. Within those limits, check the choice against what you would pick for any similar project, and revise any part you would pick whatever the subject. A palette from the Signs of a templated interface in `interface-design`'s craft rules fits only when the subject itself calls for it, and in personal work only as the hue. A page never picks its own identity.
25
+
24
26
  ## Apply the right format
25
27
 
26
28
  Choose the format before styling. A public product page and an application screen need different density.
@@ -17,6 +17,9 @@ Each entry records a choice this language made, the options it rejected, and why
17
17
  | Status in one sentence | Core | A view's summary sentence carries the status, its numbers, and a status icon. An alert holds only a caveat or action the summary cannot carry, one per view at most. | A banner above the summary that repeats it: PluginBench's Results had both, and the banner added a box and a second reading of the same fact. | `tests/catalogue/minimal.spec.ts` "the No data monitor states its status in one sentence, with no badge or alert"; "the console keeps the minimal rules with the … filter" |
18
18
  | Overflow menu | Core | Two or more secondary actions sit behind an icon-only quiet action with an SVG "more" icon, in a floating menu with concentric rows: the WAI-ARIA menu button pattern, which reka-ui's DropdownMenu and ui-sdk's Menu both follow. A destructive item comes last, after a separator, and confirms in a dialog. The primary action and a recovery action stay visible. | A `<details>` disclosure, as the project menu uses for links: an action menu built that way would behave differently from both headless libraries an implementation builds on. A `⋯` text glyph, as the PluginBench mockup used: a font draws its ink off the centre of its box (see Quiet actions). A menu for a single secondary action: it hides one action behind two presses. | keyboard path: `tests/catalogue/catalogue.spec.ts` "the overflow menu follows the menu button pattern"; corners: "each component renders the corner radius of its role, and no other part has one"; danger item contrast: "contrast: every danger menu item reaches 4.5:1" |
19
19
  | Faint uncertainty | Core | In a chart, every point, line, and label stays at full strength; the intervals of the points that are not selected fade to about 20% opacity, and the selected point keeps strong intervals and an accent ring. Matrix cells show a value and an icon, with the verdict word only on cells with a clear result and the full words in every accessible name, and one key line under the chart. Taken from the PluginBench Results scatter and overview grid. | Strong intervals on every point: with three efforts and two packages, six pairs of intervals crossed and hid the selected one. Fading whole points: the data the reader compares would drop below non-text contrast. Hiding unselected intervals: it removes the uncertainty a reader needs to judge any point. A verdict word and a border on every cell: six boxes and six repeated words where only the clear results needed a word. | No test yet |
20
+ | Deliberate generated-page signs | Core | Two choices match the Signs of a templated interface in `interface-design`'s craft rules, and they stay. The one meta line joined with " · " comes from [Minimal by default](DESIGN.md#minimal-by-default): one muted line replaces a row of labelled fields or badges. The default theme's graphite neutrals, its tinted near-black text and dark background included, come from [Character](DESIGN.md#character), which asks for neutral paper and graphite backgrounds. The text belongs to the same neutral set, which a theme replaces as a whole (see Themes), so the exemption covers every theme that keeps the default neutrals, and not Catppuccin or GitHub. A review treats both as deliberate. | Dropping them because Anthropic's [frontend-design](https://github.com/anthropics/skills/tree/main/skills/frontend-design) skill lists them as signs: that skill lets a direction its brief pins down win, and this language is that brief. | No direct test. The `interface-design` scenario `deliberate-sign-not-finding` in filip-stack covers the general rule that a recorded deliberate use is not a finding. |
21
+ | Identity from the subject | Core | A project chooses its identity inputs once, from its subject: the materials, vernacular, and audience of its world. When the subject is unclear, the agent proposes one and the owner confirms it. An identity the owner set for a family of projects, such as the folio, stays as it is, and personal work keeps the shared type family and neutrals ([Scope and precedence](DESIGN.md#scope-and-precedence)), so its subject sets only the hue and the identity marks. Within those limits, the choice is checked against what any similar project would get, and any part picked whatever the subject is revised. Adapted from Anthropic's [frontend-design](https://github.com/anthropics/skills/tree/main/skills/frontend-design) skill. | A palette, typefaces, and layout for each page or brief, as frontend-design directs: pages of one project would stop reading as one product, and the core already carries hierarchy and states. A generated default palette chosen because it looks current rather than because the subject calls for it: it appears whatever the subject. | No test yet |
22
+ | Folio signs | Identity | The terminal folio takes its `~/`, `##`, and `$` marks, its mono face, and its near-black capture plate (`--color-terminal`) from the terminal and Markdown tools its sites present, so its mono metadata, mono captions, and that plate are deliberate, not Signs of a templated interface. A project that replaces the identity does not inherit them. | Flagging them as signs to remove: the folio's [Mono identity](DESIGN.md#identity-layer-terminal-folio) rule assigns mono to metadata and captions because its sites present terminal tools. | `interface-design` scenarios in filip-stack: `deliberate-sign-not-finding`, modelled on the folio's mono captions, and `replaced-identity-mono` for a project that replaced the identity |
20
23
  | Section mark | Identity | The `##` mark goes only on the page-level section headings (h2) of documentation, CLI tool, article, and product pages, which are mono with a `--color-border-subtle` rule above. Application and inline-visualization section headings are plain `--font-ui` semibold at `--text-xl` or smaller, with no mark and no rule. h3 and lower never take it. | The mark on every section heading: on a dense screen, such as a metrics dashboard with six sections, it repeated down the page and competed with the data. The mark on h2 and h3: deeper levels repeat more often. A per-page opt-out class: every application page would need to remember it. Dropping the mark: reading pages lose the folio identity that ties them to the `~/name` header. Mono application section headings without the mark: the mono face alone still reads as a document heading among compact sans rows. | No test yet |
21
24
  | Command plate | Identity | Owner decision, 2026-11-15: a shell command uses the normal code block and its source well in light and dark, with a CSS-drawn `$ ` prompt in `--color-accent`. Header, Copy, compact layout, and focus follow the code block. Keep `--color-command-bg` and `--color-command-border` as compatibility aliases for `--color-code` and `--color-border-subtle`. Terminal captures stay unchanged. | A: the dark, hue-tinted plate in both modes. On a light page it was the darkest element and looked mismatched beside light source blocks; the owner noticed it on every site. B: a pale hue-tinted plate in light mode. It followed the mode but added a second tinted surface and still differed from source code; the owner preferred one consistent code surface (option C). | `tests/catalogue/catalogue.spec.ts`: "contrast: shell command text on the code well reaches 4.5:1", "contrast: the accent shell prompt on the code well reaches 3:1"; compatibility aliases and DS-1 exceptions: `tests/token-values.test.mjs`; shared code recipes: `tests/design-foundations.test.mjs`; imported-theme failures: `tests/theme-mapper.test.mjs` |
22
25
  | Terminal colours | Identity | Owner decision, 2026-11-14: the 16 ANSI colours that terminal captures use are design-system tokens, `--color-terminal-ansi-0` to `-15`, plus `--color-terminal-ansi-4-bg` for a blue background that terminal text reads on. They keep the values `@filipgutica/ui` drew before, so no capture changes. Colours 1 to 15 reach 4.5:1 on `--color-terminal`; black (colour 0) is a background only, and dim text reads colour 8. | Literal defaults in `@filipgutica/ui`: colour data outside the design system, which breaks the rule that the design system owns colours and component libraries only apply them. One token per colour role, such as a success green: terminal programs choose the slot, so the palette must name slots. | contrast: the core `ansi` check in `theme-mapper/engine.js`, which `tests/site/site.spec.ts` "Themes: every contrast check passes" runs for every theme; parity with the 1.x token set: `tests/token-values.test.mjs` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filipgutica/design-system",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Filip's design language, tokens, and component catalogue for any framework",
5
5
  "type": "module",
6
6
  "sideEffects": [