Enlightened for shadcn/ui

Enlightened is a shadcn/ui theme built around a vivid purple primary color (#af0d87) with vivid green accents (#0daf36). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#af0d87) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#080207black
#ffffffwhite
Card
#fcfcfcsnow
#070306black
Card foreground
#040103black
#ffffffwhite
Popover
#fcfcfcsnow
#070306black
Popover foreground
#040103black
#ffffffwhite
Primary
#af0d87mediumvioletred
#af0d87mediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0daf36forestgreen
#0daf36forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d4eddagainsboro
#122b18black
Muted foreground
#5a635cdimgray
#9ca59edarkgray
Accent
#0daf36forestgreen
#0daf36forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#961f0dbrown
#dd2e13orangered
Destructive foreground
#fcded9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#af0d87mediumvioletred
#af0d87mediumvioletred

Contrast

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

Light mode
Text on background20.54:1AAA
Text on card20.32:1AAA
Primary button6.47:1AA
Secondary button2.90:1Fail
Muted text5.00:1AA
Accent2.90:1Fail
Destructive6.62:1AA
Dark mode
Text on background20.72:1AAA
Text on card20.46:1AAA
Primary button6.47:1AA
Secondary button2.90:1Fail
Muted text5.99:1AA
Accent2.90:1Fail
Destructive4.70: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.107 0.023 334.615);
  --muted: oklch(0.922 0.036 153.202);
  --muted-foreground: oklch(0.489 0.016 153.305);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.085 0.018 334.615);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.085 0.018 334.615);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.511 0.213 342.268);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.658 0.201 145.412);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.658 0.201 145.412);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.441 0.157 31.596);
  --destructive-foreground: oklch(0.924 0.034 28.159);
  --ring: oklch(0.511 0.213 342.268);
  --chart-1: oklch(0.511 0.213 342.268);
  --chart-2: oklch(0.658 0.201 145.412);
  --chart-3: oklch(0.658 0.201 145.412);
  --chart-4: oklch(0.697 0.214 145.355);
  --chart-5: oklch(0.516 0.217 342.527);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.01 334.282);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.046 150.298);
  --muted-foreground: oklch(0.713 0.015 153.523);
  --popover: oklch(0.111 0.013 334.282);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.013 334.282);
  --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.511 0.213 342.268);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.658 0.201 145.412);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.658 0.201 145.412);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.582 0.213 31.497);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.511 0.213 342.268);
  --chart-1: oklch(0.511 0.213 342.268);
  --chart-2: oklch(0.658 0.201 145.412);
  --chart-3: oklch(0.658 0.201 145.412);
  --chart-4: oklch(0.697 0.214 145.355);
  --chart-5: oklch(0.516 0.217 342.527);
}