Egg for shadcn/ui

Egg is a shadcn/ui theme built around a light red primary color (#eac8cb) with neutral gray accents (#dbd6d7). The light mode uses a neutral background (#fdf6f7). Dark mode keeps the light red primary (#eac8cb) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fdf6f7snow
#040101black
Foreground
#040101black
#f9f6f6whitesmoke
Card
#fdf6f7snow
#040101black
Card foreground
#040101black
#f9f6f6whitesmoke
Popover
#fdf6f7snow
#040101black
Popover foreground
#040101black
#f9f6f6whitesmoke
Primary
#eac8cbpink
#eac8cbpink
Primary foreground
#5c2329saddlebrown
#5c2329saddlebrown
Secondary
#dbd6d7gainsboro
#201d1dblack
Secondary foreground
#443b3cdarkslategray
#bcb3b4silver
Muted
#f5eff0whitesmoke
#100a0ablack
Muted foreground
#575757dimgray
#a8a8a8darkgray
Accent
#dbd6d7gainsboro
#201d1dblack
Accent foreground
#443b3cdarkslategray
#bcb3b4silver
Destructive
#7e260csaddlebrown
#ec6136tomato
Destructive foreground
#f9cfc2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eac8cbpink
#eac8cbpink

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button7.86:1AAA
Secondary button7.55:1AAA
Muted text6.37:1AA
Accent7.55:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button7.86:1AAA
Secondary button8.16:1AAA
Muted text8.26:1AAA
Accent8.16:1AAA
Destructive6.33:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 10.251);
  --foreground: oklch(0.081 0.016 11.817);
  --muted: oklch(0.958 0.007 10.235);
  --muted-foreground: oklch(0.456 0 180);
  --popover: oklch(0.98 0.007 10.251);
  --popover-foreground: oklch(0.081 0.016 11.817);
  --card: oklch(0.98 0.007 10.251);
  --card-foreground: oklch(0.081 0.016 11.817);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.862 0.039 11.115);
  --primary-foreground: oklch(0.342 0.084 16.623);
  --secondary: oklch(0.881 0.006 10.231);
  --secondary-foreground: oklch(0.363 0.013 10.864);
  --accent: oklch(0.881 0.006 10.231);
  --accent-foreground: oklch(0.363 0.013 10.864);
  --destructive: oklch(0.403 0.126 36.249);
  --destructive-foreground: oklch(0.888 0.051 37.593);
  --ring: oklch(0.862 0.039 11.115);
  --chart-1: oklch(0.862 0.039 11.115);
  --chart-2: oklch(0.881 0.006 10.231);
  --chart-3: oklch(0.881 0.006 10.231);
  --chart-4: oklch(0.905 0.005 10.196);
  --chart-5: oklch(0.86 0.042 11.189);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.014 11.493);
  --foreground: oklch(0.975 0.003 10.143);
  --muted: oklch(0.152 0.011 11.712);
  --muted-foreground: oklch(0.733 0 180);
  --popover: oklch(0.083 0.014 11.493);
  --popover-foreground: oklch(0.975 0.003 10.143);
  --card: oklch(0.083 0.014 11.493);
  --card-foreground: oklch(0.975 0.003 10.143);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.862 0.039 11.115);
  --primary-foreground: oklch(0.342 0.084 16.623);
  --secondary: oklch(0.234 0.006 10.634);
  --secondary-foreground: oklch(0.775 0.01 10.366);
  --accent: oklch(0.234 0.006 10.634);
  --accent-foreground: oklch(0.775 0.01 10.366);
  --destructive: oklch(0.663 0.182 37.176);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.862 0.039 11.115);
  --chart-1: oklch(0.862 0.039 11.115);
  --chart-2: oklch(0.234 0.006 10.634);
  --chart-3: oklch(0.234 0.006 10.634);
  --chart-4: oklch(0.265 0.007 10.673);
  --chart-5: oklch(0.86 0.042 11.189);
}