Dead is a shadcn/ui theme built around a near-black primary color (#040f00) with near-black accents (#0f0004). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#040f00) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020501black | #f7f9f6whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020501black | #f7f9f6whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020501black | #f7f9f6whitesmoke |
| Primary | #040f00black | #040f00black |
| Primary foreground | #3cd902limegreen | #3cd902limegreen |
| Secondary | #00040fblack | #00040fblack |
| Secondary foreground | #a9c0felightsteelblue | #a9c0felightsteelblue |
| Muted | #dde2eelavender | #111622black |
| Muted foreground | #5c6170dimgray | #8f94a3lightslategray |
| Accent | #0f0004black | #0f0004black |
| Accent foreground | #fd4476deeppink | #fd4476deeppink |
| Destructive | #953d0esaddlebrown | #db5a14chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040f00black | #040f00black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.49:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 10.34:1 | AAA |
| Secondary button | 11.37:1 | AAA |
| Muted text | 4.74:1 | AA |
| Accent | 6.12:1 | AA |
| Destructive | 7.08:1 | AAA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 10.34:1 | AAA |
| Secondary button | 11.37:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 6.12:1 | AA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Dead in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.102 0.024 134.834);
--muted: oklch(0.912 0.017 269.955);
--muted-foreground: oklch(0.494 0.025 269.638);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.102 0.024 134.834);
--card: oklch(1 0 180);
--card-foreground: oklch(0.102 0.024 134.834);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.151 0.043 134.751);
--primary-foreground: oklch(0.774 0.252 140.622);
--secondary: oklch(0.109 0.033 254.17);
--secondary-foreground: oklch(0.813 0.092 268.861);
--accent: oklch(0.111 0.043 359.419);
--accent-foreground: oklch(0.669 0.221 10.061);
--destructive: oklch(0.474 0.131 43.723);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.151 0.043 134.751);
--chart-1: oklch(0.151 0.043 134.751);
--chart-2: oklch(0.109 0.033 254.17);
--chart-3: oklch(0.111 0.043 359.419);
--chart-4: oklch(0.142 0.051 258.517);
--chart-5: oklch(0.152 0.045 134.694);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.005 137.201);
--muted: oklch(0.2 0.026 268.64);
--muted-foreground: oklch(0.668 0.023 269.807);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.005 137.201);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.005 137.201);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.151 0.043 134.751);
--primary-foreground: oklch(0.774 0.252 140.622);
--secondary: oklch(0.109 0.033 254.17);
--secondary-foreground: oklch(0.813 0.092 268.861);
--accent: oklch(0.111 0.043 359.419);
--accent-foreground: oklch(0.669 0.221 10.061);
--destructive: oklch(0.626 0.177 43.039);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.151 0.043 134.751);
--chart-1: oklch(0.151 0.043 134.751);
--chart-2: oklch(0.109 0.033 254.17);
--chart-3: oklch(0.111 0.043 359.419);
--chart-4: oklch(0.142 0.051 258.517);
--chart-5: oklch(0.152 0.045 134.694);
}