Jungle for shadcn/ui

Jungle is a shadcn/ui theme built around a muted green primary color (#a3baa1) with muted green accents (#a1baac). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the muted green primary (#a3baa1) on a green-tinted background (#040c04).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#040c04black
Foreground
#020901black
#f6f8f6whitesmoke
Card
#f4fbf3whitesmoke
#061005black
Card foreground
#010401black
#f9fbf9mintcream
Popover
#f8fdf7mintcream
#040c04black
Popover foreground
#020901black
#f6f8f6whitesmoke
Primary
#a3baa1darkgray
#a3baa1darkgray
Primary foreground
#121711black
#121711black
Secondary
#afbaa1darkgray
#afbaa1darkgray
Secondary foreground
#151711black
#151711black
Muted
#dcdfd8gainsboro
#242720black
Muted foreground
#5d6454dimgray
#a4ab9bdarkgray
Accent
#a1baacdarkgray
#a1baacdarkgray
Accent foreground
#111714black
#111714black
Destructive
#b1110bfirebrick
#eb160fred
Destructive foreground
#fef1f1lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a3baa1darkgray
#a3baa1darkgray

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.61:1AAA
Primary button8.70:1AAA
Secondary button8.88:1AAA
Muted text4.55:1AA
Accent8.73:1AAA
Destructive6.43:1AA
Dark mode
Text on background18.59:1AAA
Text on card18.68:1AAA
Primary button8.70:1AAA
Secondary button8.88:1AAA
Muted text6.38:1AA
Accent8.73:1AAA
Destructive4.51:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 143.587);
  --foreground: oklch(0.125 0.031 141.331);
  --muted: oklch(0.899 0.01 125.891);
  --muted-foreground: oklch(0.492 0.027 126.492);
  --popover: oklch(0.988 0.009 143.587);
  --popover-foreground: oklch(0.125 0.031 141.331);
  --card: oklch(0.981 0.014 143.563);
  --card-foreground: oklch(0.099 0.025 141.331);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.764 0.043 143.337);
  --primary-foreground: oklch(0.198 0.015 143.232);
  --secondary: oklch(0.773 0.036 126.372);
  --secondary-foreground: oklch(0.201 0.013 126.593);
  --accent: oklch(0.765 0.033 160.717);
  --accent-foreground: oklch(0.199 0.012 160.322);
  --destructive: oklch(0.484 0.19 29.101);
  --destructive-foreground: oklch(0.968 0.014 19.812);
  --ring: oklch(0.764 0.043 143.337);
  --chart-1: oklch(0.764 0.043 143.337);
  --chart-2: oklch(0.773 0.036 126.372);
  --chart-3: oklch(0.765 0.033 160.717);
  --chart-4: oklch(0.795 0.032 126.292);
  --chart-5: oklch(0.767 0.051 143.279);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.025 142.037);
  --foreground: oklch(0.978 0.004 143.615);
  --muted: oklch(0.268 0.014 126.433);
  --muted-foreground: oklch(0.732 0.025 126.194);
  --popover: oklch(0.14 0.025 142.037);
  --popover-foreground: oklch(0.978 0.004 143.615);
  --card: oklch(0.156 0.029 142.122);
  --card-foreground: oklch(0.986 0.003 143.622);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.764 0.043 143.337);
  --primary-foreground: oklch(0.198 0.015 143.232);
  --secondary: oklch(0.773 0.036 126.372);
  --secondary-foreground: oklch(0.201 0.013 126.593);
  --accent: oklch(0.765 0.033 160.717);
  --accent-foreground: oklch(0.199 0.012 160.322);
  --destructive: oklch(0.596 0.237 29.194);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.764 0.043 143.337);
  --chart-1: oklch(0.764 0.043 143.337);
  --chart-2: oklch(0.773 0.036 126.372);
  --chart-3: oklch(0.765 0.033 160.717);
  --chart-4: oklch(0.795 0.032 126.292);
  --chart-5: oklch(0.767 0.051 143.279);
}