Waterwheel is a shadcn/ui theme built around a muted deep violet primary color (#2c2234) with muted deep teal accents (#22342c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#2c2234) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050307black |
| Foreground | #0e0515black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #08040bblack |
| Card foreground | #0b0411black | #ffffffwhite |
| Popover | #fcfcfcsnow | #08040bblack |
| Popover foreground | #0b0411black | #ffffffwhite |
| Primary | #2c2234darkslategray | #2c2234darkslategray |
| Primary foreground | #c6b8d1silver | #c6b8d1silver |
| Secondary | #342c22darkslategray | #342c22darkslategray |
| Secondary foreground | #d1c6b8silver | #d1c6b8silver |
| Muted | #f4f2f0whitesmoke | #0f0d0bblack |
| Muted foreground | #716556dimgray | #a99d8erosybrown |
| Accent | #22342cdarkslategray | #22342cdarkslategray |
| Accent foreground | #b8d1c6silver | #b8d1c6silver |
| Destructive | #cc1d14firebrick | #ec453ctomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c2234darkslategray | #2c2234darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 5.10:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 5.58:1 | AA |
| Text on background | 20.07:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Waterwheel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.139 0.039 309.05);
--muted: oklch(0.963 0.003 73.194);
--muted-foreground: oklch(0.514 0.028 72.684);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.128 0.034 310.395);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.128 0.034 310.395);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.273 0.036 309.207);
--primary-foreground: oklch(0.802 0.037 310.007);
--secondary: oklch(0.3 0.021 72.466);
--secondary-foreground: oklch(0.831 0.022 72.999);
--accent: oklch(0.308 0.028 164.98);
--accent-foreground: oklch(0.838 0.031 166.766);
--destructive: oklch(0.542 0.208 29.259);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.273 0.036 309.207);
--chart-1: oklch(0.273 0.036 309.207);
--chart-2: oklch(0.3 0.021 72.466);
--chart-3: oklch(0.308 0.028 164.98);
--chart-4: oklch(0.332 0.024 72.426);
--chart-5: oklch(0.271 0.041 309.01);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.018 311.818);
--foreground: oklch(0.992 0.002 310.423);
--muted: oklch(0.16 0.005 72.942);
--muted-foreground: oklch(0.702 0.026 72.893);
--popover: oklch(0.121 0.021 311.707);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.021 311.707);
--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.273 0.036 309.207);
--primary-foreground: oklch(0.802 0.037 310.007);
--secondary: oklch(0.3 0.021 72.466);
--secondary-foreground: oklch(0.831 0.022 72.999);
--accent: oklch(0.308 0.028 164.98);
--accent-foreground: oklch(0.838 0.031 166.766);
--destructive: oklch(0.631 0.205 27.671);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.273 0.036 309.207);
--chart-1: oklch(0.273 0.036 309.207);
--chart-2: oklch(0.3 0.021 72.466);
--chart-3: oklch(0.308 0.028 164.98);
--chart-4: oklch(0.332 0.024 72.426);
--chart-5: oklch(0.271 0.041 309.01);
}