Muddy is a shadcn/ui theme built around a vivid violet primary color (#7910ea) with muted light violet accents (#cec9d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#7910ea) on a violet-tinted background (#0a070e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a070eblack |
| Foreground | #050209black | #ffffffwhite |
| Card | #ffffffwhite | #0a070eblack |
| Card foreground | #050209black | #ffffffwhite |
| Popover | #ffffffwhite | #0a070eblack |
| Popover foreground | #050209black | #ffffffwhite |
| Primary | #7910eablueviolet | #7910eablueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cec9d4lightgrey | #231d2ablack |
| Secondary foreground | #35303bdarkslategray | #bcb0c9silver |
| Muted | #e8e4eclavender | #17131bblack |
| Muted foreground | #5c5a5edimgray | #a3a1a5darkgray |
| Accent | #cec9d4lightgrey | #231d2ablack |
| Accent foreground | #35303bdarkslategray | #bcb0c9silver |
| Destructive | #970402darkred | #f70702red |
| Destructive foreground | #fecdcdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7910eablueviolet | #7910eablueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 5.43:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 7.16:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 4.20:1 | AA Large |
Paste this into your globals.css to use Muddy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.028 309.807);
--muted: oklch(0.924 0.012 307.639);
--muted-foreground: oklch(0.47 0.006 307.634);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.028 309.807);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.028 309.807);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.506 0.27 295.198);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.844 0.016 307.573);
--secondary-foreground: oklch(0.319 0.022 306.984);
--accent: oklch(0.844 0.016 307.573);
--accent-foreground: oklch(0.319 0.022 306.984);
--destructive: oklch(0.427 0.173 29.357);
--destructive-foreground: oklch(0.892 0.056 19.389);
--ring: oklch(0.506 0.27 295.198);
--chart-1: oklch(0.506 0.27 295.198);
--chart-2: oklch(0.844 0.016 307.573);
--chart-3: oklch(0.844 0.016 307.573);
--chart-4: oklch(0.869 0.013 307.613);
--chart-5: oklch(0.509 0.275 294.549);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.017 307.534);
--foreground: oklch(1 0 180);
--muted: oklch(0.195 0.017 306.742);
--muted-foreground: oklch(0.713 0.006 307.697);
--popover: oklch(0.136 0.017 307.534);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.017 307.534);
--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.506 0.27 295.198);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.244 0.027 306.491);
--secondary-foreground: oklch(0.776 0.038 307.223);
--accent: oklch(0.244 0.027 306.491);
--accent-foreground: oklch(0.776 0.038 307.223);
--destructive: oklch(0.615 0.251 29.3);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.506 0.27 295.198);
--chart-1: oklch(0.506 0.27 295.198);
--chart-2: oklch(0.244 0.027 306.491);
--chart-3: oklch(0.244 0.027 306.491);
--chart-4: oklch(0.273 0.032 306.417);
--chart-5: oklch(0.509 0.275 294.549);
}