@vegastack/design 0.28.4 → 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.
- package/dist/{chunk-VS2NIUXF.js → chunk-LXXZHYUI.js} +2 -2
- package/dist/create-animated-icon.cjs +2 -2
- package/dist/create-animated-icon.js +1 -1
- package/dist/icons/index.cjs +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/skills/vegastack-design-system/SKILL.md +20 -9
- package/skills/vegastack-design-system/references/components.md +2 -1
|
@@ -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 `
|
|
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-
|
|
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 `
|
|
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-
|
|
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",
|
package/dist/icons/index.cjs
CHANGED
|
@@ -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 `
|
|
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-
|
|
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",
|
package/dist/icons/index.js
CHANGED
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 `
|
|
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-
|
|
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-
|
|
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-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vegastack/design",
|
|
3
|
-
"version": "0.
|
|
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.
|
|
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
|
-
//
|
|
278
|
-
<
|
|
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"`
|
|
@@ -307,11 +317,12 @@ comment, a card or a short message; `"document"` for a page; `"reading"` for lon
|
|
|
307
317
|
or an AI wrote, read beside the work (a chat answer, an Ask AI answer, a summary). Pass `streaming`
|
|
308
318
|
while an answer arrives. A conversation is built from `message-parts`: `MessageBubble` for the
|
|
309
319
|
person, `MessageActivity` for thinking and steps, `SourceList` (`source-list`) for cited pages, `MessageTime`,
|
|
310
|
-
`MessageActions`. The box is `ChatComposer`, a compound: a `ChatComposerNotice` on its top edge,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
320
|
+
`MessageActions`. The box is `ChatComposer`, a compound: a `ChatComposerNotice` on its top edge,
|
|
321
|
+
`ChatComposerAttachments`, `ChatComposerInput`, then `ChatComposerActions` (+ and `ChatComposerAgent`,
|
|
322
|
+
who it goes to, at the start, Plan as a pressed `ComposerChip` after it while on; the model, the ring
|
|
323
|
+
and `ChatComposerSubmit` at the end). With `rest` a reply box rests at one 48px line until focused;
|
|
324
|
+
leave it off for a new chat or an ask box that takes focus. Under the card: a failed send, and at most
|
|
325
|
+
one quiet centred line saying who can read the chat. A `[[n]]` citation never navigates on click — its card's link does.
|
|
315
326
|
|
|
316
327
|
**Markdown is read with `MarkdownView` and edited with `TextEdit format="markdown"`** — never a
|
|
317
328
|
textarea, a local prose class, or a hand-rolled editor. For in-place editing, swap the view for
|
|
@@ -402,8 +413,8 @@ contract.
|
|
|
402
413
|
- Use `Icon`/`BrandIcon` from `@vegastack/design/icons`, or `lucide-react` directly for internal
|
|
403
414
|
chrome.
|
|
404
415
|
- Implement every applicable state: default, hover, focus, loading, empty, error, success, disabled.
|
|
405
|
-
- Draw every check — done, selected, approved, allowed, uploaded — in `
|
|
406
|
-
(`text-
|
|
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,
|
|
407
418
|
never a fill, and a card is `ChatCard` only for something to act on or open (COL-25). The
|
|
408
419
|
doctor fails on a green check.
|
|
409
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
|
-
**
|
|
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.
|