Which is a shadcn/ui theme built around a yellow primary color (#d0c09a) with violet accents (#c09ad0). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#d0c09a) on a yellow-tinted background (#0a0905).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0905black |
| Foreground | #130f06black | #fbfaf8snow |
| Card | #fcfcfcsnow | #0e0c07black |
| Card foreground | #0f0c05black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0a0905black |
| Popover foreground | #130f06black | #fbfaf8snow |
| Primary | #d0c09atan | #d0c09atan |
| Primary foreground | #262012black | #262012black |
| Secondary | #9ad0c0lightsteelblue | #9ad0c0lightsteelblue |
| Secondary foreground | #122620black | #122620black |
| Muted | #e6ebe9lavender | #141918black |
| Muted foreground | #404f4bdarkslategray | #b0bfbbsilver |
| Accent | #c09ad0plum | #c09ad0plum |
| Accent foreground | #201226black | #201226black |
| Destructive | #b9280efirebrick | #ef4325orangered |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d0c09atan | #d0c09atan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 9.01:1 | AAA |
| Secondary button | 9.20:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.44:1 | AAA |
| Destructive | 6.06:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 9.01:1 | AAA |
| Secondary button | 9.20:1 | AAA |
| Muted text | 9.28:1 | AAA |
| Accent | 7.44:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Which in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.172 0.019 88.229);
--muted: oklch(0.935 0.006 176.478);
--muted-foreground: oklch(0.413 0.021 175.066);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.172 0.019 88.229);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.157 0.017 89.658);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.812 0.055 87.547);
--primary-foreground: oklch(0.247 0.027 87.232);
--secondary: oklch(0.816 0.061 174.244);
--secondary-foreground: oklch(0.251 0.03 172.458);
--accent: oklch(0.739 0.088 315.59);
--accent-foreground: oklch(0.211 0.045 315.182);
--destructive: oklch(0.512 0.185 32.047);
--destructive-foreground: oklch(0.991 0.004 29.482);
--ring: oklch(0.812 0.055 87.547);
--chart-1: oklch(0.812 0.055 87.547);
--chart-2: oklch(0.816 0.061 174.244);
--chart-3: oklch(0.739 0.088 315.59);
--chart-4: oklch(0.835 0.055 174.571);
--chart-5: oklch(0.815 0.059 87.531);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.01 90.871);
--foreground: oklch(0.987 0.003 87.435);
--muted: oklch(0.21 0.008 175.472);
--muted-foreground: oklch(0.793 0.018 175.965);
--popover: oklch(0.138 0.01 90.871);
--popover-foreground: oklch(0.987 0.003 87.435);
--card: oklch(0.153 0.011 88.865);
--card-foreground: oklch(0.993 0.001 87.427);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.812 0.055 87.547);
--primary-foreground: oklch(0.247 0.027 87.232);
--secondary: oklch(0.816 0.061 174.244);
--secondary-foreground: oklch(0.251 0.03 172.458);
--accent: oklch(0.739 0.088 315.59);
--accent-foreground: oklch(0.211 0.045 315.182);
--destructive: oklch(0.632 0.212 32.344);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.812 0.055 87.547);
--chart-1: oklch(0.812 0.055 87.547);
--chart-2: oklch(0.816 0.061 174.244);
--chart-3: oklch(0.739 0.088 315.59);
--chart-4: oklch(0.835 0.055 174.571);
--chart-5: oklch(0.815 0.059 87.531);
}