Patch of Land Dormouse for shadcn/ui

Patch of Land Dormouse is a shadcn/ui theme built around a vivid deep green primary color (#204d00) with near-white accents (#ffffff). The light mode uses a neutral background (#ffffff). Dark mode switches to a muted orange primary (#6c5f56) on an orange-tinted background (#0e0a06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0a06black
Foreground
#170b03black
#fcfaf8snow
Card
#fcfcfcsnow
#120c08black
Card foreground
#120902black
#fdfcfbsnow
Popover
#ffffffwhite
#0e0a06black
Popover foreground
#170b03black
#fcfaf8snow
Primary
#204d00darkgreen
#6c5f56dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3d7317darkolivegreen
#6c5658dimgray
Secondary foreground
#faf9f9snow
#faf9f9snow
Muted
#afdc8flightgreen
#321a1cblack
Muted foreground
#000000black
#9e9495rosybrown
Accent
#ffffffwhite
#6c6a56dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#99160fdarkred
#ec453ctomato
Destructive foreground
#fce0dfmistyrose
#ffffffwhite
Border
#f4f2f0whitesmoke
#1d1916black
Input
#f4f2f0whitesmoke
#1d1916black
Ring
#6a9c89cadetblue
#6c5f56dimgray

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.28:1AAA
Primary button9.89:1AAA
Secondary button5.45:1AA
Muted text13.45:1AAA
Accent1.00:1Fail
Destructive6.80:1AA
Dark mode
Text on background18.96:1AAA
Text on card18.94:1AAA
Primary button6.13:1AA
Secondary button6.42:1AA
Muted text5.46:1AA
Accent5.47:1AA
Destructive3.83:1AA Large

CSS variables

Paste this into your globals.css to use Patch of Land Dormouse in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.165 0.028 63.783);
  --muted: oklch(0.844 0.113 132.991);
  --muted-foreground: oklch(0 0 0);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.165 0.028 63.783);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.151 0.025 67.532);
  --border: oklch(0.962 0.003 60.241);
  --input: oklch(0.962 0.003 60.241);
  --primary: oklch(0.373 0.112 136.561);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.499 0.134 135.6);
  --secondary-foreground: oklch(0.984 0.001 12.452);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.44 0.166 29.128);
  --destructive-foreground: oklch(0.929 0.031 21.332);
  --ring: oklch(0.652 0.061 168.707);
  --chart-1: oklch(0.323 0.103 253.885);
  --chart-2: oklch(0.427 0.14 254.977);
  --chart-3: oklch(0.522 0.177 255.83);
  --chart-4: oklch(0.654 0.145 251.013);
  --chart-5: oklch(0.807 0.091 249.496);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.012 63.261);
  --foreground: oklch(0.985 0.003 60.237);
  --muted: oklch(0.252 0.039 15.95);
  --muted-foreground: oklch(0.675 0.012 12.802);
  --popover: oklch(0.148 0.012 63.261);
  --popover-foreground: oklch(0.985 0.003 60.237);
  --card: oklch(0.161 0.014 60.147);
  --card-foreground: oklch(0.993 0.002 60.26);
  --border: oklch(0.217 0.009 59.722);
  --input: oklch(0.217 0.009 59.722);
  --primary: oklch(0.496 0.021 59.685);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.476 0.028 13.688);
  --secondary-foreground: oklch(0.984 0.001 12.452);
  --accent: oklch(0.52 0.03 104.018);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.205 27.671);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.496 0.021 59.685);
  --chart-1: oklch(0.496 0.021 59.685);
  --chart-2: oklch(0.476 0.028 13.688);
  --chart-3: oklch(0.52 0.03 104.018);
  --chart-4: oklch(0.502 0.03 13.701);
  --chart-5: oklch(0.497 0.027 59.512);
}