Lavender Vole for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.36:1AAA
Text on card19.08:1AAA
Primary button6.25:1AA
Secondary button11.40:1AAA
Muted text6.11:1AA
Accent11.40:1AAA
Destructive4.51:1AA
Dark mode
Text on background19.82:1AAA
Text on card20.11:1AAA
Primary button6.25:1AA
Secondary button11.40:1AAA
Muted text8.75:1AAA
Accent11.40:1AAA
Destructive3.45:1AA Large

CSS variables

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);
}