Every for shadcn/ui

Every is a shadcn/ui theme built around a muted cyan primary color (#a2b9be) with muted red accents (#bea6a2). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the muted cyan primary (#a2b9be) on a cyan-tinted background (#050a0b).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#050a0bblack
Foreground
#010404black
#fcfdfdwhite
Card
#f7fcfdghostwhite
#050a0bblack
Card foreground
#010404black
#fcfdfdwhite
Popover
#f7fcfdghostwhite
#050a0bblack
Popover foreground
#010404black
#fcfdfdwhite
Primary
#a2b9bedarkgray
#a2b9bedarkgray
Primary foreground
#131a1bblack
#131a1bblack
Secondary
#bea6a2darkgray
#bea6a2darkgray
Secondary foreground
#1b1413black
#1b1413black
Muted
#f0ebealinen
#15100fblack
Muted foreground
#5b4743darkolivegreen
#bca8a4darkgray
Accent
#bea6a2darkgray
#bea6a2darkgray
Accent foreground
#1b1413black
#1b1413black
Destructive
#8d2201darkred
#fd4912orangered
Destructive foreground
#fed0c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a2b9bedarkgray
#a2b9bedarkgray

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button8.60:1AAA
Secondary button7.95:1AAA
Muted text7.32:1AAA
Accent7.95:1AAA
Destructive6.33:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button8.60:1AAA
Secondary button7.95:1AAA
Muted text8.34:1AAA
Accent7.95:1AAA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 211.039);
  --foreground: oklch(0.097 0.012 206.769);
  --muted: oklch(0.944 0.006 31.055);
  --muted-foreground: oklch(0.418 0.028 31.327);
  --popover: oklch(0.988 0.006 211.039);
  --popover-foreground: oklch(0.097 0.012 206.769);
  --card: oklch(0.988 0.006 211.039);
  --card-foreground: oklch(0.097 0.012 206.769);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.771 0.027 211.075);
  --primary-foreground: oklch(0.21 0.011 211.147);
  --secondary: oklch(0.746 0.029 31.164);
  --secondary-foreground: oklch(0.2 0.012 31.272);
  --accent: oklch(0.746 0.029 31.164);
  --accent-foreground: oklch(0.2 0.012 31.272);
  --destructive: oklch(0.426 0.148 35.161);
  --destructive-foreground: oklch(0.895 0.056 37.592);
  --ring: oklch(0.771 0.027 211.075);
  --chart-1: oklch(0.771 0.027 211.075);
  --chart-2: oklch(0.746 0.029 31.164);
  --chart-3: oklch(0.746 0.029 31.164);
  --chart-4: oklch(0.771 0.026 31.14);
  --chart-5: oklch(0.773 0.031 211.095);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.011 208.451);
  --foreground: oklch(0.993 0.001 211.043);
  --muted: oklch(0.178 0.009 31.237);
  --muted-foreground: oklch(0.748 0.024 31.134);
  --popover: oklch(0.137 0.011 208.451);
  --popover-foreground: oklch(0.993 0.001 211.043);
  --card: oklch(0.137 0.011 208.451);
  --card-foreground: oklch(0.993 0.001 211.043);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.771 0.027 211.075);
  --primary-foreground: oklch(0.21 0.011 211.147);
  --secondary: oklch(0.746 0.029 31.164);
  --secondary-foreground: oklch(0.2 0.012 31.272);
  --accent: oklch(0.746 0.029 31.164);
  --accent-foreground: oklch(0.2 0.012 31.272);
  --destructive: oklch(0.66 0.224 35.153);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.771 0.027 211.075);
  --chart-1: oklch(0.771 0.027 211.075);
  --chart-2: oklch(0.746 0.029 31.164);
  --chart-3: oklch(0.746 0.029 31.164);
  --chart-4: oklch(0.771 0.026 31.14);
  --chart-5: oklch(0.773 0.031 211.095);
}