Spring Forth Harrier for shadcn/ui

Spring Forth Harrier is a shadcn/ui theme built around a vivid green primary color (#15c12c) with vivid red accents (#c12c15). The light mode uses a neutral background (#f7fcf8). Dark mode keeps the vivid green primary (#15c12c) on a green-tinted background (#050a06).

Color palette

TokenLightDark
Background
#f7fcf8mintcream
#050a06black
Foreground
#020d03black
#f5faf6whitesmoke
Card
#f7fcf8mintcream
#050a06black
Card foreground
#020d03black
#f5faf6whitesmoke
Popover
#f7fcf8mintcream
#050a06black
Popover foreground
#020d03black
#f5faf6whitesmoke
Primary
#15c12climegreen
#15c12climegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2c15c1mediumblue
#2c15c1mediumblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecebf5lavender
#0c0a14black
Muted foreground
#4c495adarkslategray
#a7a5b6darkgray
Accent
#c12c15firebrick
#c12c15firebrick
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#67270amaroon
#e95916chocolate
Destructive foreground
#f7c3ablightpink
#ffffffwhite
Border
#e8ede9linen
#191f1ablack
Input
#e8ede9linen
#191f1ablack
Ring
#15c12climegreen
#15c12climegreen

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button2.41:1Fail
Secondary button10.57:1AAA
Muted text7.36:1AAA
Accent5.77:1AA
Destructive7.14:1AAA
Dark mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button2.41:1Fail
Secondary button10.57:1AAA
Muted text8.12:1AAA
Accent5.77:1AA
Destructive3.55:1AA Large

CSS variables

Paste this into your globals.css to use Spring Forth Harrier in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.008 149.587);
  --foreground: oklch(0.144 0.033 148.013);
  --muted: oklch(0.943 0.013 292.28);
  --muted-foreground: oklch(0.415 0.027 291.288);
  --popover: oklch(0.987 0.008 149.587);
  --popover-foreground: oklch(0.144 0.033 148.013);
  --card: oklch(0.987 0.008 149.587);
  --card-foreground: oklch(0.144 0.033 148.013);
  --border: oklch(0.941 0.008 149.583);
  --input: oklch(0.941 0.008 149.583);
  --primary: oklch(0.705 0.224 143.835);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.394 0.236 272.847);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.531 0.188 31.615);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.362 0.1 41.961);
  --destructive-foreground: oklch(0.858 0.068 46.111);
  --ring: oklch(0.705 0.224 143.835);
  --chart-1: oklch(0.705 0.224 143.835);
  --chart-2: oklch(0.394 0.236 272.847);
  --chart-3: oklch(0.531 0.188 31.615);
  --chart-4: oklch(0.414 0.249 272.656);
  --chart-5: oklch(0.713 0.229 143.708);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.016 148.957);
  --foreground: oklch(0.98 0.008 149.588);
  --muted: oklch(0.154 0.021 289.833);
  --muted-foreground: oklch(0.73 0.023 291.933);
  --popover: oklch(0.137 0.016 148.957);
  --popover-foreground: oklch(0.98 0.008 149.588);
  --card: oklch(0.137 0.016 148.957);
  --card-foreground: oklch(0.98 0.008 149.588);
  --border: oklch(0.232 0.015 148.859);
  --input: oklch(0.232 0.015 148.859);
  --primary: oklch(0.705 0.224 143.835);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.394 0.236 272.847);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.531 0.188 31.615);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.646 0.192 40.55);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.705 0.224 143.835);
  --chart-1: oklch(0.705 0.224 143.835);
  --chart-2: oklch(0.394 0.236 272.847);
  --chart-3: oklch(0.531 0.188 31.615);
  --chart-4: oklch(0.414 0.249 272.656);
  --chart-5: oklch(0.713 0.229 143.708);
}