Muted is a shadcn/ui theme built around a teal primary color (#5cc1a3) with pink accents (#c15c7b). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#5cc1a3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020e0ablack | #f4faf9mintcream |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020e0ablack | #f4faf9mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020e0ablack | #f4faf9mintcream |
| Primary | #5cc1a3mediumaquamarine | #5cc1a3mediumaquamarine |
| Primary foreground | #000000black | #000000black |
| Secondary | #c15c7bindianred | #c15c7bindianred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3f1f2whitesmoke | #0e0c0cblack |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #c15c7bindianred | #c15c7bindianred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c10101firebrick | #e90101red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5cc1a3mediumaquamarine | #5cc1a3mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 9.64:1 | AAA |
| Secondary button | 4.11:1 | AA Large |
| Muted text | 9.23:1 | AAA |
| Accent | 4.11:1 | AA Large |
| Destructive | 6.42:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 9.64:1 | AAA |
| Secondary button | 4.11:1 | AA Large |
| Muted text | 10.62:1 | AAA |
| Accent | 4.11:1 | AA Large |
| Destructive | 4.68:1 | AA |
Paste this into your globals.css to use Muted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.023 175.523);
--muted: oklch(0.961 0.002 356.728);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.147 0.023 175.523);
--card: oklch(1 0 180);
--card-foreground: oklch(0.147 0.023 175.523);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.743 0.105 171.211);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.607 0.133 2.893);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.607 0.133 2.893);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.509 0.209 29.188);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.743 0.105 171.211);
--chart-1: oklch(0.743 0.105 171.211);
--chart-2: oklch(0.607 0.133 2.893);
--chart-3: oklch(0.607 0.133 2.893);
--chart-4: oklch(0.632 0.123 2.118);
--chart-5: oklch(0.75 0.111 170.858);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.007 176.458);
--muted: oklch(0.156 0.004 357.332);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.007 176.458);
--card: oklch(0 0 0);
--card-foreground: oklch(0.981 0.007 176.458);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.743 0.105 171.211);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.607 0.133 2.893);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.607 0.133 2.893);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.588 0.241 29.198);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.743 0.105 171.211);
--chart-1: oklch(0.743 0.105 171.211);
--chart-2: oklch(0.607 0.133 2.893);
--chart-3: oklch(0.607 0.133 2.893);
--chart-4: oklch(0.632 0.123 2.118);
--chart-5: oklch(0.75 0.111 170.858);
}