@vegastack/design 0.28.5 → 0.29.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.
@@ -38,9 +38,9 @@ var prose = {
38
38
  // Body text is the app's body text — size, leading and ink inherit from the root, so a paragraph
39
39
  // here is indistinguishable from any other `text-sm` paragraph in the product. No prose look.
40
40
  p: "[&_p]:my-2 [&_p]:first:mt-0 [&_p]:last:mb-0",
41
- // Marks. Links are `info` ink per design.md §Colours at body weight; `s` is Tiptap's strike
41
+ // Marks. Links are `link` ink per design.md §Colours (blue, or the accent: COL-27) at body weight; `s` is Tiptap's strike
42
42
  // element and `del` is GFM's — the same mark from two producers.
43
- a: "[&_a]:text-info-text [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-info-text/88",
43
+ a: "[&_a]:text-link [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-link-hover",
44
44
  strong: "[&_strong]:font-semibold",
45
45
  em: "[&_em]:italic",
46
46
  del: "[&_del]:line-through [&_s]:line-through",
@@ -78,9 +78,9 @@ var prose = {
78
78
  // Body text is the app's body text — size, leading and ink inherit from the root, so a paragraph
79
79
  // here is indistinguishable from any other `text-sm` paragraph in the product. No prose look.
80
80
  p: "[&_p]:my-2 [&_p]:first:mt-0 [&_p]:last:mb-0",
81
- // Marks. Links are `info` ink per design.md §Colours at body weight; `s` is Tiptap's strike
81
+ // Marks. Links are `link` ink per design.md §Colours (blue, or the accent: COL-27) at body weight; `s` is Tiptap's strike
82
82
  // element and `del` is GFM's — the same mark from two producers.
83
- a: "[&_a]:text-info-text [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-info-text/88",
83
+ a: "[&_a]:text-link [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-link-hover",
84
84
  strong: "[&_strong]:font-semibold",
85
85
  em: "[&_em]:italic",
86
86
  del: "[&_del]:line-through [&_s]:line-through",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  cn
4
- } from "./chunk-VS2NIUXF.js";
4
+ } from "./chunk-LXXZHYUI.js";
5
5
 
6
6
  // src/icons/create-animated-icon.tsx
7
7
  import * as React from "react";
@@ -92,9 +92,9 @@ var prose = {
92
92
  // Body text is the app's body text — size, leading and ink inherit from the root, so a paragraph
93
93
  // here is indistinguishable from any other `text-sm` paragraph in the product. No prose look.
94
94
  p: "[&_p]:my-2 [&_p]:first:mt-0 [&_p]:last:mb-0",
95
- // Marks. Links are `info` ink per design.md §Colours at body weight; `s` is Tiptap's strike
95
+ // Marks. Links are `link` ink per design.md §Colours (blue, or the accent: COL-27) at body weight; `s` is Tiptap's strike
96
96
  // element and `del` is GFM's — the same mark from two producers.
97
- a: "[&_a]:text-info-text [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-info-text/88",
97
+ a: "[&_a]:text-link [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-link-hover",
98
98
  strong: "[&_strong]:font-semibold",
99
99
  em: "[&_em]:italic",
100
100
  del: "[&_del]:line-through [&_s]:line-through",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cn
3
- } from "../chunk-VS2NIUXF.js";
3
+ } from "../chunk-LXXZHYUI.js";
4
4
 
5
5
  // src/icons/icon.tsx
6
6
  import "react";
