Balaclava for shadcn/ui

Balaclava is a shadcn/ui theme built around a vivid purple primary color (#e85ff2) with vivid green accents (#68f25f). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the vivid purple primary (#e85ff2) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#040104black
Foreground
#140515black
#f9f5faghostwhite
Card
#fbf3fcghostwhite
#070208black
Card foreground
#100411black
#fbf8fcghostwhite
Popover
#fdf7fdsnow
#040104black
Popover foreground
#140515black
#f9f5faghostwhite
Primary
#e85ff2orchid
#e85ff2orchid
Primary foreground
#1b021cblack
#1b021cblack
Secondary
#68f25flightgreen
#68f25flightgreen
Secondary foreground
#041c02black
#041c02black
Muted
#e3ede3gainsboro
#121c12black
Muted foreground
#515e50darkolivegreen
#a2afa1darkgray
Accent
#68f25flightgreen
#68f25flightgreen
Accent foreground
#041c02black
#041c02black
Destructive
#761405maroon
#f52e0forangered
Destructive foreground
#fcbbb1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e85ff2orchid
#e85ff2orchid

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.42:1AAA
Primary button6.84:1AA
Secondary button12.33:1AAA
Muted text5.71:1AA
Accent12.33:1AAA
Destructive6.90:1AA
Dark mode
Text on background19.24:1AAA
Text on card19.47:1AAA
Primary button6.84:1AA
Secondary button12.33:1AAA
Muted text7.63:1AAA
Accent12.33:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.01 323.69);
  --foreground: oklch(0.15 0.042 325.02);
  --muted: oklch(0.937 0.018 143.537);
  --muted-foreground: oklch(0.465 0.027 143.321);
  --popover: oklch(0.982 0.01 323.69);
  --popover-foreground: oklch(0.15 0.042 325.02);
  --card: oklch(0.973 0.015 323.717);
  --card-foreground: oklch(0.137 0.037 325.123);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.712 0.239 324.996);
  --primary-foreground: oklch(0.162 0.065 325.421);
  --secondary: oklch(0.855 0.223 142.248);
  --secondary-foreground: oklch(0.201 0.059 141.464);
  --accent: oklch(0.855 0.223 142.248);
  --accent-foreground: oklch(0.201 0.059 141.464);
  --destructive: oklch(0.367 0.134 31.728);
  --destructive-foreground: oklch(0.848 0.077 28.672);
  --ring: oklch(0.712 0.239 324.996);
  --chart-1: oklch(0.712 0.239 324.996);
  --chart-2: oklch(0.855 0.223 142.248);
  --chart-3: oklch(0.855 0.223 142.248);
  --chart-4: oklch(0.864 0.208 142.339);
  --chart-5: oklch(0.714 0.245 325.014);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.018 325.174);
  --foreground: oklch(0.975 0.008 323.678);
  --muted: oklch(0.214 0.025 143.003);
  --muted-foreground: oklch(0.741 0.024 143.461);
  --popover: oklch(0.086 0.018 325.174);
  --popover-foreground: oklch(0.975 0.008 323.678);
  --card: oklch(0.109 0.022 325.174);
  --card-foreground: oklch(0.983 0.005 323.664);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.712 0.239 324.996);
  --primary-foreground: oklch(0.162 0.065 325.421);
  --secondary: oklch(0.855 0.223 142.248);
  --secondary-foreground: oklch(0.201 0.059 141.464);
  --accent: oklch(0.855 0.223 142.248);
  --accent-foreground: oklch(0.201 0.059 141.464);
  --destructive: oklch(0.626 0.235 31.307);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.712 0.239 324.996);
  --chart-1: oklch(0.712 0.239 324.996);
  --chart-2: oklch(0.855 0.223 142.248);
  --chart-3: oklch(0.855 0.223 142.248);
  --chart-4: oklch(0.864 0.208 142.339);
  --chart-5: oklch(0.714 0.245 325.014);
}