Venti for shadcn/ui

Venti is a shadcn/ui theme built around a muted purple primary color (#9e578f) with muted pink accents (#9e576b). The light mode uses a neutral background (#fefbfd). Dark mode keeps the muted purple primary (#9e578f) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fefbfdsnow
#030203black
Foreground
#000000black
#ffffffwhite
Card
#fefbfdsnow
#030203black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfdsnow
#030203black
Popover foreground
#000000black
#ffffffwhite
Primary
#9e578fgray
#9e578fgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8a579eslategray
#8a579eslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8e0eblavender
#1c141fblack
Muted foreground
#6a5d6fdimgray
#9d90a2darkgray
Accent
#9e576bindianred
#9e576bindianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8e1a10darkred
#ea5143tomato
Destructive foreground
#fad9d6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9e578fgray
#9e578fgray

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button4.99:1AA
Secondary button5.34:1AA
Muted text4.77:1AA
Accent5.21:1AA
Destructive6.89:1AA
Dark mode
Text on background20.72:1AAA
Text on card20.72:1AAA
Primary button4.99:1AA
Secondary button5.34:1AA
Muted text5.94:1AA
Accent5.21:1AA
Destructive3.65:1AA Large

CSS variables

Paste this into your globals.css to use Venti in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 332.681);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.916 0.018 316.551);
  --muted-foreground: oklch(0.497 0.033 316.415);
  --popover: oklch(0.991 0.004 332.681);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.004 332.681);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.558 0.118 335.641);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.541 0.121 315.852);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.545 0.096 2.619);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.422 0.153 29.93);
  --destructive-foreground: oklch(0.912 0.038 24.033);
  --ring: oklch(0.558 0.118 335.641);
  --chart-1: oklch(0.558 0.118 335.641);
  --chart-2: oklch(0.541 0.121 315.852);
  --chart-3: oklch(0.545 0.096 2.619);
  --chart-4: oklch(0.566 0.122 315.885);
  --chart-5: oklch(0.558 0.129 335.927);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.01 333.079);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.026 316.228);
  --muted-foreground: oklch(0.67 0.031 316.476);
  --popover: oklch(0.088 0.01 333.079);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.088 0.01 333.079);
  --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.558 0.118 335.641);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.541 0.121 315.852);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.545 0.096 2.619);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.642 0.192 28.716);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.558 0.118 335.641);
  --chart-1: oklch(0.558 0.118 335.641);
  --chart-2: oklch(0.541 0.121 315.852);
  --chart-3: oklch(0.545 0.096 2.619);
  --chart-4: oklch(0.566 0.122 315.885);
  --chart-5: oklch(0.558 0.129 335.927);
}