Enlightened for shadcn/ui

Enlightened is a shadcn/ui theme built around a deep cyan primary color (#0f2229) with deep green accents (#22290f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#0f2229) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010304black
#f5f8f9whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#f9fafbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#010304black
#f5f8f9whitesmoke
Primary
#0f2229black
#0f2229black
Primary foreground
#94c3d6skyblue
#94c3d6skyblue
Secondary
#290f22black
#290f22black
Secondary foreground
#d694c3plum
#d694c3plum
Muted
#f4ebf2whitesmoke
#140b11black
Muted foreground
#544550darkslategray
#baabb6darkgray
Accent
#22290fblack
#22290fblack
Accent foreground
#9aba4ayellowgreen
#9aba4ayellowgreen
Destructive
#861b09darkred
#f13d1eorangered
Destructive foreground
#fbcec5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f2229black
#0f2229black

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.54:1AAA
Primary button8.64:1AAA
Secondary button7.48:1AAA
Muted text7.69:1AAA
Accent6.85:1AA
Destructive6.75:1AA
Dark mode
Text on background19.67:1AAA
Text on card19.78:1AAA
Primary button8.64:1AAA
Secondary button7.48:1AAA
Muted text8.84:1AAA
Accent6.85: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(1 0 180);
  --foreground: oklch(0.094 0.009 217.966);
  --muted: oklch(0.949 0.013 335.441);
  --muted-foreground: oklch(0.41 0.027 336.347);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.094 0.009 217.966);
  --card: oklch(0.992 0 161.565);
  --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.238 0.028 225.527);
  --primary-foreground: oklch(0.791 0.057 224.209);
  --secondary: oklch(0.217 0.051 339.129);
  --secondary-foreground: oklch(0.746 0.101 337.489);
  --accent: oklch(0.265 0.044 122.444);
  --accent-foreground: oklch(0.743 0.144 123.262);
  --destructive: oklch(0.406 0.145 32.142);
  --destructive-foreground: oklch(0.887 0.053 29.801);
  --ring: oklch(0.238 0.028 225.527);
  --chart-1: oklch(0.238 0.028 225.527);
  --chart-2: oklch(0.217 0.051 339.129);
  --chart-3: oklch(0.265 0.044 122.444);
  --chart-4: oklch(0.248 0.062 339.412);
  --chart-5: oklch(0.239 0.029 225.771);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.004 223.166);
  --muted: oklch(0.164 0.02 337.305);
  --muted-foreground: oklch(0.757 0.023 335.738);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.004 223.166);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.985 0.002 223.154);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.238 0.028 225.527);
  --primary-foreground: oklch(0.791 0.057 224.209);
  --secondary: oklch(0.217 0.051 339.129);
  --secondary-foreground: oklch(0.746 0.101 337.489);
  --accent: oklch(0.265 0.044 122.444);
  --accent-foreground: oklch(0.743 0.144 123.262);
  --destructive: oklch(0.63 0.22 32.237);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.238 0.028 225.527);
  --chart-1: oklch(0.238 0.028 225.527);
  --chart-2: oklch(0.217 0.051 339.129);
  --chart-3: oklch(0.265 0.044 122.444);
  --chart-4: oklch(0.248 0.062 339.412);
  --chart-5: oklch(0.239 0.029 225.771);
}