Muffled is a shadcn/ui theme built around a vivid red primary color (#af1d12) with vivid teal accents (#12a5af). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the vivid red primary (#af1d12) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #030202black |
| Foreground | #150605black | #f9f6f6whitesmoke |
| Card | #fcf8f8snow | #030202black |
| Card foreground | #150605black | #f9f6f6whitesmoke |
| Popover | #fcf8f8snow | #030202black |
| Popover foreground | #150605black | #f9f6f6whitesmoke |
| Primary | #af1d12firebrick | #af1d12firebrick |
| Primary foreground | #fef6f6snow | #fef6f6snow |
| Secondary | #12a5aflightseagreen | #12a5aflightseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d4e2e3gainsboro | #1c2a2bdarkslategray |
| Muted foreground | #555d5edimgray | #a1aaaadarkgray |
| Accent | #12a5aflightseagreen | #12a5aflightseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cc2500firebrick | #ff3b0forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #af1d12firebrick | #af1d12firebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 2.98:1 | Fail |
| Muted text | 5.06:1 | AA |
| Accent | 2.98:1 | Fail |
| Destructive | 5.47:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 2.98:1 | Fail |
| Muted text | 6.23:1 | AA |
| Accent | 2.98:1 | Fail |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Muffled in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 22.26);
--foreground: oklch(0.147 0.029 26.945);
--muted: oklch(0.902 0.015 202.041);
--muted-foreground: oklch(0.472 0.01 201.987);
--popover: oklch(0.982 0.004 22.26);
--popover-foreground: oklch(0.147 0.029 26.945);
--card: oklch(0.982 0.004 22.26);
--card-foreground: oklch(0.147 0.029 26.945);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.487 0.182 29.566);
--primary-foreground: oklch(0.98 0.008 22.31);
--secondary: oklch(0.659 0.11 203.017);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.659 0.11 203.017);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.545 0.204 32.419);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.487 0.182 29.566);
--chart-1: oklch(0.487 0.182 29.566);
--chart-2: oklch(0.659 0.11 203.017);
--chart-3: oklch(0.659 0.11 203.017);
--chart-4: oklch(0.697 0.116 203.051);
--chart-5: oklch(0.491 0.187 29.654);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.008 24.583);
--foreground: oklch(0.976 0.002 22.243);
--muted: oklch(0.274 0.019 201.638);
--muted-foreground: oklch(0.73 0.009 202.078);
--popover: oklch(0.087 0.008 24.583);
--popover-foreground: oklch(0.976 0.002 22.243);
--card: oklch(0.087 0.008 24.583);
--card-foreground: oklch(0.976 0.002 22.243);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.487 0.182 29.566);
--primary-foreground: oklch(0.98 0.008 22.31);
--secondary: oklch(0.659 0.11 203.017);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.659 0.11 203.017);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.653 0.235 32.89);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.487 0.182 29.566);
--chart-1: oklch(0.487 0.182 29.566);
--chart-2: oklch(0.659 0.11 203.017);
--chart-3: oklch(0.659 0.11 203.017);
--chart-4: oklch(0.697 0.116 203.051);
--chart-5: oklch(0.491 0.187 29.654);
}