From 243832fee698bd3830c03b5faa8f66a5e59a1f1e Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 1 Nov 2026 21:47:54 +1100 Subject: [PATCH] docs(ui): add components with the shadcn-vue CLI, not by hand --- ui/AGENTS.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/AGENTS.md b/ui/AGENTS.md index 3b8854fbb..e3364c4c7 100644 --- a/ui/AGENTS.md +++ b/ui/AGENTS.md @@ -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 ` 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