Each for shadcn/ui

Each is a shadcn/ui theme built around a deep pink primary color (#12070b) with deep teal accents (#07120e). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep pink primary (#12070b) on a pink-tinted background (#0b0407).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0b0407black
Foreground
#120308black
#fbf9fasnow
Card
#fefbfcsnow
#0b0407black
Card foreground
#120308black
#fbf9fasnow
Popover
#fefbfcsnow
#0b0407black
Popover foreground
#120308black
#fbf9fasnow
Primary
#12070bblack
#12070bblack
Primary foreground
#cc7f9dpalevioletred
#cc7f9dpalevioletred
Secondary
#07120eblack
#07120eblack
Secondary foreground
#41a47emediumseagreen
#41a47emediumseagreen
Muted
#e9f2eewhitesmoke
#0d1613black
Muted foreground
#555e5adimgray
#a1aaa7darkgray
Accent
#07120eblack
#07120eblack
Accent foreground
#41a47emediumseagreen
#41a47emediumseagreen
Destructive
#ab2112firebrick
#ec5746tomato
Destructive foreground
#fef2f1seashell
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#12070bblack
#12070bblack

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button6.67:1AA
Secondary button6.19:1AA
Muted text5.85:1AA
Accent6.19:1AA
Destructive6.49:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button6.67:1AA
Secondary button6.19:1AA
Muted text7.70:1AAA
Accent6.19:1AA
Destructive6.00:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 351.711);
  --foreground: oklch(0.131 0.036 353.508);
  --muted: oklch(0.953 0.011 171.259);
  --muted-foreground: oklch(0.472 0.012 170.814);
  --popover: oklch(0.99 0.004 351.711);
  --popover-foreground: oklch(0.131 0.036 353.508);
  --card: oklch(0.99 0.004 351.711);
  --card-foreground: oklch(0.131 0.036 353.508);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.149 0.022 354.659);
  --primary-foreground: oklch(0.687 0.101 355.551);
  --secondary: oklch(0.171 0.019 168.357);
  --secondary-foreground: oklch(0.65 0.109 164.812);
  --accent: oklch(0.171 0.019 168.357);
  --accent-foreground: oklch(0.65 0.109 164.812);
  --destructive: oklch(0.481 0.175 30.504);
  --destructive-foreground: oklch(0.971 0.012 25.095);
  --ring: oklch(0.149 0.022 354.659);
  --chart-1: oklch(0.149 0.022 354.659);
  --chart-2: oklch(0.171 0.019 168.357);
  --chart-3: oklch(0.171 0.019 168.357);
  --chart-4: oklch(0.214 0.027 167.051);
  --chart-5: oklch(0.149 0.023 354.772);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.017 351.386);
  --foreground: oklch(0.984 0.002 351.654);
  --muted: oklch(0.192 0.016 168.986);
  --muted-foreground: oklch(0.731 0.011 171.144);
  --popover: oklch(0.124 0.017 351.386);
  --popover-foreground: oklch(0.984 0.002 351.654);
  --card: oklch(0.124 0.017 351.386);
  --card-foreground: oklch(0.984 0.002 351.654);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.149 0.022 354.659);
  --primary-foreground: oklch(0.687 0.101 355.551);
  --secondary: oklch(0.171 0.019 168.357);
  --secondary-foreground: oklch(0.65 0.109 164.812);
  --accent: oklch(0.171 0.019 168.357);
  --accent-foreground: oklch(0.65 0.109 164.812);
  --destructive: oklch(0.652 0.187 29.392);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.149 0.022 354.659);
  --chart-1: oklch(0.149 0.022 354.659);
  --chart-2: oklch(0.171 0.019 168.357);
  --chart-3: oklch(0.171 0.019 168.357);
  --chart-4: oklch(0.214 0.027 167.051);
  --chart-5: oklch(0.149 0.023 354.772);
}