package/dist/index.cjs CHANGED
@@ -71,9 +71,9 @@ var prose = {
71
71
  // Body text is the app's body text — size, leading and ink inherit from the root, so a paragraph
72
72
  // here is indistinguishable from any other `text-sm` paragraph in the product. No prose look.
73
73
  p: "[&_p]:my-2 [&_p]:first:mt-0 [&_p]:last:mb-0",
74
- // Marks. Links are `info` ink per design.md §Colours at body weight; `s` is Tiptap's strike
74
+ // Marks. Links are `link` ink per design.md §Colours (blue, or the accent: COL-27) at body weight; `s` is Tiptap's strike
75
75
  // element and `del` is GFM's — the same mark from two producers.
76
- a: "[&_a]:text-info-text [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-info-text/88",
76
+ a: "[&_a]:text-link [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-link-hover",
77
77
  strong: "[&_strong]:font-semibold",
78
78
  em: "[&_em]:italic",
79
79
  del: "[&_del]:line-through [&_s]:line-through",
package/dist/index.d.cts CHANGED
@@ -68,7 +68,7 @@ declare const prose: {
68
68
  readonly h5: "[&_h5]:mt-3 [&_h5]:mb-1.5 [&_h5]:font-heading [&_h5]:text-sm [&_h5]:font-medium [&_h5]:text-foreground [&_h5]:first:mt-0";
69
69
  readonly h6: "[&_h6]:mt-3 [&_h6]:mb-1.5 [&_h6]:font-heading [&_h6]:text-sm [&_h6]:font-medium [&_h6]:text-foreground [&_h6]:first:mt-0";
70
70
  readonly p: "[&_p]:my-2 [&_p]:first:mt-0 [&_p]:last:mb-0";
71
- readonly a: "[&_a]:text-info-text [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-info-text/88";
71
+ readonly a: "[&_a]:text-link [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-link-hover";
72
72
  readonly strong: "[&_strong]:font-semibold";
73
73
  readonly em: "[&_em]:italic";
74
74
  readonly del: "[&_del]:line-through [&_s]:line-through";
package/dist/index.d.ts CHANGED
@@ -68,7 +68,7 @@ declare const prose: {
68
68
  readonly h5: "[&_h5]:mt-3 [&_h5]:mb-1.5 [&_h5]:font-heading [&_h5]:text-sm [&_h5]:font-medium [&_h5]:text-foreground [&_h5]:first:mt-0";
69
69
  readonly h6: "[&_h6]:mt-3 [&_h6]:mb-1.5 [&_h6]:font-heading [&_h6]:text-sm [&_h6]:font-medium [&_h6]:text-foreground [&_h6]:first:mt-0";
70
70
  readonly p: "[&_p]:my-2 [&_p]:first:mt-0 [&_p]:last:mb-0";
71
- readonly a: "[&_a]:text-info-text [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-info-text/88";
71
+ readonly a: "[&_a]:text-link [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-link-hover";
72
72
  readonly strong: "[&_strong]:font-semibold";
73
73
  readonly em: "[&_em]:italic";
74
74
  readonly del: "[&_del]:line-through [&_s]:line-through";
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  proseDocumentClassName,
10
10
  proseReading,
11
11
  proseReadingClassName
12
- } from "./chunk-VS2NIUXF.js";
12
+ } from "./chunk-LXXZHYUI.js";
13
13
  export {
14
14
  FLOATING,
15
15
  TIMINGS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vegastack/design",
3
- "version": "0.28.5",
3
+ "version": "0.29.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.28.2",
73
+ "@vegastack/design-tokens": "^0.29.0",
74
74
  "clsx": "^2.1.1",
75
75
  "tailwind-merge": "^3.6.0",
76
76
  "tsconfig-paths": "^4.2.0",
@@ -274,11 +274,21 @@ opaque `hover:bg-muted`/`hover:bg-accent` (lint rejects it):
274
274
  // A tile inside a row: translucent, so it stays one step above the row in every state.
275
275
  <span className="size-7 rounded-tile bg-state-tile" />;
276
276
 
277
- // A solid steps its own fill; a status tint keeps its `-text` ink.
278
- <button className="bg-primary text-primary-foreground hover:bg-primary/80 active:bg-primary/70" />;
277
+ // Navigation (rail, sidebar, folder tree) is the one selection that takes the accent.
278
+ <a className="state-layer data-active:bg-nav-selected data-active:text-nav-selected-foreground" />;
279
+
280
+ // A solid steps its own fill in real shades, never an opacity (an accent would fade); a status tint keeps its `-text` ink.
281
+ <button className="bg-primary text-primary-foreground hover:bg-primary-hover active:bg-primary-pressed" />;
279
282
  <button className="bg-destructive/10 text-destructive-text hover:bg-destructive/20" />;
280
283
  ```
281
284
 
285
+ **Accents (COL-27).** A person picks one of seven colours (`accent`: `AccentScript` in the root
286
+ layout, `setAccent`, `AccentPicker`, `AccentScope` for a page with its own). Name the role, never
287
+ `text-primary` (lint rejects it): `text-link` underlined for a link inside text, `text-primary-text`
288
+ for accent ink, `bg-unread` for an unread dot, `text-check` for a done check, `bg-mark` for a
289
+ highlight, `bg-ink text-ink-foreground` for a neutral solid. The last three never take the
290
+ accent, nor do status, charts, tags, mentions and focus.
291
+
282
292
  Keyboard focus is base.css's soft info-hue tint (`--state-focus`), never restated. Text entry
283
293
  already shows hover (darker border), focus (`input-focus` border, no ring or glow) and read-only
284
294
  (`readonly` fill) in the DS components. A list of rows inside a card is `ItemGroup variant="flush"`
@@ -403,8 +413,8 @@ contract.
403
413
  - Use `Icon`/`BrandIcon` from `@vegastack/design/icons`, or `lucide-react` directly for internal
404
414
  chrome.
405
415
  - Implement every applicable state: default, hover, focus, loading, empty, error, success, disabled.
406
- - Draw every check — done, selected, approved, allowed, uploaded — in `primary`
407
- (`text-primary`, or `StatusGlyph`), never green; in agent UI a status hue is a glyph or words,
416
+ - Draw every check — done, selected, approved, allowed, uploaded — in the `check` ink
417
+ (`text-check`, or `StatusGlyph`), never green; in agent UI a status hue is a glyph or words,
408
418
  never a fill, and a card is `ChatCard` only for something to act on or open (COL-25). The
409
419
  doctor fails on a green check.
410
420
  - In a chat, move on the chat motion set (`duration-quick|state|layout`, `ease-enter|exit`) and show
@@ -3,7 +3,7 @@
3
3
  <!-- GENERATED — do not hand-edit. Regenerated from the design system's component contract,
4
4
  which is the authority for membership and counts. -->
5
5
 
6
- **235 components**, plus 467 animated-icon items, 16 hooks (`use-announcer`, `use-async-search`, `use-drag-reorder`, `use-file-drop`, `use-grid-selection`, `use-inline-edit`, `use-list-nav`, `use-media-query`, `use-mobile`, `use-modal-inert`, `use-overflow-fold`, `use-overflow`, `use-platform`, `use-stick-to-bottom`, `use-tabs-swipe`, `use-view-transition`), 15 starter blocks (`shell-01`, `board-01`, `issue-detail-01`, `page-editor-01`, `command-search-01`, `list-page-01`, `library-01`, `login-01`, `notifications-01`, `review-split-01`, `settings-01`, `settings-02`, `status-pages-01`, `email-kit`, `share-01`), 68 chart blocks across 7 families, and 23 data libs (`code-highlight`, `date-time`, `disclosure-trigger`, `drag-item`, `embed-providers`, `emoji-data`, `file-kind`, `grid-clipboard`, `icon-components`, `icon-data`, `markdown-as-typed`, `media-probe`, `page-layout`, `shell-layout`, `picker-preferences`, `picker-search`, `text-anchor`, `text-anchor-doc`, `text-edit-grammar`, `text-edit-markdown`, `text-edit-schema`, `tile-overlay`, `upload-progress`) — 824 registry items in total.
6
+ **236 components**, plus 467 animated-icon items, 16 hooks (`use-announcer`, `use-async-search`, `use-drag-reorder`, `use-file-drop`, `use-grid-selection`, `use-inline-edit`, `use-list-nav`, `use-media-query`, `use-mobile`, `use-modal-inert`, `use-overflow-fold`, `use-overflow`, `use-platform`, `use-stick-to-bottom`, `use-tabs-swipe`, `use-view-transition`), 15 starter blocks (`shell-01`, `board-01`, `issue-detail-01`, `page-editor-01`, `command-search-01`, `list-page-01`, `library-01`, `login-01`, `notifications-01`, `review-split-01`, `settings-01`, `settings-02`, `status-pages-01`, `email-kit`, `share-01`), 68 chart blocks across 7 families, and 23 data libs (`code-highlight`, `date-time`, `disclosure-trigger`, `drag-item`, `embed-providers`, `emoji-data`, `file-kind`, `grid-clipboard`, `icon-components`, `icon-data`, `markdown-as-typed`, `media-probe`, `page-layout`, `shell-layout`, `picker-preferences`, `picker-search`, `text-anchor`, `text-anchor-doc`, `text-edit-grammar`, `text-edit-markdown`, `text-edit-schema`, `tile-overlay`, `upload-progress`) — 825 registry items in total.
7
7
 
8
8
  Install any of them with `shadcn add @vegastack/<name>`. Animated icons install as
9
9
  `@vegastack/icon-<name>`; the bare name is reserved for components, so a component whose name
@@ -19,6 +19,7 @@ starts with `icon-` is a component and never an icon.
19
19
 
20
20
  ## Form
21
21
 
22
+ - **`accent`** — The accent themes: set and read the person's colour, mark it before the first paint, give one page its own, a picker of the seven and a preview.
22
23
  - **`auto-save-input`** — An input that debounces edits and persists them via an async onSave, with an inline idle/saving/saved/error status; plus useAutoSave (debounced, serialised changed-fields save for a whole form) and AutoSaveIndicator.
23
24
  - **`block-toolbar`** — The one place a block's own controls sit — its top-right corner, 28px icon buttons, at most four and a ⋯ menu for the rest — shared by code blocks, images and diagrams.
24
25
  - **`calendar`** — A date-field calendar on React DayPicker — single, multiple and range selection.