βui - Monokai Ristretto for shadcn/ui

βui - Monokai Ristretto is a shadcn/ui theme built around a vivid light red primary color (#fff0f2) with muted red accents (#564848). The light mode uses a red-tinted background (#2c2525). Dark mode keeps the vivid light red primary (#fff0f2) 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
#fff0f2lavenderblush
#fff0f2lavenderblush
Primary foreground
#57000dmaroon
#57000dmaroon
Secondary
#532d32darkslategray
#532d32darkslategray
Secondary foreground
#e4cdd1lightgrey
#e4cdd1lightgrey
Muted
#392d2ddarkslategray
#392d2ddarkslategray
Muted foreground
#bca9a9darkgray
#bca9a9darkgray
Accent
#564848darkslategray
#564848darkslategray
Accent foreground
#eae6e6linen
#eae6e6linen
Destructive
#ec3118orangered
#ec3118orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#363636darkslategray
#363636darkslategray
Input
#3d3d3ddarkslategray
#3d3d3ddarkslategray
Ring
#fff0f2lavenderblush
#fff0f2lavenderblush

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 button13.43:1AAA
Secondary button7.82:1AAA
Muted text5.91:1AA
Accent7.01:1AAA
Destructive4.18:1AA Large
Dark mode
Text on background13.54:1AAA
Text on card15.91:1AAA
Primary button13.43:1AAA
Secondary button7.82:1AAA
Muted text5.91:1AA
Accent7.01:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.273 0.011 17.849);
  --foreground: oklch(0.967 0.017 8.171);
  --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.967 0.017 7.031);
  --primary-foreground: oklch(0.288 0.116 22.151);
  --secondary: oklch(0.347 0.057 10.822);
  --secondary-foreground: oklch(0.869 0.026 7.345);
  --accent: oklch(0.416 0.019 17.958);
  --accent-foreground: oklch(0.928 0.004 17.238);
  --destructive: oklch(0.612 0.225 31.01);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.967 0.017 7.031);
  --chart-1: oklch(0.967 0.017 7.031);
  --chart-2: oklch(0.347 0.057 10.822);
  --chart-3: oklch(0.416 0.019 17.958);
  --chart-4: oklch(0.373 0.062 10.92);
  --chart-5: oklch(0.967 0.017 7.044);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.273 0.011 17.849);
  --foreground: oklch(0.967 0.017 8.171);
  --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.967 0.017 7.031);
  --primary-foreground: oklch(0.288 0.116 22.151);
  --secondary: oklch(0.347 0.057 10.822);
  --secondary-foreground: oklch(0.869 0.026 7.345);
  --accent: oklch(0.416 0.019 17.958);
  --accent-foreground: oklch(0.928 0.004 17.238);
  --destructive: oklch(0.612 0.225 31.01);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.967 0.017 7.031);
  --chart-1: oklch(0.967 0.017 7.031);
  --chart-2: oklch(0.347 0.057 10.822);
  --chart-3: oklch(0.416 0.019 17.958);
  --chart-4: oklch(0.373 0.062 10.92);
  --chart-5: oklch(0.967 0.017 7.044);
}