Anatomy for shadcn/ui

Anatomy is a shadcn/ui theme built around a vivid purple primary color (#f924cb) with muted light purple accents (#d4bfcf). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#f924cb) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#ffffffwhite
#040103black
Foreground
#040103black
#ffffffwhite
Card
#fcfcfcsnow
#080207black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#040103black
Popover foreground
#040103black
#ffffffwhite
Primary
#f924cbdeeppink
#f924cbdeeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e2dae0gainsboro
#2b2b2bdarkslategray
Secondary foreground
#4e3c4adarkslategray
#c4c4c4silver
Muted
#f6eaf3lavenderblush
#150909black
Muted foreground
#675663dimgray
#a99898rosybrown
Accent
#d4bfcfthistle
#484141darkslategray
Accent foreground
#3a2736darkslategray
#e0dcdcgainsboro
Destructive
#871403darkred
#eb2305orangered
Destructive foreground
#fec7bepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f924cbdeeppink
#f924cbdeeppink

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.54:1AAA
Primary button3.40:1AA Large
Secondary button7.39:1AAA
Muted text5.80:1AA
Accent7.98:1AAA
Destructive6.62:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.53:1AAA
Primary button3.40:1AA Large
Secondary button8.07:1AAA
Muted text7.08:1AAA
Accent7.28:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.086 0.018 333.435);
  --muted: oklch(0.948 0.018 332.913);
  --muted-foreground: oklch(0.474 0.03 333.569);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.086 0.018 333.435);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.674 0.277 339.63);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.896 0.013 332.841);
  --secondary-foreground: oklch(0.38 0.034 333.922);
  --accent: oklch(0.827 0.031 333.194);
  --accent-foreground: oklch(0.302 0.036 334.382);
  --destructive: oklch(0.402 0.151 31.637);
  --destructive-foreground: oklch(0.875 0.064 28.491);
  --ring: oklch(0.674 0.277 339.63);
  --chart-1: oklch(0.674 0.277 339.63);
  --chart-2: oklch(0.896 0.013 332.841);
  --chart-3: oklch(0.827 0.031 333.194);
  --chart-4: oklch(0.92 0.01 332.784);
  --chart-5: oklch(0.679 0.282 339.815);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.019 333.499);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.159 0.022 19.784);
  --muted-foreground: oklch(0.695 0.02 17.646);
  --popover: oklch(0.085 0.019 333.499);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.107 0.024 333.499);
  --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.674 0.277 339.63);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.29 0 180);
  --secondary-foreground: oklch(0.821 0 171.87);
  --accent: oklch(0.384 0.009 17.571);
  --accent-foreground: oklch(0.898 0.004 17.225);
  --destructive: oklch(0.601 0.232 31.018);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.674 0.277 339.63);
  --chart-1: oklch(0.674 0.277 339.63);
  --chart-2: oklch(0.29 0 180);
  --chart-3: oklch(0.384 0.009 17.571);
  --chart-4: oklch(0.321 0 180);
  --chart-5: oklch(0.679 0.282 339.815);
}