Matt Purple Krill for shadcn/ui

Matt Purple Krill is a shadcn/ui theme built around a violet primary color (#926cea) with purple accents (#d16cea). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the violet primary (#926cea) on a violet-tinted background (#09070e).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#09070eblack
Foreground
#000000black
#f7f7f8whitesmoke
Card
#f9f7fdghostwhite
#09070eblack
Card foreground
#000000black
#f7f7f8whitesmoke
Popover
#f9f7fdghostwhite
#09070eblack
Popover foreground
#000000black
#f7f7f8whitesmoke
Primary
#926ceamediumpurple
#926ceamediumpurple
Primary foreground
#000000black
#000000black
Secondary
#6c85eacornflowerblue
#6c85eacornflowerblue
Secondary foreground
#000000black
#000000black
Muted
#eeeff1whitesmoke
#0e0e11black
Muted foreground
#424348darkslategray
#b7b8bdsilver
Accent
#d16ceaorchid
#d16ceaorchid
Accent foreground
#1a041fblack
#1a041fblack
Destructive
#8f0200darkred
#ff221fred
Destructive foreground
#ffc3c2pink
#ffffffwhite
Border
#e5e4e7gainsboro
#1b1a1eblack
Input
#e5e4e7gainsboro
#1b1a1eblack
Ring
#926ceamediumpurple
#926ceamediumpurple

Contrast

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

Light mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button5.53:1AA
Secondary button6.17:1AA
Muted text8.56:1AAA
Accent6.49:1AA
Destructive6.36:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button5.53:1AA
Secondary button6.17:1AA
Muted text9.71:1AAA
Accent6.49:1AA
Destructive3.81:1AA Large

CSS variables

Paste this into your globals.css to use Matt Purple Krill in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.009 299.883);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.952 0.003 274.992);
  --muted-foreground: oklch(0.384 0.008 274.786);
  --popover: oklch(0.978 0.009 299.883);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.978 0.009 299.883);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.92 0.005 299.948);
  --input: oklch(0.92 0.005 299.948);
  --primary: oklch(0.628 0.183 294.345);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.644 0.153 270.995);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.695 0.201 319.266);
  --accent-foreground: oklch(0.168 0.061 319.414);
  --destructive: oklch(0.409 0.166 29.498);
  --destructive-foreground: oklch(0.87 0.069 19.697);
  --ring: oklch(0.628 0.183 294.345);
  --chart-1: oklch(0.628 0.183 294.345);
  --chart-2: oklch(0.644 0.153 270.995);
  --chart-3: oklch(0.695 0.201 319.266);
  --chart-4: oklch(0.676 0.138 271.665);
  --chart-5: oklch(0.624 0.19 294.033);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.017 299.319);
  --foreground: oklch(0.976 0.002 300.002);
  --muted: oklch(0.166 0.005 274.63);
  --muted-foreground: oklch(0.785 0.006 274.936);
  --popover: oklch(0.133 0.017 299.319);
  --popover-foreground: oklch(0.976 0.002 300.002);
  --card: oklch(0.133 0.017 299.319);
  --card-foreground: oklch(0.976 0.002 300.002);
  --border: oklch(0.221 0.008 299.448);
  --input: oklch(0.221 0.008 299.448);
  --primary: oklch(0.628 0.183 294.345);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.644 0.153 270.995);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.695 0.201 319.266);
  --accent-foreground: oklch(0.168 0.061 319.414);
  --destructive: oklch(0.638 0.247 28.506);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.628 0.183 294.345);
  --chart-1: oklch(0.628 0.183 294.345);
  --chart-2: oklch(0.644 0.153 270.995);
  --chart-3: oklch(0.695 0.201 319.266);
  --chart-4: oklch(0.676 0.138 271.665);
  --chart-5: oklch(0.624 0.19 294.033);
}