Lavender Vole is a shadcn/ui theme built around a violet primary color (#aa74dc) with green accents (#a7dc74). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#aa74dc) on a violet-tinted background (#08040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #08040bblack |
| Foreground | #0d0614black | #fcfcfdwhite |
| Card | #faf7fdghostwhite | #0a060fblack |
| Card foreground | #0a0410black | #ffffffwhite |
| Popover | #fcfbfewhite | #08040bblack |
| Popover foreground | #0d0614black | #fcfcfdwhite |
| Primary | #aa74dcmediumpurple | #aa74dcmediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #a7dc74lightgreen | #a7dc74lightgreen |
| Secondary foreground | #0f1806black | #0f1806black |
| Muted | #e8ebe6linen | #171914black |
| Muted foreground | #4f5945darkolivegreen | #b0baa6darkgray |
| Accent | #a7dc74lightgreen | #a7dc74lightgreen |
| Accent foreground | #0f1806black | #0f1806black |
| Destructive | #d4450cchocolate | #f25518orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e3dfe7gainsboro | #241f29darkslategray |
| Input | #e3dfe7gainsboro | #241f29darkslategray |
| Ring | #aa74dcmediumpurple | #aa74dcmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 6.25:1 | AA |
| Secondary button | 11.40:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 11.40:1 | AAA |
| Destructive | 4.51:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 6.25:1 | AA |
| Secondary button | 11.40:1 | AAA |
| Muted text | 8.75:1 | AAA |
| Accent | 11.40:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Lavender Vole in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 309.084);
--foreground: oklch(0.141 0.034 307.573);
--muted: oklch(0.935 0.007 129.208);
--muted-foreground: oklch(0.45 0.035 129.991);
--popover: oklch(0.99 0.004 309.084);
--popover-foreground: oklch(0.141 0.034 307.573);
--card: oklch(0.98 0.008 309.041);
--card-foreground: oklch(0.13 0.029 308.939);
--border: oklch(0.909 0.011 308.994);
--input: oklch(0.909 0.011 308.994);
--primary: oklch(0.657 0.158 306.394);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.835 0.146 131.343);
--secondary-foreground: oklch(0.196 0.037 131.142);
--accent: oklch(0.835 0.146 131.343);
--accent-foreground: oklch(0.196 0.037 131.142);
--destructive: oklch(0.588 0.188 37.717);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.657 0.158 306.394);
--chart-1: oklch(0.657 0.158 306.394);
--chart-2: oklch(0.835 0.146 131.343);
--chart-3: oklch(0.835 0.146 131.343);
--chart-4: oklch(0.849 0.134 131.064);
--chart-5: oklch(0.655 0.165 306.223);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.021 310.313);
--foreground: oklch(0.992 0.001 309.118);
--muted: oklch(0.211 0.01 129.665);
--muted-foreground: oklch(0.776 0.031 129.555);
--popover: oklch(0.12 0.021 310.313);
--popover-foreground: oklch(0.992 0.001 309.118);
--card: oklch(0.133 0.024 308.914);
--card-foreground: oklch(1 0 180);
--border: oklch(0.248 0.02 308.279);
--input: oklch(0.248 0.02 308.279);
--primary: oklch(0.657 0.158 306.394);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.835 0.146 131.343);
--secondary-foreground: oklch(0.196 0.037 131.142);
--accent: oklch(0.835 0.146 131.343);
--accent-foreground: oklch(0.196 0.037 131.142);
--destructive: oklch(0.655 0.202 38.477);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.657 0.158 306.394);
--chart-1: oklch(0.657 0.158 306.394);
--chart-2: oklch(0.835 0.146 131.343);
--chart-3: oklch(0.835 0.146 131.343);
--chart-4: oklch(0.849 0.134 131.064);
--chart-5: oklch(0.655 0.165 306.223);
}