Skullcap for shadcn/ui

Skullcap is a shadcn/ui theme built around a purple primary color (#a944bb) with teal accents (#44bba9). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the purple primary (#a944bb) on a purple-tinted background (#0e050f).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#0e050fblack
Foreground
#140317black
#fdfcfdwhite
Card
#f9f5faghostwhite
#110613black
Card foreground
#100212black
#ffffffwhite
Popover
#fbf8fcghostwhite
#0e050fblack
Popover foreground
#140317black
#fdfcfdwhite
Primary
#a944bbdarkorchid
#a944bbdarkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#bba944peru
#bba944peru
Secondary foreground
#25220eblack
#25220eblack
Muted
#ece9d4antiquewhite
#2b2713black
Muted foreground
#5d5a46darkolivegreen
#b9b5a2darkgray
Accent
#44bba9lightseagreen
#44bba9lightseagreen
Accent foreground
#0e2522black
#0e2522black
Destructive
#861e04darkred
#f23607orangered
Destructive foreground
#fdcbbfpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a944bbdarkorchid
#a944bbdarkorchid

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card18.68:1AAA
Primary button4.95:1AA
Secondary button6.78:1AA
Muted text5.68:1AA
Accent6.86:1AA
Destructive6.59:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.79:1AAA
Primary button4.95:1AA
Secondary button6.78:1AA
Muted text7.28:1AAA
Accent6.86:1AA
Destructive3.94:1AA Large

CSS variables

Paste this into your globals.css to use Skullcap in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 321.079);
  --foreground: oklch(0.146 0.051 322.122);
  --muted: oklch(0.931 0.027 98.71);
  --muted-foreground: oklch(0.464 0.03 99.119);
  --popover: oklch(0.983 0.006 321.079);
  --popover-foreground: oklch(0.146 0.051 322.122);
  --card: oklch(0.974 0.009 321.085);
  --card-foreground: oklch(0.132 0.045 322.511);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.57 0.197 321.358);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.732 0.123 99.277);
  --secondary-foreground: oklch(0.25 0.034 99.502);
  --accent: oklch(0.722 0.109 181.338);
  --accent-foreground: oklch(0.246 0.031 182.701);
  --destructive: oklch(0.407 0.143 33.967);
  --destructive-foreground: oklch(0.883 0.06 34.385);
  --ring: oklch(0.57 0.197 321.358);
  --chart-1: oklch(0.57 0.197 321.358);
  --chart-2: oklch(0.732 0.123 99.277);
  --chart-3: oklch(0.722 0.109 181.338);
  --chart-4: oklch(0.748 0.118 99.402);
  --chart-5: oklch(0.572 0.207 321.314);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.029 321.952);
  --foreground: oklch(0.991 0.003 321.072);
  --muted: oklch(0.271 0.034 99.501);
  --muted-foreground: oklch(0.772 0.027 98.784);
  --popover: oklch(0.137 0.029 321.952);
  --popover-foreground: oklch(0.991 0.003 321.072);
  --card: oklch(0.149 0.033 321.662);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.57 0.197 321.358);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.732 0.123 99.277);
  --secondary-foreground: oklch(0.25 0.034 99.502);
  --accent: oklch(0.722 0.109 181.338);
  --accent-foreground: oklch(0.246 0.031 182.701);
  --destructive: oklch(0.627 0.227 33.096);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.57 0.197 321.358);
  --chart-1: oklch(0.57 0.197 321.358);
  --chart-2: oklch(0.732 0.123 99.277);
  --chart-3: oklch(0.722 0.109 181.338);
  --chart-4: oklch(0.748 0.118 99.402);
  --chart-5: oklch(0.572 0.207 321.314);
}