Evondev Dracula Night Contrast for shadcn/ui

Evondev Dracula Night Contrast is a shadcn/ui theme built around a light yellow primary color (#f8f8f2) with vivid deep blue accents (#034072). The light mode uses a blue-tinted background (#011628). Dark mode keeps the light yellow primary (#f8f8f2) on a blue-tinted background (#011628).

Color palette

TokenLightDark
Background
#011628black
#011628black
Foreground
#f8f8f2whitesmoke
#f8f8f2whitesmoke
Card
#01111eblack
#01111eblack
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#010e19black
#010e19black
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#f8f8f2whitesmoke
#f8f8f2whitesmoke
Primary foreground
#35351ddarkslategray
#35351ddarkslategray
Secondary
#4d4d33darkolivegreen
#4d4d33darkolivegreen
Secondary foreground
#e0e0d1gainsboro
#e0e0d1gainsboro
Muted
#22272bdarkslategray
#22272bdarkslategray
Muted foreground
#9ba7b0darkgray
#9ba7b0darkgray
Accent
#034072midnightblue
#034072midnightblue
Accent foreground
#aad8fdlightblue
#aad8fdlightblue
Destructive
#f2271corangered
#f2271corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#05243dmidnightblue
#05243dmidnightblue
Input
#062c4bmidnightblue
#062c4bmidnightblue
Ring
#f8f8f2whitesmoke
#f8f8f2whitesmoke

Contrast

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

Light mode
Text on background17.14:1AAA
Text on card19.12:1AAA
Primary button11.72:1AAA
Secondary button6.54:1AA
Muted text6.15:1AA
Accent7.02:1AAA
Destructive4.13:1AA Large
Dark mode
Text on background17.14:1AAA
Text on card19.12:1AAA
Primary button11.72:1AAA
Secondary button6.54:1AA
Muted text6.15:1AA
Accent7.02:1AAA
Destructive4.13:1AA Large

CSS variables

Paste this into your globals.css to use Evondev Dracula Night Contrast in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.194 0.046 244.378);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.268 0.011 242.723);
  --muted-foreground: oklch(0.722 0.019 242.55);
  --popover: oklch(0.156 0.033 239.225);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.169 0.037 241.449);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.253 0.06 247.496);
  --input: oklch(0.287 0.07 248.306);
  --primary: oklch(0.977 0.008 106.548);
  --primary-foreground: oklch(0.322 0.04 108.432);
  --secondary: oklch(0.411 0.04 108.031);
  --secondary-foreground: oklch(0.904 0.02 106.802);
  --accent: oklch(0.367 0.103 250.423);
  --accent-foreground: oklch(0.862 0.07 243.356);
  --destructive: oklch(0.617 0.234 29.193);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.008 106.548);
  --chart-1: oklch(0.977 0.008 106.548);
  --chart-2: oklch(0.411 0.04 108.031);
  --chart-3: oklch(0.367 0.103 250.423);
  --chart-4: oklch(0.444 0.044 108.055);
  --chart-5: oklch(0.978 0.009 106.563);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.194 0.046 244.378);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.268 0.011 242.723);
  --muted-foreground: oklch(0.722 0.019 242.55);
  --popover: oklch(0.156 0.033 239.225);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.169 0.037 241.449);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.253 0.06 247.496);
  --input: oklch(0.287 0.07 248.306);
  --primary: oklch(0.977 0.008 106.548);
  --primary-foreground: oklch(0.322 0.04 108.432);
  --secondary: oklch(0.411 0.04 108.031);
  --secondary-foreground: oklch(0.904 0.02 106.802);
  --accent: oklch(0.367 0.103 250.423);
  --accent-foreground: oklch(0.862 0.07 243.356);
  --destructive: oklch(0.617 0.234 29.193);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.008 106.548);
  --chart-1: oklch(0.977 0.008 106.548);
  --chart-2: oklch(0.411 0.04 108.031);
  --chart-3: oklch(0.367 0.103 250.423);
  --chart-4: oklch(0.444 0.044 108.055);
  --chart-5: oklch(0.978 0.009 106.563);
}