mono white is a shadcn/ui theme built around a near-black primary color (#0f0f0f) with neutral gray accents (#c9c9c9). The light mode uses a neutral background (#f0f0f0). Dark mode keeps the near-black primary (#0f0f0f) on a neutral background (#f0f0f0).
| Token | Light | Dark |
|---|---|---|
| Background | #f0f0f0whitesmoke | #f0f0f0whitesmoke |
| Foreground | #0f0f0fblack | #0f0f0fblack |
| Card | #ebebeblinen | #ebebeblinen |
| Card foreground | #030303black | #030303black |
| Popover | #e8e8e8lavender | #e8e8e8lavender |
| Popover foreground | #000000black | #000000black |
| Primary | #0f0f0fblack | #0f0f0fblack |
| Primary foreground | #a8a8a8darkgray | #a8a8a8darkgray |
| Secondary | #bfbfbfsilver | #bfbfbfsilver |
| Secondary foreground | #262626darkslategray | #262626darkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #c9c9c9silver | #c9c9c9silver |
| Accent foreground | #303030darkslategray | #303030darkslategray |
| Destructive | #cf0f0cfirebrick | #cf0f0cfirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e3e3e3gainsboro | #e3e3e3gainsboro |
| Input | #dbdbdbgainsboro | #dbdbdbgainsboro |
| Ring | #0f0f0fblack | #0f0f0fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 16.77:1 | AAA |
| Text on card | 17.23:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 5.62:1 | AA |
| Text on background | 16.77:1 | AAA |
| Text on card | 17.23:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 5.62:1 | AA |
Paste this into your globals.css to use mono white in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.954 0 180);
--foreground: oklch(0.17 0 180);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.931 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.939 0 180);
--card-foreground: oklch(0.092 0 180);
--border: oklch(0.916 0 180);
--input: oklch(0.892 0 180);
--primary: oklch(0.17 0 180);
--primary-foreground: oklch(0.733 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.837 0 171.254);
--accent-foreground: oklch(0.311 0 180);
--destructive: oklch(0.541 0.216 28.959);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.17 0 180);
--chart-1: oklch(0.17 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.837 0 171.254);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.169 0.002 17.308);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.954 0 180);
--foreground: oklch(0.17 0 180);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.931 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.939 0 180);
--card-foreground: oklch(0.092 0 180);
--border: oklch(0.916 0 180);
--input: oklch(0.892 0 180);
--primary: oklch(0.17 0 180);
--primary-foreground: oklch(0.733 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.837 0 171.254);
--accent-foreground: oklch(0.311 0 180);
--destructive: oklch(0.541 0.216 28.959);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.17 0 180);
--chart-1: oklch(0.17 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.837 0 171.254);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.169 0.002 17.308);
}