Morbidity is a shadcn/ui theme built around a neutral gray primary color (#b1b2ae) with neutral gray accents (#b0b2ae). The light mode uses a neutral background (#fefefb). Dark mode keeps the neutral gray primary (#b1b2ae) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #000000black |
| Foreground | #080802black | #ffffffwhite |
| Card | #fcfdf7snow | #030303black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fefefbwhite | #000000black |
| Popover foreground | #080802black | #ffffffwhite |
| Primary | #b1b2aedarkgray | #b1b2aedarkgray |
| Primary foreground | #171716black | #171716black |
| Secondary | #b2b0aedarkgray | #b2b0aedarkgray |
| Secondary foreground | #171716black | #171716black |
| Muted | #f3efe7linen | #18130cblack |
| Muted foreground | #62594bdimgray | #b4ab9ddarkgray |
| Accent | #b0b2aedarkgray | #b0b2aedarkgray |
| Accent foreground | #171716black | #171716black |
| Destructive | #da500bchocolate | #f36720chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b1b2aedarkgray | #b1b2aedarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 8.35:1 | AAA |
| Destructive | 4.08:1 | AA Large |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 8.12:1 | AAA |
| Accent | 8.35:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Morbidity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 111.857);
--foreground: oklch(0.132 0.02 113.105);
--muted: oklch(0.953 0.011 79.91);
--muted-foreground: oklch(0.469 0.024 79.714);
--popover: oklch(0.996 0.004 111.857);
--popover-foreground: oklch(0.132 0.02 113.105);
--card: oklch(0.992 0.008 111.935);
--card-foreground: oklch(0.105 0.016 113.105);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.761 0.004 111.89);
--primary-foreground: oklch(0.206 0.002 111.943);
--secondary: oklch(0.759 0.003 79.927);
--secondary-foreground: oklch(0.205 0.001 79.923);
--accent: oklch(0.76 0.005 133.03);
--accent-foreground: oklch(0.205 0.002 133.052);
--destructive: oklch(0.611 0.185 40.658);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.761 0.004 111.89);
--chart-1: oklch(0.761 0.004 111.89);
--chart-2: oklch(0.759 0.003 79.927);
--chart-3: oklch(0.76 0.005 133.03);
--chart-4: oklch(0.783 0.003 79.928);
--chart-5: oklch(0.767 0.011 112.051);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.191 0.017 79.325);
--muted-foreground: oklch(0.744 0.022 79.85);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.761 0.004 111.89);
--primary-foreground: oklch(0.206 0.002 111.943);
--secondary: oklch(0.759 0.003 79.927);
--secondary-foreground: oklch(0.205 0.001 79.923);
--accent: oklch(0.76 0.005 133.03);
--accent-foreground: oklch(0.205 0.002 133.052);
--destructive: oklch(0.68 0.189 42.673);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.761 0.004 111.89);
--chart-1: oklch(0.761 0.004 111.89);
--chart-2: oklch(0.759 0.003 79.927);
--chart-3: oklch(0.76 0.005 133.03);
--chart-4: oklch(0.783 0.003 79.928);
--chart-5: oklch(0.767 0.011 112.051);
}