Hedgehog for shadcn/ui

Hedgehog is a shadcn/ui theme built around a vivid green primary color (#01b256) with vivid teal accents (#01b2af). The light mode uses a neutral background (#f6fdfa). Dark mode keeps the vivid green primary (#01b256) on a green-tinted background (#050b08).

Color palette

TokenLightDark
Background
#f6fdfamintcream
#050b08black
Foreground
#010402black
#f9fbfamintcream
Card
#f6fdfamintcream
#050b08black
Card foreground
#010402black
#f9fbfamintcream
Popover
#f6fdfamintcream
#050b08black
Popover foreground
#010402black
#f9fbfamintcream
Primary
#01b256seagreen
#01b256seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#04b201green
#04b201green
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d8eed8gainsboro
#112711black
Muted foreground
#3d423ddarkslategray
#bdc2bdsilver
Accent
#01b2aflightseagreen
#01b2aflightseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d54810chocolate
#f06c38tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#01b256seagreen
#01b256seagreen

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button2.80:1Fail
Secondary button2.86:1Fail
Muted text8.38:1AAA
Accent2.64:1Fail
Destructive4.39:1AA Large
Dark mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button2.80:1Fail
Secondary button2.86:1Fail
Muted text8.77:1AAA
Accent2.64:1Fail
Destructive6.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 164.059);
  --foreground: oklch(0.099 0.015 164.414);
  --muted: oklch(0.927 0.037 144.816);
  --muted-foreground: oklch(0.374 0.011 144.895);
  --popover: oklch(0.989 0.009 164.059);
  --popover-foreground: oklch(0.099 0.015 164.414);
  --card: oklch(0.989 0.009 164.059);
  --card-foreground: oklch(0.099 0.015 164.414);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.667 0.179 150.976);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.661 0.224 142.44);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.689 0.118 192.665);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.594 0.187 38.114);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.667 0.179 150.976);
  --chart-1: oklch(0.667 0.179 150.976);
  --chart-2: oklch(0.661 0.224 142.44);
  --chart-3: oklch(0.689 0.118 192.665);
  --chart-4: oklch(0.702 0.238 142.445);
  --chart-5: oklch(0.674 0.183 150.709);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.014 164.309);
  --foreground: oklch(0.986 0.003 164.219);
  --muted: oklch(0.248 0.049 143.593);
  --muted-foreground: oklch(0.808 0.009 145.023);
  --popover: oklch(0.139 0.014 164.309);
  --popover-foreground: oklch(0.986 0.003 164.219);
  --card: oklch(0.139 0.014 164.309);
  --card-foreground: oklch(0.986 0.003 164.219);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.667 0.179 150.976);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.661 0.224 142.44);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.689 0.118 192.665);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.684 0.176 40.703);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.667 0.179 150.976);
  --chart-1: oklch(0.667 0.179 150.976);
  --chart-2: oklch(0.661 0.224 142.44);
  --chart-3: oklch(0.689 0.118 192.665);
  --chart-4: oklch(0.702 0.238 142.445);
  --chart-5: oklch(0.674 0.183 150.709);
}