Which is a shadcn/ui theme built around an indigo primary color (#8d81e9) with violet accents (#c181e9). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the indigo primary (#8d81e9) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #06050ablack |
| Foreground | #000000black | #fcfbfdsnow |
| Card | #f9f8fcghostwhite | #06050ablack |
| Card foreground | #000000black | #fcfbfdsnow |
| Popover | #f9f8fcghostwhite | #06050ablack |
| Popover foreground | #000000black | #fcfbfdsnow |
| Primary | #8d81e9mediumpurple | #8d81e9mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #81a9e9cornflowerblue | #81a9e9cornflowerblue |
| Secondary foreground | #081730black | #081730black |
| Muted | #e1e6eflavender | #10151eblack |
| Muted foreground | #38404cdarkslategray | #b3bac7silver |
| Accent | #c181e9orchid | #c181e9orchid |
| Accent foreground | #210830black | #210830black |
| Destructive | #bc3310firebrick | #ec4b22orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8d81e9mediumpurple | #8d81e9mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 8.37:1 | AAA |
| Accent | 6.65:1 | AA |
| Destructive | 5.82:1 | AA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 9.36:1 | AAA |
| Accent | 6.65:1 | AA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Which in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.004 291.696);
--foreground: oklch(0 0 0);
--muted: oklch(0.924 0.014 259.945);
--muted-foreground: oklch(0.369 0.023 259.891);
--popover: oklch(0.981 0.004 291.696);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.004 291.696);
--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.661 0.15 286.866);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.731 0.103 259.671);
--secondary-foreground: oklch(0.209 0.052 259.41);
--accent: oklch(0.709 0.159 311.336);
--accent-foreground: oklch(0.202 0.076 309.49);
--destructive: oklch(0.527 0.179 34.134);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.661 0.15 286.866);
--chart-1: oklch(0.661 0.15 286.866);
--chart-2: oklch(0.731 0.103 259.671);
--chart-3: oklch(0.709 0.159 311.336);
--chart-4: oklch(0.759 0.092 259.733);
--chart-5: oklch(0.656 0.157 286.581);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.013 290.675);
--foreground: oklch(0.99 0.003 291.729);
--muted: oklch(0.196 0.02 259.784);
--muted-foreground: oklch(0.788 0.019 259.945);
--popover: oklch(0.121 0.013 290.675);
--popover-foreground: oklch(0.99 0.003 291.729);
--card: oklch(0.121 0.013 290.675);
--card-foreground: oklch(0.99 0.003 291.729);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.661 0.15 286.866);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.731 0.103 259.671);
--secondary-foreground: oklch(0.209 0.052 259.41);
--accent: oklch(0.709 0.159 311.336);
--accent-foreground: oklch(0.202 0.076 309.49);
--destructive: oklch(0.635 0.204 34.613);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.661 0.15 286.866);
--chart-1: oklch(0.661 0.15 286.866);
--chart-2: oklch(0.731 0.103 259.671);
--chart-3: oklch(0.709 0.159 311.336);
--chart-4: oklch(0.759 0.092 259.733);
--chart-5: oklch(0.656 0.157 286.581);
}