Dark & Stormy Alpaca for shadcn/ui

Dark & Stormy Alpaca is a shadcn/ui theme built around a muted deep blue primary color (#384152) with neutral gray accents (#dadbdc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep blue primary (#384152) on a blue-tinted background (#05070a).

Color palette

TokenLightDark
Background
#ffffffwhite
#05070ablack
Foreground
#010204black
#f5f7fawhitesmoke
Card
#fcfcfcsnow
#07090eblack
Card foreground
#000000black
#f8f9fcghostwhite
Popover
#fcfcfcsnow
#07090eblack
Popover foreground
#000000black
#f8f9fcghostwhite
Primary
#384152darkslategray
#384152darkslategray
Primary foreground
#d8dce4gainsboro
#d8dce4gainsboro
Secondary
#dadbdcgainsboro
#191b1fblack
Secondary foreground
#404244darkslategray
#aeb3bcdarkgray
Muted
#d9dfe7gainsboro
#181d26black
Muted foreground
#4b5058darkslategray
#a7acb4darkgray
Accent
#dadbdcgainsboro
#191b1fblack
Accent foreground
#404244darkslategray
#aeb3bcdarkgray
Destructive
#b61102firebrick
#fd3321orangered
Destructive foreground
#ffeceblinen
#ffffffwhite
Border
#e5e5e6gainsboro
#202122black
Input
#e5e5e6gainsboro
#202122black
Ring
#384152darkslategray
#384152darkslategray

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.54:1AAA
Primary button7.44:1AAA
Secondary button7.28:1AAA
Muted text6.03:1AA
Accent7.28:1AAA
Destructive6.02:1AA
Dark mode
Text on background18.79:1AAA
Text on card18.91:1AAA
Primary button7.44:1AAA
Secondary button8.16:1AAA
Muted text7.43:1AAA
Accent8.16:1AAA
Destructive3.70:1AA Large

CSS variables

Paste this into your globals.css to use Dark & Stormy Alpaca in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.086 0.01 254.391);
  --muted: oklch(0.901 0.013 261.504);
  --muted-foreground: oklch(0.429 0.015 261.467);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.923 0.001 261.514);
  --input: oklch(0.923 0.001 261.514);
  --primary: oklch(0.375 0.031 261.295);
  --primary-foreground: oklch(0.894 0.012 261.506);
  --secondary: oklch(0.891 0.002 261.514);
  --secondary-foreground: oklch(0.378 0.005 261.507);
  --accent: oklch(0.891 0.002 261.514);
  --accent-foreground: oklch(0.378 0.005 261.507);
  --destructive: oklch(0.492 0.195 30.213);
  --destructive-foreground: oklch(0.959 0.02 23.795);
  --ring: oklch(0.375 0.031 261.295);
  --chart-1: oklch(0.375 0.031 261.295);
  --chart-2: oklch(0.891 0.002 261.514);
  --chart-3: oklch(0.891 0.002 261.514);
  --chart-4: oklch(0.915 0.002 261.514);
  --chart-5: oklch(0.373 0.036 261.233);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.01 256.574);
  --foreground: oklch(0.975 0.005 261.513);
  --muted: oklch(0.228 0.019 261.296);
  --muted-foreground: oklch(0.742 0.013 261.501);
  --popover: oklch(0.14 0.012 258.346);
  --popover-foreground: oklch(0.983 0.003 261.513);
  --card: oklch(0.14 0.012 258.346);
  --card-foreground: oklch(0.983 0.003 261.513);
  --border: oklch(0.247 0.002 261.512);
  --input: oklch(0.247 0.002 261.512);
  --primary: oklch(0.375 0.031 261.295);
  --primary-foreground: oklch(0.894 0.012 261.506);
  --secondary: oklch(0.223 0.008 261.469);
  --secondary-foreground: oklch(0.766 0.015 261.499);
  --accent: oklch(0.223 0.008 261.469);
  --accent-foreground: oklch(0.766 0.015 261.499);
  --destructive: oklch(0.644 0.237 29.999);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.375 0.031 261.295);
  --chart-1: oklch(0.375 0.031 261.295);
  --chart-2: oklch(0.223 0.008 261.469);
  --chart-3: oklch(0.223 0.008 261.469);
  --chart-4: oklch(0.254 0.009 261.462);
  --chart-5: oklch(0.373 0.036 261.233);
}