Lumens.v3 for shadcn/ui

Lumens.v3 is a shadcn/ui theme built around a vivid deep red primary color (#860202) with vivid red accents (#ed4040). The light mode uses a red-tinted background (#f8f7f7). Dark mode switches to a vivid red primary (#c40202) on a neutral background (#18181c).

Color palette

TokenLightDark
Background
#f8f7f7whitesmoke
#18181cblack
Foreground
#333333darkslategray
#f2f2f2whitesmoke
Card
#ffffffwhite
#21222ddarkslategray
Card foreground
#333333darkslategray
#f2f2f2whitesmoke
Popover
#ffffffwhite
#121212black
Popover foreground
#333333darkslategray
#f2f2f2whitesmoke
Primary
#860202darkred
#c40202firebrick
Primary foreground
#ffffffwhite
#f2f2f2whitesmoke
Secondary
#ffc107gold
#ffc033goldenrod
Secondary foreground
#161616black
#131313black
Muted
#f2f2f2whitesmoke
#333333darkslategray
Muted foreground
#333333darkslategray
#f2f2f2whitesmoke
Accent
#ed4040tomato
#850000maroon
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#474747darkslategray
#d6d6d6lightgrey
Destructive foreground
#ffffffwhite
#0a0a0ablack
Border
#e6e6e6gainsboro
#4d4d4ddarkslategray
Input
#ffffffwhite
#333333darkslategray
Ring
#ff3333crimson
#c2c2c2silver

Contrast

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

Light mode
Text on background11.78:1AAA
Text on card12.63:1AAA
Primary button10.37:1AAA
Secondary button11.10:1AAA
Muted text11.31:1AAA
Accent3.88:1AA Large
Destructive9.34:1AAA
Dark mode
Text on background15.81:1AAA
Text on card14.09:1AAA
Primary button5.58:1AA
Secondary button11.35:1AAA
Muted text11.28:1AAA
Accent10.48:1AAA
Destructive13.64:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.976 0.001 17.182);
  --foreground: oklch(0.321 0 180);
  --muted: oklch(0.962 0 180);
  --muted-foreground: oklch(0.321 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.321 0 180);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.321 0 180);
  --border: oklch(0.923 0 153.435);
  --input: oklch(1 0 180);
  --primary: oklch(0.39 0.159 29.027);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.844 0.172 84.932);
  --secondary-foreground: oklch(0.198 0 180);
  --accent: oklch(0.629 0.211 25.655);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.396 0 180);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.237 26.973);
  --chart-1: oklch(0.39 0.159 29.027);
  --chart-2: oklch(0.844 0.172 84.932);
  --chart-3: oklch(0.477 0.155 258.126);
  --chart-4: oklch(0.61 0.105 249.912);
  --chart-5: oklch(0.652 0.242 27.228);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.211 0.008 285.71);
  --foreground: oklch(0.962 0 180);
  --muted: oklch(0.321 0 180);
  --muted-foreground: oklch(0.962 0 180);
  --popover: oklch(0.181 0 195.945);
  --popover-foreground: oklch(0.962 0 180);
  --card: oklch(0.256 0.021 280.755);
  --card-foreground: oklch(0.962 0 180);
  --border: oklch(0.418 0 173.29);
  --input: oklch(0.321 0 180);
  --primary: oklch(0.516 0.211 29.156);
  --primary-foreground: oklch(0.961 0 180);
  --secondary: oklch(0.844 0.16 82.286);
  --secondary-foreground: oklch(0.187 0 170.538);
  --accent: oklch(0.388 0.159 29.234);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.877 0 180);
  --destructive-foreground: oklch(0.144 0 180);
  --ring: oklch(0.815 0 201.801);
  --chart-1: oklch(0.55 0.218 28.511);
  --chart-2: oklch(0.844 0.16 82.286);
  --chart-3: oklch(0.682 0.206 24.43);
  --chart-4: oklch(0.914 0.097 86.439);
  --chart-5: oklch(0.555 0.222 28.695);
}