Savannah for shadcn/ui

Savannah is a shadcn/ui theme built around a deep green primary color (#31552a) with muted green accents (#b3c4b1). The light mode uses a neutral background (#f8fdf6). Dark mode keeps the deep green primary (#31552a) on a green-tinted background (#070e06).

Color palette

TokenLightDark
Background
#f8fdf6mintcream
#070e06black
Foreground
#010401black
#f6faf5whitesmoke
Card
#f4fcf2honeydew
#091208black
Card foreground
#000000black
#f9fcf8mintcream
Popover
#f8fdf6mintcream
#070e06black
Popover foreground
#010401black
#f6faf5whitesmoke
Primary
#31552adarkslategray
#31552adarkslategray
Primary foreground
#d0e6cclightgrey
#d0e6cclightgrey
Secondary
#c9d1c7lightgrey
#2e3b2bdarkslategray
Secondary foreground
#30382edarkslategray
#c7d4c4lightgrey
Muted
#f0f6eewhitesmoke
#0a1109black
Muted foreground
#444c43darkslategray
#b5bcb3silver
Accent
#b3c4b1silver
#3e5c38darkolivegreen
Accent foreground
#1e261dblack
#deeadcgainsboro
Destructive
#901209darkred
#e11c0ered
Destructive foreground
#fcd2cfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#31552adarkslategray
#31552adarkslategray

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card20.10:1AAA
Primary button6.41:1AA
Secondary button7.73:1AAA
Muted text8.10:1AAA
Accent8.46:1AAA
Destructive6.70:1AA
Dark mode
Text on background18.50:1AAA
Text on card18.45:1AAA
Primary button6.41:1AA
Secondary button7.71:1AAA
Muted text9.87:1AAA
Accent6.08:1AA
Destructive4.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.011 141.041);
  --foreground: oklch(0.099 0.022 138.869);
  --muted: oklch(0.966 0.012 141.038);
  --muted-foreground: oklch(0.406 0.017 140.974);
  --popover: oklch(0.989 0.011 141.041);
  --popover-foreground: oklch(0.099 0.022 138.869);
  --card: oklch(0.983 0.016 141.029);
  --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.411 0.081 140.73);
  --primary-foreground: oklch(0.901 0.042 140.963);
  --secondary: oklch(0.851 0.015 141.026);
  --secondary-foreground: oklch(0.329 0.019 140.939);
  --accent: oklch(0.802 0.032 140.978);
  --accent-foreground: oklch(0.257 0.02 140.894);
  --destructive: oklch(0.418 0.16 29.683);
  --destructive-foreground: oklch(0.899 0.047 22.878);
  --ring: oklch(0.411 0.081 140.73);
  --chart-1: oklch(0.411 0.081 140.73);
  --chart-2: oklch(0.851 0.015 141.026);
  --chart-3: oklch(0.802 0.032 140.978);
  --chart-4: oklch(0.874 0.013 141.033);
  --chart-5: oklch(0.416 0.087 140.729);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.021 140.099);
  --foreground: oklch(0.98 0.008 141.047);
  --muted: oklch(0.166 0.019 140.717);
  --muted-foreground: oklch(0.787 0.014 141.025);
  --popover: oklch(0.154 0.021 140.099);
  --popover-foreground: oklch(0.98 0.008 141.047);
  --card: oklch(0.169 0.024 140.46);
  --card-foreground: oklch(0.987 0.006 141.053);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.411 0.081 140.73);
  --primary-foreground: oklch(0.901 0.042 140.963);
  --secondary: oklch(0.334 0.031 140.865);
  --secondary-foreground: oklch(0.855 0.025 141.001);
  --accent: oklch(0.44 0.067 140.768);
  --accent-foreground: oklch(0.924 0.022 141.014);
  --destructive: oklch(0.58 0.226 29.749);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.411 0.081 140.73);
  --chart-1: oklch(0.411 0.081 140.73);
  --chart-2: oklch(0.334 0.031 140.865);
  --chart-3: oklch(0.44 0.067 140.768);
  --chart-4: oklch(0.366 0.035 140.86);
  --chart-5: oklch(0.416 0.087 140.729);
}