Enlightened for shadcn/ui

Enlightened is a shadcn/ui theme built around a green primary color (#88c77a) with red accents (#c77a88). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#88c77a) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#fcfefbwhite
#040703black
Foreground
#000000black
#f6faf5whitesmoke
Card
#fcfefbwhite
#040703black
Card foreground
#000000black
#f6faf5whitesmoke
Popover
#fcfefbwhite
#040703black
Popover foreground
#000000black
#f6faf5whitesmoke
Primary
#88c77adarkseagreen
#88c77adarkseagreen
Primary foreground
#060b05black
#060b05black
Secondary
#7a88c7mediumpurple
#7a88c7mediumpurple
Secondary foreground
#000000black
#000000black
Muted
#f0f1f5whitesmoke
#0a0b0fblack
Muted foreground
#4d5166dimgray
#999eb2darkgray
Accent
#c77a88rosybrown
#c77a88rosybrown
Accent foreground
#0b0506black
#0b0506black
Destructive
#740902maroon
#fb2718orangered
Destructive foreground
#feafaalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#88c77adarkseagreen
#88c77adarkseagreen

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button9.95:1AAA
Secondary button6.18:1AA
Muted text6.91:1AA
Accent6.33:1AA
Destructive6.70:1AA
Dark mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button9.95:1AAA
Secondary button6.18:1AA
Muted text7.38:1AAA
Accent6.33:1AA
Destructive3.87: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.994 0.004 139.987);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.958 0.006 276.089);
  --muted-foreground: oklch(0.44 0.034 275.018);
  --popover: oklch(0.994 0.004 139.987);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.004 139.987);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.769 0.125 139.918);
  --primary-foreground: oklch(0.139 0.019 138.732);
  --secondary: oklch(0.641 0.096 273.72);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.666 0.098 8.187);
  --accent-foreground: oklch(0.124 0.015 4.618);
  --destructive: oklch(0.355 0.139 30.333);
  --destructive-foreground: oklch(0.828 0.093 23.805);
  --ring: oklch(0.769 0.125 139.918);
  --chart-1: oklch(0.769 0.125 139.918);
  --chart-2: oklch(0.641 0.096 273.72);
  --chart-3: oklch(0.666 0.098 8.187);
  --chart-4: oklch(0.671 0.088 274.091);
  --chart-5: oklch(0.774 0.133 139.925);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.018 138.597);
  --foreground: oklch(0.98 0.007 139.984);
  --muted: oklch(0.151 0.009 275.317);
  --muted-foreground: oklch(0.702 0.03 275.564);
  --popover: oklch(0.122 0.018 138.597);
  --popover-foreground: oklch(0.98 0.007 139.984);
  --card: oklch(0.122 0.018 138.597);
  --card-foreground: oklch(0.98 0.007 139.984);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.769 0.125 139.918);
  --primary-foreground: oklch(0.139 0.019 138.732);
  --secondary: oklch(0.641 0.096 273.72);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.666 0.098 8.187);
  --accent-foreground: oklch(0.124 0.015 4.618);
  --destructive: oklch(0.634 0.243 29.694);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.125 139.918);
  --chart-1: oklch(0.769 0.125 139.918);
  --chart-2: oklch(0.641 0.096 273.72);
  --chart-3: oklch(0.666 0.098 8.187);
  --chart-4: oklch(0.671 0.088 274.091);
  --chart-5: oklch(0.774 0.133 139.925);
}