docs(ui): add components with the shadcn-vue CLI, not by hand
This commit is contained in:
1 file changed
+7
-2
+7
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user