Want is a shadcn/ui theme built around a neutral gray primary color (#736472) with muted light purple accents (#e1dbe1). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the neutral gray primary (#736472) on a purple-tinted background (#0e070d).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #0e070dblack |
| Foreground | #040104black | #f9f5f9whitesmoke |
| Card | #fcf8fcsnow | #110811black |
| Card foreground | #000000black | #fbf9fbsnow |
| Popover | #fdfbfdsnow | #0e070dblack |
| Popover foreground | #040104black | #f9f5f9whitesmoke |
| Primary | #736472dimgray | #736472dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e1dbe1gainsboro | #252225darkslategray |
| Secondary foreground | #4b3f4adarkslategray | #bfbabfsilver |
| Muted | #f4f1f4whitesmoke | #0e0b0eblack |
| Muted foreground | #6d546cdimgray | #ab92a9darkgray |
| Accent | #e1dbe1gainsboro | #252225darkslategray |
| Accent foreground | #4b3f4adarkslategray | #bfbabfsilver |
| Destructive | #bd460afirebrick | #f57738tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #736472dimgray | #736472dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 5.56:1 | AA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 7.30:1 | AAA |
| Destructive | 5.20:1 | AA |
| Text on background | 18.47:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 5.56:1 | AA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 7.56:1 | AAA |
Paste this into your globals.css to use Want in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 327.07);
--foreground: oklch(0.086 0.019 328.406);
--muted: oklch(0.96 0.005 327.087);
--muted-foreground: oklch(0.481 0.049 327.935);
--popover: oklch(0.991 0.003 327.07);
--popover-foreground: oklch(0.086 0.019 328.406);
--card: oklch(0.983 0.007 327.103);
--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.521 0.029 327.535);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.897 0.01 327.141);
--secondary-foreground: oklch(0.384 0.026 327.636);
--accent: oklch(0.897 0.01 327.141);
--accent-foreground: oklch(0.384 0.026 327.636);
--destructive: oklch(0.551 0.165 40.92);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.521 0.029 327.535);
--chart-1: oklch(0.521 0.029 327.535);
--chart-2: oklch(0.897 0.01 327.141);
--chart-3: oklch(0.897 0.01 327.141);
--chart-4: oklch(0.921 0.008 327.115);
--chart-5: oklch(0.518 0.041 327.742);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.02 328.165);
--foreground: oklch(0.975 0.006 327.098);
--muted: oklch(0.156 0.008 327.497);
--muted-foreground: oklch(0.689 0.045 327.624);
--popover: oklch(0.141 0.02 328.165);
--popover-foreground: oklch(0.975 0.006 327.098);
--card: oklch(0.153 0.023 328.323);
--card-foreground: oklch(0.984 0.004 327.078);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.521 0.029 327.535);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.257 0.007 327.27);
--secondary-foreground: oklch(0.795 0.009 327.144);
--accent: oklch(0.257 0.007 327.27);
--accent-foreground: oklch(0.795 0.009 327.144);
--destructive: oklch(0.706 0.171 44.647);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.521 0.029 327.535);
--chart-1: oklch(0.521 0.029 327.535);
--chart-2: oklch(0.257 0.007 327.27);
--chart-3: oklch(0.257 0.007 327.27);
--chart-4: oklch(0.288 0.008 327.282);
--chart-5: oklch(0.518 0.041 327.742);
}