Villainous is a shadcn/ui theme built around a vivid yellow primary color (#ffdb70) with vivid green accents (#dbff70). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid yellow primary (#ffdb70) on a neutral background (#080702).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #080702black |
| Foreground | #090701black | #fcfbf8snow |
| Card | #fdfdfcwhite | #080702black |
| Card foreground | #090701black | #fcfbf8snow |
| Popover | #fdfdfcwhite | #080702black |
| Popover foreground | #090701black | #fcfbf8snow |
| Primary | #ffdb70khaki | #ffdb70khaki |
| Primary foreground | #3d2e00black | #3d2e00black |
| Secondary | #ff9470lightsalmon | #ff9470lightsalmon |
| Secondary foreground | #3d0f00black | #3d0f00black |
| Muted | #dbd8d6gainsboro | #292524darkslategray |
| Muted foreground | #554c4adarkslategray | #b5adaadarkgray |
| Accent | #dbff70khaki | #dbff70khaki |
| Accent foreground | #2e3d00darkgreen | #2e3d00darkgreen |
| Destructive | #c01e02firebrick | #fd4a2btomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffdb70khaki | #ffdb70khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 9.84:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 5.86:1 | AA |
| Accent | 10.40:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 9.84:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 10.40:1 | AAA |
| Destructive | 3.38:1 | AA Large |
Paste this into your globals.css to use Villainous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 91.426);
--foreground: oklch(0.128 0.021 97.739);
--muted: oklch(0.883 0.004 39.477);
--muted-foreground: oklch(0.425 0.012 39.355);
--popover: oklch(0.994 0.002 91.426);
--popover-foreground: oklch(0.128 0.021 97.739);
--card: oklch(0.994 0.002 91.426);
--card-foreground: oklch(0.128 0.021 97.739);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.902 0.132 91.171);
--primary-foreground: oklch(0.31 0.063 88.624);
--secondary: oklch(0.772 0.139 39.126);
--secondary-foreground: oklch(0.246 0.077 40.285);
--accent: oklch(0.947 0.173 121.526);
--accent-foreground: oklch(0.335 0.083 123.916);
--destructive: oklch(0.518 0.197 31.598);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.902 0.132 91.171);
--chart-1: oklch(0.902 0.132 91.171);
--chart-2: oklch(0.772 0.139 39.126);
--chart-3: oklch(0.947 0.173 121.526);
--chart-4: oklch(0.794 0.123 39.176);
--chart-5: oklch(0.905 0.135 91.1);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.016 96.531);
--foreground: oklch(0.988 0.004 91.444);
--muted: oklch(0.268 0.006 39.388);
--muted-foreground: oklch(0.754 0.01 39.424);
--popover: oklch(0.126 0.016 96.531);
--popover-foreground: oklch(0.988 0.004 91.444);
--card: oklch(0.126 0.016 96.531);
--card-foreground: oklch(0.988 0.004 91.444);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.902 0.132 91.171);
--primary-foreground: oklch(0.31 0.063 88.624);
--secondary: oklch(0.772 0.139 39.126);
--secondary-foreground: oklch(0.246 0.077 40.285);
--accent: oklch(0.947 0.173 121.526);
--accent-foreground: oklch(0.335 0.083 123.916);
--destructive: oklch(0.663 0.219 32.367);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.902 0.132 91.171);
--chart-1: oklch(0.902 0.132 91.171);
--chart-2: oklch(0.772 0.139 39.126);
--chart-3: oklch(0.947 0.173 121.526);
--chart-4: oklch(0.794 0.123 39.176);
--chart-5: oklch(0.905 0.135 91.1);
}