Village is a shadcn/ui theme built around a muted violet primary color (#a696bb) with muted green accents (#96bba6). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#a696bb) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #020104black |
| Foreground | #090312black | #fcfcfdwhite |
| Card | #faf8fcghostwhite | #050208black |
| Card foreground | #07020dblack | #ffffffwhite |
| Popover | #fcfbfewhite | #020104black |
| Popover foreground | #090312black | #fcfcfdwhite |
| Primary | #a696bbdarkgray | #a696bbdarkgray |
| Primary foreground | #0f0c13black | #0f0c13black |
| Secondary | #bba696rosybrown | #bba696rosybrown |
| Secondary foreground | #130f0cblack | #130f0cblack |
| Muted | #f5f2efwhitesmoke | #100c0ablack |
| Muted foreground | #444240darkslategray | #bfbdbbsilver |
| Accent | #96bba6darkseagreen | #96bba6darkseagreen |
| Accent foreground | #0c130fblack | #0c130fblack |
| Destructive | #650606maroon | #f01414red |
| Destructive foreground | #f9a4a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a696bbdarkgray | #a696bbdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 8.97:1 | AAA |
| Accent | 8.89:1 | AAA |
| Destructive | 6.88:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 10.37:1 | AAA |
| Accent | 8.89:1 | AAA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Village in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 306.39);
--foreground: oklch(0.122 0.039 306.071);
--muted: oklch(0.963 0.005 62.12);
--muted-foreground: oklch(0.381 0.004 62.046);
--popover: oklch(0.991 0.003 306.39);
--popover-foreground: oklch(0.122 0.039 306.071);
--card: oklch(0.981 0.006 306.35);
--card-foreground: oklch(0.11 0.034 307.803);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.7 0.055 305.416);
--primary-foreground: oklch(0.162 0.014 305.31);
--secondary: oklch(0.74 0.033 61.58);
--secondary-foreground: oklch(0.172 0.008 61.516);
--accent: oklch(0.758 0.049 160.925);
--accent-foreground: oklch(0.176 0.012 160.76);
--destructive: oklch(0.322 0.125 28.098);
--destructive-foreground: oklch(0.802 0.102 19.537);
--ring: oklch(0.7 0.055 305.416);
--chart-1: oklch(0.7 0.055 305.416);
--chart-2: oklch(0.74 0.033 61.58);
--chart-3: oklch(0.758 0.049 160.925);
--chart-4: oklch(0.763 0.03 61.66);
--chart-5: oklch(0.696 0.063 305.261);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.016 307.634);
--foreground: oklch(0.991 0.001 306.409);
--muted: oklch(0.16 0.008 61.489);
--muted-foreground: oklch(0.798 0.004 62.135);
--popover: oklch(0.082 0.016 307.634);
--popover-foreground: oklch(0.991 0.001 306.409);
--card: oklch(0.103 0.02 307.634);
--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.7 0.055 305.416);
--primary-foreground: oklch(0.162 0.014 305.31);
--secondary: oklch(0.74 0.033 61.58);
--secondary-foreground: oklch(0.172 0.008 61.516);
--accent: oklch(0.758 0.049 160.925);
--accent-foreground: oklch(0.176 0.012 160.76);
--destructive: oklch(0.605 0.241 28.6);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.7 0.055 305.416);
--chart-1: oklch(0.7 0.055 305.416);
--chart-2: oklch(0.74 0.033 61.58);
--chart-3: oklch(0.758 0.049 160.925);
--chart-4: oklch(0.763 0.03 61.66);
--chart-5: oklch(0.696 0.063 305.261);
}