1.5 KiB
1.5 KiB
name, description
| name | description |
|---|---|
| shadcn-ui | Use shadcn/ui + Tailwind only for this project's UI. Triggers on UI, styling, components, cards, forms, navigation, theming, or when the user mentions shadcn, ui/*, or design tokens. Do not invent parallel ds-* or --brand-* systems. |
shadcn/ui for AUT Management Website
Source of truth
- Docs: https://ui.shadcn.com/docs/installation and https://ui.shadcn.com/docs/installation/next
- Config:
components.json(stylebase-nova, CSS vars, RTL) - Styles:
src/app/globals.css— only Tailwind +shadcn/tailwind.css+ theme CSS variables - Primitives:
src/components/ui/*vianpx shadcn@latest add <name>
Rules
- Build UI from
@/components/ui/*+ Tailwind utilities only. - Colors:
bg-primary,text-muted-foreground,bg-muted,border-border,bg-card— never--brand-*orbrand-*classes. - Do not create or revive
.ds-*utilities, SurfaceCard, or DotCta patterns. - Prefer
Card,Button,Separator,Sheet,NavigationMenu,Input,Label,Tabs,Skeleton,Badge. - Add missing primitives with the CLI; do not hand-copy stale component APIs.
- Keep Persian RTL (
dir="rtl"on layout;components.json"rtl": true). - AUT identity lives only in shadcn theme variables (
--primary,--accent, …).
Anti-patterns
- Parallel design tokens (
--brand-*,ds-card,ds-hero,ds-cta) - Full section boxes with
border border-borderwhen spacing/Separator/Cardsuffice - Always-on motion (ken-burns, default lift on every card)