Washtub is a shadcn/ui theme built around a purple primary color (#7b3d78) with muted light red accents (#d8cfcf). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#7b3d78) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070307black |
| Foreground | #040104black | #f8f6f8whitesmoke |
| Card | #ffffffwhite | #070307black |
| Card foreground | #040104black | #f8f6f8whitesmoke |
| Popover | #ffffffwhite | #070307black |
| Popover foreground | #040104black | #f8f6f8whitesmoke |
| Primary | #7b3d78rebeccapurple | #7b3d78rebeccapurple |
| Primary foreground | #f8f1f8whitesmoke | #f8f1f8whitesmoke |
| Secondary | #e0e0e0gainsboro | #1e1a1eblack |
| Secondary foreground | #474747darkslategray | #bab0basilver |
| Muted | #f4f1f1whitesmoke | #0e0b0eblack |
| Muted foreground | #6c5151dimgray | #ae93addarkgray |
| Accent | #d8cfcflightgrey | #2f232edarkslategray |
| Accent foreground | #413535darkslategray | #cab9casilver |
| Destructive | #983006saddlebrown | #f5500forangered |
| Destructive foreground | #fddfd3antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7b3d78rebeccapurple | #7b3d78rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.06:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 7.05:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Washtub in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.085 0.022 328.584);
--muted: oklch(0.96 0.003 17.215);
--muted-foreground: oklch(0.463 0.036 18.52);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.085 0.022 328.584);
--card: oklch(1 0 180);
--card-foreground: oklch(0.085 0.022 328.584);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.461 0.118 329.162);
--primary-foreground: oklch(0.966 0.011 327.147);
--secondary: oklch(0.908 0 180);
--secondary-foreground: oklch(0.399 0 180);
--accent: oklch(0.862 0.01 17.343);
--accent-foreground: oklch(0.341 0.017 18.008);
--destructive: oklch(0.46 0.146 37.939);
--destructive-foreground: oklch(0.925 0.037 42.818);
--ring: oklch(0.461 0.118 329.162);
--chart-1: oklch(0.461 0.118 329.162);
--chart-2: oklch(0.908 0 180);
--chart-3: oklch(0.862 0.01 17.343);
--chart-4: oklch(0.931 0 180);
--chart-5: oklch(0.462 0.127 329.31);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.017 328.026);
--foreground: oklch(0.976 0.003 327.067);
--muted: oklch(0.156 0.008 327.497);
--muted-foreground: oklch(0.696 0.047 327.643);
--popover: oklch(0.111 0.017 328.026);
--popover-foreground: oklch(0.976 0.003 327.067);
--card: oklch(0.111 0.017 328.026);
--card-foreground: oklch(0.976 0.003 327.067);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.461 0.118 329.162);
--primary-foreground: oklch(0.966 0.011 327.147);
--secondary: oklch(0.224 0.009 327.414);
--secondary-foreground: oklch(0.768 0.018 327.253);
--accent: oklch(0.274 0.026 327.864);
--accent-foreground: oklch(0.806 0.029 327.371);
--destructive: oklch(0.655 0.211 37.607);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.461 0.118 329.162);
--chart-1: oklch(0.461 0.118 329.162);
--chart-2: oklch(0.224 0.009 327.414);
--chart-3: oklch(0.274 0.026 327.864);
--chart-4: oklch(0.256 0.011 327.443);
--chart-5: oklch(0.462 0.127 329.31);
}