Egg for shadcn/ui

Egg is a shadcn/ui theme built around a deep teal primary color (#0e533b) with deep pink accents (#530e26). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0e533b) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#ffffffwhite
#010403black
Foreground
#05100cblack
#f5faf8mintcream
Card
#fcfcfcsnow
#030806black
Card foreground
#040c09black
#f8fbfamintcream
Popover
#ffffffwhite
#010403black
Popover foreground
#05100cblack
#f5faf8mintcream
Primary
#0e533bdarkslategray
#0e533bdarkslategray
Primary foreground
#a3efd5powderblue
#a3efd5powderblue
Secondary
#530e26maroon
#530e26maroon
Secondary foreground
#efa3belightpink
#efa3belightpink
Muted
#e7e4e5gainsboro
#1b1819black
Muted foreground
#4a3f43darkslategray
#c0b5b8silver
Accent
#530e26maroon
#530e26maroon
Accent foreground
#efa3belightpink
#efa3belightpink
Destructive
#863103saddlebrown
#e05206orangered
Destructive foreground
#fdd4bepeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e533bdarkslategray
#0e533bdarkslategray

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.35:1AAA
Primary button6.85:1AA
Secondary button7.30:1AAA
Muted text7.97:1AAA
Accent7.30:1AAA
Destructive6.22:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.41:1AAA
Primary button6.85:1AA
Secondary button7.30:1AAA
Muted text8.86:1AAA
Accent7.30:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0.019 171.249);
  --muted: oklch(0.921 0.004 353.705);
  --muted-foreground: oklch(0.382 0.016 354.777);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0.019 171.249);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.142 0.016 173.434);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.394 0.077 164.101);
  --primary-foreground: oklch(0.896 0.084 170.453);
  --secondary: oklch(0.297 0.101 5.085);
  --secondary-foreground: oklch(0.798 0.096 356.834);
  --accent: oklch(0.297 0.101 5.085);
  --accent-foreground: oklch(0.798 0.096 356.834);
  --destructive: oklch(0.431 0.127 42.355);
  --destructive-foreground: oklch(0.9 0.055 49.937);
  --ring: oklch(0.394 0.077 164.101);
  --chart-1: oklch(0.394 0.077 164.101);
  --chart-2: oklch(0.297 0.101 5.085);
  --chart-3: oklch(0.297 0.101 5.085);
  --chart-4: oklch(0.327 0.113 5.526);
  --chart-5: oklch(0.398 0.08 163.728);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.01 173.794);
  --foreground: oklch(0.98 0.005 173.416);
  --muted: oklch(0.212 0.006 354.389);
  --muted-foreground: oklch(0.782 0.014 354.069);
  --popover: oklch(0.098 0.01 173.794);
  --popover-foreground: oklch(0.98 0.005 173.416);
  --card: oklch(0.123 0.013 173.794);
  --card-foreground: oklch(0.987 0.004 173.47);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.394 0.077 164.101);
  --primary-foreground: oklch(0.896 0.084 170.453);
  --secondary: oklch(0.297 0.101 5.085);
  --secondary-foreground: oklch(0.798 0.096 356.834);
  --accent: oklch(0.297 0.101 5.085);
  --accent-foreground: oklch(0.798 0.096 356.834);
  --destructive: oklch(0.622 0.19 40.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.394 0.077 164.101);
  --chart-1: oklch(0.394 0.077 164.101);
  --chart-2: oklch(0.297 0.101 5.085);
  --chart-3: oklch(0.297 0.101 5.085);
  --chart-4: oklch(0.327 0.113 5.526);
  --chart-5: oklch(0.398 0.08 163.728);
}