Material Monokai High Contrast for shadcn/ui

Material Monokai High Contrast is a shadcn/ui theme built around a vivid green primary color (#9dff00) with muted blue accents (#445964). The light mode uses a blue-tinted background (#253137). Dark mode keeps the vivid green primary (#9dff00) on a blue-tinted background (#253137).

Color palette

TokenLightDark
Background
#253137darkslategray
#253137darkslategray
Foreground
#ffffffwhite
#ffffffwhite
Card
#212b31darkslategray
#212b31darkslategray
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#1f292edarkslategray
#1f292edarkslategray
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#9dff00chartreuse
#9dff00chartreuse
Primary foreground
#1f3300darkgreen
#1f3300darkgreen
Secondary
#44532ddarkolivegreen
#44532ddarkolivegreen
Secondary foreground
#dbe4cdgainsboro
#dbe4cdgainsboro
Muted
#313a3fdarkslategray
#313a3fdarkslategray
Muted foreground
#afbac0silver
#afbac0silver
Accent
#445964darkslategray
#445964darkslategray
Accent foreground
#eaeef1lavender
#eaeef1lavender
Destructive
#ea413etomato
#ea413etomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#353c40darkslategray
#353c40darkslategray
Input
#3c4448darkslategray
#3c4448darkslategray
Ring
#9dff00chartreuse
#9dff00chartreuse

Contrast

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

Light mode
Text on background13.37:1AAA
Text on card14.38:1AAA
Primary button10.93:1AAA
Secondary button6.35:1AA
Muted text5.84:1AA
Accent6.25:1AA
Destructive3.95:1AA Large
Dark mode
Text on background13.37:1AAA
Text on card14.38:1AAA
Primary button10.93:1AAA
Secondary button6.35:1AA
Muted text5.84:1AA
Accent6.25:1AA
Destructive3.95:1AA Large

CSS variables

Paste this into your globals.css to use Material Monokai High Contrast in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.304 0.019 229.767);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.343 0.014 229.374);
  --muted-foreground: oklch(0.783 0.015 229.013);
  --popover: oklch(0.272 0.016 229.712);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.283 0.017 229.732);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.353 0.011 229.207);
  --input: oklch(0.382 0.012 229.219);
  --primary: oklch(0.904 0.251 131.952);
  --primary-foreground: oklch(0.293 0.078 129.134);
  --secondary: oklch(0.419 0.062 126.073);
  --secondary-foreground: oklch(0.907 0.032 124.169);
  --accent: oklch(0.452 0.031 229.918);
  --accent-foreground: oklch(0.947 0.006 228.83);
  --destructive: oklch(0.624 0.206 26.243);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.904 0.251 131.952);
  --chart-1: oklch(0.904 0.251 131.952);
  --chart-2: oklch(0.419 0.062 126.073);
  --chart-3: oklch(0.452 0.031 229.918);
  --chart-4: oklch(0.453 0.068 126.118);
  --chart-5: oklch(0.913 0.255 132.155);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.304 0.019 229.767);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.343 0.014 229.374);
  --muted-foreground: oklch(0.783 0.015 229.013);
  --popover: oklch(0.272 0.016 229.712);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.283 0.017 229.732);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.353 0.011 229.207);
  --input: oklch(0.382 0.012 229.219);
  --primary: oklch(0.904 0.251 131.952);
  --primary-foreground: oklch(0.293 0.078 129.134);
  --secondary: oklch(0.419 0.062 126.073);
  --secondary-foreground: oklch(0.907 0.032 124.169);
  --accent: oklch(0.452 0.031 229.918);
  --accent-foreground: oklch(0.947 0.006 228.83);
  --destructive: oklch(0.624 0.206 26.243);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.904 0.251 131.952);
  --chart-1: oklch(0.904 0.251 131.952);
  --chart-2: oklch(0.419 0.062 126.073);
  --chart-3: oklch(0.452 0.031 229.918);
  --chart-4: oklch(0.453 0.068 126.118);
  --chart-5: oklch(0.913 0.255 132.155);
}