Kokimurasaki Purple Stork for shadcn/ui

Kokimurasaki Purple Stork is a shadcn/ui theme built around a muted deep purple primary color (#402b40) with muted deep pink accents (#402b36). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the muted deep purple primary (#402b40) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fdf6fdsnow
#040104black
Foreground
#040104black
#fdfcfdwhite
Card
#fdf6fdsnow
#040104black
Card foreground
#040104black
#fdfcfdwhite
Popover
#fdf6fdsnow
#040104black
Popover foreground
#040104black
#fdfcfdwhite
Primary
#402b40darkslategray
#402b40darkslategray
Primary foreground
#d8c5d8thistle
#d8c5d8thistle
Secondary
#352b40darkslategray
#352b40darkslategray
Secondary foreground
#cec5d8thistle
#cec5d8thistle
Muted
#efedf3whitesmoke
#0f0c12black
Muted foreground
#655e6edimgray
#9891a1darkgray
Accent
#402b36darkslategray
#402b36darkslategray
Accent foreground
#d8c5cfthistle
#d8c5cfthistle
Destructive
#871703darkred
#fa3714orangered
Destructive foreground
#fec8bepink
#ffffffwhite
Border
#ededeewhitesmoke
#242324black
Input
#ededeewhitesmoke
#242324black
Ring
#402b40darkslategray
#402b40darkslategray

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button7.89:1AAA
Secondary button8.03:1AAA
Muted text5.34:1AA
Accent7.92:1AAA
Destructive6.61:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button7.89:1AAA
Secondary button8.03:1AAA
Muted text6.36:1AA
Accent7.92:1AAA
Destructive3.73:1AA Large

CSS variables

Paste this into your globals.css to use Kokimurasaki Purple Stork in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.012 324.694);
  --foreground: oklch(0.086 0.018 326.13);
  --muted: oklch(0.949 0.009 307);
  --muted-foreground: oklch(0.494 0.027 306.439);
  --popover: oklch(0.982 0.012 324.694);
  --popover-foreground: oklch(0.086 0.018 326.13);
  --card: oklch(0.982 0.012 324.694);
  --card-foreground: oklch(0.086 0.018 326.13);
  --border: oklch(0.946 0.001 324.626);
  --input: oklch(0.946 0.001 324.626);
  --primary: oklch(0.322 0.047 325.478);
  --primary-foreground: oklch(0.844 0.033 324.868);
  --secondary: oklch(0.309 0.04 305.51);
  --secondary-foreground: oklch(0.836 0.028 306.697);
  --accent: oklch(0.318 0.037 346.139);
  --accent-foreground: oklch(0.842 0.026 344.194);
  --destructive: oklch(0.403 0.149 32.134);
  --destructive-foreground: oklch(0.877 0.064 29.902);
  --ring: oklch(0.322 0.047 325.478);
  --chart-1: oklch(0.322 0.047 325.478);
  --chart-2: oklch(0.309 0.04 305.51);
  --chart-3: oklch(0.318 0.037 346.139);
  --chart-4: oklch(0.336 0.045 305.463);
  --chart-5: oklch(0.321 0.053 325.593);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.016 325.927);
  --foreground: oklch(0.992 0.003 324.637);
  --muted: oklch(0.162 0.013 306.094);
  --muted-foreground: oklch(0.668 0.025 306.65);
  --popover: oklch(0.087 0.016 325.927);
  --popover-foreground: oklch(0.992 0.003 324.637);
  --card: oklch(0.087 0.016 325.927);
  --card-foreground: oklch(0.992 0.003 324.637);
  --border: oklch(0.258 0.003 324.7);
  --input: oklch(0.258 0.003 324.7);
  --primary: oklch(0.322 0.047 325.478);
  --primary-foreground: oklch(0.844 0.033 324.868);
  --secondary: oklch(0.309 0.04 305.51);
  --secondary-foreground: oklch(0.836 0.028 306.697);
  --accent: oklch(0.318 0.037 346.139);
  --accent-foreground: oklch(0.842 0.026 344.194);
  --destructive: oklch(0.641 0.234 31.957);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.322 0.047 325.478);
  --chart-1: oklch(0.322 0.047 325.478);
  --chart-2: oklch(0.309 0.04 305.51);
  --chart-3: oklch(0.318 0.037 346.139);
  --chart-4: oklch(0.336 0.045 305.463);
  --chart-5: oklch(0.321 0.053 325.593);
}