Purpurite Violet Grasshopper for shadcn/ui

Purpurite Violet Grasshopper is a shadcn/ui theme built around a muted purple primary color (#5b3960) with muted teal accents (#39605b). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted purple primary (#5b3960) on a purple-tinted background (#0a050b).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0a050bblack
Foreground
#040104black
#f8f6f8whitesmoke
Card
#fbf8fcghostwhite
#0d060eblack
Card foreground
#000000black
#faf9fbghostwhite
Popover
#fbf8fcghostwhite
#0d060eblack
Popover foreground
#000000black
#faf9fbghostwhite
Primary
#5b3960darkslateblue
#5b3960darkslateblue
Primary foreground
#eadfeclavender
#eadfeclavender
Secondary
#605b39darkolivegreen
#605b39darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eae6cdantiquewhite
#322f15darkslategray
Muted foreground
#686655dimgray
#aaa897darkgray
Accent
#39605bdarkslategray
#39605bdarkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#923702saddlebrown
#ec5904orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ede8eelavender
#221a23black
Input
#ede8eelavender
#221a23black
Ring
#5b3960darkslateblue
#5b3960darkslateblue

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card19.96:1AAA
Primary button7.37:1AAA
Secondary button6.87:1AA
Muted text4.61:1AA
Accent7.02:1AAA
Destructive7.60:1AAA
Dark mode
Text on background18.81:1AAA
Text on card19.03:1AAA
Primary button7.37:1AAA
Secondary button6.87:1AA
Muted text5.65:1AA
Accent7.02:1AAA
Destructive3.50:1AA Large

CSS variables

Paste this into your globals.css to use Purpurite Violet Grasshopper in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 322.122);
  --foreground: oklch(0.083 0.024 324.321);
  --muted: oklch(0.922 0.034 100.862);
  --muted-foreground: oklch(0.506 0.026 101.049);
  --popover: oklch(0.983 0.005 322.131);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.005 322.131);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.936 0.01 322.149);
  --input: oklch(0.936 0.01 322.149);
  --primary: oklch(0.401 0.075 322.671);
  --primary-foreground: oklch(0.917 0.021 322.19);
  --secondary: oklch(0.467 0.051 101.661);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.458 0.044 186.376);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.459 0.134 43.073);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.401 0.075 322.671);
  --chart-1: oklch(0.401 0.075 322.671);
  --chart-2: oklch(0.467 0.051 101.661);
  --chart-3: oklch(0.458 0.044 186.376);
  --chart-4: oklch(0.499 0.055 101.671);
  --chart-5: oklch(0.4 0.084 322.718);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.019 323.302);
  --foreground: oklch(0.976 0.003 322.123);
  --muted: oklch(0.3 0.041 101.824);
  --muted-foreground: oklch(0.728 0.024 100.806);
  --popover: oklch(0.139 0.022 322.864);
  --popover-foreground: oklch(0.984 0.002 322.12);
  --card: oklch(0.139 0.022 322.864);
  --card-foreground: oklch(0.984 0.002 322.12);
  --border: oklch(0.232 0.021 322.41);
  --input: oklch(0.232 0.021 322.41);
  --primary: oklch(0.401 0.075 322.671);
  --primary-foreground: oklch(0.917 0.021 322.19);
  --secondary: oklch(0.467 0.051 101.661);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.458 0.044 186.376);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.65 0.196 41.656);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.401 0.075 322.671);
  --chart-1: oklch(0.401 0.075 322.671);
  --chart-2: oklch(0.467 0.051 101.661);
  --chart-3: oklch(0.458 0.044 186.376);
  --chart-4: oklch(0.499 0.055 101.671);
  --chart-5: oklch(0.4 0.084 322.718);
}