Each for shadcn/ui

Each is a shadcn/ui theme built around a muted yellow primary color (#7c7746) with muted blue accents (#464b7c). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the muted yellow primary (#7c7746) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbf8snow
#000000black
Foreground
#121003black
#ffffffwhite
Card
#faf9f5whitesmoke
#030303black
Card foreground
#0d0c02black
#ffffffwhite
Popover
#fcfbf8snow
#000000black
Popover foreground
#121003black
#ffffffwhite
Primary
#7c7746dimgray
#7c7746dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#464b7cdarkslateblue
#464b7cdarkslateblue
Secondary foreground
#f8f9fbghostwhite
#f8f9fbghostwhite
Muted
#e9eaf1lavender
#0e0e16black
Muted foreground
#51525ddimgray
#a2a3aedarkgray
Accent
#464b7cdarkslateblue
#464b7cdarkslateblue
Accent foreground
#f8f9fbghostwhite
#f8f9fbghostwhite
Destructive
#c42303firebrick
#fc4f2ctomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c7746dimgray
#7c7746dimgray

Contrast

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

Light mode
Text on background18.45:1AAA
Text on card18.66:1AAA
Primary button4.59:1AA
Secondary button7.78:1AAA
Muted text6.43:1AA
Accent7.78:1AAA
Destructive5.85:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button4.59:1AA
Secondary button7.78:1AAA
Muted text7.66:1AAA
Accent7.78:1AAA
Destructive3.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 101.353);
  --foreground: oklch(0.171 0.028 104.016);
  --muted: oklch(0.938 0.01 281.107);
  --muted-foreground: oklch(0.441 0.018 280.603);
  --popover: oklch(0.988 0.004 101.353);
  --popover-foreground: oklch(0.171 0.028 104.016);
  --card: oklch(0.983 0.006 101.387);
  --card-foreground: oklch(0.152 0.025 104.597);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.561 0.069 102.828);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.432 0.081 277.629);
  --secondary-foreground: oklch(0.982 0.003 281.231);
  --accent: oklch(0.432 0.081 277.629);
  --accent-foreground: oklch(0.982 0.003 281.231);
  --destructive: oklch(0.529 0.198 32.067);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.561 0.069 102.828);
  --chart-1: oklch(0.561 0.069 102.828);
  --chart-2: oklch(0.432 0.081 277.629);
  --chart-3: oklch(0.432 0.081 277.629);
  --chart-4: oklch(0.455 0.086 277.584);
  --chart-5: oklch(0.568 0.075 102.893);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.169 0.016 279.571);
  --muted-foreground: oklch(0.719 0.016 280.926);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.561 0.069 102.828);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.432 0.081 277.629);
  --secondary-foreground: oklch(0.982 0.003 281.231);
  --accent: oklch(0.432 0.081 277.629);
  --accent-foreground: oklch(0.982 0.003 281.231);
  --destructive: oklch(0.666 0.215 33.138);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.561 0.069 102.828);
  --chart-1: oklch(0.561 0.069 102.828);
  --chart-2: oklch(0.432 0.081 277.629);
  --chart-3: oklch(0.432 0.081 277.629);
  --chart-4: oklch(0.455 0.086 277.584);
  --chart-5: oklch(0.568 0.075 102.893);
}