Puddle is a shadcn/ui theme built around a green primary color (#23b82b) with teal accents (#23b875). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#23b82b) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #030704black |
| Foreground | #031704black | #f8fcf8mintcream |
| Card | #fbfefbwhite | #030704black |
| Card foreground | #031704black | #f8fcf8mintcream |
| Popover | #fbfefbwhite | #030704black |
| Popover foreground | #031704black | #f8fcf8mintcream |
| Primary | #23b82blimegreen | #23b82blimegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #66b823olivedrab | #66b823olivedrab |
| Secondary foreground | #070d02black | #070d02black |
| Muted | #dfecd5gainsboro | #1d2a13black |
| Muted foreground | #40423edarkslategray | #bfc1bdsilver |
| Accent | #23b875mediumseagreen | #23b875mediumseagreen |
| Accent foreground | #020d08black | #020d08black |
| Destructive | #d04d11chocolate | #ed6526chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #23b82blimegreen | #23b82blimegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.30:1 | AAA |
| Text on card | 18.30:1 | AAA |
| Primary button | 2.63:1 | Fail |
| Secondary button | 7.93:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 4.42:1 | AA Large |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 2.63:1 | Fail |
| Secondary button | 7.93:1 | AAA |
| Muted text | 8.28:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.50:1 | AA |
Paste this into your globals.css to use Puddle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 146.998);
--foreground: oklch(0.179 0.048 144.549);
--muted: oklch(0.927 0.034 130.785);
--muted-foreground: oklch(0.374 0.007 130.614);
--popover: oklch(0.994 0.004 146.998);
--popover-foreground: oklch(0.179 0.048 144.549);
--card: oklch(0.994 0.004 146.998);
--card-foreground: oklch(0.179 0.048 144.549);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.683 0.214 143.256);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.704 0.192 134.959);
--secondary-foreground: oklch(0.148 0.028 129.226);
--accent: oklch(0.693 0.155 157.428);
--accent-foreground: oklch(0.144 0.022 167.403);
--destructive: oklch(0.591 0.177 40.41);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.683 0.214 143.256);
--chart-1: oklch(0.683 0.214 143.256);
--chart-2: oklch(0.704 0.192 134.959);
--chart-3: oklch(0.693 0.155 157.428);
--chart-4: oklch(0.74 0.203 134.996);
--chart-5: oklch(0.692 0.219 143.171);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.014 146.163);
--foreground: oklch(0.987 0.006 146.979);
--muted: oklch(0.267 0.044 132.281);
--muted-foreground: oklch(0.809 0.006 130.505);
--popover: oklch(0.12 0.014 146.163);
--popover-foreground: oklch(0.987 0.006 146.979);
--card: oklch(0.12 0.014 146.163);
--card-foreground: oklch(0.987 0.006 146.979);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.683 0.214 143.256);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.704 0.192 134.959);
--secondary-foreground: oklch(0.148 0.028 129.226);
--accent: oklch(0.693 0.155 157.428);
--accent-foreground: oklch(0.144 0.022 167.403);
--destructive: oklch(0.669 0.183 42.067);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.683 0.214 143.256);
--chart-1: oklch(0.683 0.214 143.256);
--chart-2: oklch(0.704 0.192 134.959);
--chart-3: oklch(0.693 0.155 157.428);
--chart-4: oklch(0.74 0.203 134.996);
--chart-5: oklch(0.692 0.219 143.171);
}