Provence Violet Scorpion for shadcn/ui

Provence Violet Scorpion is a shadcn/ui theme built around a muted violet primary color (#857391) with muted purple accents (#91738f). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted violet primary (#857391) on a violet-tinted background (#0b0410).

Color palette

TokenLightDark
Background
#fdfbfewhite
#0b0410black
Foreground
#000000black
#ffffffwhite
Card
#fdfbfewhite
#0b0410black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfbfewhite
#0b0410black
Popover foreground
#000000black
#ffffffwhite
Primary
#857391gray
#857391gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#767391slategray
#767391slategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8e7eelavender
#111118black
Muted foreground
#5e5e64dimgray
#9c9ba1darkgray
Accent
#91738fgray
#91738fgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#742906saddlebrown
#e9520corangered
Destructive foreground
#fbc9b1peachpuff
#ffffffwhite
Border
#eeebf0whitesmoke
#1a161dblack
Input
#eeebf0whitesmoke
#1a161dblack
Ring
#857391gray
#857391gray

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button4.32:1AA Large
Secondary button4.53:1AA
Muted text5.23:1AA
Accent4.15:1AA Large
Destructive6.81:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button4.32:1AA Large
Secondary button4.53:1AA
Muted text6.82:1AA
Accent4.15:1AA Large
Destructive3.70:1AA Large

CSS variables

Paste this into your globals.css to use Provence Violet Scorpion in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 311.683);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.93 0.01 290.047);
  --muted-foreground: oklch(0.484 0.009 289.887);
  --popover: oklch(0.99 0.005 311.683);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.005 311.683);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.943 0.007 311.661);
  --input: oklch(0.943 0.007 311.661);
  --primary: oklch(0.583 0.049 311.041);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.569 0.046 288.666);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.054 328.978);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.388 0.114 40.95);
  --destructive-foreground: oklch(0.873 0.066 46.149);
  --ring: oklch(0.583 0.049 311.041);
  --chart-1: oklch(0.583 0.049 311.041);
  --chart-2: oklch(0.569 0.046 288.666);
  --chart-3: oklch(0.594 0.054 328.978);
  --chart-4: oklch(0.597 0.043 288.858);
  --chart-5: oklch(0.577 0.062 310.859);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.031 311.748);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.181 0.015 288.621);
  --muted-foreground: oklch(0.692 0.008 290.017);
  --popover: oklch(0.13 0.031 311.748);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.13 0.031 311.748);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.208 0.015 311.135);
  --input: oklch(0.208 0.015 311.135);
  --primary: oklch(0.583 0.049 311.041);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.569 0.046 288.666);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.054 328.978);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.637 0.198 39.452);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.583 0.049 311.041);
  --chart-1: oklch(0.583 0.049 311.041);
  --chart-2: oklch(0.569 0.046 288.666);
  --chart-3: oklch(0.594 0.054 328.978);
  --chart-4: oklch(0.597 0.043 288.858);
  --chart-5: oklch(0.577 0.062 310.859);
}