Condominium for shadcn/ui

Condominium is a shadcn/ui theme built around a muted yellow primary color (#9b9755) with muted indigo accents (#55599b). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the muted yellow primary (#9b9755) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#fdfdf7snow
#070703black
Foreground
#000000black
#ffffffwhite
Card
#fdfdf7snow
#070703black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfdf7snow
#070703black
Popover foreground
#000000black
#ffffffwhite
Primary
#9b9755darkkhaki
#9b9755darkkhaki
Primary foreground
#000000black
#000000black
Secondary
#55599bdarkslateblue
#55599bdarkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfdfe2gainsboro
#1d1d20black
Muted foreground
#3d3d42darkslategray
#bdbdc2silver
Accent
#55599bdarkslateblue
#55599bdarkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a31300darkred
#ff1e00red
Destructive foreground
#ffdbd6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9b9755darkkhaki
#9b9755darkkhaki

Contrast

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

Light mode
Text on background20.55:1AAA
Text on card20.55:1AAA
Primary button6.95:1AA
Secondary button6.41:1AA
Muted text8.11:1AAA
Accent6.41:1AA
Destructive6.16:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button6.95:1AA
Secondary button6.41:1AA
Muted text8.96:1AAA
Accent6.41:1AA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.008 104.114);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.904 0.004 283.896);
  --muted-foreground: oklch(0.363 0.008 283.57);
  --popover: oklch(0.992 0.008 104.114);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.008 104.114);
  --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.665 0.088 105.905);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.491 0.105 279.51);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.491 0.105 279.51);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.457 0.178 31.034);
  --destructive-foreground: oklch(0.92 0.041 26.798);
  --ring: oklch(0.665 0.088 105.905);
  --chart-1: oklch(0.665 0.088 105.905);
  --chart-2: oklch(0.491 0.105 279.51);
  --chart-3: oklch(0.491 0.105 279.51);
  --chart-4: oklch(0.513 0.11 279.472);
  --chart-5: oklch(0.675 0.095 106.003);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.015 106.297);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.233 0.006 283.551);
  --muted-foreground: oklch(0.799 0.007 283.824);
  --popover: oklch(0.128 0.015 106.297);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.015 106.297);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.665 0.088 105.905);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.491 0.105 279.51);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.491 0.105 279.51);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.635 0.251 30.526);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.665 0.088 105.905);
  --chart-1: oklch(0.665 0.088 105.905);
  --chart-2: oklch(0.491 0.105 279.51);
  --chart-3: oklch(0.491 0.105 279.51);
  --chart-4: oklch(0.513 0.11 279.472);
  --chart-5: oklch(0.675 0.095 106.003);
}