Musty is a shadcn/ui theme built around a deep green primary color (#3f5a2b) with muted light green accents (#e5eae1). The light mode uses a neutral background (#fafcf8). Dark mode keeps the deep green primary (#3f5a2b) on a green-tinted background (#070a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #070a05black |
| Foreground | #050901black | #fafbf8snow |
| Card | #f7faf4whitesmoke | #0a0e07black |
| Card foreground | #020401black | #fcfdfcwhite |
| Popover | #f7faf4whitesmoke | #0a0e07black |
| Popover foreground | #020401black | #fcfdfcwhite |
| Primary | #3f5a2bdarkolivegreen | #3f5a2bdarkolivegreen |
| Primary foreground | #dae8cfgainsboro | #dae8cfgainsboro |
| Secondary | #e5eae1gainsboro | #1e221bblack |
| Secondary foreground | #4b5a3fdarkolivegreen | #b6c0afsilver |
| Muted | #eaefe6beige | #141910black |
| Muted foreground | #495341darkslategray | #b4beacsilver |
| Accent | #e5eae1gainsboro | #1e221bblack |
| Accent foreground | #4b5a3fdarkolivegreen | #b6c0afsilver |
| Destructive | #752b0bsaddlebrown | #db5014chocolate |
| Destructive foreground | #f8ccb9peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3f5a2bdarkolivegreen | #3f5a2bdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 6.05:1 | AA |
| Muted text | 6.94:1 | AA |
| Accent | 6.05:1 | AA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 8.55:1 | AAA |
| Muted text | 9.25:1 | AAA |
| Accent | 8.55:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Musty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 131.135);
--foreground: oklch(0.129 0.026 129.347);
--muted: oklch(0.947 0.014 131.217);
--muted-foreground: oklch(0.427 0.031 131.756);
--popover: oklch(0.982 0.009 131.161);
--popover-foreground: oklch(0.102 0.021 129.347);
--card: oklch(0.982 0.009 131.161);
--card-foreground: oklch(0.102 0.021 129.347);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.432 0.078 133.031);
--primary-foreground: oklch(0.913 0.037 131.443);
--secondary: oklch(0.93 0.013 131.204);
--secondary-foreground: oklch(0.445 0.045 132.039);
--accent: oklch(0.93 0.013 131.204);
--accent-foreground: oklch(0.445 0.045 132.039);
--destructive: oklch(0.392 0.112 40.513);
--destructive-foreground: oklch(0.879 0.057 44.444);
--ring: oklch(0.432 0.078 133.031);
--chart-1: oklch(0.432 0.078 133.031);
--chart-2: oklch(0.93 0.013 131.204);
--chart-3: oklch(0.93 0.013 131.204);
--chart-4: oklch(0.951 0.009 131.166);
--chart-5: oklch(0.437 0.083 133.207);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.015 130.187);
--foreground: oklch(0.987 0.004 131.121);
--muted: oklch(0.205 0.021 132.029);
--muted-foreground: oklch(0.788 0.027 131.389);
--popover: oklch(0.156 0.017 131.042);
--popover-foreground: oklch(0.994 0.002 131.103);
--card: oklch(0.156 0.017 131.042);
--card-foreground: oklch(0.994 0.002 131.103);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.432 0.078 133.031);
--primary-foreground: oklch(0.913 0.037 131.443);
--secondary: oklch(0.246 0.015 131.633);
--secondary-foreground: oklch(0.796 0.026 131.375);
--accent: oklch(0.246 0.015 131.633);
--accent-foreground: oklch(0.796 0.026 131.375);
--destructive: oklch(0.613 0.186 39.524);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.432 0.078 133.031);
--chart-1: oklch(0.432 0.078 133.031);
--chart-2: oklch(0.246 0.015 131.633);
--chart-3: oklch(0.246 0.015 131.633);
--chart-4: oklch(0.28 0.018 131.669);
--chart-5: oklch(0.437 0.083 133.207);
}