Medieval Tunic Green for shadcn/ui

Medieval Tunic Green is a shadcn/ui theme built around a vivid green primary color (#00cc00) with neutral gray accents (#333333). The light mode uses a neutral background (#0d0d0d). Dark mode keeps the vivid green primary (#00cc00) on a neutral background (#0d0d0d).

Color palette

TokenLightDark
Background
#0d0d0dblack
#0d0d0dblack
Foreground
#00cc00lime
#00cc00lime
Card
#080808black
#080808black
Card foreground
#00e600lime
#00e600lime
Popover
#050505black
#050505black
Popover foreground
#00ff00lime
#00ff00lime
Primary
#00cc00lime
#00cc00lime
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#acd2acsilver
#acd2acsilver
Secondary foreground
#1b321bdarkslategray
#1b321bdarkslategray
Muted
#2b2222darkslategray
#2b2222darkslategray
Muted foreground
#b09b9brosybrown
#b09b9brosybrown
Accent
#333333darkslategray
#333333darkslategray
Accent foreground
#cccccclightgrey
#cccccclightgrey
Destructive
#ec200ered
#ec200ered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#1a1a1ablack
#1a1a1ablack
Input
#212121black
#212121black
Ring
#00cc00lime
#00cc00lime

Contrast

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

Light mode
Text on background8.93:1AAA
Text on card11.77:1AAA
Primary button2.17:1Fail
Secondary button8.30:1AAA
Muted text5.93:1AA
Accent7.86:1AAA
Destructive4.38:1AA Large
Dark mode
Text on background8.93:1AAA
Text on card11.77:1AAA
Primary button2.17:1Fail
Secondary button8.30:1AAA
Muted text5.93:1AA
Accent7.86:1AAA
Destructive4.38:1AA Large

CSS variables

Paste this into your globals.css to use Medieval Tunic Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.158 0 169.695);
  --foreground: oklch(0.732 0.249 142.495);
  --muted: oklch(0.261 0.014 18.092);
  --muted-foreground: oklch(0.708 0.025 17.766);
  --popover: oklch(0.116 0 180);
  --popover-foreground: oklch(0.866 0.295 142.495);
  --card: oklch(0.132 0 165.964);
  --card-foreground: oklch(0.8 0.272 142.495);
  --border: oklch(0.216 0 180);
  --input: oklch(0.248 0 173.29);
  --primary: oklch(0.732 0.249 142.495);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.827 0.067 144.943);
  --secondary-foreground: oklch(0.29 0.05 144.144);
  --accent: oklch(0.321 0 180);
  --accent-foreground: oklch(0.845 0 164.055);
  --destructive: oklch(0.602 0.234 30.079);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.249 142.495);
  --chart-1: oklch(0.732 0.249 142.495);
  --chart-2: oklch(0.827 0.067 144.943);
  --chart-3: oklch(0.321 0 180);
  --chart-4: oklch(0.848 0.058 145.038);
  --chart-5: oklch(0.74 0.253 142.485);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0 169.695);
  --foreground: oklch(0.732 0.249 142.495);
  --muted: oklch(0.261 0.014 18.092);
  --muted-foreground: oklch(0.708 0.025 17.766);
  --popover: oklch(0.116 0 180);
  --popover-foreground: oklch(0.866 0.295 142.495);
  --card: oklch(0.132 0 165.964);
  --card-foreground: oklch(0.8 0.272 142.495);
  --border: oklch(0.216 0 180);
  --input: oklch(0.248 0 173.29);
  --primary: oklch(0.732 0.249 142.495);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.827 0.067 144.943);
  --secondary-foreground: oklch(0.29 0.05 144.144);
  --accent: oklch(0.321 0 180);
  --accent-foreground: oklch(0.845 0 164.055);
  --destructive: oklch(0.602 0.234 30.079);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.249 142.495);
  --chart-1: oklch(0.732 0.249 142.495);
  --chart-2: oklch(0.827 0.067 144.943);
  --chart-3: oklch(0.321 0 180);
  --chart-4: oklch(0.848 0.058 145.038);
  --chart-5: oklch(0.74 0.253 142.485);
}