Mushy is a shadcn/ui theme built around a vivid green primary color (#359a13) with vivid purple accents (#79139a). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#359a13) on a green-tinted background (#060c03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060c03black |
| Foreground | #020401black | #ffffffwhite |
| Card | #fcfcfcsnow | #071005black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #060c03black |
| Popover foreground | #020401black | #ffffffwhite |
| Primary | #359a13forestgreen | #359a13forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #79139adarkmagenta | #79139adarkmagenta |
| Secondary foreground | #f6e4fclavender | #f6e4fclavender |
| Muted | #dfcce5gainsboro | #2d1a33darkslategray |
| Muted foreground | #464248darkslategray | #bcb7bdsilver |
| Accent | #79139adarkmagenta | #79139adarkmagenta |
| Accent foreground | #f6e4fclavender | #f6e4fclavender |
| Destructive | #6b2b0bsaddlebrown | #e96320chocolate |
| Destructive foreground | #f7c8b0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #359a13forestgreen | #359a13forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 3.61:1 | AA Large |
| Secondary button | 7.35:1 | AAA |
| Muted text | 6.52:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 3.61:1 | AA Large |
| Secondary button | 7.35:1 | AAA |
| Muted text | 8.17:1 | AAA |
| Accent | 7.35:1 | AAA |
| Destructive | 6.27:1 | AA |
Paste this into your globals.css to use Mushy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.099 0.019 135.869);
--muted: oklch(0.869 0.04 317.688);
--muted-foreground: oklch(0.386 0.011 317.718);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.099 0.019 135.869);
--card: oklch(0.992 0 161.565);
--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.605 0.187 139.906);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.436 0.201 315.031);
--secondary-foreground: oklch(0.939 0.037 317.699);
--accent: oklch(0.436 0.201 315.031);
--accent-foreground: oklch(0.939 0.037 317.699);
--destructive: oklch(0.374 0.101 43.263);
--destructive-foreground: oklch(0.868 0.063 47.974);
--ring: oklch(0.605 0.187 139.906);
--chart-1: oklch(0.605 0.187 139.906);
--chart-2: oklch(0.436 0.201 315.031);
--chart-3: oklch(0.436 0.201 315.031);
--chart-4: oklch(0.463 0.214 314.969);
--chart-5: oklch(0.611 0.191 140.033);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.024 136.187);
--foreground: oklch(1 0 180);
--muted: oklch(0.253 0.053 317.34);
--muted-foreground: oklch(0.786 0.009 317.744);
--popover: oklch(0.142 0.024 136.187);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.159 0.028 136.72);
--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.605 0.187 139.906);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.436 0.201 315.031);
--secondary-foreground: oklch(0.939 0.037 317.699);
--accent: oklch(0.436 0.201 315.031);
--accent-foreground: oklch(0.939 0.037 317.699);
--destructive: oklch(0.66 0.182 42.872);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.605 0.187 139.906);
--chart-1: oklch(0.605 0.187 139.906);
--chart-2: oklch(0.436 0.201 315.031);
--chart-3: oklch(0.436 0.201 315.031);
--chart-4: oklch(0.463 0.214 314.969);
--chart-5: oklch(0.611 0.191 140.033);
}