Bearded Theme Monokai Stone for shadcn/ui

Bearded Theme Monokai Stone is a shadcn/ui theme built around a neutral gray primary color (#9ba3a6) with muted blue accents (#4c515d). The light mode uses a blue-tinted background (#292c32). Dark mode keeps the neutral gray primary (#9ba3a6) on a blue-tinted background (#292c32).

Color palette

TokenLightDark
Background
#292c32darkslategray
#292c32darkslategray
Foreground
#e0e0e0gainsboro
#e0e0e0gainsboro
Card
#25272ddarkslategray
#25272ddarkslategray
Card foreground
#edededwhitesmoke
#edededwhitesmoke
Popover
#22252adarkslategray
#22252adarkslategray
Popover foreground
#fafafasnow
#fafafasnow
Primary
#9ba3a6darkgray
#9ba3a6darkgray
Primary foreground
#070808black
#070808black
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#31363fdarkslategray
#31363fdarkslategray
Muted foreground
#afb5c0silver
#afb5c0silver
Accent
#4c515ddarkslategray
#4c515ddarkslategray
Accent foreground
#ebedeflavender
#ebedeflavender
Destructive
#fe0e01red
#fe0e01red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Input
#424242darkslategray
#424242darkslategray
Ring
#9ba3a6darkgray
#9ba3a6darkgray

Contrast

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

Light mode
Text on background10.54:1AAA
Text on card12.70:1AAA
Primary button7.78:1AAA
Secondary button7.37:1AAA
Muted text5.89:1AA
Accent6.75:1AA
Destructive3.98:1AA Large
Dark mode
Text on background10.54:1AAA
Text on card12.70:1AAA
Primary button7.78:1AAA
Secondary button7.37:1AAA
Muted text5.89:1AA
Accent6.75:1AA
Destructive3.98:1AA Large

CSS variables

Paste this into your globals.css to use Bearded Theme Monokai Stone in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.294 0.012 264.374);
  --foreground: oklch(0.908 0 180);
  --muted: oklch(0.332 0.017 264.31);
  --muted-foreground: oklch(0.771 0.017 264.466);
  --popover: oklch(0.264 0.01 264.384);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.274 0.011 264.381);
  --card-foreground: oklch(0.947 0 180);
  --border: oklch(0.351 0 167.471);
  --input: oklch(0.38 0 180);
  --primary: oklch(0.709 0.01 228.944);
  --primary-foreground: oklch(0.133 0.001 228.018);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.435 0.02 264.345);
  --accent-foreground: oklch(0.945 0.003 264.54);
  --destructive: oklch(0.628 0.254 29.605);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.709 0.01 228.944);
  --chart-1: oklch(0.709 0.01 228.944);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.435 0.02 264.345);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.71 0.015 229.046);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.294 0.012 264.374);
  --foreground: oklch(0.908 0 180);
  --muted: oklch(0.332 0.017 264.31);
  --muted-foreground: oklch(0.771 0.017 264.466);
  --popover: oklch(0.264 0.01 264.384);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.274 0.011 264.381);
  --card-foreground: oklch(0.947 0 180);
  --border: oklch(0.351 0 167.471);
  --input: oklch(0.38 0 180);
  --primary: oklch(0.709 0.01 228.944);
  --primary-foreground: oklch(0.133 0.001 228.018);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.435 0.02 264.345);
  --accent-foreground: oklch(0.945 0.003 264.54);
  --destructive: oklch(0.628 0.254 29.605);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.709 0.01 228.944);
  --chart-1: oklch(0.709 0.01 228.944);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.435 0.02 264.345);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.71 0.015 229.046);
}