Jungle for shadcn/ui

Jungle is a shadcn/ui theme built around a near-black primary color (#020104) with near-black accents (#030401). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the near-black primary (#020104) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfewhite
#000000black
Foreground
#040109black
#fcfcfdwhite
Card
#f9f7fcghostwhite
#030303black
Card foreground
#020104black
#ffffffwhite
Popover
#fcfbfewhite
#000000black
Popover foreground
#040109black
#fcfcfdwhite
Primary
#020104black
#020104black
Primary foreground
#c1aaf3plum
#c1aaf3plum
Secondary
#030401black
#030401black
Secondary foreground
#85b71ayellowgreen
#85b71ayellowgreen
Muted
#e1e6d6gainsboro
#242919black
Muted foreground
#464842darkslategray
#bbbdb7silver
Accent
#030401black
#030401black
Accent foreground
#85b71ayellowgreen
#85b71ayellowgreen
Destructive
#6a1306maroon
#f35239tomato
Destructive foreground
#fab3a8lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020104black
#020104black

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card19.62:1AAA
Primary button10.23:1AAA
Secondary button8.58:1AAA
Muted text7.26:1AAA
Accent8.58:1AAA
Destructive7.05:1AAA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button10.23:1AAA
Secondary button8.58:1AAA
Muted text7.86:1AAA
Accent8.58:1AAA
Destructive6.10:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 300.711);
  --foreground: oklch(0.092 0.03 301.376);
  --muted: oklch(0.916 0.022 121.163);
  --muted-foreground: oklch(0.397 0.009 121.157);
  --popover: oklch(0.99 0.003 300.711);
  --popover-foreground: oklch(0.092 0.03 301.376);
  --card: oklch(0.98 0.007 300.653);
  --card-foreground: oklch(0.073 0.024 301.376);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.073 0.024 301.363);
  --primary-foreground: oklch(0.784 0.104 298.514);
  --secondary: oklch(0.105 0.02 120.469);
  --secondary-foreground: oklch(0.718 0.178 127.111);
  --accent: oklch(0.105 0.02 120.469);
  --accent-foreground: oklch(0.718 0.178 127.111);
  --destructive: oklch(0.343 0.122 31.758);
  --destructive-foreground: oklch(0.831 0.085 28.795);
  --ring: oklch(0.073 0.024 301.363);
  --chart-1: oklch(0.073 0.024 301.363);
  --chart-2: oklch(0.105 0.02 120.469);
  --chart-3: oklch(0.105 0.02 120.469);
  --chart-4: oklch(0.171 0.033 122.557);
  --chart-5: oklch(0.073 0.025 301.403);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 300.75);
  --muted: oklch(0.271 0.029 122.601);
  --muted-foreground: oklch(0.795 0.008 120.931);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 300.75);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.073 0.024 301.363);
  --primary-foreground: oklch(0.784 0.104 298.514);
  --secondary: oklch(0.105 0.02 120.469);
  --secondary-foreground: oklch(0.718 0.178 127.111);
  --accent: oklch(0.105 0.02 120.469);
  --accent-foreground: oklch(0.718 0.178 127.111);
  --destructive: oklch(0.657 0.202 31.493);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.073 0.024 301.363);
  --chart-1: oklch(0.073 0.024 301.363);
  --chart-2: oklch(0.105 0.02 120.469);
  --chart-3: oklch(0.105 0.02 120.469);
  --chart-4: oklch(0.171 0.033 122.557);
  --chart-5: oklch(0.073 0.025 301.403);
}