Bedroom for shadcn/ui

Bedroom is a shadcn/ui theme built around a deep green primary color (#16170c) with deep purple accents (#170c16). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the deep green primary (#16170c) on a green-tinted background (#0b0c03).

Color palette

TokenLightDark
Background
#fdfdf7snow
#0b0c03black
Foreground
#000000black
#fdfdfcwhite
Card
#fdfdf7snow
#0b0c03black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fdfdf7snow
#0b0c03black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#16170cblack
#16170cblack
Primary foreground
#959c54darkkhaki
#959c54darkkhaki
Secondary
#0c1617black
#0c1617black
Secondary foreground
#92bfc4lightsteelblue
#92bfc4lightsteelblue
Muted
#edf6f7whitesmoke
#081112black
Muted foreground
#4b4e4edarkslategray
#b1b4b4darkgray
Accent
#170c16black
#170c16black
Accent foreground
#c492bfplum
#c492bfplum
Destructive
#832801saddlebrown
#fd6321tomato
Destructive foreground
#fecdb8peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#16170cblack
#16170cblack

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button6.15:1AA
Secondary button9.14:1AAA
Muted text7.66:1AAA
Accent7.44:1AAA
Destructive6.42:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button6.15:1AA
Secondary button9.14:1AAA
Muted text9.16:1AAA
Accent7.44:1AAA
Destructive6.96:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.009 111.176);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.967 0.01 204.916);
  --muted-foreground: oklch(0.42 0.004 204.925);
  --popover: oklch(0.992 0.009 111.176);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.009 111.176);
  --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.201 0.02 112.865);
  --primary-foreground: oklch(0.67 0.096 113.689);
  --secondary: oklch(0.192 0.014 204.688);
  --secondary-foreground: oklch(0.774 0.048 204.688);
  --accent: oklch(0.176 0.026 330.106);
  --accent-foreground: oklch(0.721 0.086 329.837);
  --destructive: oklch(0.414 0.132 38.879);
  --destructive-foreground: oklch(0.887 0.063 44.404);
  --ring: oklch(0.201 0.02 112.865);
  --chart-1: oklch(0.201 0.02 112.865);
  --chart-2: oklch(0.192 0.014 204.688);
  --chart-3: oklch(0.176 0.026 330.106);
  --chart-4: oklch(0.23 0.019 204.706);
  --chart-5: oklch(0.203 0.022 113.015);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.15 0.022 112.737);
  --foreground: oklch(0.994 0.002 111.057);
  --muted: oklch(0.168 0.014 204.546);
  --muted-foreground: oklch(0.767 0.003 204.958);
  --popover: oklch(0.15 0.022 112.737);
  --popover-foreground: oklch(0.994 0.002 111.057);
  --card: oklch(0.15 0.022 112.737);
  --card-foreground: oklch(0.994 0.002 111.057);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.201 0.02 112.865);
  --primary-foreground: oklch(0.67 0.096 113.689);
  --secondary: oklch(0.192 0.014 204.688);
  --secondary-foreground: oklch(0.774 0.048 204.688);
  --accent: oklch(0.176 0.026 330.106);
  --accent-foreground: oklch(0.721 0.086 329.837);
  --destructive: oklch(0.689 0.201 40.196);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.201 0.02 112.865);
  --chart-1: oklch(0.201 0.02 112.865);
  --chart-2: oklch(0.192 0.014 204.688);
  --chart-3: oklch(0.176 0.026 330.106);
  --chart-4: oklch(0.23 0.019 204.706);
  --chart-5: oklch(0.203 0.022 113.015);
}