Greenhouse for shadcn/ui

Greenhouse is a shadcn/ui theme built around a light yellow primary color (#f0e8b7) with light blue accents (#b7c0f0). The light mode uses a neutral background (#fdfcf6). Dark mode keeps the light yellow primary (#f0e8b7) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfcf6snow
#030302black
Foreground
#050401black
#f9f8f6whitesmoke
Card
#fdfcf6snow
#030302black
Card foreground
#050401black
#f9f8f6whitesmoke
Popover
#fdfcf6snow
#030302black
Popover foreground
#050401black
#f9f8f6whitesmoke
Primary
#f0e8b7wheat
#f0e8b7wheat
Primary foreground
#0d0b03black
#0d0b03black
Secondary
#b7c0f0lightsteelblue
#b7c0f0lightsteelblue
Secondary foreground
#142061midnightblue
#142061midnightblue
Muted
#e4e5eclavender
#13141bblack
Muted foreground
#545559dimgray
#a6a6abdarkgray
Accent
#b7c0f0lightsteelblue
#b7c0f0lightsteelblue
Accent foreground
#142061midnightblue
#142061midnightblue
Destructive
#5f1207maroon
#db2a0ffirebrick
Destructive foreground
#f8aba0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0e8b7wheat
#f0e8b7wheat

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button15.85:1AAA
Secondary button8.36:1AAA
Muted text5.94:1AA
Accent8.36:1AAA
Destructive7.15:1AAA
Dark mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button15.85:1AAA
Secondary button8.36:1AAA
Muted text7.56:1AAA
Accent8.36:1AAA
Destructive4.80:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 98.43);
  --foreground: oklch(0.105 0.018 103.069);
  --muted: oklch(0.924 0.009 278.176);
  --muted-foreground: oklch(0.45 0.007 278.082);
  --popover: oklch(0.991 0.008 98.43);
  --popover-foreground: oklch(0.105 0.018 103.069);
  --card: oklch(0.991 0.008 98.43);
  --card-foreground: oklch(0.105 0.018 103.069);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.925 0.064 99.153);
  --primary-foreground: oklch(0.149 0.022 101.871);
  --secondary: oklch(0.817 0.069 276.941);
  --secondary-foreground: oklch(0.281 0.117 269.404);
  --accent: oklch(0.817 0.069 276.941);
  --accent-foreground: oklch(0.281 0.117 269.404);
  --destructive: oklch(0.321 0.111 31.796);
  --destructive-foreground: oklch(0.814 0.093 28.938);
  --ring: oklch(0.925 0.064 99.153);
  --chart-1: oklch(0.925 0.064 99.153);
  --chart-2: oklch(0.817 0.069 276.941);
  --chart-3: oklch(0.817 0.069 276.941);
  --chart-4: oklch(0.849 0.056 277.266);
  --chart-5: oklch(0.927 0.066 99.179);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.007 100.62);
  --foreground: oklch(0.98 0.003 98.36);
  --muted: oklch(0.194 0.013 277.21);
  --muted-foreground: oklch(0.727 0.006 278.19);
  --popover: oklch(0.098 0.007 100.62);
  --popover-foreground: oklch(0.98 0.003 98.36);
  --card: oklch(0.098 0.007 100.62);
  --card-foreground: oklch(0.98 0.003 98.36);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.925 0.064 99.153);
  --primary-foreground: oklch(0.149 0.022 101.871);
  --secondary: oklch(0.817 0.069 276.941);
  --secondary-foreground: oklch(0.281 0.117 269.404);
  --accent: oklch(0.817 0.069 276.941);
  --accent-foreground: oklch(0.281 0.117 269.404);
  --destructive: oklch(0.577 0.214 31.401);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.925 0.064 99.153);
  --chart-1: oklch(0.925 0.064 99.153);
  --chart-2: oklch(0.817 0.069 276.941);
  --chart-3: oklch(0.817 0.069 276.941);
  --chart-4: oklch(0.849 0.056 277.266);
  --chart-5: oklch(0.927 0.066 99.179);
}