Eggplant is a shadcn/ui theme built around a light blue primary color (#bbcfdd) with light green accents (#cfddbb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#bbcfdd) on a blue-tinted background (#040b10).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b10black |
| Foreground | #010305black | #fcfdfdwhite |
| Card | #ffffffwhite | #040b10black |
| Card foreground | #010305black | #fcfdfdwhite |
| Popover | #ffffffwhite | #040b10black |
| Popover foreground | #010305black | #fcfdfdwhite |
| Primary | #bbcfddlightsteelblue | #bbcfddlightsteelblue |
| Primary foreground | #223644darkslategray | #223644darkslategray |
| Secondary | #ddbbcfthistle | #ddbbcfthistle |
| Secondary foreground | #442236darkslategray | #442236darkslategray |
| Muted | #ecdae5gainsboro | #25131eblack |
| Muted foreground | #745869dimgray | #a78b9crosybrown |
| Accent | #cfddbblightgrey | #cfddbblightgrey |
| Accent foreground | #364422darkslategray | #364422darkslategray |
| Destructive | #993000saddlebrown | #ff5b0forangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bbcfddlightsteelblue | #bbcfddlightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.65:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 4.69:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 7.54:1 | AAA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 5.72:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Eggplant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.091 0.013 226.851);
--muted: oklch(0.906 0.025 340.851);
--muted-foreground: oklch(0.495 0.045 342.197);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.091 0.013 226.851);
--card: oklch(1 0 180);
--card-foreground: oklch(0.091 0.013 226.851);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.845 0.03 236.965);
--primary-foreground: oklch(0.324 0.036 238.577);
--secondary: oklch(0.827 0.048 341.507);
--secondary-foreground: oklch(0.306 0.061 344.439);
--accent: oklch(0.879 0.049 125.158);
--accent-foreground: oklch(0.366 0.058 126.919);
--destructive: oklch(0.463 0.148 39.195);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0.03 236.965);
--chart-1: oklch(0.845 0.03 236.965);
--chart-2: oklch(0.827 0.048 341.507);
--chart-3: oklch(0.879 0.049 125.158);
--chart-4: oklch(0.853 0.041 341.281);
--chart-5: oklch(0.845 0.032 237.015);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.017 233.809);
--foreground: oklch(0.992 0.001 236.457);
--muted: oklch(0.216 0.036 343.714);
--muted-foreground: oklch(0.667 0.042 341.602);
--popover: oklch(0.145 0.017 233.809);
--popover-foreground: oklch(0.992 0.001 236.457);
--card: oklch(0.145 0.017 233.809);
--card-foreground: oklch(0.992 0.001 236.457);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.845 0.03 236.965);
--primary-foreground: oklch(0.324 0.036 238.577);
--secondary: oklch(0.827 0.048 341.507);
--secondary-foreground: oklch(0.306 0.061 344.439);
--accent: oklch(0.879 0.049 125.158);
--accent-foreground: oklch(0.366 0.058 126.919);
--destructive: oklch(0.683 0.212 39.528);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.845 0.03 236.965);
--chart-1: oklch(0.845 0.03 236.965);
--chart-2: oklch(0.827 0.048 341.507);
--chart-3: oklch(0.879 0.049 125.158);
--chart-4: oklch(0.853 0.041 341.281);
--chart-5: oklch(0.845 0.032 237.015);
}