Vanadyl for shadcn/ui

Vanadyl is a shadcn/ui theme built around a yellow primary color (#ded421) with purple accents (#d421de). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the yellow primary (#ded421) on a yellow-tinted background (#0b0b04).

Color palette

TokenLightDark
Background
#fbfbf8snow
#0b0b04black
Foreground
#0d0c02black
#f9f9f6whitesmoke
Card
#fbfbf8snow
#0b0b04black
Card foreground
#0d0c02black
#f9f9f6whitesmoke
Popover
#fbfbf8snow
#0b0b04black
Popover foreground
#0d0c02black
#f9f9f6whitesmoke
Primary
#ded421gold
#ded421gold
Primary foreground
#2c2a07black
#2c2a07black
Secondary
#21ded4turquoise
#21ded4turquoise
Secondary foreground
#072c2ablack
#072c2ablack
Muted
#e6efeflavender
#101918black
Muted foreground
#464e4ddarkslategray
#b1b9b8silver
Accent
#d421demediumorchid
#d421demediumorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a21e07firebrick
#e62b0aorangered
Destructive foreground
#fee2ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ded421gold
#ded421gold

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card18.97:1AAA
Primary button9.42:1AAA
Secondary button8.87:1AAA
Muted text7.31:1AAA
Accent4.13:1AA Large
Destructive6.31:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button9.42:1AAA
Secondary button8.87:1AAA
Muted text8.94:1AAA
Accent4.13:1AA Large
Destructive4.45: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.988 0.004 104.038);
  --foreground: oklch(0.153 0.024 106.855);
  --muted: oklch(0.946 0.01 193.407);
  --muted-foreground: oklch(0.416 0.01 193.153);
  --popover: oklch(0.988 0.004 104.038);
  --popover-foreground: oklch(0.153 0.024 106.855);
  --card: oklch(0.988 0.004 104.038);
  --card-foreground: oklch(0.153 0.024 106.855);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.852 0.176 106.212);
  --primary-foreground: oklch(0.281 0.053 106.369);
  --secondary: oklch(0.814 0.137 189.244);
  --secondary-foreground: oklch(0.268 0.041 190.116);
  --accent: oklch(0.626 0.275 325.827);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.461 0.17 31.905);
  --destructive-foreground: oklch(0.933 0.032 29.622);
  --ring: oklch(0.852 0.176 106.212);
  --chart-1: oklch(0.852 0.176 106.212);
  --chart-2: oklch(0.814 0.137 189.244);
  --chart-3: oklch(0.626 0.275 325.827);
  --chart-4: oklch(0.821 0.134 189.554);
  --chart-5: oklch(0.862 0.179 106.172);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.017 106.249);
  --foreground: oklch(0.98 0.003 104.029);
  --muted: oklch(0.204 0.013 192.323);
  --muted-foreground: oklch(0.779 0.008 193.397);
  --popover: oklch(0.147 0.017 106.249);
  --popover-foreground: oklch(0.98 0.003 104.029);
  --card: oklch(0.147 0.017 106.249);
  --card-foreground: oklch(0.98 0.003 104.029);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.852 0.176 106.212);
  --primary-foreground: oklch(0.281 0.053 106.369);
  --secondary: oklch(0.814 0.137 189.244);
  --secondary-foreground: oklch(0.268 0.041 190.116);
  --accent: oklch(0.626 0.275 325.827);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.597 0.224 31.639);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.852 0.176 106.212);
  --chart-1: oklch(0.852 0.176 106.212);
  --chart-2: oklch(0.814 0.137 189.244);
  --chart-3: oklch(0.626 0.275 325.827);
  --chart-4: oklch(0.821 0.134 189.554);
  --chart-5: oklch(0.862 0.179 106.172);
}