Morbidity is a shadcn/ui theme built around a vivid light purple primary color (#fdaaee) with neutral gray accents (#dbd6da). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid light purple primary (#fdaaee) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #000000black |
| Foreground | #130611black | #fbf9fbsnow |
| Card | #fcf8fbsnow | #000000black |
| Card foreground | #130611black | #fbf9fbsnow |
| Popover | #fcf8fbsnow | #000000black |
| Popover foreground | #130611black | #fbf9fbsnow |
| Primary | #fdaaeeplum | #fdaaeeplum |
| Primary foreground | #73025epurple | #73025epurple |
| Secondary | #dbd6dagainsboro | #1f1a1eblack |
| Secondary foreground | #443b43darkslategray | #bcaeb9silver |
| Muted | #f5eff4whitesmoke | #100a0fblack |
| Muted foreground | #4d4c4ddarkslategray | #b3b2b3darkgray |
| Accent | #dbd6dagainsboro | #1f1a1eblack |
| Accent foreground | #443b43darkslategray | #bcaeb9silver |
| Destructive | #c10b0bfirebrick | #ec0e0ered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdaaeeplum | #fdaaeeplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.77:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 6.33:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 9.28:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 4.52:1 | AA |
Paste this into your globals.css to use Morbidity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 331.498);
--foreground: oklch(0.151 0.031 333.829);
--muted: oklch(0.959 0.009 331.544);
--muted-foreground: oklch(0.417 0.003 331.504);
--popover: oklch(0.983 0.006 331.498);
--popover-foreground: oklch(0.151 0.031 333.829);
--card: oklch(0.983 0.006 331.498);
--card-foreground: oklch(0.151 0.031 333.829);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.84 0.129 333.445);
--primary-foreground: oklch(0.378 0.163 338.387);
--secondary: oklch(0.882 0.008 331.54);
--secondary-foreground: oklch(0.365 0.017 332.061);
--accent: oklch(0.882 0.008 331.54);
--accent-foreground: oklch(0.365 0.017 332.061);
--destructive: oklch(0.512 0.205 28.725);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.84 0.129 333.445);
--chart-1: oklch(0.84 0.129 333.445);
--chart-2: oklch(0.882 0.008 331.54);
--chart-3: oklch(0.882 0.008 331.54);
--chart-4: oklch(0.906 0.007 331.51);
--chart-5: oklch(0.839 0.133 333.505);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.004 331.46);
--muted: oklch(0.154 0.015 332.694);
--muted-foreground: oklch(0.764 0.002 331.453);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.004 331.46);
--card: oklch(0 0 0);
--card-foreground: oklch(0.984 0.004 331.46);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.84 0.129 333.445);
--primary-foreground: oklch(0.378 0.163 338.387);
--secondary: oklch(0.223 0.011 332.091);
--secondary-foreground: oklch(0.767 0.021 331.798);
--accent: oklch(0.223 0.011 332.091);
--accent-foreground: oklch(0.767 0.021 331.798);
--destructive: oklch(0.596 0.24 28.825);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.84 0.129 333.445);
--chart-1: oklch(0.84 0.129 333.445);
--chart-2: oklch(0.223 0.011 332.091);
--chart-3: oklch(0.223 0.011 332.091);
--chart-4: oklch(0.255 0.014 332.143);
--chart-5: oklch(0.839 0.133 333.505);
}