Mushy is a shadcn/ui theme built around a violet primary color (#8038a3) with purple accents (#a33891). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#8038a3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #060109black | #fbf8fcghostwhite |
| Card | #fdfbfewhite | #000000black |
| Card foreground | #060109black | #fbf8fcghostwhite |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #060109black | #fbf8fcghostwhite |
| Primary | #8038a3rebeccapurple | #8038a3rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4a38a3darkslateblue | #4a38a3darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7e5f0lavender | #110f1ablack |
| Muted foreground | #4a4950darkslategray | #b0afb6darkgray |
| Accent | #a33891mediumvioletred | #a33891mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ce240dfirebrick | #f2503atomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8038a3rebeccapurple | #8038a3rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 5.93:1 | AA |
| Destructive | 5.40:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 8.72:1 | AAA |
| Accent | 5.93:1 | AA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Mushy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 314.803);
--foreground: oklch(0.1 0.032 317.529);
--muted: oklch(0.927 0.015 293.765);
--muted-foreground: oklch(0.41 0.01 293.601);
--popover: oklch(0.99 0.005 314.803);
--popover-foreground: oklch(0.1 0.032 317.529);
--card: oklch(0.99 0.005 314.803);
--card-foreground: oklch(0.1 0.032 317.529);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.486 0.172 312.426);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.427 0.165 284.58);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.526 0.175 335.028);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.549 0.206 30.913);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.486 0.172 312.426);
--chart-1: oklch(0.486 0.172 312.426);
--chart-2: oklch(0.427 0.165 284.58);
--chart-3: oklch(0.526 0.175 335.028);
--chart-4: oklch(0.447 0.174 284.475);
--chart-5: oklch(0.486 0.181 312.198);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.005 314.8);
--muted: oklch(0.176 0.023 291.534);
--muted-foreground: oklch(0.758 0.009 293.851);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.005 314.8);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.005 314.8);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.486 0.172 312.426);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.427 0.165 284.58);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.526 0.175 335.028);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.653 0.202 30.668);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.486 0.172 312.426);
--chart-1: oklch(0.486 0.172 312.426);
--chart-2: oklch(0.427 0.165 284.58);
--chart-3: oklch(0.526 0.175 335.028);
--chart-4: oklch(0.447 0.174 284.475);
--chart-5: oklch(0.486 0.181 312.198);
}