Balalaika for shadcn/ui

Balalaika is a shadcn/ui theme built around a pink primary color (#b76288) with teal accents (#62b790). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the pink primary (#b76288) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#000000black
Foreground
#000000black
#faf5f7whitesmoke
Card
#fdfcfcsnow
#000000black
Card foreground
#000000black
#faf5f7whitesmoke
Popover
#fdfcfcsnow
#000000black
Popover foreground
#000000black
#faf5f7whitesmoke
Primary
#b76288palevioletred
#b76288palevioletred
Primary foreground
#000000black
#000000black
Secondary
#62b790cadetblue
#62b790cadetblue
Secondary foreground
#000000black
#000000black
Muted
#e4ece8lavender
#131b17black
Muted foreground
#3f554bdarkslategray
#aac0b6silver
Accent
#62b790cadetblue
#62b790cadetblue
Accent foreground
#000000black
#000000black
Destructive
#d52a0bfirebrick
#f45034tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b76288palevioletred
#b76288palevioletred

Contrast

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

Light mode
Text on background20.47:1AAA
Text on card20.47:1AAA
Primary button5.10:1AA
Secondary button8.67:1AAA
Muted text6.68:1AA
Accent8.67:1AAA
Destructive5.04:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button5.10:1AA
Secondary button8.67:1AAA
Muted text9.13:1AAA
Accent8.67:1AAA
Destructive3.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 347.865);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.936 0.01 167.529);
  --muted-foreground: oklch(0.428 0.032 165.561);
  --popover: oklch(0.991 0.002 347.865);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.002 347.865);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.605 0.118 352.82);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.714 0.101 162.912);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.714 0.101 162.912);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.565 0.209 31.791);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.605 0.118 352.82);
  --chart-1: oklch(0.605 0.118 352.82);
  --chart-2: oklch(0.714 0.101 162.912);
  --chart-3: oklch(0.714 0.101 162.912);
  --chart-4: oklch(0.733 0.095 163.45);
  --chart-5: oklch(0.604 0.127 353.244);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.005 347.964);
  --muted: oklch(0.212 0.013 165.928);
  --muted-foreground: oklch(0.789 0.028 166.796);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.005 347.964);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.005 347.964);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.605 0.118 352.82);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.714 0.101 162.912);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.714 0.101 162.912);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.656 0.205 32.372);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.605 0.118 352.82);
  --chart-1: oklch(0.605 0.118 352.82);
  --chart-2: oklch(0.714 0.101 162.912);
  --chart-3: oklch(0.714 0.101 162.912);
  --chart-4: oklch(0.733 0.095 163.45);
  --chart-5: oklch(0.604 0.127 353.244);
}