Musty is a shadcn/ui theme built around a vivid light indigo primary color (#ebe8fc) with muted light indigo accents (#cecbdd). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid light indigo primary (#ebe8fc) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #020104black |
| Foreground | #020109black | #f9f9fbghostwhite |
| Card | #f8f7fdghostwhite | #030208black |
| Card foreground | #010105black | #fcfcfdwhite |
| Popover | #f8f7fdghostwhite | #030208black |
| Popover foreground | #010105black | #fcfcfdwhite |
| Primary | #ebe8fclavender | #ebe8fclavender |
| Primary foreground | #2a12a1indigo | #2a12a1indigo |
| Secondary | #e9e8edlavender | #222127black |
| Secondary foreground | #4a465ddarkslategray | #b9b7c2silver |
| Muted | #d9d6e5gainsboro | #1c1a29black |
| Muted foreground | #434054darkslategray | #aeabbfdarkgray |
| Accent | #cecbddlightgrey | #2f2c3fdarkslategray |
| Accent foreground | #322e47darkslategray | #c9c6d7thistle |
| Destructive | #cb1710firebrick | #e71a13red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebe8fclavender | #ebe8fclavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 10.30:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 7.01:1 | AAA |
| Accent | 8.13:1 | AAA |
| Destructive | 5.73:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 10.30:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 4.60:1 | AA |
Paste this into your globals.css to use Musty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 293.988);
--foreground: oklch(0.088 0.031 291.449);
--muted: oklch(0.883 0.021 293.622);
--muted-foreground: oklch(0.382 0.035 292.292);
--popover: oklch(0.978 0.008 293.907);
--popover-foreground: oklch(0.07 0.024 291.449);
--card: oklch(0.978 0.008 293.907);
--card-foreground: oklch(0.07 0.024 291.449);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.94 0.028 293.515);
--primary-foreground: oklch(0.35 0.204 275.329);
--secondary: oklch(0.933 0.008 293.912);
--secondary-foreground: oklch(0.408 0.038 292.261);
--accent: oklch(0.849 0.025 293.507);
--accent-foreground: oklch(0.318 0.044 291.355);
--destructive: oklch(0.536 0.21 29.045);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.94 0.028 293.515);
--chart-1: oklch(0.94 0.028 293.515);
--chart-2: oklch(0.933 0.008 293.912);
--chart-3: oklch(0.849 0.025 293.507);
--chart-4: oklch(0.958 0.005 293.973);
--chart-5: oklch(0.939 0.029 293.493);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.078 0.016 292.626);
--foreground: oklch(0.982 0.003 294.012);
--muted: oklch(0.226 0.029 291.504);
--muted-foreground: oklch(0.75 0.03 293.321);
--popover: oklch(0.098 0.02 292.626);
--popover-foreground: oklch(0.991 0.001 294.039);
--card: oklch(0.098 0.02 292.626);
--card-foreground: oklch(0.991 0.001 294.039);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.94 0.028 293.515);
--primary-foreground: oklch(0.35 0.204 275.329);
--secondary: oklch(0.251 0.011 293.256);
--secondary-foreground: oklch(0.785 0.015 293.709);
--accent: oklch(0.306 0.033 291.995);
--accent-foreground: oklch(0.835 0.023 293.55);
--destructive: oklch(0.59 0.232 29.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.94 0.028 293.515);
--chart-1: oklch(0.94 0.028 293.515);
--chart-2: oklch(0.251 0.011 293.256);
--chart-3: oklch(0.306 0.033 291.995);
--chart-4: oklch(0.28 0.013 293.21);
--chart-5: oklch(0.939 0.029 293.493);
}