Easter for shadcn/ui

Easter is a shadcn/ui theme built around a cyan primary color (#87c9e8) with green accents (#c9e887). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#87c9e8) on a cyan-tinted background (#060c0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#060c0eblack
Foreground
#04090cblack
#fcfdfdwhite
Card
#ffffffwhite
#060c0eblack
Card foreground
#04090cblack
#fcfdfdwhite
Popover
#ffffffwhite
#060c0eblack
Popover foreground
#04090cblack
#fcfdfdwhite
Primary
#87c9e8skyblue
#87c9e8skyblue
Primary foreground
#0a2633darkslategray
#0a2633darkslategray
Secondary
#e887c9orchid
#e887c9orchid
Secondary foreground
#330a26black
#330a26black
Muted
#e9d2e2gainsboro
#2d1625black
Muted foreground
#4a3f47darkslategray
#c0b5bcsilver
Accent
#c9e887khaki
#c9e887khaki
Accent foreground
#26330adarkgreen
#26330adarkgreen
Destructive
#890801darkred
#fe1306red
Destructive foreground
#ffc0bdlightpink
#ffffffwhite
Border
#eff0f1whitesmoke
#212526darkslategray
Input
#eff0f1whitesmoke
#212526darkslategray
Ring
#87c9e8skyblue
#87c9e8skyblue

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button8.66:1AAA
Secondary button7.21:1AAA
Muted text7.08:1AAA
Accent9.87:1AAA
Destructive6.45:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button8.66:1AAA
Secondary button7.21:1AAA
Muted text8.46:1AAA
Accent9.87:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.013 221.982);
  --muted: oklch(0.888 0.033 337.271);
  --muted-foreground: oklch(0.383 0.019 337.519);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.013 221.982);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.134 0.013 221.982);
  --border: oklch(0.954 0.002 226.88);
  --input: oklch(0.954 0.002 226.88);
  --primary: oklch(0.804 0.08 228.8);
  --primary-foreground: oklch(0.255 0.042 231.821);
  --secondary: oklch(0.747 0.143 340.008);
  --secondary-foreground: oklch(0.23 0.076 342.898);
  --accent: oklch(0.888 0.128 123.352);
  --accent-foreground: oklch(0.301 0.065 125.381);
  --destructive: oklch(0.399 0.159 29.999);
  --destructive-foreground: oklch(0.864 0.072 22.112);
  --ring: oklch(0.804 0.08 228.8);
  --chart-1: oklch(0.804 0.08 228.8);
  --chart-2: oklch(0.747 0.143 340.008);
  --chart-3: oklch(0.888 0.128 123.352);
  --chart-4: oklch(0.773 0.127 339.541);
  --chart-5: oklch(0.805 0.083 228.92);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.011 225.827);
  --foreground: oklch(0.992 0.001 226.865);
  --muted: oklch(0.238 0.046 340.012);
  --muted-foreground: oklch(0.783 0.016 336.959);
  --popover: oklch(0.148 0.011 225.827);
  --popover-foreground: oklch(0.992 0.001 226.865);
  --card: oklch(0.148 0.011 225.827);
  --card-foreground: oklch(0.992 0.001 226.865);
  --border: oklch(0.26 0.006 227.147);
  --input: oklch(0.26 0.006 227.147);
  --primary: oklch(0.804 0.08 228.8);
  --primary-foreground: oklch(0.255 0.042 231.821);
  --secondary: oklch(0.747 0.143 340.008);
  --secondary-foreground: oklch(0.23 0.076 342.898);
  --accent: oklch(0.888 0.128 123.352);
  --accent-foreground: oklch(0.301 0.065 125.381);
  --destructive: oklch(0.629 0.253 29.529);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.804 0.08 228.8);
  --chart-1: oklch(0.804 0.08 228.8);
  --chart-2: oklch(0.747 0.143 340.008);
  --chart-3: oklch(0.888 0.128 123.352);
  --chart-4: oklch(0.773 0.127 339.541);
  --chart-5: oklch(0.805 0.083 228.92);
}