One Monokai 80s Original for shadcn/ui

One Monokai 80s Original is a shadcn/ui theme built around a muted blue primary color (#b9bdc6) with muted blue accents (#49515f). The light mode uses a blue-tinted background (#282c34). Dark mode keeps the muted blue primary (#b9bdc6) on a blue-tinted background (#282c34).

Color palette

TokenLightDark
Background
#282c34darkslategray
#282c34darkslategray
Foreground
#bec2casilver
#bec2casilver
Card
#23272edarkslategray
#23272edarkslategray
Card foreground
#cdd0d6lightgrey
#cdd0d6lightgrey
Popover
#21252bdarkslategray
#21252bdarkslategray
Popover foreground
#dbdde1gainsboro
#dbdde1gainsboro
Primary
#b9bdc6silver
#b9bdc6silver
Primary foreground
#22252adarkslategray
#22252adarkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#31363fdarkslategray
#31363fdarkslategray
Muted foreground
#afb5c0silver
#afb5c0silver
Accent
#49515fdarkslategray
#49515fdarkslategray
Accent foreground
#ebeceflavender
#ebeceflavender
Destructive
#f55032tomato
#f55032tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#393a3cdarkslategray
#393a3cdarkslategray
Input
#404244darkslategray
#404244darkslategray
Ring
#b9bdc6silver
#b9bdc6silver

Contrast

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

Light mode
Text on background7.84:1AAA
Text on card9.68:1AAA
Primary button8.14:1AAA
Secondary button7.37:1AAA
Muted text5.89:1AA
Accent6.80:1AA
Destructive3.45:1AA Large
Dark mode
Text on background7.84:1AAA
Text on card9.68:1AAA
Primary button8.14:1AAA
Secondary button7.37:1AAA
Muted text5.89:1AA
Accent6.80:1AA
Destructive3.45:1AA Large

CSS variables

Paste this into your globals.css to use One Monokai 80s Original in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.292 0.016 264.298);
  --foreground: oklch(0.815 0.012 264.501);
  --muted: oklch(0.332 0.017 264.31);
  --muted-foreground: oklch(0.771 0.017 264.466);
  --popover: oklch(0.262 0.013 264.313);
  --popover-foreground: oklch(0.896 0.006 264.528);
  --card: oklch(0.272 0.014 264.308);
  --card-foreground: oklch(0.856 0.009 264.516);
  --border: oklch(0.348 0.004 264.509);
  --input: oklch(0.377 0.005 264.508);
  --primary: oklch(0.797 0.013 267.317);
  --primary-foreground: oklch(0.263 0.011 267.141);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.432 0.026 264.255);
  --accent-foreground: oklch(0.944 0.004 264.536);
  --destructive: oklch(0.657 0.207 32.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.797 0.013 267.317);
  --chart-1: oklch(0.797 0.013 267.317);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.432 0.026 264.255);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.795 0.017 267.282);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.292 0.016 264.298);
  --foreground: oklch(0.815 0.012 264.501);
  --muted: oklch(0.332 0.017 264.31);
  --muted-foreground: oklch(0.771 0.017 264.466);
  --popover: oklch(0.262 0.013 264.313);
  --popover-foreground: oklch(0.896 0.006 264.528);
  --card: oklch(0.272 0.014 264.308);
  --card-foreground: oklch(0.856 0.009 264.516);
  --border: oklch(0.348 0.004 264.509);
  --input: oklch(0.377 0.005 264.508);
  --primary: oklch(0.797 0.013 267.317);
  --primary-foreground: oklch(0.263 0.011 267.141);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.432 0.026 264.255);
  --accent-foreground: oklch(0.944 0.004 264.536);
  --destructive: oklch(0.657 0.207 32.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.797 0.013 267.317);
  --chart-1: oklch(0.797 0.013 267.317);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.432 0.026 264.255);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.795 0.017 267.282);
}