Toxic Green Hare for shadcn/ui

Toxic Green Hare is a shadcn/ui theme built around a green primary color (#52c62f) with muted light green accents (#cbdcc6). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#60e039) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fcfefbwhite
#020401black
Foreground
#000000black
#f7f8f7whitesmoke
Card
#fcfefbwhite
#020401black
Card foreground
#000000black
#f7f8f7whitesmoke
Popover
#fcfefbwhite
#020401black
Popover foreground
#000000black
#f7f8f7whitesmoke
Primary
#52c62flimegreen
#60e039limegreen
Primary foreground
#0e2108black
#0e2108black
Secondary
#dde6dbgainsboro
#181d16black
Secondary foreground
#40553adarkslategray
#adbda8darkgray
Muted
#d7ebd1gainsboro
#1a2e14black
Muted foreground
#5e6d5adimgray
#96a592darkseagreen
Accent
#cbdcc6lightgrey
#243220darkslategray
Accent foreground
#31462bdarkslategray
#bbcfb4silver
Destructive
#c9290dfirebrick
#f0310forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eff0efwhitesmoke
#252824darkslategray
Input
#eff0efwhitesmoke
#252824darkslategray
Ring
#52c62flimegreen
#52c62flimegreen

Contrast

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

Light mode
Text on background20.70:1AAA
Text on card20.70:1AAA
Primary button7.66:1AAA
Secondary button6.37:1AA
Muted text4.38:1AA Large
Accent7.15:1AAA
Destructive5.50:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button9.82:1AAA
Secondary button8.66:1AAA
Muted text5.57:1AA
Accent8.20:1AAA
Destructive4.08:1AA Large

CSS variables

Paste this into your globals.css to use Toxic Green Hare in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.005 138.336);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.918 0.041 138.38);
  --muted-foreground: oklch(0.517 0.036 138.411);
  --popover: oklch(0.995 0.005 138.336);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.995 0.005 138.336);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.955 0.002 138.333);
  --input: oklch(0.955 0.002 138.333);
  --primary: oklch(0.732 0.212 139.664);
  --primary-foreground: oklch(0.224 0.052 138.858);
  --secondary: oklch(0.916 0.018 138.351);
  --secondary-foreground: oklch(0.424 0.051 138.5);
  --accent: oklch(0.876 0.035 138.373);
  --accent-foreground: oklch(0.367 0.052 138.551);
  --destructive: oklch(0.544 0.199 31.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.212 139.664);
  --chart-1: oklch(0.732 0.212 139.664);
  --chart-2: oklch(0.916 0.018 138.351);
  --chart-3: oklch(0.876 0.035 138.373);
  --chart-4: oklch(0.937 0.014 138.345);
  --chart-5: oklch(0.741 0.219 139.779);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.018 136.567);
  --foreground: oklch(0.978 0.003 138.333);
  --muted: oklch(0.278 0.053 138.73);
  --muted-foreground: oklch(0.706 0.033 138.382);
  --popover: oklch(0.099 0.018 136.567);
  --popover-foreground: oklch(0.978 0.003 138.333);
  --card: oklch(0.099 0.018 136.567);
  --card-foreground: oklch(0.978 0.003 138.333);
  --border: oklch(0.273 0.008 138.362);
  --input: oklch(0.273 0.008 138.362);
  --primary: oklch(0.803 0.23 139.597);
  --primary-foreground: oklch(0.224 0.052 138.858);
  --secondary: oklch(0.223 0.016 138.414);
  --secondary-foreground: oklch(0.78 0.035 138.379);
  --accent: oklch(0.298 0.037 138.507);
  --accent-foreground: oklch(0.832 0.043 138.388);
  --destructive: oklch(0.618 0.228 31.834);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.212 139.664);
  --chart-1: oklch(0.803 0.23 139.597);
  --chart-2: oklch(0.223 0.016 138.414);
  --chart-3: oklch(0.298 0.037 138.507);
  --chart-4: oklch(0.257 0.02 138.423);
  --chart-5: oklch(0.81 0.236 139.691);
}