Developers Theme - Aubergine is a shadcn/ui theme built around a neutral gray primary color (#968894) with muted purple accents (#6a5366). The light mode uses a purple-tinted background (#3f313d). Dark mode keeps the neutral gray primary (#968894) on a purple-tinted background (#3f313d).
| Token | Light | Dark |
|---|---|---|
| Background | #3f313ddarkslategray | #3f313ddarkslategray |
| Foreground | #f6f6f4whitesmoke | #f6f6f4whitesmoke |
| Card | #392d37darkslategray | #392d37darkslategray |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #362b35darkslategray | #362b35darkslategray |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #968894gray | #968894gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #4a3a48darkslategray | #4a3a48darkslategray |
| Muted foreground | #c9bac7silver | #c9bac7silver |
| Accent | #6a5366dimgray | #6a5366dimgray |
| Accent foreground | #f8f6f8whitesmoke | #f8f6f8whitesmoke |
| Destructive | #eb0400red | #eb0400red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #464346darkslategray | #464346darkslategray |
| Input | #4e4b4edarkslategray | #4e4b4edarkslategray |
| Ring | #968894gray | #968894gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.26:1 | AAA |
| Text on card | 13.09:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 6.42:1 | AA |
| Destructive | 4.62:1 | AA |
| Text on background | 11.26:1 | AAA |
| Text on card | 13.09:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 6.42:1 | AA |
| Destructive | 4.62:1 | AA |
Paste this into your globals.css to use Developers Theme - Aubergine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.334 0.027 331.253);
--foreground: oklch(0.972 0.003 106.45);
--muted: oklch(0.372 0.031 331.284);
--muted-foreground: oklch(0.806 0.024 330.622);
--popover: oklch(0.305 0.024 331.223);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.314 0.025 331.234);
--card-foreground: oklch(1 0 180);
--border: oklch(0.388 0.005 330.423);
--input: oklch(0.417 0.006 330.426);
--primary: oklch(0.643 0.023 330.702);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.472 0.042 331.34);
--accent-foreground: oklch(0.976 0.003 330.284);
--destructive: oklch(0.59 0.241 29.378);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.643 0.023 330.702);
--chart-1: oklch(0.643 0.023 330.702);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.472 0.042 331.34);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.64 0.035 330.926);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.334 0.027 331.253);
--foreground: oklch(0.972 0.003 106.45);
--muted: oklch(0.372 0.031 331.284);
--muted-foreground: oklch(0.806 0.024 330.622);
--popover: oklch(0.305 0.024 331.223);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.314 0.025 331.234);
--card-foreground: oklch(1 0 180);
--border: oklch(0.388 0.005 330.423);
--input: oklch(0.417 0.006 330.426);
--primary: oklch(0.643 0.023 330.702);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.472 0.042 331.34);
--accent-foreground: oklch(0.976 0.003 330.284);
--destructive: oklch(0.59 0.241 29.378);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.643 0.023 330.702);
--chart-1: oklch(0.643 0.023 330.702);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.472 0.042 331.34);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.64 0.035 330.926);
}