Greenhouse for shadcn/ui

Greenhouse is a shadcn/ui theme built around a near-white primary color (#fcf8fc) with near-white accents (#f8fcf8). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fcf8fc) on a purple-tinted background (#0e060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e060eblack
Foreground
#110410black
#fdfbfdsnow
Card
#ffffffwhite
#0e060eblack
Card foreground
#110410black
#fdfbfdsnow
Popover
#ffffffwhite
#0e060eblack
Popover foreground
#110410black
#fdfbfdsnow
Primary
#fcf8fcsnow
#fcf8fcsnow
Primary foreground
#8d348crebeccapurple
#8d348crebeccapurple
Secondary
#f8fcf8mintcream
#f8fcf8mintcream
Secondary foreground
#194319darkgreen
#194319darkgreen
Muted
#dae7dagainsboro
#182518black
Muted foreground
#4a644adarkolivegreen
#9bb59cdarkseagreen
Accent
#f8fcf8mintcream
#f8fcf8mintcream
Accent foreground
#194319darkgreen
#194319darkgreen
Destructive
#87360dsaddlebrown
#ea6a2achocolate
Destructive foreground
#fadbccbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcf8fcsnow
#fcf8fcsnow

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button6.63:1AA
Secondary button10.91:1AAA
Muted text5.11:1AA
Accent10.91:1AAA
Destructive6.29:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button6.63:1AA
Secondary button10.91:1AAA
Muted text7.18:1AAA
Accent10.91:1AAA
Destructive6.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.138 0.038 327.933);
  --muted: oklch(0.915 0.023 145.849);
  --muted-foreground: oklch(0.474 0.051 145.124);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.138 0.038 327.933);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.138 0.038 327.933);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.983 0.008 326.118);
  --primary-foreground: oklch(0.486 0.162 328.379);
  --secondary: oklch(0.987 0.008 145.989);
  --secondary-foreground: oklch(0.342 0.083 143.769);
  --accent: oklch(0.987 0.008 145.989);
  --accent-foreground: oklch(0.342 0.083 143.769);
  --destructive: oklch(0.439 0.121 42.789);
  --destructive-foreground: oklch(0.914 0.04 48.261);
  --ring: oklch(0.983 0.008 326.118);
  --chart-1: oklch(0.983 0.008 326.118);
  --chart-2: oklch(0.987 0.008 145.989);
  --chart-3: oklch(0.987 0.008 145.989);
  --chart-4: oklch(1.007 0.004 326.085);
  --chart-5: oklch(0.983 0.008 326.122);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.024 327.288);
  --foreground: oklch(0.991 0.003 326.081);
  --muted: oklch(0.249 0.031 144.974);
  --muted-foreground: oklch(0.747 0.046 145.536);
  --popover: oklch(0.14 0.024 327.288);
  --popover-foreground: oklch(0.991 0.003 326.081);
  --card: oklch(0.14 0.024 327.288);
  --card-foreground: oklch(0.991 0.003 326.081);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.983 0.008 326.118);
  --primary-foreground: oklch(0.486 0.162 328.379);
  --secondary: oklch(0.987 0.008 145.989);
  --secondary-foreground: oklch(0.342 0.083 143.769);
  --accent: oklch(0.987 0.008 145.989);
  --accent-foreground: oklch(0.342 0.083 143.769);
  --destructive: oklch(0.671 0.175 43.72);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.983 0.008 326.118);
  --chart-1: oklch(0.983 0.008 326.118);
  --chart-2: oklch(0.987 0.008 145.989);
  --chart-3: oklch(0.987 0.008 145.989);
  --chart-4: oklch(1.007 0.004 326.085);
  --chart-5: oklch(0.983 0.008 326.122);
}