Ex-husband is a shadcn/ui theme built around a neutral gray primary color (#8f8e8a) with neutral gray accents (#8a8b8f). The light mode uses a neutral background (#fefdfb). Dark mode keeps the neutral gray primary (#8f8e8a) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #070603black |
| Foreground | #080702black | #ffffffwhite |
| Card | #fefdfbsnow | #070603black |
| Card foreground | #080702black | #ffffffwhite |
| Popover | #fefdfbsnow | #070603black |
| Popover foreground | #080702black | #ffffffwhite |
| Primary | #8f8e8agray | #8f8e8agray |
| Primary foreground | #000000black | #000000black |
| Secondary | #8a8b8fgray | #8a8b8fgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e8eaf2lavender | #0d0f17black |
| Muted foreground | #565861dimgray | #9ea0a9darkgray |
| Accent | #8a8b8fgray | #8a8b8fgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #730e0cmaroon | #e82926crimson |
| Destructive foreground | #f8bbbalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8f8e8agray | #8f8e8agray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 6.15:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 6.15:1 | AA |
| Destructive | 7.10:1 | AAA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 6.15:1 | AA |
| Muted text | 7.35:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Ex-husband in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 97.305);
--foreground: oklch(0.127 0.016 101.142);
--muted: oklch(0.938 0.011 277.091);
--muted-foreground: oklch(0.462 0.015 276.792);
--popover: oklch(0.995 0.003 97.305);
--popover-foreground: oklch(0.127 0.016 101.142);
--card: oklch(0.995 0.003 97.305);
--card-foreground: oklch(0.127 0.016 101.142);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.645 0.006 97.376);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.636 0.006 277.135);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.636 0.006 277.135);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.358 0.135 28.038);
--destructive-foreground: oklch(0.847 0.071 19.771);
--ring: oklch(0.645 0.006 97.376);
--chart-1: oklch(0.645 0.006 97.376);
--chart-2: oklch(0.636 0.006 277.135);
--chart-3: oklch(0.636 0.006 277.135);
--chart-4: oklch(0.662 0.005 277.149);
--chart-5: oklch(0.652 0.014 97.538);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.01 99.869);
--foreground: oklch(1 0 180);
--muted: oklch(0.169 0.018 275.578);
--muted-foreground: oklch(0.706 0.013 276.991);
--popover: oklch(0.123 0.01 99.869);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.01 99.869);
--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.645 0.006 97.376);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.636 0.006 277.135);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.636 0.006 277.135);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.601 0.224 27.898);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.645 0.006 97.376);
--chart-1: oklch(0.645 0.006 97.376);
--chart-2: oklch(0.636 0.006 277.135);
--chart-3: oklch(0.636 0.006 277.135);
--chart-4: oklch(0.662 0.005 277.149);
--chart-5: oklch(0.652 0.014 97.538);
}