| name | shadcn-customization |
| description | Shadcn/ui theming and component customization — CSS variables, OKLCH colors, dark mode, variants, wrappers. Load for any ticket involving colors, theme, UI layout, or component styling. |
Customization & Theming
Reference for theming and component customization. Components reference semantic CSS variable tokens change the variables to change every component. Read the relevant section, then check the Red Flags and Verification list.
When to Use
- Changing colors, theme, dark mode, or border radius.
- Adding a custom color token or a new component variant.
- Customizing or wrapping a shadcn/ui component.
For component architecture and where to import from, see Skill({skill: "frontend-dev"}).
How It Works
- CSS variables defined in
:root (light) and .dark (dark mode).
- Tailwind maps them to utilities:
bg-primary, text-muted-foreground, etc.
- Components use these utilities — changing a variable changes all components that reference it.
Color Variables
Every color follows the name / name-foreground convention. The base variable is for backgrounds, -foreground is for text/icons on that background.
| Variable | Purpose |
|---|
--background / --foreground | Page background and default text |
--card / --card-foreground | Card surfaces |
|