Bleak for shadcn/ui

Bleak is a shadcn/ui theme built around a neutral gray primary color (#4f4f4f) with neutral gray accents (#4f4f4f). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the neutral gray primary (#4f4f4f) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#040202black
Foreground
#000000black
#fbf8f8snow
Card
#fdfcfcsnow
#040202black
Card foreground
#000000black
#fbf8f8snow
Popover
#fdfcfcsnow
#040202black
Popover foreground
#000000black
#fbf8f8snow
Primary
#4f4f4fdarkslategray
#4f4f4fdarkslategray
Primary foreground
#e8e8e8lavender
#e8e8e8lavender
Secondary
#4f4f4fdarkslategray
#4f4f4fdarkslategray
Secondary foreground
#e8e8e8lavender
#e8e8e8lavender
Muted
#dcd6d6gainsboro
#292323darkslategray
Muted foreground
#705c5cdimgray
#a38f8frosybrown
Accent
#4f4f4fdarkslategray
#4f4f4fdarkslategray
Accent foreground
#e8e8e8lavender
#e8e8e8lavender
Destructive
#5d2209maroon
#eb6a33tomato
Destructive foreground
#f6bba2lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f4f4fdarkslategray
#4f4f4fdarkslategray

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card20.45:1AAA
Primary button6.67:1AA
Secondary button6.67:1AA
Muted text4.32:1AA Large
Accent6.67:1AA
Destructive7.38:1AAA
Dark mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button6.67:1AA
Secondary button6.67:1AA
Muted text5.05:1AA
Accent6.67:1AA
Destructive6.63:1AA

CSS variables

Paste this into your globals.css to use Bleak in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.19);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.88 0.007 17.285);
  --muted-foreground: oklch(0.494 0.027 18.094);
  --popover: oklch(0.991 0.002 17.19);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.002 17.19);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.428 0 180);
  --primary-foreground: oklch(0.931 0 180);
  --secondary: oklch(0.428 0 180);
  --secondary-foreground: oklch(0.931 0 180);
  --accent: oklch(0.428 0 180);
  --accent-foreground: oklch(0.931 0 180);
  --destructive: oklch(0.337 0.093 41.055);
  --destructive-foreground: oklch(0.84 0.076 44.273);
  --ring: oklch(0.428 0 180);
  --chart-1: oklch(0.428 0 180);
  --chart-2: oklch(0.428 0 180);
  --chart-3: oklch(0.428 0 180);
  --chart-4: oklch(0.456 0 180);
  --chart-5: oklch(0.424 0.006 17.405);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.009 19.186);
  --foreground: oklch(0.983 0.003 17.215);
  --muted: oklch(0.264 0.009 17.755);
  --muted-foreground: oklch(0.668 0.025 17.783);
  --popover: oklch(0.085 0.009 19.186);
  --popover-foreground: oklch(0.983 0.003 17.215);
  --card: oklch(0.085 0.009 19.186);
  --card-foreground: oklch(0.983 0.003 17.215);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.428 0 180);
  --primary-foreground: oklch(0.931 0 180);
  --secondary: oklch(0.428 0 180);
  --secondary-foreground: oklch(0.931 0 180);
  --accent: oklch(0.428 0 180);
  --accent-foreground: oklch(0.931 0 180);
  --destructive: oklch(0.673 0.173 41.773);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.428 0 180);
  --chart-1: oklch(0.428 0 180);
  --chart-2: oklch(0.428 0 180);
  --chart-3: oklch(0.428 0 180);
  --chart-4: oklch(0.456 0 180);
  --chart-5: oklch(0.424 0.006 17.405);
}