Bleak for shadcn/ui

Bleak is a shadcn/ui theme built around a blue primary color (#6d92c5) with indigo accents (#746dc5). The light mode uses a neutral background (#f6f9fd). Dark mode keeps the blue primary (#6d92c5) on a blue-tinted background (#06090f).

Color palette

TokenLightDark
Background
#f6f9fdghostwhite
#06090fblack
Foreground
#020509black
#f9fafbghostwhite
Card
#f2f6fcaliceblue
#070c12black
Card foreground
#010204black
#fcfcfdwhite
Popover
#f2f6fcaliceblue
#070c12black
Popover foreground
#010204black
#fcfcfdwhite
Primary
#6d92c5cornflowerblue
#6d92c5cornflowerblue
Primary foreground
#000000black
#000000black
Secondary
#6dbec5mediumaquamarine
#6dbec5mediumaquamarine
Secondary foreground
#000000black
#000000black
Muted
#d1e4e5gainsboro
#1a2c2edarkslategray
Muted foreground
#49595bdarkslategray
#a4b5b6darkgray
Accent
#746dc5slateblue
#746dc5slateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b6330cfirebrick
#f3693ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6d92c5cornflowerblue
#6d92c5cornflowerblue

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.21:1AAA
Primary button6.54:1AA
Secondary button9.78:1AAA
Muted text5.55:1AA
Accent4.42:1AA Large
Destructive6.03:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.14:1AAA
Primary button6.54:1AA
Secondary button9.78:1AAA
Muted text6.83:1AA
Accent4.42:1AA Large
Destructive6.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 256.677);
  --foreground: oklch(0.108 0.016 246.343);
  --muted: oklch(0.905 0.02 203.394);
  --muted-foreground: oklch(0.451 0.02 203.236);
  --popover: oklch(0.973 0.009 256.689);
  --popover-foreground: oklch(0.086 0.013 246.343);
  --card: oklch(0.973 0.009 256.689);
  --card-foreground: oklch(0.086 0.013 246.343);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.652 0.087 256.876);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.751 0.08 203.174);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.582 0.132 285.327);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.518 0.173 35.38);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.087 256.876);
  --chart-1: oklch(0.652 0.087 256.876);
  --chart-2: oklch(0.751 0.08 203.174);
  --chart-3: oklch(0.582 0.132 285.327);
  --chart-4: oklch(0.769 0.075 203.139);
  --chart-5: oklch(0.651 0.093 256.888);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.014 252.802);
  --foreground: oklch(0.984 0.002 256.661);
  --muted: oklch(0.278 0.024 203.122);
  --muted-foreground: oklch(0.76 0.018 203.375);
  --popover: oklch(0.152 0.017 255.452);
  --popover-foreground: oklch(0.992 0.001 256.657);
  --card: oklch(0.152 0.017 255.452);
  --card-foreground: oklch(0.992 0.001 256.657);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.652 0.087 256.876);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.751 0.08 203.174);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.582 0.132 285.327);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.685 0.179 37.351);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.652 0.087 256.876);
  --chart-1: oklch(0.652 0.087 256.876);
  --chart-2: oklch(0.751 0.08 203.174);
  --chart-3: oklch(0.582 0.132 285.327);
  --chart-4: oklch(0.769 0.075 203.139);
  --chart-5: oklch(0.651 0.093 256.888);
}