Impressionable for shadcn/ui

Impressionable is a shadcn/ui theme built around a vivid deep green primary color (#5d9004) with vivid deep green accents (#169004). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#5d9004) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0f1604black
#f8faf4whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#0f1604black
#f8faf4whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#0f1604black
#f8faf4whitesmoke
Primary
#5d9004olivedrab
#5d9004olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#907d04olive
#907d04olive
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f4f0whitesmoke
#0f0e0bblack
Muted foreground
#504f49darkslategray
#b6b5afdarkgray
Accent
#169004green
#169004green
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#602306maroon
#f26b2ctomato
Destructive foreground
#f9bc9flightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5d9004olivedrab
#5d9004olivedrab

Contrast

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

Light mode
Text on background18.47:1AAA
Text on card18.47:1AAA
Primary button3.84:1AA Large
Secondary button4.07:1AA Large
Muted text7.44:1AAA
Accent4.16:1AA Large
Destructive7.33:1AAA
Dark mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button3.84:1AA Large
Secondary button4.07:1AA Large
Muted text9.38:1AAA
Accent4.16:1AA Large
Destructive6.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.186 0.036 125.287);
  --muted: oklch(0.966 0.005 99.413);
  --muted-foreground: oklch(0.428 0.011 99.7);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.186 0.036 125.287);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.186 0.036 125.287);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.595 0.16 130.404);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.591 0.121 98.621);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.189 141.765);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.342 0.097 41.724);
  --destructive-foreground: oklch(0.843 0.081 45.972);
  --ring: oklch(0.595 0.16 130.404);
  --chart-1: oklch(0.595 0.16 130.404);
  --chart-2: oklch(0.591 0.121 98.621);
  --chart-3: oklch(0.569 0.189 141.765);
  --chart-4: oklch(0.634 0.13 98.525);
  --chart-5: oklch(0.601 0.163 130.599);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.008 123.053);
  --muted: oklch(0.164 0.007 99.945);
  --muted-foreground: oklch(0.773 0.009 99.517);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.008 123.053);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.008 123.053);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.595 0.16 130.404);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.591 0.121 98.621);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.189 141.765);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.683 0.182 42.482);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.595 0.16 130.404);
  --chart-1: oklch(0.595 0.16 130.404);
  --chart-2: oklch(0.591 0.121 98.621);
  --chart-3: oklch(0.569 0.189 141.765);
  --chart-4: oklch(0.634 0.13 98.525);
  --chart-5: oklch(0.601 0.163 130.599);
}