Crushed Velvet Leopard for shadcn/ui

Crushed Velvet Leopard is a shadcn/ui theme built around a blue primary color (#40529c) with muted light blue accents (#c4c6cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#40529c) on a blue-tinted background (#080b16).

Color palette

TokenLightDark
Background
#ffffffwhite
#080b16black
Foreground
#03050cblack
#f9f9fbghostwhite
Card
#ffffffwhite
#050918black
Card foreground
#03050cblack
#f9f9fbghostwhite
Popover
#ffffffwhite
#050818black
Popover foreground
#03050cblack
#f9f9fbghostwhite
Primary
#40529cdarkslateblue
#40529cdarkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dddddfgainsboro
#18181bblack
Secondary foreground
#434447darkslategray
#adafb8darkgray
Muted
#cdd1e5lightgrey
#1a1f32darkslategray
Muted foreground
#363a49darkslategray
#b6bac9silver
Accent
#c4c6cfsilver
#282a34darkslategray
Accent foreground
#2b2d36darkslategray
#c0c3cesilver
Destructive
#e31502red
#fd4635tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eff0f0whitesmoke
#222739darkslategray
Input
#eff0f0whitesmoke
#252627darkslategray
Ring
#40529cdarkslateblue
#40529cdarkslateblue

Contrast

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

Light mode
Text on background20.37:1AAA
Text on card20.37:1AAA
Primary button7.23:1AAA
Secondary button7.18:1AAA
Muted text7.46:1AAA
Accent8.03:1AAA
Destructive4.79:1AA
Dark mode
Text on background18.67:1AAA
Text on card18.90:1AAA
Primary button7.23:1AAA
Secondary button8.07:1AAA
Muted text8.44:1AAA
Accent8.09:1AAA
Destructive3.44:1AA Large

CSS variables

Paste this into your globals.css to use Crushed Velvet Leopard in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.116 0.02 267.513);
  --muted: oklch(0.864 0.028 274.622);
  --muted-foreground: oklch(0.351 0.027 273.947);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.116 0.02 267.513);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.116 0.02 267.513);
  --border: oklch(0.954 0.001 275.026);
  --input: oklch(0.954 0.001 275.026);
  --primary: oklch(0.462 0.121 270.5);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.898 0.002 275.004);
  --secondary-foreground: oklch(0.386 0.006 274.852);
  --accent: oklch(0.827 0.013 274.833);
  --accent-foreground: oklch(0.3 0.016 274.329);
  --destructive: oklch(0.581 0.231 30.053);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.462 0.121 270.5);
  --chart-1: oklch(0.462 0.121 270.5);
  --chart-2: oklch(0.898 0.002 275.004);
  --chart-3: oklch(0.827 0.013 274.833);
  --chart-4: oklch(0.922 0.002 275.012);
  --chart-5: oklch(0.458 0.13 270.067);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.023 272.258);
  --foreground: oklch(0.983 0.002 275.008);
  --muted: oklch(0.244 0.038 272.585);
  --muted-foreground: oklch(0.789 0.022 274.677);
  --popover: oklch(0.142 0.034 268.34);
  --popover-foreground: oklch(0.983 0.002 275.008);
  --card: oklch(0.143 0.034 268.6);
  --card-foreground: oklch(0.983 0.002 275.008);
  --border: oklch(0.276 0.034 273.189);
  --input: oklch(0.268 0.002 274.929);
  --primary: oklch(0.462 0.121 270.5);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.211 0.006 274.689);
  --secondary-foreground: oklch(0.756 0.012 274.829);
  --accent: oklch(0.288 0.018 274.19);
  --accent-foreground: oklch(0.817 0.017 274.778);
  --destructive: oklch(0.66 0.222 29.496);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.462 0.121 270.5);
  --chart-1: oklch(0.462 0.121 270.5);
  --chart-2: oklch(0.211 0.006 274.689);
  --chart-3: oklch(0.288 0.018 274.19);
  --chart-4: oklch(0.243 0.007 274.655);
  --chart-5: oklch(0.458 0.13 270.067);
}