Muddy is a shadcn/ui theme built around a deep violet primary color (#4a2659) with deep purple accents (#59264f). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#4a2659) on a neutral background (#060407).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #060407black |
| Foreground | #030104black | #ffffffwhite |
| Card | #fdfbfewhite | #060407black |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #fdfbfewhite | #060407black |
| Popover foreground | #030104black | #ffffffwhite |
| Primary | #4a2659darkslategray | #4a2659darkslategray |
| Primary foreground | #dfc9e8thistle | #dfc9e8thistle |
| Secondary | #302659midnightblue | #302659midnightblue |
| Secondary foreground | #d0c9e8thistle | #d0c9e8thistle |
| Muted | #eae8f3lavender | #0f0c17black |
| Muted foreground | #444446darkslategray | #bab9bbsilver |
| Accent | #59264fdarkslategray | #59264fdarkslategray |
| Accent foreground | #e8c9e2thistle | #e8c9e2thistle |
| Destructive | #971602darkred | #fd3e21orangered |
| Destructive foreground | #fed3cdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4a2659darkslategray | #4a2659darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 7.95:1 | AAA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 20.47:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 7.95:1 | AAA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 9.88:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Muddy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 316.01);
--foreground: oklch(0.082 0.02 318.148);
--muted: oklch(0.935 0.015 295.293);
--muted-foreground: oklch(0.388 0.002 295.468);
--popover: oklch(0.991 0.003 316.01);
--popover-foreground: oklch(0.082 0.02 318.148);
--card: oklch(0.991 0.003 316.01);
--card-foreground: oklch(0.082 0.02 318.148);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.341 0.095 314.787);
--primary-foreground: oklch(0.864 0.048 315.826);
--secondary: oklch(0.31 0.088 289.444);
--secondary-foreground: oklch(0.852 0.043 294.649);
--accent: oklch(0.357 0.094 335.601);
--accent-foreground: oklch(0.87 0.047 332.787);
--destructive: oklch(0.435 0.166 31.499);
--destructive-foreground: oklch(0.903 0.05 28.315);
--ring: oklch(0.341 0.095 314.787);
--chart-1: oklch(0.341 0.095 314.787);
--chart-2: oklch(0.31 0.088 289.444);
--chart-3: oklch(0.357 0.094 335.601);
--chart-4: oklch(0.333 0.097 289.277);
--chart-5: oklch(0.34 0.101 314.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.012 317.005);
--foreground: oklch(1 0 180);
--muted: oklch(0.165 0.022 292.957);
--muted-foreground: oklch(0.788 0.002 295.533);
--popover: oklch(0.11 0.012 317.005);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.11 0.012 317.005);
--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.341 0.095 314.787);
--primary-foreground: oklch(0.864 0.048 315.826);
--secondary: oklch(0.31 0.088 289.444);
--secondary-foreground: oklch(0.852 0.043 294.649);
--accent: oklch(0.357 0.094 335.601);
--accent-foreground: oklch(0.87 0.047 332.787);
--destructive: oklch(0.652 0.23 31.626);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.341 0.095 314.787);
--chart-1: oklch(0.341 0.095 314.787);
--chart-2: oklch(0.31 0.088 289.444);
--chart-3: oklch(0.357 0.094 335.601);
--chart-4: oklch(0.333 0.097 289.277);
--chart-5: oklch(0.34 0.101 314.65);
}