Boring for shadcn/ui

Boring is a shadcn/ui theme built around a near-white primary color (#fef7f6) with near-white accents (#f6fdfe). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the near-white primary (#fef7f6) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fcf9f8snow
#040202black
Foreground
#000000black
#fdfcfcsnow
Card
#fcf9f8snow
#040202black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcf9f8snow
#040202black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#fef7f6snow
#fef7f6snow
Primary foreground
#a72b1bbrown
#a72b1bbrown
Secondary
#f6fdfemintcream
#f6fdfemintcream
Secondary foreground
#0d474fdarkslategray
#0d474fdarkslategray
Muted
#e4ebeclavender
#131a1bblack
Muted foreground
#484c4cdarkslategray
#b3b7b7silver
Accent
#f6fdfemintcream
#f6fdfemintcream
Accent foreground
#0d474fdarkslategray
#0d474fdarkslategray
Destructive
#830d07maroon
#f5463dtomato
Destructive foreground
#fcc3c0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fef7f6snow
#fef7f6snow

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button6.60:1AA
Secondary button10.02:1AAA
Muted text7.20:1AAA
Accent10.02:1AAA
Destructive6.77:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button6.60:1AA
Secondary button10.02:1AAA
Muted text8.71:1AAA
Accent10.02:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 26.462);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.935 0.007 206.393);
  --muted-foreground: oklch(0.412 0.005 206.369);
  --popover: oklch(0.983 0.003 26.462);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.003 26.462);
  --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.981 0.007 26.488);
  --primary-foreground: oklch(0.483 0.162 30.95);
  --secondary: oklch(0.989 0.007 206.399);
  --secondary-foreground: oklch(0.367 0.058 208.296);
  --accent: oklch(0.989 0.007 206.399);
  --accent-foreground: oklch(0.367 0.058 208.296);
  --destructive: oklch(0.389 0.151 29.4);
  --destructive-foreground: oklch(0.867 0.065 21.977);
  --ring: oklch(0.981 0.007 26.488);
  --chart-1: oklch(0.981 0.007 26.488);
  --chart-2: oklch(0.989 0.007 206.399);
  --chart-3: oklch(0.989 0.007 206.399);
  --chart-4: oklch(1.006 0.003 26.463);
  --chart-5: oklch(0.981 0.007 26.49);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.008 29.723);
  --foreground: oklch(0.992 0.001 26.448);
  --muted: oklch(0.211 0.01 206.257);
  --muted-foreground: oklch(0.776 0.004 206.406);
  --popover: oklch(0.088 0.008 29.723);
  --popover-foreground: oklch(0.992 0.001 26.448);
  --card: oklch(0.088 0.008 29.723);
  --card-foreground: oklch(0.992 0.001 26.448);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.981 0.007 26.488);
  --primary-foreground: oklch(0.483 0.162 30.95);
  --secondary: oklch(0.989 0.007 206.399);
  --secondary-foreground: oklch(0.367 0.058 208.296);
  --accent: oklch(0.989 0.007 206.399);
  --accent-foreground: oklch(0.367 0.058 208.296);
  --destructive: oklch(0.648 0.212 27.76);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.981 0.007 26.488);
  --chart-1: oklch(0.981 0.007 26.488);
  --chart-2: oklch(0.989 0.007 206.399);
  --chart-3: oklch(0.989 0.007 206.399);
  --chart-4: oklch(1.006 0.003 26.463);
  --chart-5: oklch(0.981 0.007 26.49);
}