Evondev Dracula New Colour for shadcn/ui

Evondev Dracula New Colour is a shadcn/ui theme built around a light yellow primary color (#f8f8f2) with muted deep blue accents (#383f56). The light mode uses a blue-tinted background (#1a1d28). Dark mode keeps the light yellow primary (#f8f8f2) on a blue-tinted background (#1a1d28).

Color palette

TokenLightDark
Background
#1a1d28black
#1a1d28black
Foreground
#f8f8f2whitesmoke
#f8f8f2whitesmoke
Card
#161922black
#161922black
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#14161fblack
#14161fblack
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#f8f8f2whitesmoke
#f8f8f2whitesmoke
Primary foreground
#35351ddarkslategray
#35351ddarkslategray
Secondary
#4d4d33darkolivegreen
#4d4d33darkolivegreen
Secondary foreground
#e0e0d1gainsboro
#e0e0d1gainsboro
Muted
#262831darkslategray
#262831darkslategray
Muted foreground
#a1a5b5darkgray
#a1a5b5darkgray
Accent
#383f56darkslategray
#383f56darkslategray
Accent foreground
#dadde7gainsboro
#dadde7gainsboro
Destructive
#ee312bcrimson
#ee312bcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#292b33darkslategray
#292b33darkslategray
Input
#30323bdarkslategray
#30323bdarkslategray
Ring
#f8f8f2whitesmoke
#f8f8f2whitesmoke

Contrast

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

Light mode
Text on background15.72:1AAA
Text on card17.58:1AAA
Primary button11.72:1AAA
Secondary button6.54:1AA
Muted text5.96:1AA
Accent7.68:1AAA
Destructive4.11:1AA Large
Dark mode
Text on background15.72:1AAA
Text on card17.58:1AAA
Primary button11.72:1AAA
Secondary button6.54:1AA
Muted text5.96:1AA
Accent7.68:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.234 0.022 272.612);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.28 0.015 273.17);
  --muted-foreground: oklch(0.724 0.023 273.475);
  --popover: oklch(0.204 0.017 272.738);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.214 0.019 272.691);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.29 0.015 273.227);
  --input: oklch(0.319 0.017 273.201);
  --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.372 0.041 272.305);
  --accent-foreground: oklch(0.898 0.014 273.684);
  --destructive: oklch(0.617 0.224 28.137);
  --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.372 0.041 272.305);
  --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.234 0.022 272.612);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.28 0.015 273.17);
  --muted-foreground: oklch(0.724 0.023 273.475);
  --popover: oklch(0.204 0.017 272.738);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.214 0.019 272.691);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.29 0.015 273.227);
  --input: oklch(0.319 0.017 273.201);
  --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.372 0.041 272.305);
  --accent-foreground: oklch(0.898 0.014 273.684);
  --destructive: oklch(0.617 0.224 28.137);
  --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.372 0.041 272.305);
  --chart-4: oklch(0.444 0.044 108.055);
  --chart-5: oklch(0.978 0.009 106.563);
}