Monokai Pro (Filter Ristretto) for shadcn/ui

Monokai Pro (Filter Ristretto) is a shadcn/ui theme built around a vivid yellow primary color (#f9cc6c) with muted red accents (#564848). The light mode uses a red-tinted background (#2c2525). Dark mode keeps the vivid yellow primary (#f9cc6c) on a red-tinted background (#2c2525).

Color palette

TokenLightDark
Background
#2c2525darkslategray
#2c2525darkslategray
Foreground
#fff0f2lavenderblush
#fff0f2lavenderblush
Card
#272020black
#272020black
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#241e1eblack
#241e1eblack
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#f9cc6csandybrown
#f9cc6csandybrown
Primary foreground
#312202black
#312202black
Secondary
#53472ddarkolivegreen
#53472ddarkolivegreen
Secondary foreground
#e4ddcdgainsboro
#e4ddcdgainsboro
Muted
#392d2ddarkslategray
#392d2ddarkslategray
Muted foreground
#bca9a9darkgray
#bca9a9darkgray
Accent
#564848darkslategray
#564848darkslategray
Accent foreground
#eae6e6linen
#eae6e6linen
Destructive
#e71408red
#e71408red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#363636darkslategray
#363636darkslategray
Input
#3d3d3ddarkslategray
#3d3d3ddarkslategray
Ring
#f9cc6csandybrown
#f9cc6csandybrown

Contrast

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

Light mode
Text on background13.54:1AAA
Text on card15.91:1AAA
Primary button10.22:1AAA
Secondary button6.75:1AA
Muted text5.91:1AA
Accent7.01:1AAA
Destructive4.65:1AA
Dark mode
Text on background13.54:1AAA
Text on card15.91:1AAA
Primary button10.22:1AAA
Secondary button6.75:1AA
Muted text5.91:1AA
Accent7.01:1AAA
Destructive4.65:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.273 0.011 17.849);
  --foreground: oklch(0.967 0.017 7.031);
  --muted: oklch(0.31 0.018 18.169);
  --muted-foreground: oklch(0.752 0.021 17.636);
  --popover: oklch(0.243 0.009 17.807);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.253 0.01 17.823);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.331 0 180);
  --input: oklch(0.361 0 180);
  --primary: oklch(0.866 0.125 84.772);
  --primary-foreground: oklch(0.264 0.052 82.953);
  --secondary: oklch(0.402 0.043 85.664);
  --secondary-foreground: oklch(0.899 0.022 86.082);
  --accent: oklch(0.416 0.019 17.958);
  --accent-foreground: oklch(0.928 0.004 17.238);
  --destructive: oklch(0.588 0.235 29.509);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.866 0.125 84.772);
  --chart-1: oklch(0.866 0.125 84.772);
  --chart-2: oklch(0.402 0.043 85.664);
  --chart-3: oklch(0.416 0.019 17.958);
  --chart-4: oklch(0.434 0.048 85.638);
  --chart-5: oklch(0.87 0.128 84.655);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.273 0.011 17.849);
  --foreground: oklch(0.967 0.017 7.031);
  --muted: oklch(0.31 0.018 18.169);
  --muted-foreground: oklch(0.752 0.021 17.636);
  --popover: oklch(0.243 0.009 17.807);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.253 0.01 17.823);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.331 0 180);
  --input: oklch(0.361 0 180);
  --primary: oklch(0.866 0.125 84.772);
  --primary-foreground: oklch(0.264 0.052 82.953);
  --secondary: oklch(0.402 0.043 85.664);
  --secondary-foreground: oklch(0.899 0.022 86.082);
  --accent: oklch(0.416 0.019 17.958);
  --accent-foreground: oklch(0.928 0.004 17.238);
  --destructive: oklch(0.588 0.235 29.509);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.866 0.125 84.772);
  --chart-1: oklch(0.866 0.125 84.772);
  --chart-2: oklch(0.402 0.043 85.664);
  --chart-3: oklch(0.416 0.019 17.958);
  --chart-4: oklch(0.434 0.048 85.638);
  --chart-5: oklch(0.87 0.128 84.655);
}