Eggnog for shadcn/ui

Eggnog is a shadcn/ui theme built around a light orange primary color (#eec296) with light blue accents (#96c2ee). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the light orange primary (#eec296) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#030302black
Foreground
#000000black
#fdfcfcsnow
Card
#fdfcfcsnow
#030302black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdfcfcsnow
#030302black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#eec296burlywood
#eec296burlywood
Primary foreground
#46290bmaroon
#46290bmaroon
Secondary
#96c2eeskyblue
#96c2eeskyblue
Secondary foreground
#0b2946midnightblue
#0b2946midnightblue
Muted
#cfd9e2gainsboro
#1d2630darkslategray
Muted foreground
#5e6164dimgray
#9b9ea1darkgray
Accent
#96c2eeskyblue
#96c2eeskyblue
Accent foreground
#0b2946midnightblue
#0b2946midnightblue
Destructive
#932506saddlebrown
#f54514orangered
Destructive foreground
#fdd8cebisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eec296burlywood
#eec296burlywood

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button8.06:1AAA
Secondary button7.90:1AAA
Muted text4.35:1AA Large
Accent7.90:1AAA
Destructive6.35:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button8.06:1AAA
Secondary button7.90:1AAA
Muted text5.67:1AA
Accent7.90:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.001 67.806);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.88 0.017 248.019);
  --muted-foreground: oklch(0.491 0.006 247.947);
  --popover: oklch(0.993 0.001 67.806);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.001 67.806);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.842 0.077 66.465);
  --primary-foreground: oklch(0.311 0.06 61.894);
  --secondary: oklch(0.798 0.078 248.839);
  --secondary-foreground: oklch(0.275 0.065 251.392);
  --accent: oklch(0.798 0.078 248.839);
  --accent-foreground: oklch(0.275 0.065 251.392);
  --destructive: oklch(0.439 0.15 34.579);
  --destructive-foreground: oklch(0.911 0.044 35.946);
  --ring: oklch(0.842 0.077 66.465);
  --chart-1: oklch(0.842 0.077 66.465);
  --chart-2: oklch(0.798 0.078 248.839);
  --chart-3: oklch(0.798 0.078 248.839);
  --chart-4: oklch(0.823 0.068 248.668);
  --chart-5: oklch(0.843 0.08 66.388);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.006 72.48);
  --foreground: oklch(0.993 0.001 67.808);
  --muted: oklch(0.265 0.022 248.688);
  --muted-foreground: oklch(0.698 0.005 247.903);
  --popover: oklch(0.093 0.006 72.48);
  --popover-foreground: oklch(0.993 0.001 67.808);
  --card: oklch(0.093 0.006 72.48);
  --card-foreground: oklch(0.993 0.001 67.808);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.842 0.077 66.465);
  --primary-foreground: oklch(0.311 0.06 61.894);
  --secondary: oklch(0.798 0.078 248.839);
  --secondary-foreground: oklch(0.275 0.065 251.392);
  --accent: oklch(0.798 0.078 248.839);
  --accent-foreground: oklch(0.275 0.065 251.392);
  --destructive: oklch(0.644 0.219 34.603);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.842 0.077 66.465);
  --chart-1: oklch(0.842 0.077 66.465);
  --chart-2: oklch(0.798 0.078 248.839);
  --chart-3: oklch(0.798 0.078 248.839);
  --chart-4: oklch(0.823 0.068 248.668);
  --chart-5: oklch(0.843 0.08 66.388);
}