Bedroom for shadcn/ui

Bedroom is a shadcn/ui theme built around a vivid green primary color (#819108) with vivid indigo accents (#180891). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#819108) on a green-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0a05black
Foreground
#080802black
#f8f8f7whitesmoke
Card
#fcfcfcsnow
#0d0e07black
Card foreground
#040401black
#fafaf9snow
Popover
#fcfcfcsnow
#0d0e07black
Popover foreground
#040401black
#fafaf9snow
Primary
#819108olive
#819108olive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#180891darkblue
#180891darkblue
Secondary foreground
#d4cffclavender
#d4cffclavender
Muted
#ebeaf1lavender
#0f0e15black
Muted foreground
#4d4c57darkslategray
#a9a8b3darkgray
Accent
#180891darkblue
#180891darkblue
Accent foreground
#d4cffclavender
#d4cffclavender
Destructive
#762c05saddlebrown
#f55c0aorangered
Destructive foreground
#fccbb1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#819108olive
#819108olive

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card20.08:1AAA
Primary button3.49:1AA Large
Secondary button9.53:1AAA
Muted text7.04:1AAA
Accent9.53:1AAA
Destructive6.71:1AA
Dark mode
Text on background18.64:1AAA
Text on card18.58:1AAA
Primary button3.49:1AA Large
Secondary button9.53:1AAA
Muted text8.14:1AAA
Accent9.53:1AAA
Destructive6.42:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.021 113.137);
  --muted: oklch(0.939 0.009 291.596);
  --muted-foreground: oklch(0.422 0.019 290.924);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.105 0.017 113.137);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.105 0.017 113.137);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.623 0.142 117.345);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.312 0.197 270.233);
  --secondary-foreground: oklch(0.872 0.063 290.372);
  --accent: oklch(0.312 0.197 270.233);
  --accent-foreground: oklch(0.872 0.063 290.372);
  --destructive: oklch(0.395 0.113 43.139);
  --destructive-foreground: oklch(0.878 0.066 49.776);
  --ring: oklch(0.623 0.142 117.345);
  --chart-1: oklch(0.623 0.142 117.345);
  --chart-2: oklch(0.312 0.197 270.233);
  --chart-3: oklch(0.312 0.197 270.233);
  --chart-4: oklch(0.333 0.211 269.903);
  --chart-5: oklch(0.63 0.145 117.459);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.014 112.635);
  --foreground: oklch(0.979 0.002 111.818);
  --muted: oklch(0.17 0.014 290.167);
  --muted-foreground: oklch(0.735 0.016 291.358);
  --popover: oklch(0.159 0.016 113.287);
  --popover-foreground: oklch(0.986 0.001 111.805);
  --card: oklch(0.159 0.016 113.287);
  --card-foreground: oklch(0.986 0.001 111.805);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.623 0.142 117.345);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.312 0.197 270.233);
  --secondary-foreground: oklch(0.872 0.063 290.372);
  --accent: oklch(0.312 0.197 270.233);
  --accent-foreground: oklch(0.872 0.063 290.372);
  --destructive: oklch(0.668 0.201 41.26);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.623 0.142 117.345);
  --chart-1: oklch(0.623 0.142 117.345);
  --chart-2: oklch(0.312 0.197 270.233);
  --chart-3: oklch(0.312 0.197 270.233);
  --chart-4: oklch(0.333 0.211 269.903);
  --chart-5: oklch(0.63 0.145 117.459);
}