Waterlogged is a shadcn/ui theme built around a vivid violet primary color (#6f15a2) with vivid green accents (#49a215). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid violet primary (#6f15a2) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #060307black |
| Foreground | #000000black | #f8f6f8whitesmoke |
| Card | #fdfbfewhite | #060307black |
| Card foreground | #000000black | #f8f6f8whitesmoke |
| Popover | #fdfbfewhite | #060307black |
| Popover foreground | #000000black | #f8f6f8whitesmoke |
| Primary | #6f15a2rebeccapurple | #6f15a2rebeccapurple |
| Primary foreground | #f7edfdghostwhite | #f7edfdghostwhite |
| Secondary | #49a215olivedrab | #49a215olivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eaede8linen | #141712black |
| Muted foreground | #60665cdimgray | #9da399darkgray |
| Accent | #49a215olivedrab | #49a215olivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #641507maroon | #ef3615orangered |
| Destructive foreground | #f9b1a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f15a2rebeccapurple | #6f15a2rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 3.23:1 | AA Large |
| Muted text | 5.01:1 | AA |
| Accent | 3.23:1 | AA Large |
| Destructive | 7.16:1 | AAA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 3.23:1 | AA Large |
| Muted text | 6.99:1 | AA |
| Accent | 3.23:1 | AA Large |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Waterlogged in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 313.577);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.009 133.662);
--muted-foreground: oklch(0.501 0.017 133.819);
--popover: oklch(0.99 0.005 313.577);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.005 313.577);
--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.43 0.204 307.923);
--primary-foreground: oklch(0.958 0.023 313.456);
--secondary: oklch(0.634 0.187 137.6);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.634 0.187 137.6);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.333 0.114 32.397);
--destructive-foreground: oklch(0.825 0.086 30.203);
--ring: oklch(0.43 0.204 307.923);
--chart-1: oklch(0.43 0.204 307.923);
--chart-2: oklch(0.634 0.187 137.6);
--chart-3: oklch(0.634 0.187 137.6);
--chart-4: oklch(0.672 0.199 137.649);
--chart-5: oklch(0.431 0.208 307.561);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.013 314.692);
--foreground: oklch(0.976 0.003 313.589);
--muted: oklch(0.2 0.012 134.012);
--muted-foreground: oklch(0.707 0.015 133.744);
--popover: oklch(0.109 0.013 314.692);
--popover-foreground: oklch(0.976 0.003 313.589);
--card: oklch(0.109 0.013 314.692);
--card-foreground: oklch(0.976 0.003 313.589);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.43 0.204 307.923);
--primary-foreground: oklch(0.958 0.023 313.456);
--secondary: oklch(0.634 0.187 137.6);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.634 0.187 137.6);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.62 0.224 32.043);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.43 0.204 307.923);
--chart-1: oklch(0.43 0.204 307.923);
--chart-2: oklch(0.634 0.187 137.6);
--chart-3: oklch(0.634 0.187 137.6);
--chart-4: oklch(0.672 0.199 137.649);
--chart-5: oklch(0.431 0.208 307.561);
}