Villainous for shadcn/ui

Villainous is a shadcn/ui theme built around a vivid yellow primary color (#ffdb70) with vivid green accents (#dbff70). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid yellow primary (#ffdb70) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#080702black
Foreground
#090701black
#fcfbf8snow
Card
#fdfdfcwhite
#080702black
Card foreground
#090701black
#fcfbf8snow
Popover
#fdfdfcwhite
#080702black
Popover foreground
#090701black
#fcfbf8snow
Primary
#ffdb70khaki
#ffdb70khaki
Primary foreground
#3d2e00black
#3d2e00black
Secondary
#ff9470lightsalmon
#ff9470lightsalmon
Secondary foreground
#3d0f00black
#3d0f00black
Muted
#dbd8d6gainsboro
#292524darkslategray
Muted foreground
#554c4adarkslategray
#b5adaadarkgray
Accent
#dbff70khaki
#dbff70khaki
Accent foreground
#2e3d00darkgreen
#2e3d00darkgreen
Destructive
#c01e02firebrick
#fd4a2btomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffdb70khaki
#ffdb70khaki

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button9.84:1AAA
Secondary button7.67:1AAA
Muted text5.86:1AA
Accent10.40:1AAA
Destructive6.12:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button9.84:1AAA
Secondary button7.67:1AAA
Muted text6.88:1AA
Accent10.40:1AAA
Destructive3.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 91.426);
  --foreground: oklch(0.128 0.021 97.739);
  --muted: oklch(0.883 0.004 39.477);
  --muted-foreground: oklch(0.425 0.012 39.355);
  --popover: oklch(0.994 0.002 91.426);
  --popover-foreground: oklch(0.128 0.021 97.739);
  --card: oklch(0.994 0.002 91.426);
  --card-foreground: oklch(0.128 0.021 97.739);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.902 0.132 91.171);
  --primary-foreground: oklch(0.31 0.063 88.624);
  --secondary: oklch(0.772 0.139 39.126);
  --secondary-foreground: oklch(0.246 0.077 40.285);
  --accent: oklch(0.947 0.173 121.526);
  --accent-foreground: oklch(0.335 0.083 123.916);
  --destructive: oklch(0.518 0.197 31.598);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.902 0.132 91.171);
  --chart-1: oklch(0.902 0.132 91.171);
  --chart-2: oklch(0.772 0.139 39.126);
  --chart-3: oklch(0.947 0.173 121.526);
  --chart-4: oklch(0.794 0.123 39.176);
  --chart-5: oklch(0.905 0.135 91.1);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.016 96.531);
  --foreground: oklch(0.988 0.004 91.444);
  --muted: oklch(0.268 0.006 39.388);
  --muted-foreground: oklch(0.754 0.01 39.424);
  --popover: oklch(0.126 0.016 96.531);
  --popover-foreground: oklch(0.988 0.004 91.444);
  --card: oklch(0.126 0.016 96.531);
  --card-foreground: oklch(0.988 0.004 91.444);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.902 0.132 91.171);
  --primary-foreground: oklch(0.31 0.063 88.624);
  --secondary: oklch(0.772 0.139 39.126);
  --secondary-foreground: oklch(0.246 0.077 40.285);
  --accent: oklch(0.947 0.173 121.526);
  --accent-foreground: oklch(0.335 0.083 123.916);
  --destructive: oklch(0.663 0.219 32.367);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.902 0.132 91.171);
  --chart-1: oklch(0.902 0.132 91.171);
  --chart-2: oklch(0.772 0.139 39.126);
  --chart-3: oklch(0.947 0.173 121.526);
  --chart-4: oklch(0.794 0.123 39.176);
  --chart-5: oklch(0.905 0.135 91.1);
}