Zoology for shadcn/ui

Zoology is a shadcn/ui theme built around a muted deep purple primary color (#160e15) with muted deep cyan accents (#0e1516). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the muted deep purple primary (#160e15) on a purple-tinted background (#0e060e).

Color palette

TokenLightDark
Background
#fcf8fcsnow
#0e060eblack
Foreground
#000000black
#faf5faghostwhite
Card
#fbf4faghostwhite
#120811black
Card foreground
#000000black
#fcf8fbsnow
Popover
#fbf4faghostwhite
#120811black
Popover foreground
#000000black
#fcf8fbsnow
Primary
#160e15black
#160e15black
Primary foreground
#bd99b9darkgray
#bd99b9darkgray
Secondary
#15160eblack
#15160eblack
Secondary foreground
#b9bd99tan
#b9bd99tan
Muted
#f2f3ecwhitesmoke
#12130cblack
Muted foreground
#6d6e5edimgray
#a0a191darkgray
Accent
#0e1516black
#0e1516black
Accent foreground
#99b9bddarkgray
#99b9bddarkgray
Destructive
#e63600orangered
#ff5724tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#160e15black
#160e15black

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.39:1AAA
Primary button7.60:1AAA
Secondary button9.39:1AAA
Muted text4.65:1AA
Accent8.82:1AAA
Destructive4.31:1AA Large
Dark mode
Text on background18.55:1AAA
Text on card18.71:1AAA
Primary button7.60:1AAA
Secondary button9.39:1AAA
Muted text7.13:1AAA
Accent8.82:1AAA
Destructive6.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.008 328.678);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.962 0.009 111.18);
  --muted-foreground: oklch(0.532 0.025 111.877);
  --popover: oklch(0.974 0.011 328.722);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.011 328.722);
  --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.177 0.018 329.671);
  --primary-foreground: oklch(0.726 0.06 329.475);
  --secondary: oklch(0.195 0.014 112.382);
  --secondary-foreground: oklch(0.785 0.048 112.154);
  --accent: oklch(0.188 0.01 204.7);
  --accent-foreground: oklch(0.763 0.035 204.726);
  --destructive: oklch(0.603 0.217 33.978);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.177 0.018 329.671);
  --chart-1: oklch(0.177 0.018 329.671);
  --chart-2: oklch(0.195 0.014 112.382);
  --chart-3: oklch(0.188 0.01 204.7);
  --chart-4: oklch(0.234 0.02 112.56);
  --chart-5: oklch(0.177 0.021 329.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.023 330.022);
  --foreground: oklch(0.975 0.009 328.695);
  --muted: oklch(0.181 0.013 112.3);
  --muted-foreground: oklch(0.704 0.023 111.628);
  --popover: oklch(0.152 0.027 330.299);
  --popover-foreground: oklch(0.983 0.006 328.66);
  --card: oklch(0.152 0.027 330.299);
  --card-foreground: oklch(0.983 0.006 328.66);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.177 0.018 329.671);
  --primary-foreground: oklch(0.726 0.06 329.475);
  --secondary: oklch(0.195 0.014 112.382);
  --secondary-foreground: oklch(0.785 0.048 112.154);
  --accent: oklch(0.188 0.01 204.7);
  --accent-foreground: oklch(0.763 0.035 204.726);
  --destructive: oklch(0.679 0.213 36.264);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.177 0.018 329.671);
  --chart-1: oklch(0.177 0.018 329.671);
  --chart-2: oklch(0.195 0.014 112.382);
  --chart-3: oklch(0.188 0.01 204.7);
  --chart-4: oklch(0.234 0.02 112.56);
  --chart-5: oklch(0.177 0.021 329.818);
}