Villanous is a shadcn/ui theme built around a muted light blue primary color (#c9cfde) with muted light indigo accents (#cdc9de). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light blue primary (#c9cfde) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #010204black | #fcfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010204black | #fcfcfdwhite |
| Primary | #c9cfdelightgrey | #c9cfdelightgrey |
| Primary foreground | #2c3549darkslategray | #2c3549darkslategray |
| Secondary | #c9dadelightgrey | #c9dadelightgrey |
| Secondary foreground | #2c4349darkslategray | #2c4349darkslategray |
| Muted | #cbe1e6gainsboro | #192e34darkslategray |
| Muted foreground | #455154darkslategray | #abb7badarkgray |
| Accent | #cdc9dethistle | #cdc9dethistle |
| Accent foreground | #322c49darkslategray | #322c49darkslategray |
| Destructive | #cc1905firebrick | #e01c06red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9cfdelightgrey | #c9cfdelightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 6.03:1 | AA |
| Accent | 8.16:1 | AAA |
| Destructive | 5.66:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 6.87:1 | AA |
| Accent | 8.16:1 | AAA |
| Destructive | 4.85:1 | AA |
Paste this into your globals.css to use Villanous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.011 259.966);
--muted: oklch(0.895 0.024 214.42);
--muted-foreground: oklch(0.426 0.016 214.497);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.084 0.011 259.966);
--card: oklch(1 0 180);
--card-foreground: oklch(0.084 0.011 259.966);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.855 0.022 267.251);
--primary-foreground: oklch(0.329 0.039 266.382);
--secondary: oklch(0.877 0.02 214.396);
--secondary-foreground: oklch(0.368 0.031 215.07);
--accent: oklch(0.845 0.03 294.918);
--accent-foreground: oklch(0.313 0.052 292.31);
--destructive: oklch(0.538 0.21 30.397);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.855 0.022 267.251);
--chart-1: oklch(0.855 0.022 267.251);
--chart-2: oklch(0.877 0.02 214.396);
--chart-3: oklch(0.845 0.03 294.918);
--chart-4: oklch(0.899 0.016 214.375);
--chart-5: oklch(0.853 0.025 267.227);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0 267.417);
--muted: oklch(0.287 0.029 215.464);
--muted-foreground: oklch(0.771 0.014 214.378);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0 267.417);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0 267.417);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.855 0.022 267.251);
--primary-foreground: oklch(0.329 0.039 266.382);
--secondary: oklch(0.877 0.02 214.396);
--secondary-foreground: oklch(0.368 0.031 215.07);
--accent: oklch(0.845 0.03 294.918);
--accent-foreground: oklch(0.313 0.052 292.31);
--destructive: oklch(0.577 0.226 30.347);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.855 0.022 267.251);
--chart-1: oklch(0.855 0.022 267.251);
--chart-2: oklch(0.877 0.02 214.396);
--chart-3: oklch(0.845 0.03 294.918);
--chart-4: oklch(0.899 0.016 214.375);
--chart-5: oklch(0.853 0.025 267.227);
}