Skullcap for shadcn/ui

Skullcap is a shadcn/ui theme built around a muted deep yellow primary color (#26261c) with muted deep purple accents (#261c26). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted deep yellow primary (#26261c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefefbwhite
#000000black
Foreground
#0c0c03black
#fafaf5whitesmoke
Card
#fcfcf7snow
#030303black
Card foreground
#080802black
#fbfbf8snow
Popover
#fefefbwhite
#000000black
Popover foreground
#0c0c03black
#fafaf5whitesmoke
Primary
#26261cblack
#26261cblack
Primary foreground
#c4c5afsilver
#c4c5afsilver
Secondary
#1c2626black
#1c2626black
Secondary foreground
#afc4c5silver
#afc4c5silver
Muted
#eef6f6whitesmoke
#091011black
Muted foreground
#526060dimgray
#9facaddarkgray
Accent
#261c26black
#261c26black
Accent foreground
#c5afc4silver
#c5afc4silver
Destructive
#9f3a04saddlebrown
#f95e0borangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#26261cblack
#26261cblack

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.57:1AAA
Primary button8.64:1AAA
Secondary button8.49:1AAA
Muted text5.98:1AA
Accent8.06:1AAA
Destructive6.79:1AA
Dark mode
Text on background20.05:1AAA
Text on card19.94:1AAA
Primary button8.64:1AAA
Secondary button8.49:1AAA
Muted text8.19:1AAA
Accent8.06:1AAA
Destructive6.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 108.002);
  --foreground: oklch(0.152 0.022 110.139);
  --muted: oklch(0.967 0.008 199.495);
  --muted-foreground: oklch(0.477 0.017 199.145);
  --popover: oklch(0.995 0.003 108.002);
  --popover-foreground: oklch(0.152 0.022 110.139);
  --card: oklch(0.991 0.007 108.064);
  --card-foreground: oklch(0.132 0.019 109.996);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.267 0.019 109.194);
  --primary-foreground: oklch(0.817 0.03 108.604);
  --secondary: oklch(0.259 0.014 198.921);
  --secondary-foreground: oklch(0.806 0.023 199.229);
  --accent: oklch(0.243 0.025 327.381);
  --accent-foreground: oklch(0.78 0.039 326.959);
  --destructive: oklch(0.486 0.145 41.793);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.267 0.019 109.194);
  --chart-1: oklch(0.267 0.019 109.194);
  --chart-2: oklch(0.259 0.014 198.921);
  --chart-3: oklch(0.243 0.025 327.381);
  --chart-4: oklch(0.293 0.017 198.89);
  --chart-5: oklch(0.27 0.022 109.387);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.006 108.056);
  --muted: oklch(0.167 0.011 198.774);
  --muted-foreground: oklch(0.735 0.016 199.325);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.006 108.056);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.989 0.004 108.017);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.267 0.019 109.194);
  --primary-foreground: oklch(0.817 0.03 108.604);
  --secondary: oklch(0.259 0.014 198.921);
  --secondary-foreground: oklch(0.806 0.023 199.229);
  --accent: oklch(0.243 0.025 327.381);
  --accent-foreground: oklch(0.78 0.039 326.959);
  --destructive: oklch(0.677 0.203 41.365);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.267 0.019 109.194);
  --chart-1: oklch(0.267 0.019 109.194);
  --chart-2: oklch(0.259 0.014 198.921);
  --chart-3: oklch(0.243 0.025 327.381);
  --chart-4: oklch(0.293 0.017 198.89);
  --chart-5: oklch(0.27 0.022 109.387);
}