Impala for shadcn/ui

Impala is a shadcn/ui theme built around a vivid light green primary color (#8ffe95) with neutral gray accents (#d1cccc). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the vivid light green primary (#8ffe95) on a green-tinted background (#050f06).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#050f06black
Foreground
#040c04black
#f4faf5whitesmoke
Card
#f7fdf7mintcream
#050f06black
Card foreground
#040c04black
#f4faf5whitesmoke
Popover
#f7fdf7mintcream
#050f06black
Popover foreground
#040c04black
#f4faf5whitesmoke
Primary
#8ffe95palegreen
#8ffe95palegreen
Primary foreground
#005b05darkgreen
#005b05darkgreen
Secondary
#e8e8e8lavender
#272b27darkslategray
Secondary foreground
#4f4f4fdarkslategray
#bfc5bfsilver
Muted
#f2e8e8linen
#0d170dblack
Muted foreground
#444040darkslategray
#bbbfbbsilver
Accent
#d1cccclightgrey
#344135darkslategray
Accent foreground
#393232darkslategray
#cfd8cflightgrey
Destructive
#672304maroon
#f55b14orangered
Destructive foreground
#fbbea2lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8ffe95palegreen
#8ffe95palegreen

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button6.73:1AA
Secondary button6.68:1AA
Muted text8.52:1AAA
Accent7.87:1AAA
Destructive7.12:1AAA
Dark mode
Text on background18.38:1AAA
Text on card18.38:1AAA
Primary button6.73:1AA
Secondary button8.20:1AAA
Muted text9.86:1AAA
Accent7.34:1AAA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 146.946);
  --foreground: oklch(0.14 0.025 145.639);
  --muted: oklch(0.939 0.011 17.35);
  --muted-foreground: oklch(0.377 0.005 17.398);
  --popover: oklch(0.988 0.01 146.946);
  --popover-foreground: oklch(0.14 0.025 145.639);
  --card: oklch(0.988 0.01 146.946);
  --card-foreground: oklch(0.14 0.025 145.639);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.907 0.175 145.005);
  --primary-foreground: oklch(0.41 0.137 142.984);
  --secondary: oklch(0.931 0 180);
  --secondary-foreground: oklch(0.428 0 180);
  --accent: oklch(0.849 0.006 17.284);
  --accent-foreground: oklch(0.325 0.009 17.635);
  --destructive: oklch(0.356 0.104 41.23);
  --destructive-foreground: oklch(0.851 0.08 45.988);
  --ring: oklch(0.907 0.175 145.005);
  --chart-1: oklch(0.907 0.175 145.005);
  --chart-2: oklch(0.931 0 180);
  --chart-3: oklch(0.849 0.006 17.284);
  --chart-4: oklch(0.954 0 180);
  --chart-5: oklch(0.91 0.179 144.951);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.027 145.563);
  --foreground: oklch(0.98 0.01 146.943);
  --muted: oklch(0.191 0.024 145.775);
  --muted-foreground: oklch(0.799 0.007 146.959);
  --popover: oklch(0.155 0.027 145.563);
  --popover-foreground: oklch(0.98 0.01 146.943);
  --card: oklch(0.155 0.027 145.563);
  --card-foreground: oklch(0.98 0.01 146.943);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.907 0.175 145.005);
  --primary-foreground: oklch(0.41 0.137 142.984);
  --secondary: oklch(0.283 0.009 146.735);
  --secondary-foreground: oklch(0.817 0.01 146.919);
  --accent: oklch(0.36 0.027 146.316);
  --accent-foreground: oklch(0.874 0.016 146.867);
  --destructive: oklch(0.668 0.202 40.184);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.907 0.175 145.005);
  --chart-1: oklch(0.907 0.175 145.005);
  --chart-2: oklch(0.283 0.009 146.735);
  --chart-3: oklch(0.36 0.027 146.316);
  --chart-4: oklch(0.314 0.01 146.723);
  --chart-5: oklch(0.91 0.179 144.951);
}