Vanadyl for shadcn/ui

Vanadyl is a shadcn/ui theme built around a near-black primary color (#010305) with near-black accents (#030501). The light mode uses a neutral background (#f7fafc). Dark mode keeps the near-black primary (#010305) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fafcghostwhite
#000000black
Foreground
#000000black
#f6f7f9whitesmoke
Card
#f7fafcghostwhite
#000000black
Card foreground
#000000black
#f6f7f9whitesmoke
Popover
#f7fafcghostwhite
#000000black
Popover foreground
#000000black
#f6f7f9whitesmoke
Primary
#010305black
#010305black
Primary foreground
#4d9ceacornflowerblue
#4d9ceacornflowerblue
Secondary
#050103black
#050103black
Secondary foreground
#f5a8cflightpink
#f5a8cflightpink
Muted
#f0ebedlinen
#140f12black
Muted foreground
#544f52darkslategray
#b0abaddarkgray
Accent
#030501black
#030501black
Accent foreground
#69bb16olivedrab
#69bb16olivedrab
Destructive
#8a370asaddlebrown
#d55510chocolate
Destructive foreground
#fbdccbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010305black
#010305black

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button7.16:1AAA
Secondary button11.27:1AAA
Muted text6.78:1AA
Accent8.52:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button7.16:1AAA
Secondary button11.27:1AAA
Muted text8.35:1AAA
Accent8.52:1AAA
Destructive4.07: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.984 0.004 247.868);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.944 0.006 345.318);
  --muted-foreground: oklch(0.434 0.008 345.591);
  --popover: oklch(0.984 0.004 247.868);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.004 247.868);
  --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.088 0.014 236.582);
  --primary-foreground: oklch(0.677 0.14 250.653);
  --secondary: oklch(0.081 0.024 344.86);
  --secondary-foreground: oklch(0.817 0.102 348.173);
  --accent: oklch(0.104 0.022 126.932);
  --accent-foreground: oklch(0.712 0.199 134.271);
  --destructive: oklch(0.445 0.124 43.438);
  --destructive-foreground: oklch(0.915 0.042 50.109);
  --ring: oklch(0.088 0.014 236.582);
  --chart-1: oklch(0.088 0.014 236.582);
  --chart-2: oklch(0.081 0.024 344.86);
  --chart-3: oklch(0.104 0.022 126.932);
  --chart-4: oklch(0.131 0.04 347.672);
  --chart-5: oklch(0.087 0.015 236.146);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.003 247.855);
  --muted: oklch(0.177 0.01 346.512);
  --muted-foreground: oklch(0.746 0.007 345.372);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.976 0.003 247.855);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.976 0.003 247.855);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.088 0.014 236.582);
  --primary-foreground: oklch(0.677 0.14 250.653);
  --secondary: oklch(0.081 0.024 344.86);
  --secondary-foreground: oklch(0.817 0.102 348.173);
  --accent: oklch(0.104 0.022 126.932);
  --accent-foreground: oklch(0.712 0.199 134.271);
  --destructive: oklch(0.61 0.176 42.567);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.088 0.014 236.582);
  --chart-1: oklch(0.088 0.014 236.582);
  --chart-2: oklch(0.081 0.024 344.86);
  --chart-3: oklch(0.104 0.022 126.932);
  --chart-4: oklch(0.131 0.04 347.672);
  --chart-5: oklch(0.087 0.015 236.146);
}