@vegastack/design 0.26.0 → 0.27.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vegastack/design",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "VegaStack design system — cn utility, icon runtime, Tailwind v4 preset, and the vegastack-design CLI (tokens ship separately as @vegastack/design-tokens)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -70,7 +70,7 @@
70
70
  "test": "node test/compare.test.mjs && node test/check-updates.test.mjs && node test/skills-install.test.mjs && node test/doctor.test.mjs && node --test test/merge-refs.test.mjs test/registry-credentials.test.mjs test/registry-fetch.test.mjs"
71
71
  },
72
72
  "dependencies": {
73
- "@vegastack/design-tokens": "^0.26.0",
73
+ "@vegastack/design-tokens": "^0.27.0",
74
74
  "clsx": "^2.1.1",
75
75
  "tailwind-merge": "^3.6.0",
76
76
  "tsconfig-paths": "^4.2.0",
@@ -66,12 +66,25 @@ rg -n 'style=\{\{' --glob '!components/ui/**'
66
66
  expresses is not a finding; upstream writes several itself. **warning**
67
67
  - **off-role corner** — a corner that is not a role (BRD-12): `rounded-sm|md|lg|xl|2xl|3xl|4xl`,
68
68
  bare `rounded`, `rounded-[…]`, `rounded-(--…)` or the retired `rounded-chat-card`. Name the role
69
- the element plays: `rounded-control` (in-page control, 8px), `-icon` (icon-only button, 8px
70
- square), `-segment` (control inside a control), `-capsule` (floating bar or media control, and its
71
- buttons), `-chip`,
72
- `-inline` (token in text), `-mark`, `-item` (row with a fill, tooltip), `-block`, `-card`,
73
- `-bubble`, `-overlay`, `-tile` (square media); `row-fill` on a table row. A square hover fill on
74
- an inset row is the same finding. **error**
69
+ the element plays: `rounded-control` (action or input in the page, 10px), `-icon` (icon-only
70
+ button, 10px square), `-segment` (control inside a control, and every 24px control, 8px),
71
+ `-capsule` (the top bar, a floating bar or media control, and its buttons), `-chip` (token or
72
+ state), `-inline` (token in text), `-mark`, `-item` (list row with a fill, tooltip), `-block`,
73
+ `-card`, `-bubble`, `-overlay`, `-tile` (square media); `row-fill` on a table row. **error**
74
+ - **wrong shape for what it is** (BRD-12: the shape says what the thing is) — mixed shapes in one
75
+ row (a rectangle `+ Filter` or button beside pill chips, a capsule button beside a rectangular
76
+ field); a pill (`rounded-full`, `rounded-capsule`, `shape="pill"`) on an in-page action or input
77
+ that is not in a row of pills; a rectangle on a chip, badge, reaction or quick-filter toggle; an
78
+ ad-hoc `rounded-*` that reshapes a VegaStack control in app code (use its `shape` prop or
79
+ `capsule-scope`); a table row whose hover or selected fill is an inset rounded shape (table rows
80
+ are a square band, `row-fill`); a square hover fill on a list row without dividers (`rounded-item`,
81
+ inset). **warning**
82
+ - **scrolling** (BRD-SCR, Foundations › Scrolling) — per-component scrollbar styling
83
+ (`[scrollbar-width:…]`, `::-webkit-scrollbar`, `scrollbar-thin` plugins) outside `scrollbar-none`
84
+ on a strip that shows fades or arrows; an `overflow-*-auto|scroll` element with no `relative` (or
85
+ `absolute`/`fixed`/`sticky`); a vertical scroller nested in a page region that also scrolls
86
+ vertically (a board or record view not filling the remaining height, `h-screen`/`100dvh` inside the
87
+ shell); a sideways scroller with a hidden bar and no `scroll-fade-x` or arrows. **warning**
75
88
  - **inline style** — allowed only when every key is a `--*` custom property. Any direct visual
76
89
  property is a finding. **error**
77
90
 
@@ -98,8 +98,9 @@ overflow="menu"`) left; the search, then the tools — Filter (n), Sort (`SortMe
98
98
  (List | Board | Grid icons), Display (`DisplayMenu`: row height, columns, group) and ⋯ — right;
99
99
  it measures itself and folds tools into Display and ⋯ when tight. The Filter tool opens a
100
100
  `FilterRow`: `+ Filter` (`AddFilterMenu`), the pinned `ListFacet` / `PeopleFacet` /
101
- `DateRangeFilter` chips (compact pills, dashed while unset, tinted when set), the other
102
- chips, Clear; people facets take `itemToSecondaryLabel={(p) => p.email}`. Tables are `DataList` with `sortable` columns (`compare`, `sortFirst`,
101
+ `DateRangeFilter` chips (28px pills with 12px text, dashed while unset, tinted when set), the
102
+ other chips, Clear — one chip tier and one shape: `+ Filter` and Clear are ghost 28px pills
103
+ (`FILTER_ROW_ACTION`); people facets take `itemToSecondaryLabel={(p) => p.email}`. Tables are `DataList` with `sortable` columns (`compare`, `sortFirst`,
103
104
  `sortMode="client"`) and `rowActions` (the ⋯ column, always last); row links are never underlined.
104
105
  - **`alert`** for an in-content notice — `variant` is `default · destructive · success · warning ·
105
106
  info`, each an ink on the `card` surface with a required icon.
@@ -415,13 +416,23 @@ contract.
415
416
  right-align a numeric column. `font-mono` is for code and identifiers (`SYS-1042`) only.
416
417
  - Title a page with `PageHeader` (`font-heading text-page-title font-semibold`, 26/600); a section heading is
417
418
  `font-heading text-base font-medium`, a group label `text-xs font-medium text-muted-foreground`.
418
- - Give every corner its ROLE, never a size (BRD-12): `rounded-control` (8px rectangle) for an in-page
419
- control, `rounded-segment` for a control nested in a control (tab triggers, buttons inside a field),
420
- `rounded-icon` for an icon-only button, `rounded-capsule` only for what floats or stands alone (floating
421
- bars, hover toolbars, controls over media, and the buttons inside them), `rounded-chip`, `rounded-inline` for a token inside text,
422
- `rounded-mark`, `rounded-item` for a row with a fill or a tooltip, `rounded-block`,
423
- `rounded-card`, `rounded-bubble`, `rounded-overlay`, `rounded-tile` for square media; `row-fill`
424
- on a table row. Never `rounded-sm|md|lg|xl…`, bare `rounded` or `rounded-[…]`.
419
+ - Let the shape say WHAT a thing is (BRD-12), never where it sits or how tall it is: a token or
420
+ state (chip, badge, tag, count, reaction, filter chip, quick-filter toggle, switch) is a pill
421
+ (`rounded-chip`, `ToggleGroup shape="pill"`); the app frame and anything floating (the top bar,
422
+ floating bars, controls over media) are `rounded-capsule capsule-scope`, their buttons circles; an
423
+ action or input in the page is `rounded-control` (10px) — `rounded-segment` (8px) at 24px and for a
424
+ control inside a control; a list row is `rounded-item` (inset); a table row is `row-fill` (square,
425
+ full width); anything inside anything is concentric. One shape per row: a button in a row of chips
426
+ is `Button shape="pill"` (the filter row's + Filter and Clear use `FILTER_ROW_ACTION`). Take shape
427
+ from the component (`shape` on Button, Input, InputGroup, ToggleGroup) — never `rounded-*` on a
428
+ VegaStack control, never `rounded-sm|md|lg|xl…`, bare `rounded` or `rounded-[…]`. Other roles:
429
+ `rounded-inline` (token in text), `rounded-mark`, `rounded-block`, `rounded-card`, `rounded-bubble`,
430
+ `rounded-overlay`, `rounded-tile` (square media).
431
+ - Scroll the way the shell does (BRD-SCR): the page scrolls in the shell's content area — add no
432
+ page-level scroller; a view inside it (`RecordLayout`, `Board height="fill"`) fills what is left.
433
+ Give every `overflow-*-auto` element `relative`; never style its scrollbar (the global thin bar
434
+ applies); use `ScrollArea` for a bounded region; fade a sideways strip with `scroll-fade-x
435
+ scrollbar-none`.
425
436
  - Reach for a plain Tailwind utility for size, shadow, z-index, alpha, weight and motion:
426
437
  `h-8`, `size-4`, `shadow-md`, `z-50`, `bg-foreground/10`, `opacity-50`,
427
438
  `font-semibold`, `transition-colors duration-100 ease-in-out` are all on-system now.