Enlightened for shadcn/ui

Enlightened is a shadcn/ui theme built around a vivid deep red primary color (#5a020e) with vivid deep orange accents (#5a2202). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the vivid deep red primary (#5a020e) on a red-tinted background (#100506).

Color palette

TokenLightDark
Background
#fcf8f9snow
#100506black
Foreground
#170306black
#fbf9f9snow
Card
#faf5f5whitesmoke
#140608black
Card foreground
#120204black
#fdfcfcsnow
Popover
#faf5f5whitesmoke
#140608black
Popover foreground
#120204black
#fdfcfcsnow
Primary
#5a020emaroon
#5a020emaroon
Primary foreground
#fc92a0lightcoral
#fc92a0lightcoral
Secondary
#5a023amaroon
#5a023amaroon
Secondary foreground
#fc92d5violet
#fc92d5violet
Muted
#ede3e9linen
#1c1218black
Muted foreground
#665c62dimgray
#a3999fdarkgray
Accent
#5a2202maroon
#5a2202maroon
Accent foreground
#fcb992burlywood
#fcb992burlywood
Destructive
#722a09saddlebrown
#d54f10chocolate
Destructive foreground
#f9c9b3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5a020emaroon
#5a020emaroon

Contrast

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

Light mode
Text on background18.94:1AAA
Text on card18.73:1AAA
Primary button6.74:1AA
Secondary button6.80:1AA
Muted text5.12:1AA
Accent7.51:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.38:1AAA
Primary button6.74:1AA
Secondary button6.80:1AA
Muted text6.63:1AA
Accent7.51:1AAA
Destructive4.23:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 7.842);
  --foreground: oklch(0.141 0.04 12.061);
  --muted: oklch(0.925 0.014 339.052);
  --muted-foreground: oklch(0.486 0.016 339.395);
  --popover: oklch(0.974 0.006 7.891);
  --popover-foreground: oklch(0.128 0.035 10.827);
  --card: oklch(0.974 0.006 7.891);
  --card-foreground: oklch(0.128 0.035 10.827);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.296 0.117 22.738);
  --primary-foreground: oklch(0.775 0.129 11.982);
  --secondary: oklch(0.309 0.126 349.391);
  --secondary-foreground: oklch(0.791 0.151 342.502);
  --accent: oklch(0.33 0.091 45.479);
  --accent-foreground: oklch(0.838 0.094 51.099);
  --destructive: oklch(0.385 0.11 41.399);
  --destructive-foreground: oklch(0.873 0.063 46.177);
  --ring: oklch(0.296 0.117 22.738);
  --chart-1: oklch(0.296 0.117 22.738);
  --chart-2: oklch(0.309 0.126 349.391);
  --chart-3: oklch(0.33 0.091 45.479);
  --chart-4: oklch(0.344 0.141 349.834);
  --chart-5: oklch(0.298 0.119 23.07);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.023 9.62);
  --foreground: oklch(0.983 0.002 7.806);
  --muted: oklch(0.198 0.021 340.904);
  --muted-foreground: oklch(0.694 0.014 339.155);
  --popover: oklch(0.146 0.027 10.711);
  --popover-foreground: oklch(0.992 0.001 7.777);
  --card: oklch(0.146 0.027 10.711);
  --card-foreground: oklch(0.992 0.001 7.777);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.296 0.117 22.738);
  --primary-foreground: oklch(0.775 0.129 11.982);
  --secondary: oklch(0.309 0.126 349.391);
  --secondary-foreground: oklch(0.791 0.151 342.502);
  --accent: oklch(0.33 0.091 45.479);
  --accent-foreground: oklch(0.838 0.094 51.099);
  --destructive: oklch(0.602 0.181 40.215);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.296 0.117 22.738);
  --chart-1: oklch(0.296 0.117 22.738);
  --chart-2: oklch(0.309 0.126 349.391);
  --chart-3: oklch(0.33 0.091 45.479);
  --chart-4: oklch(0.344 0.141 349.834);
  --chart-5: oklch(0.298 0.119 23.07);
}