Balcony for shadcn/ui

Balcony is a shadcn/ui theme built around a muted green primary color (#a2b578) with muted purple accents (#b578a2). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted green primary (#a2b578) on a green-tinted background (#0c1004).

Color palette

TokenLightDark
Background
#fdfefbwhite
#0c1004black
Foreground
#060902black
#fafbf9snow
Card
#fdfefbwhite
#0c1004black
Card foreground
#060902black
#fafbf9snow
Popover
#fdfefbwhite
#0c1004black
Popover foreground
#060902black
#fafbf9snow
Primary
#a2b578darkkhaki
#a2b578darkkhaki
Primary foreground
#000000black
#000000black
Secondary
#78a2b5cadetblue
#78a2b5cadetblue
Secondary foreground
#000000black
#000000black
Muted
#e3eaedlavender
#12191cblack
Muted foreground
#565e61dimgray
#9ea5a9darkgray
Accent
#b578a2rosybrown
#b578a2rosybrown
Accent foreground
#000000black
#000000black
Destructive
#8e1c10darkred
#e94735tomato
Destructive foreground
#fad9d6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a2b578darkkhaki
#a2b578darkkhaki

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button9.38:1AAA
Secondary button7.60:1AAA
Muted text5.44:1AA
Accent6.17:1AA
Destructive6.84:1AA
Dark mode
Text on background18.53:1AAA
Text on card18.53:1AAA
Primary button9.38:1AAA
Secondary button7.60:1AAA
Muted text7.12:1AAA
Accent6.17:1AA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 120.821);
  --foreground: oklch(0.131 0.023 120.489);
  --muted: oklch(0.932 0.009 226.97);
  --muted-foreground: oklch(0.476 0.011 227.159);
  --popover: oklch(0.995 0.003 120.821);
  --popover-foreground: oklch(0.131 0.023 120.489);
  --card: oklch(0.995 0.003 120.821);
  --card-foreground: oklch(0.131 0.023 120.489);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.743 0.085 122.757);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.687 0.053 228.181);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.649 0.093 339.173);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.423 0.151 30.462);
  --destructive-foreground: oklch(0.913 0.037 25.374);
  --ring: oklch(0.743 0.085 122.757);
  --chart-1: oklch(0.743 0.085 122.757);
  --chart-2: oklch(0.687 0.053 228.181);
  --chart-3: oklch(0.649 0.093 339.173);
  --chart-4: oklch(0.711 0.049 227.99);
  --chart-5: oklch(0.75 0.093 122.944);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.164 0.025 122.202);
  --foreground: oklch(0.986 0.002 120.802);
  --muted: oklch(0.207 0.012 227.765);
  --muted-foreground: oklch(0.718 0.01 227.031);
  --popover: oklch(0.164 0.025 122.202);
  --popover-foreground: oklch(0.986 0.002 120.802);
  --card: oklch(0.164 0.025 122.202);
  --card-foreground: oklch(0.986 0.002 120.802);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.743 0.085 122.757);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.687 0.053 228.181);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.649 0.093 339.173);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.627 0.201 29.996);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.743 0.085 122.757);
  --chart-1: oklch(0.743 0.085 122.757);
  --chart-2: oklch(0.687 0.053 228.181);
  --chart-3: oklch(0.649 0.093 339.173);
  --chart-4: oklch(0.711 0.049 227.99);
  --chart-5: oklch(0.75 0.093 122.944);
}