Mad is a shadcn/ui theme built around a red primary color (#bf8889) with muted light red accents (#e2cfd0). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#bf8889) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #050101black | #f9f5f5whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #050101black | #f9f5f5whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #050101black | #f9f5f5whitesmoke |
| Primary | #bf8889rosybrown | #bf8889rosybrown |
| Primary foreground | #0d0707black | #0d0707black |
| Secondary | #eae1e1gainsboro | #181616black |
| Secondary foreground | #5a3f3fdarkolivegreen | #b3adaddarkgray |
| Muted | #eeddddgainsboro | #221111black |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #e2cfd0lightgrey | #372a2adarkslategray |
| Accent foreground | #503030darkslategray | #d1c2c2silver |
| Destructive | #8a2b05saddlebrown | #f65313orangered |
| Destructive foreground | #fdd4c4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bf8889rosybrown | #bf8889rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 6.72:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 6.72:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 8.08:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.39:1 | AA Large |
Paste this into your globals.css to use Mad in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.078 0.021 21.333);
--muted: oklch(0.911 0.019 16.336);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.078 0.021 21.333);
--card: oklch(1 0 180);
--card-foreground: oklch(0.078 0.021 21.333);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.68 0.068 17.884);
--primary-foreground: oklch(0.139 0.012 17.386);
--secondary: oklch(0.917 0.01 16.167);
--secondary-foreground: oklch(0.398 0.039 17.836);
--accent: oklch(0.871 0.021 16.412);
--accent-foreground: oklch(0.348 0.047 18.65);
--destructive: oklch(0.429 0.136 38.087);
--destructive-foreground: oklch(0.901 0.051 42.724);
--ring: oklch(0.68 0.068 17.884);
--chart-1: oklch(0.68 0.068 17.884);
--chart-2: oklch(0.917 0.01 16.167);
--chart-3: oklch(0.871 0.021 16.412);
--chart-4: oklch(0.942 0.007 16.104);
--chart-5: oklch(0.677 0.075 18.116);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.004 16.054);
--muted: oklch(0.202 0.028 18.781);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.004 16.054);
--card: oklch(0 0 0);
--card-foreground: oklch(0.974 0.004 16.054);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.68 0.068 17.884);
--primary-foreground: oklch(0.139 0.012 17.386);
--secondary: oklch(0.202 0.003 16.231);
--secondary-foreground: oklch(0.752 0.007 16.144);
--accent: oklch(0.299 0.02 17.231);
--accent-foreground: oklch(0.826 0.017 16.339);
--destructive: oklch(0.661 0.209 37.955);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.68 0.068 17.884);
--chart-1: oklch(0.68 0.068 17.884);
--chart-2: oklch(0.202 0.003 16.231);
--chart-3: oklch(0.299 0.02 17.231);
--chart-4: oklch(0.235 0.004 16.259);
--chart-5: oklch(0.677 0.075 18.116);
}