Mad is a shadcn/ui theme built around a blue primary color (#4f7292) with muted light blue accents (#c7ccd1). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the blue primary (#4f7292) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #000000black |
| Foreground | #02080dblack | #ffffffwhite |
| Card | #fbfdfewhite | #000000black |
| Card foreground | #02080dblack | #ffffffwhite |
| Popover | #fbfdfewhite | #000000black |
| Popover foreground | #02080dblack | #ffffffwhite |
| Primary | #4f7292slategray | #4f7292slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c7ccd1lightgrey | #1d1f20black |
| Secondary foreground | #2e3338darkslategray | #b5b8basilver |
| Muted | #dcdee0gainsboro | #1f2123black |
| Muted foreground | #5c646adimgray | #959ca3darkgray |
| Accent | #c7ccd1lightgrey | #1d1f20black |
| Accent foreground | #2e3338darkslategray | #b5b8basilver |
| Destructive | #6b0705maroon | #f53632crimson |
| Destructive foreground | #fba9a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4f7292slategray | #4f7292slategray |
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 | 5.03:1 | AA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 4.46:1 | AA Large |
| Accent | 7.90:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.03:1 | AA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 8.31:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Mad in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 244.116);
--foreground: oklch(0.129 0.018 235.733);
--muted: oklch(0.9 0.003 244.129);
--muted-foreground: oklch(0.499 0.014 244.435);
--popover: oklch(0.992 0.002 244.116);
--popover-foreground: oklch(0.129 0.018 235.733);
--card: oklch(0.992 0.002 244.116);
--card-foreground: oklch(0.129 0.018 235.733);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.539 0.064 245.767);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.844 0.008 244.208);
--secondary-foreground: oklch(0.319 0.01 244.487);
--accent: oklch(0.844 0.008 244.208);
--accent-foreground: oklch(0.319 0.01 244.487);
--destructive: oklch(0.336 0.132 28.786);
--destructive-foreground: oklch(0.813 0.097 20.48);
--ring: oklch(0.539 0.064 245.767);
--chart-1: oklch(0.539 0.064 245.767);
--chart-2: oklch(0.844 0.008 244.208);
--chart-3: oklch(0.844 0.008 244.208);
--chart-4: oklch(0.867 0.007 244.187);
--chart-5: oklch(0.54 0.07 245.981);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.248 0.004 244.287);
--muted-foreground: oklch(0.689 0.013 244.32);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.539 0.064 245.767);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.237 0.003 244.244);
--secondary-foreground: oklch(0.78 0.005 244.171);
--accent: oklch(0.237 0.003 244.244);
--accent-foreground: oklch(0.78 0.005 244.171);
--destructive: oklch(0.634 0.227 27.307);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.539 0.064 245.767);
--chart-1: oklch(0.539 0.064 245.767);
--chart-2: oklch(0.237 0.003 244.244);
--chart-3: oklch(0.237 0.003 244.244);
--chart-4: oklch(0.269 0.004 244.254);
--chart-5: oklch(0.54 0.07 245.981);
}