Water is a shadcn/ui theme built around a vivid green primary color (#46fa14) with muted light green accents (#cdd9c9). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid green primary (#46fa14) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #020402black |
| Foreground | #061103black | #f6f9f6whitesmoke |
| Card | #f8fdf7mintcream | #020402black |
| Card foreground | #061103black | #f6f9f6whitesmoke |
| Popover | #f8fdf7mintcream | #020402black |
| Popover foreground | #061103black | #f6f9f6whitesmoke |
| Primary | #46fa14lawngreen | #46fa14lawngreen |
| Primary foreground | #0f4101darkgreen | #0f4101darkgreen |
| Secondary | #e2e5e0gainsboro | #1e201dblack |
| Secondary foreground | #465143darkslategray | #b6bab5silver |
| Muted | #e1eddegainsboro | #152112black |
| Muted foreground | #444e41darkslategray | #b4beb1silver |
| Accent | #cdd9c9lightgrey | #293027darkslategray |
| Accent foreground | #33422fdarkslategray | #c1cabesilver |
| Destructive | #ca4016firebrick | #d34317chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #46fa14lawngreen | #46fa14lawngreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.70:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 8.42:1 | AAA |
| Secondary button | 6.57:1 | AA |
| Muted text | 7.19:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 4.92:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 8.42:1 | AAA |
| Secondary button | 8.35:1 | AAA |
| Muted text | 8.71:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use Water in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.009 138.894);
--foreground: oklch(0.163 0.036 137.407);
--muted: oklch(0.933 0.022 138.9);
--muted-foreground: oklch(0.41 0.025 138.919);
--popover: oklch(0.989 0.009 138.894);
--popover-foreground: oklch(0.163 0.036 137.407);
--card: oklch(0.989 0.009 138.894);
--card-foreground: oklch(0.163 0.036 137.407);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.862 0.278 140.851);
--primary-foreground: oklch(0.329 0.104 140.024);
--secondary: oklch(0.919 0.008 138.894);
--secondary-foreground: oklch(0.42 0.025 138.919);
--accent: oklch(0.871 0.025 138.902);
--accent-foreground: oklch(0.358 0.038 138.957);
--destructive: oklch(0.567 0.181 36.03);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.278 140.851);
--chart-1: oklch(0.862 0.278 140.851);
--chart-2: oklch(0.919 0.008 138.894);
--chart-3: oklch(0.871 0.025 138.902);
--chart-4: oklch(0.941 0.006 138.893);
--chart-5: oklch(0.87 0.283 140.952);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.012 137.655);
--foreground: oklch(0.979 0.005 138.893);
--muted: oklch(0.231 0.031 138.999);
--muted-foreground: oklch(0.79 0.021 138.901);
--popover: oklch(0.097 0.012 137.655);
--popover-foreground: oklch(0.979 0.005 138.893);
--card: oklch(0.097 0.012 137.655);
--card-foreground: oklch(0.979 0.005 138.893);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.862 0.278 140.851);
--primary-foreground: oklch(0.329 0.104 140.024);
--secondary: oklch(0.24 0.005 138.899);
--secondary-foreground: oklch(0.785 0.009 138.895);
--accent: oklch(0.298 0.018 138.919);
--accent-foreground: oklch(0.829 0.019 138.9);
--destructive: oklch(0.585 0.188 35.994);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.278 140.851);
--chart-1: oklch(0.862 0.278 140.851);
--chart-2: oklch(0.24 0.005 138.899);
--chart-3: oklch(0.298 0.018 138.919);
--chart-4: oklch(0.272 0.007 138.9);
--chart-5: oklch(0.87 0.283 140.952);
}