Which is a shadcn/ui theme built around a light blue primary color (#d5e9f6) with light green accents (#e9f6d5). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the light blue primary (#d5e9f6) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fbfdghostwhite | #010304black |
| Foreground | #04090cblack | #fcfdfdwhite |
| Card | #f2f9fcaliceblue | #030608black |
| Card foreground | #020608black | #ffffffwhite |
| Popover | #f2f9fcaliceblue | #030608black |
| Popover foreground | #020608black | #ffffffwhite |
| Primary | #d5e9f6lavender | #d5e9f6lavender |
| Primary foreground | #1c587dteal | #1c587dteal |
| Secondary | #f6d5e9mistyrose | #f6d5e9mistyrose |
| Secondary foreground | #7d1c58purple | #7d1c58purple |
| Muted | #f6eff3whitesmoke | #10090eblack |
| Muted foreground | #544a50darkslategray | #b5abb1darkgray |
| Accent | #e9f6d5beige | #e9f6d5beige |
| Accent foreground | #1d2a09black | #1d2a09black |
| Destructive | #ab1f03firebrick | #fc4f2ctomato |
| Destructive foreground | #ffe6e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d5e9f6lavender | #d5e9f6lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 7.48:1 | AAA |
| Accent | 13.38:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 8.82:1 | AAA |
| Accent | 13.38:1 | AAA |
| Destructive | 3.34:1 | AA Large |
Paste this into your globals.css to use Which in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.006 234.588);
--foreground: oklch(0.132 0.013 228.723);
--muted: oklch(0.958 0.01 339.697);
--muted-foreground: oklch(0.422 0.016 340.272);
--popover: oklch(0.977 0.008 234.63);
--popover-foreground: oklch(0.115 0.011 228.164);
--card: oklch(0.977 0.008 234.63);
--card-foreground: oklch(0.115 0.011 228.164);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.924 0.027 234.943);
--primary-foreground: oklch(0.44 0.085 240.401);
--secondary: oklch(0.907 0.044 340.507);
--secondary-foreground: oklch(0.408 0.144 347.61);
--accent: oklch(0.954 0.044 124.336);
--accent-foreground: oklch(0.263 0.055 127.547);
--destructive: oklch(0.479 0.178 32.262);
--destructive-foreground: oklch(0.943 0.028 31.126);
--ring: oklch(0.924 0.027 234.943);
--chart-1: oklch(0.924 0.027 234.943);
--chart-2: oklch(0.907 0.044 340.507);
--chart-3: oklch(0.954 0.044 124.336);
--chart-4: oklch(0.935 0.031 340.175);
--chart-5: oklch(0.924 0.028 234.966);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.008 228.615);
--foreground: oklch(0.992 0.001 234.514);
--muted: oklch(0.153 0.016 341.57);
--muted-foreground: oklch(0.752 0.014 339.863);
--popover: oklch(0.115 0.01 228.615);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.115 0.01 228.615);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.924 0.027 234.943);
--primary-foreground: oklch(0.44 0.085 240.401);
--secondary: oklch(0.907 0.044 340.507);
--secondary-foreground: oklch(0.408 0.144 347.61);
--accent: oklch(0.954 0.044 124.336);
--accent-foreground: oklch(0.263 0.055 127.547);
--destructive: oklch(0.666 0.215 33.138);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.924 0.027 234.943);
--chart-1: oklch(0.924 0.027 234.943);
--chart-2: oklch(0.907 0.044 340.507);
--chart-3: oklch(0.954 0.044 124.336);
--chart-4: oklch(0.935 0.031 340.175);
--chart-5: oklch(0.924 0.028 234.966);
}