Plover for shadcn/ui

Plover is a shadcn/ui theme built around a deep green primary color (#152815) with neutral gray accents (#dadcda). The light mode uses a neutral background (#fbfefb). Dark mode keeps the deep green primary (#152815) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#fbfefbwhite
#010401black
Foreground
#020902black
#f8fcf8mintcream
Card
#f6fdf6mintcream
#020802black
Card foreground
#010401black
#fbfdfbsnow
Popover
#fbfefbwhite
#010401black
Popover foreground
#020902black
#f8fcf8mintcream
Primary
#152815black
#152815black
Primary foreground
#a1cea1darkseagreen
#a1cea1darkseagreen
Secondary
#dadcdagainsboro
#282e28darkslategray
Secondary foreground
#404440darkslategray
#c0c8c0silver
Muted
#dfecdfgainsboro
#132013black
Muted foreground
#5a6d5adimgray
#92a592darkseagreen
Accent
#dadcdagainsboro
#282e28darkslategray
Accent foreground
#404440darkslategray
#c0c8c0silver
Destructive
#66200amaroon
#d14115chocolate
Destructive foreground
#f7bdablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#152815black
#152815black

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.99:1AAA
Primary button8.79:1AAA
Secondary button7.21:1AAA
Muted text4.57:1AA
Accent7.21:1AAA
Destructive7.23:1AAA
Dark mode
Text on background19.88:1AAA
Text on card19.78:1AAA
Primary button8.79:1AAA
Secondary button8.07:1AAA
Muted text6.43:1AA
Accent8.07:1AAA
Destructive4.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.006 145.531);
  --foreground: oklch(0.123 0.03 143.523);
  --muted: oklch(0.93 0.023 145.383);
  --muted-foreground: oklch(0.514 0.039 144.98);
  --popover: oklch(0.994 0.006 145.531);
  --popover-foreground: oklch(0.123 0.03 143.523);
  --card: oklch(0.988 0.012 145.484);
  --card-foreground: oklch(0.098 0.023 143.523);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.255 0.043 144.185);
  --primary-foreground: oklch(0.807 0.077 144.818);
  --secondary: oklch(0.893 0.004 145.545);
  --secondary-foreground: oklch(0.383 0.008 145.407);
  --accent: oklch(0.893 0.004 145.545);
  --accent-foreground: oklch(0.383 0.008 145.407);
  --destructive: oklch(0.35 0.106 36.559);
  --destructive-foreground: oklch(0.846 0.071 37.6);
  --ring: oklch(0.255 0.043 144.185);
  --chart-1: oklch(0.255 0.043 144.185);
  --chart-2: oklch(0.893 0.004 145.545);
  --chart-3: oklch(0.893 0.004 145.545);
  --chart-4: oklch(0.916 0.003 145.552);
  --chart-5: oklch(0.257 0.047 144.066);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.019 143.898);
  --foreground: oklch(0.987 0.007 145.526);
  --muted: oklch(0.228 0.032 144.418);
  --muted-foreground: oklch(0.702 0.036 145.176);
  --popover: oklch(0.097 0.019 143.898);
  --popover-foreground: oklch(0.987 0.007 145.526);
  --card: oklch(0.122 0.024 143.898);
  --card-foreground: oklch(0.993 0.003 145.551);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.255 0.043 144.185);
  --primary-foreground: oklch(0.807 0.077 144.818);
  --secondary: oklch(0.295 0.014 145.215);
  --secondary-foreground: oklch(0.825 0.014 145.443);
  --accent: oklch(0.295 0.014 145.215);
  --accent-foreground: oklch(0.825 0.014 145.443);
  --destructive: oklch(0.578 0.188 35.819);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.043 144.185);
  --chart-1: oklch(0.255 0.043 144.185);
  --chart-2: oklch(0.295 0.014 145.215);
  --chart-3: oklch(0.295 0.014 145.215);
  --chart-4: oklch(0.326 0.016 145.202);
  --chart-5: oklch(0.257 0.047 144.066);
}