Precipitation is a shadcn/ui theme built around a green primary color (#4a7c36) with violet accents (#68367c). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the green primary (#4a7c36) on a green-tinted background (#060b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfbsnow | #060b04black |
| Foreground | #000000black | #f7f9f6whitesmoke |
| Card | #fcfdfbsnow | #060b04black |
| Card foreground | #000000black | #f7f9f6whitesmoke |
| Popover | #fcfdfbsnow | #060b04black |
| Popover foreground | #000000black | #f7f9f6whitesmoke |
| Primary | #4a7c36darkolivegreen | #4a7c36darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #68367crebeccapurple | #68367crebeccapurple |
| Secondary foreground | #f4edf7whitesmoke | #f4edf7whitesmoke |
| Muted | #e5d5ecgainsboro | #24132ablack |
| Muted foreground | #5d585fdimgray | #a5a0a7darkgray |
| Accent | #68367crebeccapurple | #68367crebeccapurple |
| Accent foreground | #f4edf7whitesmoke | #f4edf7whitesmoke |
| Destructive | #9e390asaddlebrown | #f27136tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4a7c36darkolivegreen | #4a7c36darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.64:1 | AAA |
| Primary button | 4.96:1 | AA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 4.97:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 4.96:1 | AA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 7.21:1 | AAA |
Paste this into your globals.css to use Precipitation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 136.618);
--foreground: oklch(0 0 0);
--muted: oklch(0.893 0.036 316.491);
--muted-foreground: oklch(0.468 0.013 316.525);
--popover: oklch(0.994 0.003 136.618);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.003 136.618);
--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.534 0.114 137.642);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.429 0.122 315.512);
--secondary-foreground: oklch(0.955 0.015 316.562);
--accent: oklch(0.429 0.122 315.512);
--accent-foreground: oklch(0.955 0.015 316.562);
--destructive: oklch(0.483 0.144 40.432);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.534 0.114 137.642);
--chart-1: oklch(0.534 0.114 137.642);
--chart-2: oklch(0.429 0.122 315.512);
--chart-3: oklch(0.429 0.122 315.512);
--chart-4: oklch(0.454 0.13 315.494);
--chart-5: oklch(0.54 0.122 137.751);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.021 135.213);
--foreground: oklch(0.979 0.004 136.621);
--muted: oklch(0.221 0.049 315.85);
--muted-foreground: oklch(0.711 0.012 316.559);
--popover: oklch(0.142 0.021 135.213);
--popover-foreground: oklch(0.979 0.004 136.621);
--card: oklch(0.142 0.021 135.213);
--card-foreground: oklch(0.979 0.004 136.621);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.534 0.114 137.642);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.429 0.122 315.512);
--secondary-foreground: oklch(0.955 0.015 316.562);
--accent: oklch(0.429 0.122 315.512);
--accent-foreground: oklch(0.955 0.015 316.562);
--destructive: oklch(0.694 0.174 43.14);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.534 0.114 137.642);
--chart-1: oklch(0.534 0.114 137.642);
--chart-2: oklch(0.429 0.122 315.512);
--chart-3: oklch(0.429 0.122 315.512);
--chart-4: oklch(0.454 0.13 315.494);
--chart-5: oklch(0.54 0.122 137.751);
}