Ejector for shadcn/ui

Ejector is a shadcn/ui theme built around a muted deep green primary color (#0d0f0a) with muted deep violet accents (#0c0a0f). The light mode uses a neutral background (#fafcf8). Dark mode keeps the muted deep green primary (#0d0f0a) on a green-tinted background (#080b05).

Color palette

TokenLightDark
Background
#fafcf8snow
#080b05black
Foreground
#0b1004black
#fdfdfcwhite
Card
#fafcf8snow
#080b05black
Card foreground
#0b1004black
#fdfdfcwhite
Popover
#fafcf8snow
#080b05black
Popover foreground
#0b1004black
#fdfdfcwhite
Primary
#0d0f0ablack
#0d0f0ablack
Primary foreground
#a9b893darkseagreen
#a9b893darkseagreen
Secondary
#0c0a0fblack
#0c0a0fblack
Secondary foreground
#a293b8darkgray
#a293b8darkgray
Muted
#d7cee3gainsboro
#241c31darkslategray
Muted foreground
#4b4455darkslategray
#b1aabbdarkgray
Accent
#0c0a0fblack
#0c0a0fblack
Accent foreground
#a293b8darkgray
#a293b8darkgray
Destructive
#c83204firebrick
#fa460forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d0f0ablack
#0d0f0ablack

Contrast

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

Light mode
Text on background18.63:1AAA
Text on card18.63:1AAA
Primary button9.11:1AAA
Secondary button6.93:1AA
Muted text6.14:1AA
Accent6.93:1AA
Destructive5.37:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button9.11:1AAA
Secondary button6.93:1AA
Muted text7.26:1AAA
Accent6.93:1AA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 124.416);
  --foreground: oklch(0.164 0.027 125.351);
  --muted: oklch(0.866 0.03 303.857);
  --muted-foreground: oklch(0.4 0.029 303.299);
  --popover: oklch(0.988 0.005 124.416);
  --popover-foreground: oklch(0.164 0.027 125.351);
  --card: oklch(0.988 0.005 124.416);
  --card-foreground: oklch(0.164 0.027 125.351);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.166 0.011 125.365);
  --primary-foreground: oklch(0.763 0.054 125.4);
  --secondary: oklch(0.151 0.012 303.203);
  --secondary-foreground: oklch(0.689 0.057 303.163);
  --accent: oklch(0.151 0.012 303.203);
  --accent-foreground: oklch(0.689 0.057 303.163);
  --destructive: oklch(0.548 0.192 34.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.166 0.011 125.365);
  --chart-1: oklch(0.166 0.011 125.365);
  --chart-2: oklch(0.151 0.012 303.203);
  --chart-3: oklch(0.151 0.012 303.203);
  --chart-4: oklch(0.182 0.018 302.914);
  --chart-5: oklch(0.167 0.013 125.495);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.015 123.869);
  --foreground: oklch(0.994 0.002 124.376);
  --muted: oklch(0.246 0.04 301.942);
  --muted-foreground: oklch(0.749 0.025 303.869);
  --popover: oklch(0.142 0.015 123.869);
  --popover-foreground: oklch(0.994 0.002 124.376);
  --card: oklch(0.142 0.015 123.869);
  --card-foreground: oklch(0.994 0.002 124.376);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.166 0.011 125.365);
  --primary-foreground: oklch(0.763 0.054 125.4);
  --secondary: oklch(0.151 0.012 303.203);
  --secondary-foreground: oklch(0.689 0.057 303.163);
  --accent: oklch(0.151 0.012 303.203);
  --accent-foreground: oklch(0.689 0.057 303.163);
  --destructive: oklch(0.653 0.223 34.977);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.166 0.011 125.365);
  --chart-1: oklch(0.166 0.011 125.365);
  --chart-2: oklch(0.151 0.012 303.203);
  --chart-3: oklch(0.151 0.012 303.203);
  --chart-4: oklch(0.182 0.018 302.914);
  --chart-5: oklch(0.167 0.013 125.495);
}