Villainous is a shadcn/ui theme built around a vivid light green primary color (#9af9a5) with vivid light purple accents (#f99aee). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid light green primary (#9af9a5) on a neutral background (#020803).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #020803black |
| Foreground | #020803black | #fcfdfcwhite |
| Card | #fbfefbwhite | #020803black |
| Card foreground | #020803black | #fcfdfcwhite |
| Popover | #fbfefbwhite | #020803black |
| Popover foreground | #020803black | #fcfdfcwhite |
| Primary | #9af9a5palegreen | #9af9a5palegreen |
| Primary foreground | #065b10darkgreen | #065b10darkgreen |
| Secondary | #f99aeeviolet | #f99aeeviolet |
| Secondary foreground | #5b0651indigo | #5b0651indigo |
| Muted | #e4dde3gainsboro | #221b21black |
| Muted foreground | #5d465adimgray | #b9a2b6darkgray |
| Accent | #f99aeeviolet | #f99aeeviolet |
| Accent foreground | #5b0651indigo | #5b0651indigo |
| Destructive | #8f190adarkred | #f14832tomato |
| Destructive foreground | #fcd4cfbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9af9a5palegreen | #9af9a5palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 6.84:1 | AA |
| Muted text | 6.31:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 6.84:1 | AA |
| Muted text | 7.13:1 | AAA |
| Accent | 6.84:1 | AA |
| Destructive | 3.67: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.004 149.081);
--foreground: oklch(0.123 0.023 147.852);
--muted: oklch(0.904 0.012 329.284);
--muted-foreground: oklch(0.427 0.044 330.278);
--popover: oklch(0.994 0.004 149.081);
--popover-foreground: oklch(0.123 0.023 147.852);
--card: oklch(0.994 0.004 149.081);
--card-foreground: oklch(0.123 0.023 147.852);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.901 0.145 147.004);
--primary-foreground: oklch(0.41 0.13 143.787);
--secondary: oklch(0.81 0.152 331.156);
--secondary-foreground: oklch(0.328 0.14 334.118);
--accent: oklch(0.81 0.152 331.156);
--accent-foreground: oklch(0.328 0.14 334.118);
--destructive: oklch(0.422 0.155 31.013);
--destructive-foreground: oklch(0.903 0.045 26.848);
--ring: oklch(0.901 0.145 147.004);
--chart-1: oklch(0.901 0.145 147.004);
--chart-2: oklch(0.81 0.152 331.156);
--chart-3: oklch(0.81 0.152 331.156);
--chart-4: oklch(0.834 0.131 330.832);
--chart-5: oklch(0.904 0.149 146.935);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.023 147.873);
--foreground: oklch(0.993 0.002 149.106);
--muted: oklch(0.233 0.017 329.929);
--muted-foreground: oklch(0.738 0.039 329.726);
--popover: oklch(0.123 0.023 147.873);
--popover-foreground: oklch(0.993 0.002 149.106);
--card: oklch(0.123 0.023 147.873);
--card-foreground: oklch(0.993 0.002 149.106);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.901 0.145 147.004);
--primary-foreground: oklch(0.41 0.13 143.787);
--secondary: oklch(0.81 0.152 331.156);
--secondary-foreground: oklch(0.328 0.14 334.118);
--accent: oklch(0.81 0.152 331.156);
--accent-foreground: oklch(0.328 0.14 334.118);
--destructive: oklch(0.642 0.209 30.85);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.901 0.145 147.004);
--chart-1: oklch(0.901 0.145 147.004);
--chart-2: oklch(0.81 0.152 331.156);
--chart-3: oklch(0.81 0.152 331.156);
--chart-4: oklch(0.834 0.131 330.832);
--chart-5: oklch(0.904 0.149 146.935);
}