Eponym for shadcn/ui

Eponym is a shadcn/ui theme built around a vivid deep green primary color (#047130) with vivid deep pink accents (#710446). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#047130) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#ffffffwhite
#030705black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#050a07black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#030705black
Popover foreground
#000000black
#ffffffwhite
Primary
#047130forestgreen
#047130forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#710446purple
#710446purple
Secondary foreground
#fcabdcpink
#fcabdcpink
Muted
#f1e5eclinen
#1a0e16black
Muted foreground
#6a5361dimgray
#ac95a3darkgray
Accent
#710446purple
#710446purple
Accent foreground
#fcabdcpink
#fcabdcpink
Destructive
#a02e08saddlebrown
#f34a12orangered
Destructive foreground
#fde5ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#047130forestgreen
#047130forestgreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.14:1AA
Secondary button6.62:1AA
Muted text5.65:1AA
Accent6.62:1AA
Destructive6.02:1AA
Dark mode
Text on background20.25:1AAA
Text on card19.90:1AAA
Primary button6.14:1AA
Secondary button6.62:1AA
Muted text6.76:1AA
Accent6.62:1AA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.932 0.016 340.616);
  --muted-foreground: oklch(0.47 0.036 341.903);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --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.48 0.133 149.231);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.363 0.147 352.144);
  --secondary-foreground: oklch(0.834 0.112 343.069);
  --accent: oklch(0.363 0.147 352.144);
  --accent-foreground: oklch(0.834 0.112 343.069);
  --destructive: oklch(0.473 0.155 36.196);
  --destructive-foreground: oklch(0.94 0.029 39.347);
  --ring: oklch(0.48 0.133 149.231);
  --chart-1: oklch(0.48 0.133 149.231);
  --chart-2: oklch(0.363 0.147 352.144);
  --chart-3: oklch(0.363 0.147 352.144);
  --chart-4: oklch(0.396 0.16 352.461);
  --chart-5: oklch(0.485 0.136 148.995);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.012 160.152);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.024 342.963);
  --muted-foreground: oklch(0.695 0.033 341.273);
  --popover: oklch(0.121 0.012 160.152);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.014 160.14);
  --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.48 0.133 149.231);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.363 0.147 352.144);
  --secondary-foreground: oklch(0.834 0.112 343.069);
  --accent: oklch(0.363 0.147 352.144);
  --accent-foreground: oklch(0.834 0.112 343.069);
  --destructive: oklch(0.644 0.213 36.063);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.48 0.133 149.231);
  --chart-1: oklch(0.48 0.133 149.231);
  --chart-2: oklch(0.363 0.147 352.144);
  --chart-3: oklch(0.363 0.147 352.144);
  --chart-4: oklch(0.396 0.16 352.461);
  --chart-5: oklch(0.485 0.136 148.995);
}