Ego is a shadcn/ui theme built around a muted green primary color (#6a905a) with muted light green accents (#d2d7d0). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the muted green primary (#6a905a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfbsnow | #000000black |
| Foreground | #060c03black | #f7f9f6whitesmoke |
| Card | #f9fcf8mintcream | #030303black |
| Card foreground | #040802black | #f9fbf9mintcream |
| Popover | #f9fcf8mintcream | #030303black |
| Popover foreground | #040802black | #f9fbf9mintcream |
| Primary | #6a905adimgray | #6a905adimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d2d7d0lightgrey | #1d221cblack |
| Secondary foreground | #393f36darkslategray | #b5bfb0silver |
| Muted | #d3e7cblightgrey | #203418darkgreen |
| Muted foreground | #515251darkslategray | #adaeaddarkgray |
| Accent | #d2d7d0lightgrey | #1d221cblack |
| Accent foreground | #393f36darkslategray | #b5bfb0silver |
| Destructive | #b91f04firebrick | #fa320forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6a905adimgray | #6a905adimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 3.64:1 | AA Large |
| Secondary button | 7.42:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 3.64:1 | AA Large |
| Secondary button | 8.53:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 8.53:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Ego in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 136.618);
--foreground: oklch(0.143 0.025 135.038);
--muted: oklch(0.904 0.042 136.754);
--muted-foreground: oklch(0.438 0.003 136.629);
--popover: oklch(0.987 0.006 136.627);
--popover-foreground: oklch(0.125 0.022 134.924);
--card: oklch(0.987 0.006 136.627);
--card-foreground: oklch(0.125 0.022 134.924);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.611 0.089 137.162);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.874 0.011 136.646);
--secondary-foreground: oklch(0.36 0.018 136.767);
--accent: oklch(0.874 0.011 136.646);
--accent-foreground: oklch(0.36 0.018 136.767);
--destructive: oklch(0.506 0.191 31.678);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.611 0.089 137.162);
--chart-1: oklch(0.611 0.089 137.162);
--chart-2: oklch(0.874 0.011 136.646);
--chart-3: oklch(0.874 0.011 136.646);
--chart-4: oklch(0.896 0.009 136.638);
--chart-5: oklch(0.619 0.1 137.25);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.005 136.623);
--muted: oklch(0.3 0.054 137.358);
--muted-foreground: oklch(0.75 0.003 136.619);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.003 136.618);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.003 136.618);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.611 0.089 137.162);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.244 0.013 136.777);
--secondary-foreground: oklch(0.792 0.023 136.696);
--accent: oklch(0.244 0.013 136.777);
--accent-foreground: oklch(0.792 0.023 136.696);
--destructive: oklch(0.638 0.236 31.782);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.611 0.089 137.162);
--chart-1: oklch(0.611 0.089 137.162);
--chart-2: oklch(0.244 0.013 136.777);
--chart-3: oklch(0.244 0.013 136.777);
--chart-4: oklch(0.277 0.016 136.788);
--chart-5: oklch(0.619 0.1 137.25);
}