Fresh Eggplant Sparrow is a shadcn/ui theme built around a muted indigo primary color (#52467c) with muted violet accents (#6e467c). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted indigo primary (#52467c) on an indigo-tinted background (#070510).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #070510black |
| Foreground | #090613black | #ffffffwhite |
| Card | #f8f6fdghostwhite | #090614black |
| Card foreground | #070510black | #ffffffwhite |
| Popover | #fcfbfewhite | #070510black |
| Popover foreground | #090613black | #ffffffwhite |
| Primary | #52467cdarkslateblue | #52467cdarkslateblue |
| Primary foreground | #f9f8fbghostwhite | #f9f8fbghostwhite |
| Secondary | #46547cdarkslateblue | #46547cdarkslateblue |
| Secondary foreground | #f8f9fbghostwhite | #f8f9fbghostwhite |
| Muted | #e3e6edlavender | #12141cblack |
| Muted foreground | #5c5d61dimgray | #9e9fa3darkgray |
| Accent | #6e467crebeccapurple | #6e467crebeccapurple |
| Accent foreground | #fbf8fbsnow | #fbf8fbsnow |
| Destructive | #cb3115firebrick | #de3517orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #efeef1whitesmoke | #201e24black |
| Input | #efeef1whitesmoke | #201e24black |
| Ring | #52467cdarkslateblue | #52467cdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.40:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 5.24:1 | AA |
| Accent | 7.06:1 | AAA |
| Destructive | 5.26:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 7.06:1 | AAA |
| Destructive | 4.55:1 | AA |
Paste this into your globals.css to use Fresh Eggplant Sparrow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 296.995);
--foreground: oklch(0.137 0.03 294.203);
--muted: oklch(0.924 0.011 270.022);
--muted-foreground: oklch(0.479 0.007 269.999);
--popover: oklch(0.989 0.005 296.995);
--popover-foreground: oklch(0.137 0.03 294.203);
--card: oklch(0.978 0.009 296.908);
--card-foreground: oklch(0.126 0.026 295.504);
--border: oklch(0.951 0.004 297.009);
--input: oklch(0.951 0.004 297.009);
--primary: oklch(0.431 0.088 293.056);
--primary-foreground: oklch(0.982 0.004 297.009);
--secondary: oklch(0.452 0.068 268.342);
--secondary-foreground: oklch(0.983 0.003 270.097);
--accent: oklch(0.461 0.097 316.625);
--accent-foreground: oklch(0.983 0.004 317.179);
--destructive: oklch(0.553 0.195 32.192);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.431 0.088 293.056);
--chart-1: oklch(0.431 0.088 293.056);
--chart-2: oklch(0.452 0.068 268.342);
--chart-3: oklch(0.461 0.097 316.625);
--chart-4: oklch(0.477 0.072 268.319);
--chart-5: oklch(0.426 0.098 292.496);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.028 295.384);
--foreground: oklch(1 0 180);
--muted: oklch(0.194 0.016 269.24);
--muted-foreground: oklch(0.704 0.006 270.047);
--popover: oklch(0.125 0.028 295.384);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.032 294.058);
--card-foreground: oklch(1 0 180);
--border: oklch(0.24 0.011 296.215);
--input: oklch(0.24 0.011 296.215);
--primary: oklch(0.431 0.088 293.056);
--primary-foreground: oklch(0.982 0.004 297.009);
--secondary: oklch(0.452 0.068 268.342);
--secondary-foreground: oklch(0.983 0.003 270.097);
--accent: oklch(0.461 0.097 316.625);
--accent-foreground: oklch(0.983 0.004 317.179);
--destructive: oklch(0.59 0.209 32.166);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.431 0.088 293.056);
--chart-1: oklch(0.431 0.088 293.056);
--chart-2: oklch(0.452 0.068 268.342);
--chart-3: oklch(0.461 0.097 316.625);
--chart-4: oklch(0.477 0.072 268.319);
--chart-5: oklch(0.426 0.098 292.496);
}