AGENTS.md — shadcn/ui
Setup
components.jsonat the root definesstyle,rsc,baseColor,cssVariables, and aliases (@/components,@/lib/utils).- Components are copied into
components/uivianpx shadcn@latest add <name>— they are your code.
Conventions
- Merge classes with
cn()(clsx + tailwind-merge); usecvafor variants exposed through props. - Build on Radix primitives; keep
"use client"on interactive components; icons fromlucide-react. - Style with semantic tokens (
bg-background,text-foreground, …) backed by CSS variables. - Forward
className+...propsso components stay composable.
Banned
- Wrapping or npm-packaging the generated
components/uiinstead of editing them. - Manual class-string concatenation instead of
cn(). - Hardcoded raw colors that bypass theme tokens.
- Reimplementing Radix behavior by hand or stripping
"use client".