Cactus for shadcn/ui

Cactus is a shadcn/ui theme built around a vivid light red primary color (#fdd8db) with vivid light orange accents (#fde8d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#fdd8db) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#ffffffwhite
#040101black
Foreground
#040101black
#ffffffwhite
Card
#ffffffwhite
#040101black
Card foreground
#040101black
#ffffffwhite
Popover
#ffffffwhite
#040101black
Popover foreground
#040101black
#ffffffwhite
Primary
#fdd8dbmistyrose
#fdd8dbmistyrose
Primary foreground
#9c0711darkred
#9c0711darkred
Secondary
#fdd8edmistyrose
#fdd8edmistyrose
Secondary foreground
#9c075cpurple
#9c075cpurple
Muted
#e2d0dagainsboro
#2f1d27darkslategray
Muted foreground
#453b40darkslategray
#c4bac0silver
Accent
#fde8d8antiquewhite
#fde8d8antiquewhite
Accent foreground
#3a1b03black
#3a1b03black
Destructive
#bf1303firebrick
#f11704red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdd8dbmistyrose
#fdd8dbmistyrose

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button6.53:1AA
Secondary button6.24:1AA
Muted text7.28:1AAA
Accent13.25:1AAA
Destructive6.35:1AA
Dark mode
Text on background20.78:1AAA
Text on card20.78:1AAA
Primary button6.53:1AA
Secondary button6.24:1AA
Muted text8.37:1AAA
Accent13.25:1AAA
Destructive4.30:1AA Large

CSS variables

Paste this into your globals.css to use Cactus in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.082 0.015 14.674);
  --muted: oklch(0.874 0.025 342.468);
  --muted-foreground: oklch(0.364 0.017 342.895);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.082 0.015 14.674);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.082 0.015 14.674);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.914 0.042 13.386);
  --primary-foreground: oklch(0.438 0.175 26.885);
  --secondary: oklch(0.919 0.049 343.045);
  --secondary-foreground: oklch(0.455 0.183 355.045);
  --accent: oklch(0.944 0.031 59.821);
  --accent-foreground: oklch(0.262 0.061 54.454);
  --destructive: oklch(0.511 0.202 30.15);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.914 0.042 13.386);
  --chart-1: oklch(0.914 0.042 13.386);
  --chart-2: oklch(0.919 0.049 343.045);
  --chart-3: oklch(0.944 0.031 59.821);
  --chart-4: oklch(0.949 0.03 342.559);
  --chart-5: oklch(0.913 0.043 13.42);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.014 14.447);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.259 0.034 344.7);
  --muted-foreground: oklch(0.799 0.014 342.221);
  --popover: oklch(0.083 0.014 14.447);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.083 0.014 14.447);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.914 0.042 13.386);
  --primary-foreground: oklch(0.438 0.175 26.885);
  --secondary: oklch(0.919 0.049 343.045);
  --secondary-foreground: oklch(0.455 0.183 355.045);
  --accent: oklch(0.944 0.031 59.821);
  --accent-foreground: oklch(0.262 0.061 54.454);
  --destructive: oklch(0.607 0.242 30.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.914 0.042 13.386);
  --chart-1: oklch(0.914 0.042 13.386);
  --chart-2: oklch(0.919 0.049 343.045);
  --chart-3: oklch(0.944 0.031 59.821);
  --chart-4: oklch(0.949 0.03 342.559);
  --chart-5: oklch(0.913 0.043 13.42);
}