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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 10.91:1 | AAA |
| Muted text | 5.11:1 | AA |
| Accent | 10.91:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 10.91:1 | AAA |
| Muted text | 7.18:1 | AAA |
| Accent | 10.91:1 | AAA |
| Destructive | 6.57:1 | AA |
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);
}