Egg is a shadcn/ui theme built around a violet primary color (#9c73e8) with muted light violet accents (#c8c0d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#9c73e8) on a violet-tinted background (#06030c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06030cblack |
| Foreground | #020104black | #ffffffwhite |
| Card | #fcfcfcsnow | #080410black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #080410black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #9c73e8mediumpurple | #9c73e8mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #d9d5e2gainsboro | #141217black |
| Secondary foreground | #3f364fdarkslategray | #aaa3b8darkgray |
| Muted | #d6d1e1gainsboro | #241e2edarkslategray |
| Muted foreground | #5f5969dimgray | #9c96a6darkgray |
| Accent | #c8c0d8thistle | #262131darkslategray |
| Accent foreground | #2f273fdarkslategray | #beb6cdsilver |
| Destructive | #97260cbrown | #ef5e3etomato |
| Destructive foreground | #fce0d9mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9c73e8mediumpurple | #9c73e8mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 4.50:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 20.42:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.35:1 | AA |
Paste this into your globals.css to use Egg in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.079 0.018 302.949);
--muted: oklch(0.869 0.023 301.804);
--muted-foreground: oklch(0.475 0.025 301.371);
--popover: oklch(0.992 0 161.565);
--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.647 0.172 297.547);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.879 0.019 301.873);
--secondary-foreground: oklch(0.352 0.044 300.189);
--accent: oklch(0.822 0.035 301.543);
--accent-foreground: oklch(0.293 0.045 299.718);
--destructive: oklch(0.448 0.153 33.503);
--destructive-foreground: oklch(0.927 0.033 32.708);
--ring: oklch(0.647 0.172 297.547);
--chart-1: oklch(0.647 0.172 297.547);
--chart-2: oklch(0.879 0.019 301.873);
--chart-3: oklch(0.822 0.035 301.543);
--chart-4: oklch(0.905 0.015 301.955);
--chart-5: oklch(0.644 0.178 297.29);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.025 302.685);
--foreground: oklch(1 0 180);
--muted: oklch(0.25 0.031 300.235);
--muted-foreground: oklch(0.684 0.023 301.68);
--popover: oklch(0.127 0.029 301.397);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.029 301.397);
--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.647 0.172 297.547);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.186 0.011 301.28);
--secondary-foreground: oklch(0.728 0.031 301.537);
--accent: oklch(0.261 0.029 300.411);
--accent-foreground: oklch(0.791 0.034 301.545);
--destructive: oklch(0.665 0.186 34.152);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.647 0.172 297.547);
--chart-1: oklch(0.647 0.172 297.547);
--chart-2: oklch(0.186 0.011 301.28);
--chart-3: oklch(0.261 0.029 300.411);
--chart-4: oklch(0.217 0.015 301.155);
--chart-5: oklch(0.644 0.178 297.29);
}