βui - Monokai Machine for shadcn/ui

βui - Monokai Machine is a shadcn/ui theme built around a vivid light teal primary color (#f0fffb) with muted blue accents (#485861). The light mode uses a blue-tinted background (#273035). Dark mode keeps the vivid light teal primary (#f0fffb) on a blue-tinted background (#273035).

Color palette

TokenLightDark
Background
#273035darkslategray
#273035darkslategray
Foreground
#f0fffbazure
#f0fffbazure
Card
#232b2fdarkslategray
#232b2fdarkslategray
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#21282cdarkslategray
#21282cdarkslategray
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#f0fffbazure
#f0fffbazure
Primary foreground
#005742darkslategray
#005742darkslategray
Secondary
#2d534adarkslategray
#2d534adarkslategray
Secondary foreground
#cde4dfgainsboro
#cde4dfgainsboro
Muted
#313a3fdarkslategray
#313a3fdarkslategray
Muted foreground
#afbac0silver
#afbac0silver
Accent
#485861darkslategray
#485861darkslategray
Accent foreground
#eaeef0lavender
#eaeef0lavender
Destructive
#ee4a44tomato
#ee4a44tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#383c3edarkslategray
#383c3edarkslategray
Input
#3f4346darkslategray
#3f4346darkslategray
Ring
#f0fffbazure
#f0fffbazure

Contrast

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

Light mode
Text on background13.08:1AAA
Text on card14.46:1AAA
Primary button8.35:1AAA
Secondary button6.45:1AA
Muted text5.85:1AA
Accent6.33:1AA
Destructive3.69:1AA Large
Dark mode
Text on background13.08:1AAA
Text on card14.46:1AAA
Primary button8.35:1AAA
Secondary button6.45:1AA
Muted text5.85:1AA
Accent6.33:1AA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.303 0.015 231.447);
  --foreground: oklch(0.988 0.017 178.285);
  --muted: oklch(0.343 0.014 231.302);
  --muted-foreground: oklch(0.783 0.015 230.932);
  --popover: oklch(0.271 0.013 231.407);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.282 0.014 231.422);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.351 0.006 230.912);
  --input: oklch(0.381 0.007 230.918);
  --primary: oklch(0.988 0.017 180.479);
  --primary-foreground: oklch(0.405 0.08 170.115);
  --secondary: oklch(0.41 0.047 177.105);
  --secondary-foreground: oklch(0.901 0.025 180.147);
  --accent: oklch(0.45 0.025 231.557);
  --accent-foreground: oklch(0.947 0.005 230.725);
  --destructive: oklch(0.64 0.201 26.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.988 0.017 180.479);
  --chart-1: oklch(0.988 0.017 180.479);
  --chart-2: oklch(0.41 0.047 177.105);
  --chart-3: oklch(0.45 0.025 231.557);
  --chart-4: oklch(0.443 0.051 177.032);
  --chart-5: oklch(0.988 0.017 180.465);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.303 0.015 231.447);
  --foreground: oklch(0.988 0.017 178.285);
  --muted: oklch(0.343 0.014 231.302);
  --muted-foreground: oklch(0.783 0.015 230.932);
  --popover: oklch(0.271 0.013 231.407);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.282 0.014 231.422);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.351 0.006 230.912);
  --input: oklch(0.381 0.007 230.918);
  --primary: oklch(0.988 0.017 180.479);
  --primary-foreground: oklch(0.405 0.08 170.115);
  --secondary: oklch(0.41 0.047 177.105);
  --secondary-foreground: oklch(0.901 0.025 180.147);
  --accent: oklch(0.45 0.025 231.557);
  --accent-foreground: oklch(0.947 0.005 230.725);
  --destructive: oklch(0.64 0.201 26.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.988 0.017 180.479);
  --chart-1: oklch(0.988 0.017 180.479);
  --chart-2: oklch(0.41 0.047 177.105);
  --chart-3: oklch(0.45 0.025 231.557);
  --chart-4: oklch(0.443 0.051 177.032);
  --chart-5: oklch(0.988 0.017 180.465);
}