Mutt is a shadcn/ui theme built around a near-black primary color (#212121) with near-black accents (#212121). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#212121) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #070d02black | #fafcf8snow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #070d02black | #fafcf8snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #070d02black | #fafcf8snow |
| Primary | #212121black | #212121black |
| Primary foreground | #babbb9silver | #babbb9silver |
| Secondary | #212121black | #212121black |
| Secondary foreground | #bab9bbsilver | #bab9bbsilver |
| Muted | #dfd7e5gainsboro | #221a28black |
| Muted foreground | #594a64dimgray | #aa9bb5darkgray |
| Accent | #212121black | #212121black |
| Accent foreground | #bab9bbsilver | #bab9bbsilver |
| Destructive | #610f0amaroon | #e72318crimson |
| Destructive foreground | #f6aba7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #212121black | #212121black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 8.32:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 5.78:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 7.16:1 | AAA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 8.32:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 4.52:1 | AA |
Paste this into your globals.css to use Mutt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.148 0.03 130.316);
--muted: oklch(0.889 0.021 311.536);
--muted-foreground: oklch(0.434 0.046 310.866);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.148 0.03 130.316);
--card: oklch(1 0 180);
--card-foreground: oklch(0.148 0.03 130.316);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.249 0.001 131.769);
--primary-foreground: oklch(0.791 0.002 131.746);
--secondary: oklch(0.248 0.001 311.68);
--secondary-foreground: oklch(0.788 0.002 311.703);
--accent: oklch(0.248 0.001 311.68);
--accent-foreground: oklch(0.788 0.002 311.703);
--destructive: oklch(0.321 0.116 28.705);
--destructive-foreground: oklch(0.812 0.089 22.553);
--ring: oklch(0.249 0.001 131.769);
--chart-1: oklch(0.249 0.001 131.769);
--chart-2: oklch(0.248 0.001 311.68);
--chart-3: oklch(0.248 0.001 311.68);
--chart-4: oklch(0.279 0.002 311.677);
--chart-5: oklch(0.251 0.005 131.901);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.006 131.771);
--muted: oklch(0.235 0.029 310.733);
--muted-foreground: oklch(0.712 0.041 311.263);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.988 0.006 131.771);
--card: oklch(0 0 0);
--card-foreground: oklch(0.988 0.006 131.771);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.249 0.001 131.769);
--primary-foreground: oklch(0.791 0.002 131.746);
--secondary: oklch(0.248 0.001 311.68);
--secondary-foreground: oklch(0.788 0.002 311.703);
--accent: oklch(0.248 0.001 311.68);
--accent-foreground: oklch(0.788 0.002 311.703);
--destructive: oklch(0.594 0.228 29.262);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.249 0.001 131.769);
--chart-1: oklch(0.249 0.001 131.769);
--chart-2: oklch(0.248 0.001 311.68);
--chart-3: oklch(0.248 0.001 311.68);
--chart-4: oklch(0.279 0.002 311.677);
--chart-5: oklch(0.251 0.005 131.901);
}