Enlightened for shadcn/ui

Enlightened is a shadcn/ui theme built around a muted light yellow primary color (#d6d5cd) with muted light indigo accents (#cdcdd6). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the muted light yellow primary (#d6d5cd) on a yellow-tinted background (#0c0c04).

Color palette

TokenLightDark
Background
#fdfdf7snow
#0c0c04black
Foreground
#161504black
#f9f9f6whitesmoke
Card
#fcfcf2floralwhite
#100f05black
Card foreground
#111103black
#fbfbf9snow
Popover
#fdfdf7snow
#0c0c04black
Popover foreground
#161504black
#f9f9f6whitesmoke
Primary
#d6d5cdlightgrey
#d6d5cdlightgrey
Primary foreground
#3e3d32darkslategray
#3e3d32darkslategray
Secondary
#cdcdd6lightgrey
#cdcdd6lightgrey
Secondary foreground
#32333edarkslategray
#32333edarkslategray
Muted
#d2d2e5gainsboro
#1a1b2dblack
Muted foreground
#5b5b5ddimgray
#a2a2a4darkgray
Accent
#cdcdd6lightgrey
#cdcdd6lightgrey
Accent foreground
#32333edarkslategray
#32333edarkslategray
Destructive
#7c1204maroon
#e92107red
Destructive foreground
#fdbdb5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d6d5cdlightgrey
#d6d5cdlightgrey

Contrast

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

Light mode
Text on background17.98:1AAA
Text on card18.41:1AAA
Primary button7.44:1AAA
Secondary button7.90:1AAA
Muted text4.55:1AA
Accent7.90:1AAA
Destructive6.76:1AA
Dark mode
Text on background18.65:1AAA
Text on card18.52:1AAA
Primary button7.44:1AAA
Secondary button7.90:1AAA
Muted text6.66:1AA
Accent7.90:1AAA
Destructive4.49: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.992 0.008 104.954);
  --foreground: oklch(0.191 0.032 107.391);
  --muted: oklch(0.87 0.026 284.278);
  --muted-foreground: oklch(0.472 0.003 284.702);
  --popover: oklch(0.992 0.008 104.954);
  --popover-foreground: oklch(0.191 0.032 107.391);
  --card: oklch(0.988 0.012 105.026);
  --card-foreground: oklch(0.173 0.028 107.457);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.872 0.012 105.047);
  --primary-foreground: oklch(0.358 0.018 105.654);
  --secondary: oklch(0.85 0.012 284.552);
  --secondary-foreground: oklch(0.325 0.019 283.717);
  --accent: oklch(0.85 0.012 284.552);
  --accent-foreground: oklch(0.325 0.019 283.717);
  --destructive: oklch(0.377 0.141 31.228);
  --destructive-foreground: oklch(0.855 0.075 27.269);
  --ring: oklch(0.872 0.012 105.047);
  --chart-1: oklch(0.872 0.012 105.047);
  --chart-2: oklch(0.85 0.012 284.552);
  --chart-3: oklch(0.85 0.012 284.552);
  --chart-4: oklch(0.876 0.01 284.603);
  --chart-5: oklch(0.875 0.016 105.116);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.019 107.151);
  --foreground: oklch(0.981 0.005 104.891);
  --muted: oklch(0.23 0.036 281.67);
  --muted-foreground: oklch(0.714 0.003 284.745);
  --popover: oklch(0.149 0.019 107.151);
  --popover-foreground: oklch(0.981 0.005 104.891);
  --card: oklch(0.167 0.022 107.021);
  --card-foreground: oklch(0.988 0.003 104.863);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.872 0.012 105.047);
  --primary-foreground: oklch(0.358 0.018 105.654);
  --secondary: oklch(0.85 0.012 284.552);
  --secondary-foreground: oklch(0.325 0.019 283.717);
  --accent: oklch(0.85 0.012 284.552);
  --accent-foreground: oklch(0.325 0.019 283.717);
  --destructive: oklch(0.596 0.231 30.694);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.872 0.012 105.047);
  --chart-1: oklch(0.872 0.012 105.047);
  --chart-2: oklch(0.85 0.012 284.552);
  --chart-3: oklch(0.85 0.012 284.552);
  --chart-4: oklch(0.876 0.01 284.603);
  --chart-5: oklch(0.875 0.016 105.116);
}