Monokai (WoW) for shadcn/ui

Monokai (WoW) is a shadcn/ui theme built around a light yellow primary color (#f8f8f2) with muted green accents (#515346). The light mode uses a green-tinted background (#282923). Dark mode keeps the light yellow primary (#f8f8f2) on a green-tinted background (#282923).

Color palette

TokenLightDark
Background
#282923darkslategray
#282923darkslategray
Foreground
#f8f8f2whitesmoke
#f8f8f2whitesmoke
Card
#23241eblack
#23241eblack
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#20211cblack
#20211cblack
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#f8f8f2whitesmoke
#f8f8f2whitesmoke
Primary foreground
#35351ddarkslategray
#35351ddarkslategray
Secondary
#4d4d33darkolivegreen
#4d4d33darkolivegreen
Secondary foreground
#e0e0d1gainsboro
#e0e0d1gainsboro
Muted
#34362bdarkslategray
#34362bdarkslategray
Muted foreground
#b6b9a6darkgray
#b6b9a6darkgray
Accent
#515346darkolivegreen
#515346darkolivegreen
Accent foreground
#e7e8e3gainsboro
#e7e8e3gainsboro
Destructive
#fd352borangered
#fd352borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#333333darkslategray
#333333darkslategray
Input
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Ring
#f8f8f2whitesmoke
#f8f8f2whitesmoke

Contrast

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

Light mode
Text on background13.70:1AAA
Text on card15.66:1AAA
Primary button11.72:1AAA
Secondary button6.54:1AA
Muted text6.11:1AA
Accent6.40:1AA
Destructive3.66:1AA Large
Dark mode
Text on background13.70:1AAA
Text on card15.66:1AAA
Primary button11.72:1AAA
Secondary button6.54:1AA
Muted text6.11:1AA
Accent6.40:1AA
Destructive3.66:1AA Large

CSS variables

Paste this into your globals.css to use Monokai (WoW) in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.279 0.011 114.799);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.328 0.02 115.195);
  --muted-foreground: oklch(0.779 0.027 114.697);
  --popover: oklch(0.245 0.009 114.756);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.257 0.01 114.772);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.321 0 180);
  --input: oklch(0.351 0 167.471);
  --primary: oklch(0.977 0.008 106.548);
  --primary-foreground: oklch(0.322 0.04 108.432);
  --secondary: oklch(0.411 0.04 108.031);
  --secondary-foreground: oklch(0.904 0.02 106.802);
  --accent: oklch(0.435 0.02 114.906);
  --accent-foreground: oklch(0.928 0.005 114.176);
  --destructive: oklch(0.646 0.234 28.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.008 106.548);
  --chart-1: oklch(0.977 0.008 106.548);
  --chart-2: oklch(0.411 0.04 108.031);
  --chart-3: oklch(0.435 0.02 114.906);
  --chart-4: oklch(0.444 0.044 108.055);
  --chart-5: oklch(0.978 0.009 106.563);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.279 0.011 114.799);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.328 0.02 115.195);
  --muted-foreground: oklch(0.779 0.027 114.697);
  --popover: oklch(0.245 0.009 114.756);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.257 0.01 114.772);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.321 0 180);
  --input: oklch(0.351 0 167.471);
  --primary: oklch(0.977 0.008 106.548);
  --primary-foreground: oklch(0.322 0.04 108.432);
  --secondary: oklch(0.411 0.04 108.031);
  --secondary-foreground: oklch(0.904 0.02 106.802);
  --accent: oklch(0.435 0.02 114.906);
  --accent-foreground: oklch(0.928 0.005 114.176);
  --destructive: oklch(0.646 0.234 28.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.008 106.548);
  --chart-1: oklch(0.977 0.008 106.548);
  --chart-2: oklch(0.411 0.04 108.031);
  --chart-3: oklch(0.435 0.02 114.906);
  --chart-4: oklch(0.444 0.044 108.055);
  --chart-5: oklch(0.978 0.009 106.563);
}