Cavernous for shadcn/ui

Cavernous is a shadcn/ui theme built around a muted light pink primary color (#f0e5ea) with muted light blue accents (#e5eaf0). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the muted light pink primary (#f0e5ea) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fasnow
#000000black
Foreground
#12020ablack
#f9f6f7whitesmoke
Card
#fcf8fasnow
#000000black
Card foreground
#12020ablack
#f9f6f7whitesmoke
Popover
#fcf8fasnow
#000000black
Popover foreground
#12020ablack
#f9f6f7whitesmoke
Primary
#f0e5ealinen
#f0e5ealinen
Primary foreground
#683c50dimgray
#683c50dimgray
Secondary
#eaf0e5beige
#eaf0e5beige
Secondary foreground
#1e2716black
#1e2716black
Muted
#e5efdcbeige
#192310black
Muted foreground
#454545darkslategray
#bababasilver
Accent
#e5eaf0lavender
#e5eaf0lavender
Accent foreground
#3c5068darkslategray
#3c5068darkslategray
Destructive
#831a02maroon
#ec2e04orangered
Destructive foreground
#fec5b9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0e5ealinen
#f0e5ealinen

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.16:1AAA
Primary button7.28:1AAA
Secondary button13.34:1AAA
Muted text8.06:1AAA
Accent6.84:1AA
Destructive6.60:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button7.28:1AAA
Secondary button13.34:1AAA
Muted text8.41:1AAA
Accent6.84:1AA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 347.058);
  --foreground: oklch(0.131 0.039 349.231);
  --muted: oklch(0.939 0.026 130.07);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(0.982 0.005 347.058);
  --popover-foreground: oklch(0.131 0.039 349.231);
  --card: oklch(0.982 0.005 347.058);
  --card-foreground: oklch(0.131 0.039 349.231);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.932 0.014 347.301);
  --primary-foreground: oklch(0.415 0.068 351.034);
  --secondary: oklch(0.948 0.016 129.953);
  --secondary-foreground: oklch(0.258 0.032 131.157);
  --accent: oklch(0.936 0.01 251.534);
  --accent-foreground: oklch(0.425 0.047 252.23);
  --destructive: oklch(0.397 0.143 33.342);
  --destructive-foreground: oklch(0.872 0.067 32.892);
  --ring: oklch(0.932 0.014 347.301);
  --chart-1: oklch(0.932 0.014 347.301);
  --chart-2: oklch(0.948 0.016 129.953);
  --chart-3: oklch(0.936 0.01 251.534);
  --chart-4: oklch(0.968 0.01 129.887);
  --chart-5: oklch(0.932 0.015 347.344);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.004 347.021);
  --muted: oklch(0.24 0.036 131.507);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.004 347.021);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.004 347.021);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.932 0.014 347.301);
  --primary-foreground: oklch(0.415 0.068 351.034);
  --secondary: oklch(0.948 0.016 129.953);
  --secondary-foreground: oklch(0.258 0.032 131.157);
  --accent: oklch(0.936 0.01 251.534);
  --accent-foreground: oklch(0.425 0.047 252.23);
  --destructive: oklch(0.61 0.227 32.352);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.932 0.014 347.301);
  --chart-1: oklch(0.932 0.014 347.301);
  --chart-2: oklch(0.948 0.016 129.953);
  --chart-3: oklch(0.936 0.01 251.534);
  --chart-4: oklch(0.968 0.01 129.887);
  --chart-5: oklch(0.932 0.015 347.344);
}