Each for shadcn/ui

Each is a shadcn/ui theme built around a near-black primary color (#050505) with near-black accents (#050505). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#050505) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fefbfbsnow
#070303black
Foreground
#110303black
#fdfcfcsnow
Card
#fefbfbsnow
#070303black
Card foreground
#110303black
#fdfcfcsnow
Popover
#fefbfbsnow
#070303black
Popover foreground
#110303black
#fdfcfcsnow
Primary
#050505black
#050505black
Primary foreground
#9e9e9edarkgray
#9e9e9edarkgray
Secondary
#050505black
#050505black
Secondary foreground
#9e9e9edarkgray
#9e9e9edarkgray
Muted
#ded9d9gainsboro
#262121black
Muted foreground
#564343darkslategray
#bca9a9darkgray
Accent
#050505black
#050505black
Accent foreground
#9e9e9edarkgray
#9e9e9edarkgray
Destructive
#7e1d02maroon
#e23403orangered
Destructive foreground
#fec4b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#050505black
#050505black

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.67:1AAA
Primary button7.60:1AAA
Secondary button7.60:1AAA
Muted text6.58:1AA
Accent7.60:1AAA
Destructive6.70:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button7.60:1AAA
Secondary button7.60:1AAA
Muted text7.08:1AAA
Accent7.60:1AAA
Destructive4.44: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.991 0.003 17.202);
  --foreground: oklch(0.129 0.031 22.516);
  --muted: oklch(0.889 0.005 17.26);
  --muted-foreground: oklch(0.402 0.028 18.365);
  --popover: oklch(0.991 0.003 17.202);
  --popover-foreground: oklch(0.129 0.031 22.516);
  --card: oklch(0.991 0.003 17.202);
  --card-foreground: oklch(0.129 0.031 22.516);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.116 0 180);
  --primary-foreground: oklch(0.7 0 180);
  --secondary: oklch(0.116 0 180);
  --secondary-foreground: oklch(0.7 0 180);
  --accent: oklch(0.116 0 180);
  --accent-foreground: oklch(0.7 0 180);
  --destructive: oklch(0.39 0.136 34.778);
  --destructive-foreground: oklch(0.867 0.071 36);
  --ring: oklch(0.116 0 180);
  --chart-1: oklch(0.116 0 180);
  --chart-2: oklch(0.116 0 180);
  --chart-3: oklch(0.116 0 180);
  --chart-4: oklch(0.158 0 169.695);
  --chart-5: oklch(0.115 0.001 17.277);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.013 19.401);
  --foreground: oklch(0.991 0.002 17.187);
  --muted: oklch(0.254 0.008 17.664);
  --muted-foreground: oklch(0.75 0.023 17.679);
  --popover: oklch(0.107 0.013 19.401);
  --popover-foreground: oklch(0.991 0.002 17.187);
  --card: oklch(0.107 0.013 19.401);
  --card-foreground: oklch(0.991 0.002 17.187);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.116 0 180);
  --primary-foreground: oklch(0.7 0 180);
  --secondary: oklch(0.116 0 180);
  --secondary-foreground: oklch(0.7 0 180);
  --accent: oklch(0.116 0 180);
  --accent-foreground: oklch(0.7 0 180);
  --destructive: oklch(0.596 0.215 33.572);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.116 0 180);
  --chart-1: oklch(0.116 0 180);
  --chart-2: oklch(0.116 0 180);
  --chart-3: oklch(0.116 0 180);
  --chart-4: oklch(0.158 0 169.695);
  --chart-5: oklch(0.115 0.001 17.277);
}