Muffled is a shadcn/ui theme built around a near-black primary color (#0d0c0d) with muted light pink accents (#e6e0e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0d0c0d) on a pink-tinted background (#0f0609).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0609black |
| Foreground | #040102black | #ffffffwhite |
| Card | #ffffffwhite | #0f0609black |
| Card foreground | #040102black | #ffffffwhite |
| Popover | #ffffffwhite | #0f0609black |
| Popover foreground | #040102black | #ffffffwhite |
| Primary | #0d0c0dblack | #0d0c0dblack |
| Primary foreground | #a8a4a5darkgray | #a8a4a5darkgray |
| Secondary | #e6e0e2gainsboro | #1f1e1eblack |
| Secondary foreground | #514348darkslategray | #b9b6b7silver |
| Muted | #f1e9eclinen | #160e11black |
| Muted foreground | #65585cdimgray | #a79a9fdarkgray |
| Accent | #e6e0e2gainsboro | #1f1e1eblack |
| Accent foreground | #514348darkslategray | #b9b6b7silver |
| Destructive | #5d2109maroon | #da4d16chocolate |
| Destructive foreground | #f6baa2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d0c0dblack | #0d0c0dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.78:1 | AAA |
| Text on card | 20.78:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 7.18:1 | AAA |
| Destructive | 7.40:1 | AAA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 8.25:1 | AAA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Muffled in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.081 0.02 353.066);
--muted: oklch(0.942 0.009 353.842);
--muted-foreground: oklch(0.474 0.019 354.676);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.081 0.02 353.066);
--card: oklch(1 0 180);
--card-foreground: oklch(0.081 0.02 353.066);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.157 0.001 353.745);
--primary-foreground: oklch(0.722 0.004 353.752);
--secondary: oklch(0.912 0.007 353.783);
--secondary-foreground: oklch(0.398 0.022 355.099);
--accent: oklch(0.912 0.007 353.783);
--accent-foreground: oklch(0.398 0.022 355.099);
--destructive: oklch(0.334 0.094 39.878);
--destructive-foreground: oklch(0.837 0.077 42.551);
--ring: oklch(0.157 0.001 353.745);
--chart-1: oklch(0.157 0.001 353.745);
--chart-2: oklch(0.912 0.007 353.783);
--chart-3: oklch(0.912 0.007 353.783);
--chart-4: oklch(0.936 0.005 353.721);
--chart-5: oklch(0.157 0.002 354.002);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.02 354.765);
--foreground: oklch(1 0 180);
--muted: oklch(0.175 0.014 355.721);
--muted-foreground: oklch(0.699 0.017 354.255);
--popover: oklch(0.137 0.02 354.765);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.02 354.765);
--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.157 0.001 353.745);
--primary-foreground: oklch(0.722 0.004 353.752);
--secondary: oklch(0.236 0.002 353.82);
--secondary-foreground: oklch(0.779 0.004 353.704);
--accent: oklch(0.236 0.002 353.82);
--accent-foreground: oklch(0.779 0.004 353.704);
--destructive: oklch(0.608 0.187 38.612);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.157 0.001 353.745);
--chart-1: oklch(0.157 0.001 353.745);
--chart-2: oklch(0.236 0.002 353.82);
--chart-3: oklch(0.236 0.002 353.82);
--chart-4: oklch(0.268 0.002 353.837);
--chart-5: oklch(0.157 0.002 354.002);
}