Deathwatch is a shadcn/ui theme built around a purple primary color (#d077e9) with purple accents (#e977c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#d077e9) on a purple-tinted background (#0a030c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a030cblack |
| Foreground | #0a030cblack | #fbf8fcghostwhite |
| Card | #fcfcfcsnow | #0e0410black |
| Card foreground | #070208black | #fdfbfdsnow |
| Popover | #ffffffwhite | #0a030cblack |
| Popover foreground | #0a030cblack | #fbf8fcghostwhite |
| Primary | #d077e9orchid | #d077e9orchid |
| Primary foreground | #200627black | #200627black |
| Secondary | #9777e9mediumpurple | #9777e9mediumpurple |
| Secondary foreground | #000000black | #000000black |
| Muted | #f1f0f5whitesmoke | #0c0a0fblack |
| Muted foreground | #575068dimgray | #9e97afdarkgray |
| Accent | #e977c9orchid | #e977c9orchid |
| Accent foreground | #27061eblack | #27061eblack |
| Destructive | #db1706red | #ea1906red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d077e9orchid | #d077e9orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.13:1 | AA |
| Muted text | 6.71:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 5.08:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.13:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 7.02:1 | AAA |
| Destructive | 4.53:1 | AA |
Paste this into your globals.css to use Deathwatch in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.12 0.031 320.615);
--muted: oklch(0.957 0.007 299.18);
--muted-foreground: oklch(0.447 0.039 297.767);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.12 0.031 320.615);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.105 0.027 321.048);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.709 0.182 318.626);
--primary-foreground: oklch(0.191 0.07 318.285);
--secondary: oklch(0.651 0.166 294.398);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.725 0.17 339.124);
--accent-foreground: oklch(0.198 0.065 340.795);
--destructive: oklch(0.566 0.223 30.05);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.182 318.626);
--chart-1: oklch(0.709 0.182 318.626);
--chart-2: oklch(0.651 0.166 294.398);
--chart-3: oklch(0.725 0.17 339.124);
--chart-4: oklch(0.684 0.149 295.215);
--chart-5: oklch(0.709 0.189 318.599);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.028 320.525);
--foreground: oklch(0.982 0.006 318.888);
--muted: oklch(0.15 0.011 298.017);
--muted-foreground: oklch(0.691 0.035 298.422);
--popover: oklch(0.121 0.028 320.525);
--popover-foreground: oklch(0.982 0.006 318.888);
--card: oklch(0.134 0.033 319.65);
--card-foreground: oklch(0.991 0.003 318.889);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.709 0.182 318.626);
--primary-foreground: oklch(0.191 0.07 318.285);
--secondary: oklch(0.651 0.166 294.398);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.725 0.17 339.124);
--accent-foreground: oklch(0.198 0.065 340.795);
--destructive: oklch(0.594 0.235 30.025);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.182 318.626);
--chart-1: oklch(0.709 0.182 318.626);
--chart-2: oklch(0.651 0.166 294.398);
--chart-3: oklch(0.725 0.17 339.124);
--chart-4: oklch(0.684 0.149 295.215);
--chart-5: oklch(0.709 0.189 318.599);
}