Backburn for shadcn/ui

Backburn is a shadcn/ui theme built around a neutral gray primary color (#b9b6b9) with neutral gray accents (#b7b9b6). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the neutral gray primary (#b9b6b9) on a purple-tinted background (#0d070d).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0d070dblack
Foreground
#0f0311black
#f9f5faghostwhite
Card
#fdfcfdwhite
#0d070dblack
Card foreground
#0f0311black
#f9f5faghostwhite
Popover
#fdfcfdwhite
#0d070dblack
Popover foreground
#0f0311black
#f9f5faghostwhite
Primary
#b9b6b9silver
#b9b6b9silver
Primary foreground
#1f1e1fblack
#1f1e1fblack
Secondary
#b7b9b6silver
#b7b9b6silver
Secondary foreground
#1e1f1eblack
#1e1f1eblack
Muted
#e1f1dfbeige
#10200eblack
Muted foreground
#4b5a49darkslategray
#a7b6a5darkgray
Accent
#b7b9b6silver
#b7b9b6silver
Accent foreground
#1e1f1eblack
#1e1f1eblack
Destructive
#cd5713chocolate
#e96316chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b9b6b9silver
#b9b6b9silver

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button8.27:1AAA
Secondary button8.36:1AAA
Muted text6.24:1AA
Accent8.36:1AAA
Destructive4.20:1AA Large
Dark mode
Text on background18.49:1AAA
Text on card18.49:1AAA
Primary button8.27:1AAA
Secondary button8.36:1AAA
Muted text8.01:1AAA
Accent8.36:1AAA
Destructive6.28:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 322.123);
  --foreground: oklch(0.135 0.039 323.469);
  --muted: oklch(0.941 0.028 142.009);
  --muted-foreground: oklch(0.449 0.032 141.868);
  --popover: oklch(0.991 0.003 322.123);
  --popover-foreground: oklch(0.135 0.039 323.469);
  --card: oklch(0.991 0.003 322.123);
  --card-foreground: oklch(0.135 0.039 323.469);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.78 0.005 322.134);
  --primary-foreground: oklch(0.237 0.003 322.153);
  --secondary: oklch(0.783 0.005 142.092);
  --secondary-foreground: oklch(0.239 0.003 142.072);
  --accent: oklch(0.783 0.005 142.092);
  --accent-foreground: oklch(0.239 0.003 142.072);
  --destructive: oklch(0.601 0.166 44.448);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.78 0.005 322.134);
  --chart-1: oklch(0.78 0.005 322.134);
  --chart-2: oklch(0.783 0.005 142.092);
  --chart-3: oklch(0.783 0.005 142.092);
  --chart-4: oklch(0.807 0.004 142.095);
  --chart-5: oklch(0.777 0.012 322.166);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.018 322.715);
  --foreground: oklch(0.974 0.008 322.141);
  --muted: oklch(0.223 0.039 141.533);
  --muted-foreground: oklch(0.759 0.028 141.986);
  --popover: oklch(0.14 0.018 322.715);
  --popover-foreground: oklch(0.974 0.008 322.141);
  --card: oklch(0.14 0.018 322.715);
  --card-foreground: oklch(0.974 0.008 322.141);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.78 0.005 322.134);
  --primary-foreground: oklch(0.237 0.003 322.153);
  --secondary: oklch(0.783 0.005 142.092);
  --secondary-foreground: oklch(0.239 0.003 142.072);
  --accent: oklch(0.783 0.005 142.092);
  --accent-foreground: oklch(0.239 0.003 142.072);
  --destructive: oklch(0.66 0.184 44.237);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.78 0.005 322.134);
  --chart-1: oklch(0.78 0.005 322.134);
  --chart-2: oklch(0.783 0.005 142.092);
  --chart-3: oklch(0.783 0.005 142.092);
  --chart-4: oklch(0.807 0.004 142.095);
  --chart-5: oklch(0.777 0.012 322.166);
}