Browse the docs
FoundationsNo. 01 of 109
Theme
Corsair colour, radius and base styles for light and dark mode. Every component relies on these variables; override --primary, --primary-foreground and --ring to apply your brand.
Installation
pnpm dlx shadcn@latest add @corsair-ui/themeNo setup needed: the CLI finds @corsair-ui in the shadcn registry directory. The files land in your project as source: edit them like your own code. More in Installation.
Examples
Colours
Semantic tokens in dark mode. Light mode uses the same names.
- Aa
--background - Aa
--card - Aa
--popover - Aa
--primary - Aa
--secondary - Aa
--muted - Aa
--accent - Aa
--destructive --success--warning--border--input--field--ring
Radius
Derived from --radius (0.625rem).
rounded-smrounded-mdrounded-lgrounded-xlBranding
Override three variables to apply a project's colour.
.dark {
--primary: #ff3131;
--primary-foreground: #0f0d0d;
--ring: #ff3131;
}Accessibility
- Foreground and background pairs are picked for contrast in both light and dark mode.
- Focus rings use --ring on every interactive component.
Compatibility
- Tailwind CSS
- 3.4 and 4, both checked in CI
- React
- 19
- Rendering
- Works in server components