Vanadyl for shadcn/ui

Vanadyl is a shadcn/ui theme built around a pink primary color (#e96d9a) with muted light pink accents (#d9c9cf). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#e96d9a) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fefbfcsnow
#030202black
Foreground
#000000black
#faf5f7whitesmoke
Card
#fdf7f9snow
#070305black
Card foreground
#000000black
#fbf8f9snow
Popover
#fdf7f9snow
#070305black
Popover foreground
#000000black
#fbf8f9snow
Primary
#e96d9apalevioletred
#e96d9apalevioletred
Primary foreground
#1f050eblack
#1f050eblack
Secondary
#d9c9cflightgrey
#302227darkslategray
Secondary foreground
#422f36darkslategray
#ccb7bfsilver
Muted
#ead1dagainsboro
#2e151eblack
Muted foreground
#5a494fdarkslategray
#b6a5abdarkgray
Accent
#d9c9cflightgrey
#302227darkslategray
Accent foreground
#422f36darkslategray
#ccb7bfsilver
Destructive
#882e07saddlebrown
#e94e0corangered
Destructive foreground
#fcd5c5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e96d9apalevioletred
#e96d9apalevioletred

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card19.82:1AAA
Primary button6.54:1AA
Secondary button7.82:1AAA
Muted text5.86:1AA
Accent7.82:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.22:1AAA
Text on card19.39:1AAA
Primary button6.54:1AA
Secondary button8.03:1AAA
Muted text7.23:1AAA
Accent8.03:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 352.678);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.885 0.031 353.542);
  --muted-foreground: oklch(0.426 0.024 354.127);
  --popover: oklch(0.981 0.007 352.784);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.007 352.784);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.694 0.161 359.053);
  --primary-foreground: oklch(0.169 0.05 359.595);
  --secondary: oklch(0.851 0.019 353.207);
  --secondary-foreground: oklch(0.328 0.03 355.067);
  --accent: oklch(0.851 0.019 353.207);
  --accent-foreground: oklch(0.328 0.03 355.067);
  --destructive: oklch(0.429 0.131 39.421);
  --destructive-foreground: oklch(0.902 0.049 44.517);
  --ring: oklch(0.694 0.161 359.053);
  --chart-1: oklch(0.694 0.161 359.053);
  --chart-2: oklch(0.851 0.019 353.207);
  --chart-3: oklch(0.851 0.019 353.207);
  --chart-4: oklch(0.876 0.016 353.084);
  --chart-5: oklch(0.694 0.167 359.344);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.008 352.376);
  --foreground: oklch(0.974 0.006 352.739);
  --muted: oklch(0.234 0.043 357.609);
  --muted-foreground: oklch(0.738 0.021 353.362);
  --popover: oklch(0.11 0.01 352.376);
  --popover-foreground: oklch(0.983 0.004 352.683);
  --card: oklch(0.11 0.01 352.376);
  --card-foreground: oklch(0.983 0.004 352.683);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.694 0.161 359.053);
  --primary-foreground: oklch(0.169 0.05 359.595);
  --secondary: oklch(0.27 0.023 354.89);
  --secondary-foreground: oklch(0.8 0.026 353.481);
  --accent: oklch(0.27 0.023 354.89);
  --accent-foreground: oklch(0.8 0.026 353.481);
  --destructive: oklch(0.632 0.201 38.419);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.694 0.161 359.053);
  --chart-1: oklch(0.694 0.161 359.053);
  --chart-2: oklch(0.27 0.023 354.89);
  --chart-3: oklch(0.27 0.023 354.89);
  --chart-4: oklch(0.299 0.027 354.989);
  --chart-5: oklch(0.694 0.167 359.344);
}