Beard for shadcn/ui

Beard is a shadcn/ui theme built around a muted deep orange primary color (#382e24) with muted deep violet accents (#2e2438). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the muted deep orange primary (#382e24) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#fdfaf7snow
#080502black
Foreground
#000000black
#f9f7f6whitesmoke
Card
#fdfaf7snow
#080502black
Card foreground
#000000black
#f9f7f6whitesmoke
Popover
#fdfaf7snow
#080502black
Popover foreground
#000000black
#f9f7f6whitesmoke
Primary
#382e24darkslategray
#382e24darkslategray
Primary foreground
#d3c7bbsilver
#d3c7bbsilver
Secondary
#24382edarkslategray
#24382edarkslategray
Secondary foreground
#bbd3c7silver
#bbd3c7silver
Muted
#e3f2ebhoneydew
#0d1c14black
Muted foreground
#414e47darkslategray
#b1beb8silver
Accent
#2e2438darkslategray
#2e2438darkslategray
Accent foreground
#c7bbd3thistle
#c7bbd3thistle
Destructive
#b54b12sienna
#ec7a3ccoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#382e24darkslategray
#382e24darkslategray

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button8.00:1AAA
Secondary button7.92:1AAA
Muted text7.55:1AAA
Accent8.04:1AAA
Destructive5.27:1AA
Dark mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button8.00:1AAA
Secondary button7.92:1AAA
Muted text9.17:1AAA
Accent8.04:1AAA
Destructive7.38:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.006 67.758);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.948 0.018 164.627);
  --muted-foreground: oklch(0.41 0.02 163.827);
  --popover: oklch(0.986 0.006 67.758);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.006 67.758);
  --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.308 0.022 66.872);
  --primary-foreground: oklch(0.836 0.021 67.536);
  --secondary: oklch(0.319 0.03 162.325);
  --secondary-foreground: oklch(0.845 0.03 164.176);
  --accent: oklch(0.281 0.037 306.98);
  --accent-foreground: oklch(0.809 0.035 307.981);
  --destructive: oklch(0.545 0.151 43.522);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.308 0.022 66.872);
  --chart-1: oklch(0.308 0.022 66.872);
  --chart-2: oklch(0.319 0.03 162.325);
  --chart-3: oklch(0.281 0.037 306.98);
  --chart-4: oklch(0.352 0.034 162.228);
  --chart-5: oklch(0.31 0.025 66.697);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.013 75.768);
  --foreground: oklch(0.978 0.003 67.792);
  --muted: oklch(0.209 0.025 161.407);
  --muted-foreground: oklch(0.79 0.017 164.575);
  --popover: oklch(0.119 0.013 75.768);
  --popover-foreground: oklch(0.978 0.003 67.792);
  --card: oklch(0.119 0.013 75.768);
  --card-foreground: oklch(0.978 0.003 67.792);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.308 0.022 66.872);
  --primary-foreground: oklch(0.836 0.021 67.536);
  --secondary: oklch(0.319 0.03 162.325);
  --secondary-foreground: oklch(0.845 0.03 164.176);
  --accent: oklch(0.281 0.037 306.98);
  --accent-foreground: oklch(0.809 0.035 307.981);
  --destructive: oklch(0.698 0.159 46.513);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.308 0.022 66.872);
  --chart-1: oklch(0.308 0.022 66.872);
  --chart-2: oklch(0.319 0.03 162.325);
  --chart-3: oklch(0.281 0.037 306.98);
  --chart-4: oklch(0.352 0.034 162.228);
  --chart-5: oklch(0.31 0.025 66.697);
}