Lone Hunter Leech for shadcn/ui

Lone Hunter Leech is a shadcn/ui theme built around a green primary color (#90c846) with violet accents (#7f46c8). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#90c846) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfefbwhite
#030302black
Foreground
#030401black
#ffffffwhite
Card
#fafcf8snow
#050703black
Card foreground
#000000black
#ffffffwhite
Popover
#fafcf8snow
#050703black
Popover foreground
#000000black
#ffffffwhite
Primary
#90c846yellowgreen
#90c846yellowgreen
Primary foreground
#24330fdarkgreen
#24330fdarkgreen
Secondary
#7f46c8slateblue
#7f46c8slateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eae6eflavender
#141019black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#7f46c8slateblue
#7f46c8slateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#81130emaroon
#ec4f46tomato
Destructive foreground
#f9cac8pink
#ffffffwhite
Border
#ebece9linen
#1c1e1ablack
Input
#ebece9linen
#1c1e1ablack
Ring
#90c846yellowgreen
#90c846yellowgreen

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.35:1AAA
Primary button6.76:1AA
Secondary button5.80:1AA
Muted text8.44:1AAA
Accent5.80:1AA
Destructive7.01:1AAA
Dark mode
Text on background20.60:1AAA
Text on card20.23:1AAA
Primary button6.76:1AA
Secondary button5.80:1AA
Muted text10.21:1AAA
Accent5.80:1AA
Destructive3.65:1AA Large

CSS variables

Paste this into your globals.css to use Lone Hunter Leech in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 125.78);
  --foreground: oklch(0.1 0.014 124.963);
  --muted: oklch(0.931 0.012 305.566);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.989 0.006 125.822);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.006 125.822);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.941 0.004 125.797);
  --input: oklch(0.941 0.004 125.797);
  --primary: oklch(0.768 0.169 129.684);
  --primary-foreground: oklch(0.298 0.061 129.196);
  --secondary: oklch(0.529 0.192 299.709);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.529 0.192 299.709);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.39 0.145 28.97);
  --destructive-foreground: oklch(0.88 0.054 21.749);
  --ring: oklch(0.768 0.169 129.684);
  --chart-1: oklch(0.768 0.169 129.684);
  --chart-2: oklch(0.529 0.192 299.709);
  --chart-3: oklch(0.529 0.192 299.709);
  --chart-4: oklch(0.557 0.181 300.601);
  --chart-5: oklch(0.776 0.176 129.901);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.009 125.189);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.018 304.406);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.123 0.012 125.189);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.012 125.189);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.232 0.008 126.195);
  --input: oklch(0.232 0.008 126.195);
  --primary: oklch(0.768 0.169 129.684);
  --primary-foreground: oklch(0.298 0.061 129.196);
  --secondary: oklch(0.529 0.192 299.709);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.529 0.192 299.709);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.642 0.195 27.05);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.768 0.169 129.684);
  --chart-1: oklch(0.768 0.169 129.684);
  --chart-2: oklch(0.529 0.192 299.709);
  --chart-3: oklch(0.529 0.192 299.709);
  --chart-4: oklch(0.557 0.181 300.601);
  --chart-5: oklch(0.776 0.176 129.901);
}