Evil for shadcn/ui

Evil is a shadcn/ui theme built around a muted red primary color (#8a5c5f) with muted teal accents (#5c8a87). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the muted red primary (#8a5c5f) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fcf8f8snow
#030202black
Foreground
#100506black
#fdfcfcsnow
Card
#fcf8f8snow
#030202black
Card foreground
#100506black
#fdfcfcsnow
Popover
#fcf8f8snow
#030202black
Popover foreground
#100506black
#fdfcfcsnow
Primary
#8a5c5fdimgray
#8a5c5fdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5c8a87slategray
#5c8a87slategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0f4f4whitesmoke
#0b0f0eblack
Muted foreground
#506261dimgray
#9dafaddarkgray
Accent
#5c8a87slategray
#5c8a87slategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c7430fchocolate
#e84e11orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a5c5fdimgray
#8a5c5fdimgray

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button5.57:1AA
Secondary button3.87:1AA Large
Muted text5.81:1AA
Accent3.87:1AA Large
Destructive4.94:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button5.57:1AA
Secondary button3.87:1AA Large
Muted text8.43:1AAA
Accent3.87:1AA Large
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 12.503);
  --foreground: oklch(0.134 0.022 14.801);
  --muted: oklch(0.964 0.004 192.344);
  --muted-foreground: oklch(0.482 0.022 191.477);
  --popover: oklch(0.982 0.004 12.503);
  --popover-foreground: oklch(0.134 0.022 14.801);
  --card: oklch(0.982 0.004 12.503);
  --card-foreground: oklch(0.134 0.022 14.801);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.524 0.061 14.966);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.598 0.05 190.62);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.598 0.05 190.62);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.565 0.177 38.207);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.524 0.061 14.966);
  --chart-1: oklch(0.524 0.061 14.966);
  --chart-2: oklch(0.598 0.05 190.62);
  --chart-3: oklch(0.598 0.05 190.62);
  --chart-4: oklch(0.627 0.053 190.61);
  --chart-5: oklch(0.521 0.07 15.425);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.008 13.487);
  --foreground: oklch(0.991 0.002 12.46);
  --muted: oklch(0.162 0.006 191.681);
  --muted-foreground: oklch(0.739 0.02 191.862);
  --popover: oklch(0.086 0.008 13.487);
  --popover-foreground: oklch(0.991 0.002 12.46);
  --card: oklch(0.086 0.008 13.487);
  --card-foreground: oklch(0.991 0.002 12.46);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.524 0.061 14.966);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.598 0.05 190.62);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.598 0.05 190.62);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.632 0.2 38.005);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.524 0.061 14.966);
  --chart-1: oklch(0.524 0.061 14.966);
  --chart-2: oklch(0.598 0.05 190.62);
  --chart-3: oklch(0.598 0.05 190.62);
  --chart-4: oklch(0.627 0.053 190.61);
  --chart-5: oklch(0.521 0.07 15.425);
}