βui - Monokai Pro for shadcn/ui

βui - Monokai Pro is a shadcn/ui theme built around a vivid yellow primary color (#e6ac00) with neutral gray accents (#534d56). The light mode uses a neutral background (#2c292e). Dark mode keeps the vivid yellow primary (#e6ac00) on a neutral background (#2c292e).

Color palette

TokenLightDark
Background
#2c292edarkslategray
#2c292edarkslategray
Foreground
#fbfbf9snow
#fbfbf9snow
Card
#272429darkslategray
#272429darkslategray
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#242226darkslategray
#242226darkslategray
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#e6ac00orange
#e6ac00orange
Primary foreground
#1a1300black
#1a1300black
Secondary
#53492ddarkolivegreen
#53492ddarkolivegreen
Secondary foreground
#e4decdgainsboro
#e4decdgainsboro
Muted
#372f3cdarkslategray
#372f3cdarkslategray
Muted foreground
#b7acbesilver
#b7acbesilver
Accent
#534d56darkslategray
#534d56darkslategray
Accent foreground
#ebe9eclavender
#ebe9eclavender
Destructive
#ff4019orangered
#ff4019orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#383838darkslategray
#383838darkslategray
Input
#404040darkslategray
#404040darkslategray
Ring
#e6ac00orange
#e6ac00orange

Contrast

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

Light mode
Text on background13.88:1AAA
Text on card15.34:1AAA
Primary button9.02:1AAA
Secondary button6.60:1AA
Muted text5.90:1AA
Accent6.81:1AA
Destructive3.50:1AA Large
Dark mode
Text on background13.88:1AAA
Text on card15.34:1AAA
Primary button9.02:1AAA
Secondary button6.60:1AA
Muted text5.90:1AA
Accent6.81:1AA
Destructive3.50:1AA Large

CSS variables

Paste this into your globals.css to use βui - Monokai Pro in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.285 0.01 312.089);
  --foreground: oklch(0.987 0.003 106.449);
  --muted: oklch(0.319 0.025 311.783);
  --muted-foreground: oklch(0.759 0.028 312.088);
  --popover: oklch(0.255 0.009 312.103);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.265 0.009 312.098);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.341 0 158.199);
  --input: oklch(0.371 0 168.69);
  --primary: oklch(0.777 0.159 84.384);
  --primary-foreground: oklch(0.19 0.039 93.847);
  --secondary: oklch(0.408 0.046 91.7);
  --secondary-foreground: oklch(0.902 0.024 91.62);
  --accent: oklch(0.428 0.018 312.054);
  --accent-foreground: oklch(0.937 0.004 312.329);
  --destructive: oklch(0.656 0.231 32.709);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.777 0.159 84.384);
  --chart-1: oklch(0.777 0.159 84.384);
  --chart-2: oklch(0.408 0.046 91.7);
  --chart-3: oklch(0.428 0.018 312.054);
  --chart-4: oklch(0.441 0.05 91.686);
  --chart-5: oklch(0.784 0.161 83.976);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.285 0.01 312.089);
  --foreground: oklch(0.987 0.003 106.449);
  --muted: oklch(0.319 0.025 311.783);
  --muted-foreground: oklch(0.759 0.028 312.088);
  --popover: oklch(0.255 0.009 312.103);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.265 0.009 312.098);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.341 0 158.199);
  --input: oklch(0.371 0 168.69);
  --primary: oklch(0.777 0.159 84.384);
  --primary-foreground: oklch(0.19 0.039 93.847);
  --secondary: oklch(0.408 0.046 91.7);
  --secondary-foreground: oklch(0.902 0.024 91.62);
  --accent: oklch(0.428 0.018 312.054);
  --accent-foreground: oklch(0.937 0.004 312.329);
  --destructive: oklch(0.656 0.231 32.709);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.777 0.159 84.384);
  --chart-1: oklch(0.777 0.159 84.384);
  --chart-2: oklch(0.408 0.046 91.7);
  --chart-3: oklch(0.428 0.018 312.054);
  --chart-4: oklch(0.441 0.05 91.686);
  --chart-5: oklch(0.784 0.161 83.976);
}