Cabana for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button6.87:1AA
Secondary button6.96:1AA
Muted text7.52:1AAA
Accent6.44:1AA
Destructive5.92:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button6.87:1AA
Secondary button6.96:1AA
Muted text9.52:1AAA
Accent6.44:1AA
Destructive4.68:1AA

CSS variables

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);
}