Villainous is a shadcn/ui theme built around a near-black primary color (#030104) with near-black accents (#040103). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030104) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060307black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #09050bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #09050bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #030104black | #030104black |
| Primary foreground | #dab7e6thistle | #dab7e6thistle |
| Secondary | #020104black | #020104black |
| Secondary foreground | #c3b7e6lightsteelblue | #c3b7e6lightsteelblue |
| Muted | #dfdbebgainsboro | #181424black |
| Muted foreground | #47454fdarkslategray | #b2b0badarkgray |
| Accent | #040103black | #040103black |
| Accent foreground | #cc6bb4palevioletred | #cc6bb4palevioletred |
| Destructive | #a20b0bdarkred | #db0f0fred |
| Destructive foreground | #fde2e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030104black | #030104black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 11.76:1 | AAA |
| Secondary button | 11.12:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 6.61:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 11.76:1 | AAA |
| Secondary button | 11.12:1 | AAA |
| Muted text | 8.41:1 | AAA |
| Accent | 6.25:1 | AA |
| Destructive | 5.12:1 | AA |
Paste this into your globals.css to use Villainous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.899 0.022 297.397);
--muted-foreground: oklch(0.396 0.018 297.035);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.085 0.016 319.425);
--primary-foreground: oklch(0.825 0.076 317.61);
--secondary: oklch(0.08 0.015 297.54);
--secondary-foreground: oklch(0.804 0.067 296.313);
--accent: oklch(0.086 0.016 334.506);
--accent-foreground: oklch(0.663 0.152 337.428);
--destructive: oklch(0.452 0.179 28.496);
--destructive-foreground: oklch(0.936 0.029 17.688);
--ring: oklch(0.085 0.016 319.425);
--chart-1: oklch(0.085 0.016 319.425);
--chart-2: oklch(0.08 0.015 297.54);
--chart-3: oklch(0.086 0.016 334.506);
--chart-4: oklch(0.128 0.024 296.492);
--chart-5: oklch(0.084 0.017 319.535);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.017 319.136);
--foreground: oklch(0.992 0.001 317.762);
--muted: oklch(0.205 0.031 294.989);
--muted-foreground: oklch(0.762 0.015 297.478);
--popover: oklch(0.124 0.019 319.079);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.019 319.079);
--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.085 0.016 319.425);
--primary-foreground: oklch(0.825 0.076 317.61);
--secondary: oklch(0.08 0.015 297.54);
--secondary-foreground: oklch(0.804 0.067 296.313);
--accent: oklch(0.086 0.016 334.506);
--accent-foreground: oklch(0.663 0.152 337.428);
--destructive: oklch(0.564 0.226 28.692);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.085 0.016 319.425);
--chart-1: oklch(0.085 0.016 319.425);
--chart-2: oklch(0.08 0.015 297.54);
--chart-3: oklch(0.086 0.016 334.506);
--chart-4: oklch(0.128 0.024 296.492);
--chart-5: oklch(0.084 0.017 319.535);
}