Boring for shadcn/ui

Boring is a shadcn/ui theme built around a muted orange primary color (#675142) with muted violet accents (#514267). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted orange primary (#675142) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#fefcfbsnow
#080502black
Foreground
#090401black
#fdfcfcsnow
Card
#fefcfbsnow
#080502black
Card foreground
#090401black
#fdfcfcsnow
Popover
#fefcfbsnow
#080502black
Popover foreground
#090401black
#fdfcfcsnow
Primary
#675142darkolivegreen
#675142darkolivegreen
Primary foreground
#f1ece9linen
#f1ece9linen
Secondary
#426751darkslategray
#426751darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d4ecdegainsboro
#132b1dblack
Muted foreground
#454a47darkslategray
#b5bab7silver
Accent
#514267darkslateblue
#514267darkslateblue
Accent foreground
#ece9f1lavender
#ece9f1lavender
Destructive
#ce1b12firebrick
#d81d13firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#675142darkolivegreen
#675142darkolivegreen

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button6.33:1AA
Secondary button6.41:1AA
Muted text7.27:1AAA
Accent7.55:1AAA
Destructive5.51:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button6.33:1AA
Secondary button6.41:1AA
Muted text7.71:1AAA
Accent7.55:1AAA
Destructive5.12:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 58.33);
  --foreground: oklch(0.117 0.019 70.887);
  --muted: oklch(0.923 0.031 160.19);
  --muted-foreground: oklch(0.403 0.007 160.601);
  --popover: oklch(0.993 0.002 58.33);
  --popover-foreground: oklch(0.117 0.019 70.887);
  --card: oklch(0.993 0.002 58.33);
  --card-foreground: oklch(0.117 0.019 70.887);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.453 0.038 57.133);
  --primary-foreground: oklch(0.947 0.007 58.265);
  --secondary: oklch(0.478 0.055 157.903);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.41 0.063 302.847);
  --accent-foreground: oklch(0.939 0.011 304.883);
  --destructive: oklch(0.545 0.211 29.33);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.453 0.038 57.133);
  --chart-1: oklch(0.453 0.038 57.133);
  --chart-2: oklch(0.478 0.055 157.903);
  --chart-3: oklch(0.41 0.063 302.847);
  --chart-4: oklch(0.508 0.059 157.865);
  --chart-5: oklch(0.454 0.043 56.938);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.013 66.913);
  --foreground: oklch(0.992 0.001 58.355);
  --muted: oklch(0.263 0.04 156.613);
  --muted-foreground: oklch(0.784 0.006 160.835);
  --popover: oklch(0.117 0.013 66.913);
  --popover-foreground: oklch(0.992 0.001 58.355);
  --card: oklch(0.117 0.013 66.913);
  --card-foreground: oklch(0.992 0.001 58.355);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.453 0.038 57.133);
  --primary-foreground: oklch(0.947 0.007 58.265);
  --secondary: oklch(0.478 0.055 157.903);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.41 0.063 302.847);
  --accent-foreground: oklch(0.939 0.011 304.883);
  --destructive: oklch(0.563 0.218 29.343);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.453 0.038 57.133);
  --chart-1: oklch(0.453 0.038 57.133);
  --chart-2: oklch(0.478 0.055 157.903);
  --chart-3: oklch(0.41 0.063 302.847);
  --chart-4: oklch(0.508 0.059 157.865);
  --chart-5: oklch(0.454 0.043 56.938);
}