Mon theme is a shadcn/ui theme built around a neutral gray primary color (#3b3b3b) with neutral gray accents (#3b3b3b). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#3b3b3b) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #070303black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fdf7f7snow | #0a0505black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf7f7snow | #0a0505black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Primary foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Secondary | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Secondary foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Muted | #e4e2e2gainsboro | #1d1b1bblack |
| Muted foreground | #635f5fdimgray | #a09c9cdarkgray |
| Accent | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Accent foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Destructive | #ce5109chocolate | #dc5709chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e9e2e2gainsboro | #221b1bblack |
| Input | #e9e2e2gainsboro | #221b1bblack |
| Ring | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.39:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 4.87:1 | AA |
| Accent | 7.59:1 | AAA |
| Destructive | 4.38:1 | AA Large |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 6.32:1 | AA |
| Accent | 7.59:1 | AAA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Mon theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 17.212);
--foreground: oklch(0 0 0);
--muted: oklch(0.914 0.003 17.213);
--muted-foreground: oklch(0.489 0.005 17.326);
--popover: oklch(0.98 0.006 17.267);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.006 17.267);
--card-foreground: oklch(0 0 0);
--border: oklch(0.919 0.007 17.278);
--input: oklch(0.919 0.007 17.278);
--primary: oklch(0.351 0 167.471);
--primary-foreground: oklch(0.869 0 165.964);
--secondary: oklch(0.351 0 167.471);
--secondary-foreground: oklch(0.869 0 165.964);
--accent: oklch(0.351 0 167.471);
--accent-foreground: oklch(0.869 0 165.964);
--destructive: oklch(0.592 0.173 42.814);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0 167.471);
--chart-1: oklch(0.351 0 167.471);
--chart-2: oklch(0.351 0 167.471);
--chart-3: oklch(0.351 0 167.471);
--chart-4: oklch(0.38 0 180);
--chart-5: oklch(0.348 0.005 17.393);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.011 19.049);
--foreground: oklch(1 0 180);
--muted: oklch(0.224 0.004 17.485);
--muted-foreground: oklch(0.697 0.005 17.265);
--popover: oklch(0.124 0.013 19.05);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.013 19.05);
--card-foreground: oklch(1 0 180);
--border: oklch(0.231 0.012 18.027);
--input: oklch(0.231 0.012 18.027);
--primary: oklch(0.351 0 167.471);
--primary-foreground: oklch(0.869 0 165.964);
--secondary: oklch(0.351 0 167.471);
--secondary-foreground: oklch(0.869 0 165.964);
--accent: oklch(0.351 0 167.471);
--accent-foreground: oklch(0.869 0 165.964);
--destructive: oklch(0.623 0.182 42.67);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0 167.471);
--chart-1: oklch(0.351 0 167.471);
--chart-2: oklch(0.351 0 167.471);
--chart-3: oklch(0.351 0 167.471);
--chart-4: oklch(0.38 0 180);
--chart-5: oklch(0.348 0.005 17.393);
}