Soggy is a shadcn/ui theme built around a muted purple primary color (#956595) with muted green accents (#659565). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted purple primary (#956595) on a purple-tinted background (#0c030c).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0c030cblack |
| Foreground | #0c030cblack | #ffffffwhite |
| Card | #fefbfewhite | #0c030cblack |
| Card foreground | #0c030cblack | #ffffffwhite |
| Popover | #fefbfewhite | #0c030cblack |
| Popover foreground | #0c030cblack | #ffffffwhite |
| Primary | #956595gray | #956595gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #659565gray | #659565gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e2e9e2gainsboro | #161d16black |
| Muted foreground | #445044darkslategray | #afbbafdarkgray |
| Accent | #659565gray | #659565gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #af2d12firebrick | #ec6246tomato |
| Destructive foreground | #fef7f6snow | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #956595gray | #956595gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 4.59:1 | AA |
| Secondary button | 6.02:1 | AA |
| Muted text | 6.86:1 | AA |
| Accent | 6.02:1 | AA |
| Destructive | 6.18:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 4.59:1 | AA |
| Secondary button | 6.02:1 | AA |
| Muted text | 8.63:1 | AAA |
| Accent | 6.02:1 | AA |
| Destructive | 6.38:1 | AA |
Paste this into your globals.css to use Soggy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 325.615);
--foreground: oklch(0.124 0.031 327.231);
--muted: oklch(0.927 0.012 145.476);
--muted-foreground: oklch(0.417 0.025 145.118);
--popover: oklch(0.991 0.005 325.615);
--popover-foreground: oklch(0.124 0.031 327.231);
--card: oklch(0.991 0.005 325.615);
--card-foreground: oklch(0.124 0.031 327.231);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.574 0.09 326.673);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.622 0.087 144.439);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.622 0.087 144.439);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.5 0.171 32.903);
--destructive-foreground: oklch(0.982 0.008 31.058);
--ring: oklch(0.574 0.09 326.673);
--chart-1: oklch(0.574 0.09 326.673);
--chart-2: oklch(0.622 0.087 144.439);
--chart-3: oklch(0.622 0.087 144.439);
--chart-4: oklch(0.646 0.085 144.515);
--chart-5: oklch(0.573 0.104 326.825);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.03 327.202);
--foreground: oklch(1 0 180);
--muted: oklch(0.221 0.017 144.962);
--muted-foreground: oklch(0.779 0.021 145.369);
--popover: oklch(0.124 0.03 327.202);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.03 327.202);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.574 0.09 326.673);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.622 0.087 144.439);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.622 0.087 144.439);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.665 0.176 33.092);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.574 0.09 326.673);
--chart-1: oklch(0.574 0.09 326.673);
--chart-2: oklch(0.622 0.087 144.439);
--chart-3: oklch(0.622 0.087 144.439);
--chart-4: oklch(0.646 0.085 144.515);
--chart-5: oklch(0.573 0.104 326.825);
}