Enlightened for shadcn/ui

Enlightened is a shadcn/ui theme built around a near-black primary color (#020104) with near-black accents (#010402). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the near-black primary (#020104) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#fcfbfewhite
#020104black
Foreground
#020104black
#ffffffwhite
Card
#fcfbfewhite
#020104black
Card foreground
#020104black
#ffffffwhite
Popover
#fcfbfewhite
#020104black
Popover foreground
#020104black
#ffffffwhite
Primary
#020104black
#020104black
Primary foreground
#c8b8e5thistle
#c8b8e5thistle
Secondary
#040201black
#040201black
Secondary foreground
#ca8e6ddarksalmon
#ca8e6ddarksalmon
Muted
#f1e5dfantiquewhite
#20140eblack
Muted foreground
#544e4adarkslategray
#b5afabdarkgray
Accent
#010402black
#010402black
Accent foreground
#6dca8emediumaquamarine
#6dca8emediumaquamarine
Destructive
#cb1d10firebrick
#ef493etomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020104black
#020104black

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button11.32:1AAA
Secondary button7.48:1AAA
Muted text6.64:1AA
Accent10.29:1AAA
Destructive5.64:1AA
Dark mode
Text on background20.81:1AAA
Text on card20.81:1AAA
Primary button11.32:1AAA
Secondary button7.48:1AAA
Muted text8.28:1AAA
Accent10.29:1AAA
Destructive3.67: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.99 0.003 302.162);
  --foreground: oklch(0.08 0.016 302.85);
  --muted: oklch(0.93 0.015 50.456);
  --muted-foreground: oklch(0.427 0.01 50.37);
  --popover: oklch(0.99 0.003 302.162);
  --popover-foreground: oklch(0.08 0.016 302.85);
  --card: oklch(0.99 0.003 302.162);
  --card-foreground: oklch(0.08 0.016 302.85);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.082 0.014 302.758);
  --primary-foreground: oklch(0.81 0.065 300.937);
  --secondary: oklch(0.091 0.008 57.443);
  --secondary-foreground: oklch(0.698 0.087 49.141);
  --accent: oklch(0.097 0.012 157.742);
  --accent-foreground: oklch(0.766 0.126 153.78);
  --destructive: oklch(0.539 0.207 29.702);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.082 0.014 302.758);
  --chart-1: oklch(0.082 0.014 302.758);
  --chart-2: oklch(0.091 0.008 57.443);
  --chart-3: oklch(0.097 0.012 157.742);
  --chart-4: oklch(0.146 0.014 54.749);
  --chart-5: oklch(0.081 0.015 302.803);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.018 302.949);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.022 49.384);
  --muted-foreground: oklch(0.757 0.009 50.515);
  --popover: oklch(0.079 0.018 302.949);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.079 0.018 302.949);
  --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.082 0.014 302.758);
  --primary-foreground: oklch(0.81 0.065 300.937);
  --secondary: oklch(0.091 0.008 57.443);
  --secondary-foreground: oklch(0.698 0.087 49.141);
  --accent: oklch(0.097 0.012 157.742);
  --accent-foreground: oklch(0.766 0.126 153.78);
  --destructive: oklch(0.642 0.204 28.315);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.082 0.014 302.758);
  --chart-1: oklch(0.082 0.014 302.758);
  --chart-2: oklch(0.091 0.008 57.443);
  --chart-3: oklch(0.097 0.012 157.742);
  --chart-4: oklch(0.146 0.014 54.749);
  --chart-5: oklch(0.081 0.015 302.803);
}