Cabana is a shadcn/ui theme built around a muted red primary color (#6b4a47) with muted orange accents (#6b5c47). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#6b4a47) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0d0302black | #fdfcfcsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0d0302black | #fdfcfcsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0d0302black | #fdfcfcsnow |
| Primary | #6b4a47dimgray | #6b4a47dimgray |
| Primary foreground | #f5f0f0whitesmoke | #f5f0f0whitesmoke |
| Secondary | #6b4756dimgray | #6b4756dimgray |
| Secondary foreground | #f5f0f2whitesmoke | #f5f0f2whitesmoke |
| Muted | #f1e0e7mistyrose | #1f0e16black |
| Muted foreground | #454545darkslategray | #bababasilver |
| Accent | #6b5c47darkolivegreen | #6b5c47darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cb0101red | #e90101red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6b4a47dimgray | #6b4a47dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 6.96:1 | AA |
| Muted text | 7.52:1 | AAA |
| Accent | 6.44:1 | AA |
| Destructive | 5.92:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 6.96:1 | AA |
| Muted text | 9.52:1 | AAA |
| Accent | 6.44:1 | AA |
| Destructive | 4.68:1 | AA |
Paste this into your globals.css to use Cabana in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.118 0.026 31.338);
--muted: oklch(0.921 0.021 350.293);
--muted-foreground: oklch(0.39 0 165.964);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.118 0.026 31.338);
--card: oklch(1 0 180);
--card-foreground: oklch(0.118 0.026 31.338);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.445 0.045 24.863);
--primary-foreground: oklch(0.959 0.005 23.632);
--secondary: oklch(0.444 0.053 352.825);
--secondary-foreground: oklch(0.959 0.006 349.85);
--accent: oklch(0.484 0.037 75.975);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.529 0.217 29.191);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.445 0.045 24.863);
--chart-1: oklch(0.445 0.045 24.863);
--chart-2: oklch(0.444 0.053 352.825);
--chart-3: oklch(0.484 0.037 75.975);
--chart-4: oklch(0.47 0.057 352.86);
--chart-5: oklch(0.444 0.052 25.123);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 23.595);
--muted: oklch(0.194 0.031 353.896);
--muted-foreground: oklch(0.789 0 171.254);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 23.595);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 23.595);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.445 0.045 24.863);
--primary-foreground: oklch(0.959 0.005 23.632);
--secondary: oklch(0.444 0.053 352.825);
--secondary-foreground: oklch(0.959 0.006 349.85);
--accent: oklch(0.484 0.037 75.975);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.588 0.241 29.198);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.445 0.045 24.863);
--chart-1: oklch(0.445 0.045 24.863);
--chart-2: oklch(0.444 0.053 352.825);
--chart-3: oklch(0.484 0.037 75.975);
--chart-4: oklch(0.47 0.057 352.86);
--chart-5: oklch(0.444 0.052 25.123);
}