docs(ui): add components with the shadcn-vue CLI, not by hand
Quality / check (push) Successful in 3m7s
deploy / gate (push) Successful in 3m51s
deploy / archied-image (push) Successful in 2m47s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped

This commit is contained in:
sam committed 2026-11-01 21:47:54 +11:00
1 parent e8c2c844a8
commit 243832fee6
1 file changed
+7 -2
+7 -2
View File
@@ -54,9 +54,14 @@ state; the UI presents them and submits operator choices.
(text-caption, text-label, text-title) instead of pixel sizes. Never
hand-roll a card, heading, caption, status dot or date format; if a pattern
is missing, add it to components/ui with a real consumer first.
- Add and update components/ui components with the shadcn-vue CLI, never by
writing or copying them by hand: `pnpm dlx shadcn-vue@latest add <name>` from
`ui/`, or the component's registry URL when the maintainer names one. Search
the registry before writing a missing pattern yourself, and write one only
when no registry has it. The CLI runs through `pnpm dlx`, so it never joins
the application's dependencies.
- Reuse components/ui and surrounding composition patterns before writing new
markup. Keep vendored components local; use pnpm dlx shadcn-vue@latest for CLI work
instead of adding the generator and its dependency tree to the application.
markup.
- Use semantic theme tokens, existing variants and cn() for conditional classes.
Support both themes, compact density and reduced motion.
- Keep controls compact and contextual. Use on-demand panels and inline