Violaceous Greti Scallop for shadcn/ui

Violaceous Greti Scallop is a shadcn/ui theme built around a vivid purple primary color (#8e0b87) with muted light purple accents (#e9e2e8). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the vivid purple primary (#8e0b87) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#040104black
Foreground
#0c040bblack
#faf4faghostwhite
Card
#fcf3fblavenderblush
#080208black
Card foreground
#080208black
#fcf8fcsnow
Popover
#fdf7fdsnow
#040104black
Popover foreground
#0c040bblack
#faf4faghostwhite
Primary
#8e0b87darkmagenta
#8e0b87darkmagenta
Primary foreground
#fbd0f9lavender
#fbd0f9lavender
Secondary
#e9e2e8gainsboro
#231a22black
Secondary foreground
#564355darkslategray
#c2aec1silver
Muted
#e6cce4gainsboro
#331932darkslategray
Muted foreground
#614860dimgray
#b79eb6darkgray
Accent
#e9e2e8gainsboro
#231a22black
Accent foreground
#564355darkslategray
#c2aec1silver
Destructive
#800c0amaroon
#da1410crimson
Destructive foreground
#fac2c1pink
#ffffffwhite
Border
#e5dce4gainsboro
#1d161dblack
Input
#e5dce4gainsboro
#1d161dblack
Ring
#8e0b87darkmagenta
#8e0b87darkmagenta

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card18.90:1AAA
Primary button6.09:1AA
Secondary button7.09:1AAA
Muted text5.41:1AA
Accent7.09:1AAA
Destructive6.86:1AA
Dark mode
Text on background19.15:1AAA
Text on card19.50:1AAA
Primary button6.09:1AA
Secondary button8.12:1AAA
Muted text6.45:1AA
Accent8.12:1AAA
Destructive5.13:1AA

CSS variables

Paste this into your globals.css to use Violaceous Greti Scallop in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.01 327.131);
  --foreground: oklch(0.125 0.027 328.491);
  --muted: oklch(0.873 0.044 327.491);
  --muted-foreground: oklch(0.436 0.05 328.048);
  --popover: oklch(0.982 0.01 327.131);
  --popover-foreground: oklch(0.125 0.027 328.491);
  --card: oklch(0.973 0.015 327.178);
  --card-foreground: oklch(0.109 0.023 328.38);
  --border: oklch(0.904 0.014 327.184);
  --input: oklch(0.904 0.014 327.184);
  --primary: oklch(0.452 0.198 330.786);
  --primary-foreground: oklch(0.906 0.072 327.747);
  --secondary: oklch(0.92 0.011 327.149);
  --secondary-foreground: oklch(0.409 0.04 327.907);
  --accent: oklch(0.92 0.011 327.149);
  --accent-foreground: oklch(0.409 0.04 327.907);
  --destructive: oklch(0.383 0.148 28.499);
  --destructive-foreground: oklch(0.865 0.065 19.606);
  --ring: oklch(0.452 0.198 330.786);
  --chart-1: oklch(0.452 0.198 330.786);
  --chart-2: oklch(0.92 0.011 327.149);
  --chart-3: oklch(0.92 0.011 327.149);
  --chart-4: oklch(0.944 0.008 327.113);
  --chart-5: oklch(0.457 0.202 330.844);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.019 328.38);
  --foreground: oklch(0.974 0.01 327.133);
  --muted: oklch(0.262 0.057 328.881);
  --muted-foreground: oklch(0.73 0.044 327.585);
  --popover: oklch(0.086 0.019 328.38);
  --popover-foreground: oklch(0.974 0.01 327.133);
  --card: oklch(0.109 0.023 328.38);
  --card-foreground: oklch(0.983 0.007 327.101);
  --border: oklch(0.212 0.017 327.757);
  --input: oklch(0.212 0.017 327.757);
  --primary: oklch(0.452 0.198 330.786);
  --primary-foreground: oklch(0.906 0.072 327.747);
  --secondary: oklch(0.233 0.02 327.801);
  --secondary-foreground: oklch(0.772 0.035 327.445);
  --accent: oklch(0.233 0.02 327.801);
  --accent-foreground: oklch(0.772 0.035 327.445);
  --destructive: oklch(0.564 0.224 28.855);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.452 0.198 330.786);
  --chart-1: oklch(0.452 0.198 330.786);
  --chart-2: oklch(0.233 0.02 327.801);
  --chart-3: oklch(0.233 0.02 327.801);
  --chart-4: oklch(0.264 0.024 327.85);
  --chart-5: oklch(0.457 0.202 330.844);
}