Build
UI components
The shadcn primitives in components/ui, the shared helpers on top of them, and how to theme them.
01Primitives
components/ui holds shadcn/ui components built on Radix, styled with Tailwind and lucide icons. The code is yours: edit a file and every screen that uses it changes.
| Component | Use it for |
|---|---|
button | Actions. Variants: default, outline, secondary, ghost, destructive, link |
input, textarea, select, switch, label | Form fields; every field gets a label |
form | react-hook-form wiring with field errors |
card, table, tabs, accordion, separator | Layout and data |
dialog, sheet, dropdown-menu | Overlays and menus |
alert, badge, avatar, skeleton | Status, labels and loading states |
sonner | Toasts: toast.success() and toast.error() from "sonner" |
04Theme
Colours and radius are CSS variables in app/globals.css, one set for light and one for dark. The brand values in config/brand.ts override them: colors.primary for buttons, links and focus rings, colors.accent for the logo mark and emails, theme.radius for corners and theme.mode for the default scheme.
Use tokens (bg-primary, text-muted-foreground, border-border), not hex values, so both themes keep working.
05Add a component
npx shadcn@latest add progresscomponents.json points the CLI at components/ui and the project's Tailwind setup. Check a new component in both themes before using it.