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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.63:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 9.11:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 6.14:1 | AA |
| Accent | 6.93:1 | AA |
| Destructive | 5.37:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 9.11:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 7.26:1 | AAA |
| Accent | 6.93:1 | AA |
| Destructive | 3.52:1 | AA Large |
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);
}