Skull for shadcn/ui

Skull is a shadcn/ui theme built around a muted green primary color (#5f7150) with muted violet accents (#635071). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted green primary (#5f7150) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfefbwhite
#000000black
Foreground
#050803black
#ffffffwhite
Card
#fafcf8snow
#030303black
Card foreground
#020401black
#ffffffwhite
Popover
#fafcf8snow
#030303black
Popover foreground
#020401black
#ffffffwhite
Primary
#5f7150dimgray
#5f7150dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#635071dimgray
#635071dimgray
Secondary foreground
#faf9fbghostwhite
#faf9fbghostwhite
Muted
#e6e4e7gainsboro
#1a181bblack
Muted foreground
#4d4950darkslategray
#b3afb6darkgray
Accent
#635071dimgray
#635071dimgray
Accent foreground
#faf9fbghostwhite
#faf9fbghostwhite
Destructive
#990d06darkred
#f72c22orangered
Destructive foreground
#fdd5d3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5f7150dimgray
#5f7150dimgray

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.94:1AAA
Primary button5.27:1AA
Secondary button6.82:1AA
Muted text6.97:1AA
Accent6.82:1AA
Destructive6.49:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button5.27:1AA
Secondary button6.82:1AA
Muted text8.16:1AAA
Accent6.82:1AA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 131.114);
  --foreground: oklch(0.125 0.018 129.863);
  --muted: oklch(0.921 0.004 311.049);
  --muted-foreground: oklch(0.413 0.011 310.853);
  --popover: oklch(0.988 0.007 131.143);
  --popover-foreground: oklch(0.099 0.014 129.863);
  --card: oklch(0.988 0.007 131.143);
  --card-foreground: oklch(0.099 0.014 129.863);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.525 0.055 132.071);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.465 0.057 310.012);
  --secondary-foreground: oklch(0.983 0.003 311.062);
  --accent: oklch(0.465 0.057 310.012);
  --accent-foreground: oklch(0.983 0.003 311.062);
  --destructive: oklch(0.433 0.171 29.548);
  --destructive-foreground: oklch(0.906 0.046 21.585);
  --ring: oklch(0.525 0.055 132.071);
  --chart-1: oklch(0.525 0.055 132.071);
  --chart-2: oklch(0.465 0.057 310.012);
  --chart-3: oklch(0.465 0.057 310.012);
  --chart-4: oklch(0.49 0.061 310.001);
  --chart-5: oklch(0.532 0.064 132.246);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.213 0.005 310.864);
  --muted-foreground: oklch(0.76 0.009 310.976);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.525 0.055 132.071);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.465 0.057 310.012);
  --secondary-foreground: oklch(0.983 0.003 311.062);
  --accent: oklch(0.465 0.057 310.012);
  --accent-foreground: oklch(0.983 0.003 311.062);
  --destructive: oklch(0.629 0.236 29.064);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.525 0.055 132.071);
  --chart-1: oklch(0.525 0.055 132.071);
  --chart-2: oklch(0.465 0.057 310.012);
  --chart-3: oklch(0.465 0.057 310.012);
  --chart-4: oklch(0.49 0.061 310.001);
  --chart-5: oklch(0.532 0.064 132.246);
}