Eager for shadcn/ui

Eager is a shadcn/ui theme built around a red primary color (#e04d4d) with muted light red accents (#e2dada). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the red primary (#e04d4d) on a neutral background (#080202).

Color palette

TokenLightDark
Background
#fdf7f7snow
#080202black
Foreground
#080303black
#f9f6f6whitesmoke
Card
#fdf7f7snow
#080202black
Card foreground
#080303black
#f9f6f6whitesmoke
Popover
#fdf7f7snow
#080202black
Popover foreground
#080303black
#f9f6f6whitesmoke
Primary
#e04d4dindianred
#e04d4dindianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e2dadagainsboro
#201d1dblack
Secondary foreground
#4e3c3cdarkslategray
#bbb4b4silver
Muted
#e8cecelightgrey
#311717black
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#e2dadagainsboro
#201d1dblack
Accent foreground
#4e3c3cdarkslategray
#bbb4b4silver
Destructive
#d52101firebrick
#fe2701orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e04d4dindianred
#e04d4dindianred

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.36:1AAA
Primary button3.93:1AA Large
Secondary button7.48:1AAA
Muted text4.52:1AA
Accent7.48:1AAA
Destructive5.18:1AA
Dark mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button3.93:1AA Large
Secondary button8.20:1AAA
Muted text6.59:1AA
Accent8.20:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 17.252);
  --foreground: oklch(0.105 0.016 20.039);
  --muted: oklch(0.874 0.029 17.717);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.981 0.006 17.252);
  --popover-foreground: oklch(0.105 0.016 20.039);
  --card: oklch(0.981 0.006 17.252);
  --card-foreground: oklch(0.105 0.016 20.039);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.623 0.183 24.107);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.894 0.009 17.334);
  --secondary-foreground: oklch(0.375 0.025 18.341);
  --accent: oklch(0.894 0.009 17.334);
  --accent-foreground: oklch(0.375 0.025 18.341);
  --destructive: oklch(0.56 0.215 31.448);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.623 0.183 24.107);
  --chart-1: oklch(0.623 0.183 24.107);
  --chart-2: oklch(0.894 0.009 17.334);
  --chart-3: oklch(0.894 0.009 17.334);
  --chart-4: oklch(0.919 0.007 17.288);
  --chart-5: oklch(0.624 0.189 24.472);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.019 20.998);
  --foreground: oklch(0.975 0.004 17.225);
  --muted: oklch(0.241 0.042 20.602);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.103 0.019 20.998);
  --popover-foreground: oklch(0.975 0.004 17.225);
  --card: oklch(0.103 0.019 20.998);
  --card-foreground: oklch(0.975 0.004 17.225);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.623 0.183 24.107);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.235 0.005 17.495);
  --secondary-foreground: oklch(0.776 0.008 17.332);
  --accent: oklch(0.235 0.005 17.495);
  --accent-foreground: oklch(0.776 0.008 17.332);
  --destructive: oklch(0.637 0.246 31.257);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.623 0.183 24.107);
  --chart-1: oklch(0.623 0.183 24.107);
  --chart-2: oklch(0.235 0.005 17.495);
  --chart-3: oklch(0.235 0.005 17.495);
  --chart-4: oklch(0.266 0.006 17.519);
  --chart-5: oklch(0.624 0.189 24.472);
}