Empowerment for shadcn/ui

Empowerment is a shadcn/ui theme built around a deep violet primary color (#190d26) with deep green accents (#0d2619). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#190d26) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#ffffffwhite
#020104black
Foreground
#0c0515black
#faf9fbghostwhite
Card
#fcfcfcsnow
#050208black
Card foreground
#0a0411black
#fcfcfdwhite
Popover
#ffffffwhite
#020104black
Popover foreground
#0c0515black
#faf9fbghostwhite
Primary
#190d26black
#190d26black
Primary foreground
#b08cd9mediumpurple
#b08cd9mediumpurple
Secondary
#26190dblack
#26190dblack
Secondary foreground
#d9b08ctan
#d9b08ctan
Muted
#e4ddd8gainsboro
#27211bblack
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#0d2619black
#0d2619black
Accent foreground
#40bf7bmediumseagreen
#40bf7bmediumseagreen
Destructive
#772008maroon
#f0572dtomato
Destructive foreground
#fac6b7lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#190d26black
#190d26black

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card19.78:1AAA
Primary button6.75:1AA
Secondary button8.60:1AAA
Muted text5.22:1AA
Accent6.83:1AA
Destructive6.90:1AA
Dark mode
Text on background19.82:1AAA
Text on card20.10:1AAA
Primary button6.75:1AA
Secondary button8.60:1AAA
Muted text6.54:1AA
Accent6.83:1AA
Destructive6.13:1AA

CSS variables

Paste this into your globals.css to use Empowerment in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.038 305.161);
  --muted: oklch(0.903 0.011 63.937);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.137 0.038 305.161);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.033 306.808);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.19 0.052 303.402);
  --primary-foreground: oklch(0.703 0.115 305.046);
  --secondary: oklch(0.226 0.03 61.552);
  --secondary-foreground: oklch(0.785 0.068 62.775);
  --accent: oklch(0.245 0.041 157.931);
  --accent-foreground: oklch(0.719 0.15 155.847);
  --destructive: oklch(0.383 0.125 35.172);
  --destructive-foreground: oklch(0.869 0.063 35.98);
  --ring: oklch(0.19 0.052 303.402);
  --chart-1: oklch(0.19 0.052 303.402);
  --chart-2: oklch(0.226 0.03 61.552);
  --chart-3: oklch(0.245 0.041 157.931);
  --chart-4: oklch(0.262 0.038 61.201);
  --chart-5: oklch(0.189 0.054 303.112);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.08 0.019 308.648);
  --foreground: oklch(0.983 0.002 307.083);
  --muted: oklch(0.252 0.015 63.267);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.08 0.019 308.648);
  --popover-foreground: oklch(0.983 0.002 307.083);
  --card: oklch(0.101 0.023 308.648);
  --card-foreground: oklch(0.992 0.001 307.098);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.19 0.052 303.402);
  --primary-foreground: oklch(0.703 0.115 305.046);
  --secondary: oklch(0.226 0.03 61.552);
  --secondary-foreground: oklch(0.785 0.068 62.775);
  --accent: oklch(0.245 0.041 157.931);
  --accent-foreground: oklch(0.719 0.15 155.847);
  --destructive: oklch(0.657 0.196 35.844);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.19 0.052 303.402);
  --chart-1: oklch(0.19 0.052 303.402);
  --chart-2: oklch(0.226 0.03 61.552);
  --chart-3: oklch(0.245 0.041 157.931);
  --chart-4: oklch(0.262 0.038 61.201);
  --chart-5: oklch(0.189 0.054 303.112);
}