Watercress is a shadcn/ui theme built around a muted light orange primary color (#f4f3f0) with muted light green accents (#f4f4f0). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the muted light orange primary (#f4f3f0) on an orange-tinted background (#0e0b06).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf7snow | #0e0b06black |
| Foreground | #170e03black | #f9f8f6whitesmoke |
| Card | #fdfaf7snow | #0e0b06black |
| Card foreground | #170e03black | #f9f8f6whitesmoke |
| Popover | #fdfaf7snow | #0e0b06black |
| Popover foreground | #170e03black | #f9f8f6whitesmoke |
| Primary | #f4f3f0whitesmoke | #f4f3f0whitesmoke |
| Primary foreground | #2c2720darkslategray | #2c2720darkslategray |
| Secondary | #f4f1f0whitesmoke | #f4f1f0whitesmoke |
| Secondary foreground | #684d4bdimgray | #684d4bdimgray |
| Muted | #e8ccc9lightgrey | #361a17black |
| Muted foreground | #464443darkslategray | #bcb9b9silver |
| Accent | #f4f4f0whitesmoke | #f4f4f0whitesmoke |
| Accent foreground | #2b2c20darkslategray | #2b2c20darkslategray |
| Destructive | #be200efirebrick | #e42611orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f3f0whitesmoke | #f4f3f0whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.38:1 | AAA |
| Text on card | 18.38:1 | AAA |
| Primary button | 13.31:1 | AAA |
| Secondary button | 6.77:1 | AA |
| Muted text | 6.41:1 | AA |
| Accent | 12.85:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 18.49:1 | AAA |
| Text on card | 18.49:1 | AAA |
| Primary button | 13.31:1 | AAA |
| Secondary button | 6.77:1 | AA |
| Muted text | 8.22:1 | AAA |
| Accent | 12.85:1 | AAA |
| Destructive | 4.58:1 | AA |
Paste this into your globals.css to use Watercress in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 76.629);
--foreground: oklch(0.173 0.028 78.526);
--muted: oklch(0.868 0.032 23.975);
--muted-foreground: oklch(0.388 0.003 23.668);
--popover: oklch(0.987 0.005 76.629);
--popover-foreground: oklch(0.173 0.028 78.526);
--card: oklch(0.987 0.005 76.629);
--card-foreground: oklch(0.173 0.028 78.526);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.964 0.004 76.635);
--primary-foreground: oklch(0.277 0.015 76.274);
--secondary: oklch(0.96 0.004 23.622);
--secondary-foreground: oklch(0.448 0.036 24.541);
--accent: oklch(0.967 0.005 110.351);
--accent-foreground: oklch(0.29 0.021 111.597);
--destructive: oklch(0.516 0.194 30.511);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.964 0.004 76.635);
--chart-1: oklch(0.964 0.004 76.635);
--chart-2: oklch(0.96 0.004 23.622);
--chart-3: oklch(0.967 0.005 110.351);
--chart-4: oklch(0.984 0.002 23.597);
--chart-5: oklch(0.964 0.004 76.632);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.013 78.868);
--foreground: oklch(0.978 0.003 76.64);
--muted: oklch(0.255 0.045 26.176);
--muted-foreground: oklch(0.788 0.003 23.616);
--popover: oklch(0.152 0.013 78.868);
--popover-foreground: oklch(0.978 0.003 76.64);
--card: oklch(0.152 0.013 78.868);
--card-foreground: oklch(0.978 0.003 76.64);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.964 0.004 76.635);
--primary-foreground: oklch(0.277 0.015 76.274);
--secondary: oklch(0.96 0.004 23.622);
--secondary-foreground: oklch(0.448 0.036 24.541);
--accent: oklch(0.967 0.005 110.351);
--accent-foreground: oklch(0.29 0.021 111.597);
--destructive: oklch(0.59 0.224 30.494);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.964 0.004 76.635);
--chart-1: oklch(0.964 0.004 76.635);
--chart-2: oklch(0.96 0.004 23.622);
--chart-3: oklch(0.967 0.005 110.351);
--chart-4: oklch(0.984 0.002 23.597);
--chart-5: oklch(0.964 0.004 76.632);
}