Earmuffs for shadcn/ui

Earmuffs is a shadcn/ui theme built around a vivid red primary color (#fe5255) with muted light red accents (#d0c2c3). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid red primary (#fe5255) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#040202black
Foreground
#150505black
#ffffffwhite
Card
#fdfcfcsnow
#040202black
Card foreground
#150505black
#ffffffwhite
Popover
#fdfcfcsnow
#040202black
Popover foreground
#150505black
#ffffffwhite
Primary
#fe5255tomato
#fe5255tomato
Primary foreground
#1e0001black
#1e0001black
Secondary
#e3dedegainsboro
#222020black
Secondary foreground
#4c4243darkslategray
#bcb8b8silver
Muted
#e5cccdlightgrey
#331a1ablack
Muted foreground
#5d4c4cdimgray
#b3a2a3darkgray
Accent
#d0c2c3silver
#382e2fdarkslategray
Accent foreground
#372a2adarkslategray
#d1c7c8lightgrey
Destructive
#812d08saddlebrown
#f16427chocolate
Destructive foreground
#fbd2c1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fe5255tomato
#fe5255tomato

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button6.22:1AA
Secondary button7.28:1AAA
Muted text5.32:1AA
Accent8.01:1AAA
Destructive6.52:1AA
Dark mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button6.22:1AA
Secondary button8.23:1AAA
Muted text6.62:1AA
Accent7.92:1AAA
Destructive6.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 16.009);
  --foreground: oklch(0.143 0.032 20.567);
  --muted: oklch(0.867 0.028 16.563);
  --muted-foreground: oklch(0.433 0.023 16.937);
  --popover: oklch(0.991 0.002 16.009);
  --popover-foreground: oklch(0.143 0.032 20.567);
  --card: oklch(0.991 0.002 16.009);
  --card-foreground: oklch(0.143 0.032 20.567);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.678 0.208 23.716);
  --primary-foreground: oklch(0.15 0.06 26.935);
  --secondary: oklch(0.905 0.005 16.065);
  --secondary-foreground: oklch(0.391 0.014 16.608);
  --accent: oklch(0.827 0.016 16.312);
  --accent-foreground: oklch(0.3 0.019 17.129);
  --destructive: oklch(0.417 0.125 39.741);
  --destructive-foreground: oklch(0.895 0.052 44.489);
  --ring: oklch(0.678 0.208 23.716);
  --chart-1: oklch(0.678 0.208 23.716);
  --chart-2: oklch(0.905 0.005 16.065);
  --chart-3: oklch(0.827 0.016 16.312);
  --chart-4: oklch(0.929 0.003 16.04);
  --chart-5: oklch(0.679 0.213 24);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 17.782);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.04 19.264);
  --muted-foreground: oklch(0.728 0.02 16.458);
  --popover: oklch(0.086 0.009 17.782);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.086 0.009 17.782);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.678 0.208 23.716);
  --primary-foreground: oklch(0.15 0.06 26.935);
  --secondary: oklch(0.246 0.003 16.191);
  --secondary-foreground: oklch(0.786 0.005 16.079);
  --accent: oklch(0.313 0.013 16.751);
  --accent-foreground: oklch(0.838 0.01 16.191);
  --destructive: oklch(0.674 0.188 40.887);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.678 0.208 23.716);
  --chart-1: oklch(0.678 0.208 23.716);
  --chart-2: oklch(0.246 0.003 16.191);
  --chart-3: oklch(0.313 0.013 16.751);
  --chart-4: oklch(0.278 0.004 16.204);
  --chart-5: oklch(0.679 0.213 24);
}