Enlightened for shadcn/ui

Enlightened is a shadcn/ui theme built around a muted deep pink primary color (#51343e) with muted deep teal accents (#345147). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep pink primary (#51343e) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#0c0306black
#ffffffwhite
Card
#fcfcfcsnow
#070305black
Card foreground
#080204black
#ffffffwhite
Popover
#ffffffwhite
#030202black
Popover foreground
#0c0306black
#ffffffwhite
Primary
#51343edarkslategray
#51343edarkslategray
Primary foreground
#e3d3d9gainsboro
#e3d3d9gainsboro
Secondary
#345147darkslategray
#345147darkslategray
Secondary foreground
#d3e3degainsboro
#d3e3degainsboro
Muted
#e8f2efwhitesmoke
#0d1713black
Muted foreground
#454545darkslategray
#bababasilver
Accent
#345147darkslategray
#345147darkslategray
Accent foreground
#d3e3degainsboro
#d3e3degainsboro
Destructive
#b5370dfirebrick
#f05e2dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#51343edarkslategray
#51343edarkslategray

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.13:1AAA
Primary button7.65:1AAA
Secondary button6.56:1AA
Muted text8.40:1AAA
Accent6.56:1AA
Destructive5.97:1AA
Dark mode
Text on background20.73:1AAA
Text on card20.48:1AAA
Primary button7.65:1AAA
Secondary button6.56:1AA
Muted text9.41:1AAA
Accent6.56:1AA
Destructive6.35:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.022 353.45);
  --muted: oklch(0.953 0.012 173.205);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.121 0.022 353.45);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.019 353.208);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.362 0.045 356.933);
  --primary-foreground: oklch(0.883 0.019 354.18);
  --secondary: oklch(0.408 0.039 170.363);
  --secondary-foreground: oklch(0.903 0.018 172.972);
  --accent: oklch(0.408 0.039 170.363);
  --accent-foreground: oklch(0.903 0.018 172.972);
  --destructive: oklch(0.52 0.17 36.337);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.362 0.045 356.933);
  --chart-1: oklch(0.362 0.045 356.933);
  --chart-2: oklch(0.408 0.039 170.363);
  --chart-3: oklch(0.408 0.039 170.363);
  --chart-4: oklch(0.439 0.043 170.304);
  --chart-5: oklch(0.36 0.051 357.414);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.009 353.353);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.193 0.017 170.699);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0.087 0.009 353.353);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.012 353.353);
  --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.362 0.045 356.933);
  --primary-foreground: oklch(0.883 0.019 354.18);
  --secondary: oklch(0.408 0.039 170.363);
  --secondary-foreground: oklch(0.903 0.018 172.972);
  --accent: oklch(0.408 0.039 170.363);
  --accent-foreground: oklch(0.903 0.018 172.972);
  --destructive: oklch(0.665 0.191 37.876);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.362 0.045 356.933);
  --chart-1: oklch(0.362 0.045 356.933);
  --chart-2: oklch(0.408 0.039 170.363);
  --chart-3: oklch(0.408 0.039 170.363);
  --chart-4: oklch(0.439 0.043 170.304);
  --chart-5: oklch(0.36 0.051 357.414);
}