Muskrat is a shadcn/ui theme built around a vivid deep violet primary color (#18033a) with vivid deep green accents (#033a18). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#18033a) on a violet-tinted background (#09060e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #09060eblack |
| Foreground | #020104black | #f7f5f9whitesmoke |
| Card | #fcfcfcsnow | #0c0812black |
| Card foreground | #000000black | #faf8fbghostwhite |
| Popover | #fcfcfcsnow | #0c0812black |
| Popover foreground | #000000black | #faf8fbghostwhite |
| Primary | #18033amidnightblue | #18033amidnightblue |
| Primary foreground | #a978f7mediumpurple | #a978f7mediumpurple |
| Secondary | #3a1803black | #3a1803black |
| Secondary foreground | #f7a978lightsalmon | #f7a978lightsalmon |
| Muted | #e2e0dfgainsboro | #201e1dblack |
| Muted foreground | #5d524cdimgray | #b3a9a2darkgray |
| Accent | #033a18darkgreen | #033a18darkgreen |
| Accent foreground | #18f26bspringgreen | #18f26bspringgreen |
| Destructive | #8f2a04saddlebrown | #f9652ftomato |
| Destructive foreground | #fdd7c9bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #18033amidnightblue | #18033amidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 5.74:1 | AA |
| Accent | 8.61:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 18.54:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 7.18:1 | AAA |
| Accent | 8.61:1 | AAA |
| Destructive | 6.91:1 | AA |
Paste this into your globals.css to use Muskrat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.075 0.023 305.009);
--muted: oklch(0.908 0.003 54.466);
--muted-foreground: oklch(0.447 0.017 53.987);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--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.191 0.096 292.951);
--primary-foreground: oklch(0.677 0.184 299.122);
--secondary: oklch(0.256 0.062 49.783);
--secondary-foreground: oklch(0.8 0.113 52.342);
--accent: oklch(0.305 0.08 150.602);
--accent-foreground: oklch(0.839 0.234 148.737);
--destructive: oklch(0.438 0.143 36.971);
--destructive-foreground: oklch(0.907 0.048 40.997);
--ring: oklch(0.191 0.096 292.951);
--chart-1: oklch(0.191 0.096 292.951);
--chart-2: oklch(0.256 0.062 49.783);
--chart-3: oklch(0.305 0.08 150.602);
--chart-4: oklch(0.293 0.074 48.321);
--chart-5: oklch(0.19 0.099 292.507);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.019 303.16);
--foreground: oklch(0.973 0.006 303.549);
--muted: oklch(0.238 0.004 54.295);
--muted-foreground: oklch(0.741 0.015 54.227);
--popover: oklch(0.144 0.022 301.744);
--popover-foreground: oklch(0.982 0.004 303.58);
--card: oklch(0.144 0.022 301.744);
--card-foreground: oklch(0.982 0.004 303.58);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.191 0.096 292.951);
--primary-foreground: oklch(0.677 0.184 299.122);
--secondary: oklch(0.256 0.062 49.783);
--secondary-foreground: oklch(0.8 0.113 52.342);
--accent: oklch(0.305 0.08 150.602);
--accent-foreground: oklch(0.839 0.234 148.737);
--destructive: oklch(0.687 0.193 38.978);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.191 0.096 292.951);
--chart-1: oklch(0.191 0.096 292.951);
--chart-2: oklch(0.256 0.062 49.783);
--chart-3: oklch(0.305 0.08 150.602);
--chart-4: oklch(0.293 0.074 48.321);
--chart-5: oklch(0.19 0.099 292.507);
}