Devil for shadcn/ui

Devil is a shadcn/ui theme built around a muted deep green primary color (#141f15) with muted deep red accents (#1f1514). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted deep green primary (#141f15) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030703black
Foreground
#041605black
#fcfdfcwhite
Card
#fbfefbwhite
#030703black
Card foreground
#041605black
#fcfdfcwhite
Popover
#fbfefbwhite
#030703black
Popover foreground
#041605black
#fcfdfcwhite
Primary
#141f15black
#141f15black
Primary foreground
#a1c4a4darkgray
#a1c4a4darkgray
Secondary
#15141fblack
#15141fblack
Secondary foreground
#a4a1c4darkgray
#a4a1c4darkgray
Muted
#e6e6eblavender
#151419black
Muted foreground
#464554darkslategray
#acabbadarkgray
Accent
#1f1514black
#1f1514black
Accent foreground
#c4a4a1darkgray
#c4a4a1darkgray
Destructive
#9e320asaddlebrown
#f15a22chocolate
Destructive foreground
#fde6ddmistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#141f15black
#141f15black

Contrast

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

Light mode
Text on background18.43:1AAA
Text on card18.43:1AAA
Primary button8.83:1AAA
Secondary button7.37:1AAA
Muted text7.51:1AAA
Accent7.80:1AAA
Destructive6.02:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button8.83:1AAA
Secondary button7.37:1AAA
Muted text8.08:1AAA
Accent7.80:1AAA
Destructive6.20:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 148.532);
  --foreground: oklch(0.178 0.043 146.151);
  --muted: oklch(0.925 0.007 290.875);
  --muted-foreground: oklch(0.397 0.026 289.764);
  --popover: oklch(0.994 0.005 148.532);
  --popover-foreground: oklch(0.178 0.043 146.151);
  --card: oklch(0.994 0.005 148.532);
  --card-foreground: oklch(0.178 0.043 146.151);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.226 0.026 147.197);
  --primary-foreground: oklch(0.786 0.058 147.729);
  --secondary: oklch(0.197 0.023 288.633);
  --secondary-foreground: oklch(0.724 0.051 289.65);
  --accent: oklch(0.208 0.018 25.903);
  --accent-foreground: oklch(0.747 0.038 25.482);
  --destructive: oklch(0.474 0.151 37.327);
  --destructive-foreground: oklch(0.941 0.028 41.104);
  --ring: oklch(0.226 0.026 147.197);
  --chart-1: oklch(0.226 0.026 147.197);
  --chart-2: oklch(0.197 0.023 288.633);
  --chart-3: oklch(0.208 0.018 25.903);
  --chart-4: oklch(0.225 0.029 288.376);
  --chart-5: oklch(0.228 0.029 147.019);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.018 147.582);
  --foreground: oklch(0.993 0.002 148.568);
  --muted: oklch(0.196 0.01 290.024);
  --muted-foreground: oklch(0.747 0.022 290.458);
  --popover: oklch(0.121 0.018 147.582);
  --popover-foreground: oklch(0.993 0.002 148.568);
  --card: oklch(0.121 0.018 147.582);
  --card-foreground: oklch(0.993 0.002 148.568);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.226 0.026 147.197);
  --primary-foreground: oklch(0.786 0.058 147.729);
  --secondary: oklch(0.197 0.023 288.633);
  --secondary-foreground: oklch(0.724 0.051 289.65);
  --accent: oklch(0.208 0.018 25.903);
  --accent-foreground: oklch(0.747 0.038 25.482);
  --destructive: oklch(0.66 0.197 38.313);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.226 0.026 147.197);
  --chart-1: oklch(0.226 0.026 147.197);
  --chart-2: oklch(0.197 0.023 288.633);
  --chart-3: oklch(0.208 0.018 25.903);
  --chart-4: oklch(0.225 0.029 288.376);
  --chart-5: oklch(0.228 0.029 147.019);
}