Houseboat is a shadcn/ui theme built around a deep green primary color (#2f3414) with deep purple accents (#34142f). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep green primary (#2f3414) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #000000black |
| Foreground | #131504black | #fbfbf8snow |
| Card | #fbfbf8snow | #030303black |
| Card foreground | #0f1103black | #fdfdfcwhite |
| Popover | #fdfdfcwhite | #000000black |
| Popover foreground | #131504black | #fbfbf8snow |
| Primary | #2f3414darkslategray | #2f3414darkslategray |
| Primary foreground | #afbe55darkkhaki | #afbe55darkkhaki |
| Secondary | #142f34darkslategray | #142f34darkslategray |
| Secondary foreground | #9fd2dblightblue | #9fd2dblightblue |
| Muted | #eaf0f1whitesmoke | #0e1415black |
| Muted foreground | #4c5a5ddarkslategray | #a2b1b3darkgray |
| Accent | #34142fdarkslategray | #34142fdarkslategray |
| Accent foreground | #db9fd2plum | #db9fd2plum |
| Destructive | #c64601chocolate | #e45101orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f3414darkslategray | #2f3414darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.17:1 | AAA |
| Text on card | 18.43:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 6.20:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 4.91:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 8.37:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Houseboat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 113.344);
--foreground: oklch(0.189 0.033 116.196);
--muted: oklch(0.95 0.006 209.451);
--muted-foreground: oklch(0.456 0.018 209.444);
--popover: oklch(0.994 0.002 113.344);
--popover-foreground: oklch(0.189 0.033 116.196);
--card: oklch(0.988 0.004 113.383);
--card-foreground: oklch(0.171 0.029 115.678);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.311 0.051 116.532);
--primary-foreground: oklch(0.769 0.132 116.72);
--secondary: oklch(0.286 0.034 210.399);
--secondary-foreground: oklch(0.83 0.054 209.551);
--accent: oklch(0.25 0.066 333.378);
--accent-foreground: oklch(0.775 0.097 331.768);
--destructive: oklch(0.565 0.175 40.641);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.311 0.051 116.532);
--chart-1: oklch(0.311 0.051 116.532);
--chart-2: oklch(0.286 0.034 210.399);
--chart-3: oklch(0.25 0.066 333.378);
--chart-4: oklch(0.322 0.04 210.518);
--chart-5: oklch(0.315 0.054 116.696);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.004 113.383);
--muted: oklch(0.187 0.009 209.469);
--muted-foreground: oklch(0.749 0.016 209.43);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.988 0.004 113.383);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.002 113.344);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.311 0.051 116.532);
--primary-foreground: oklch(0.769 0.132 116.72);
--secondary: oklch(0.286 0.034 210.399);
--secondary-foreground: oklch(0.83 0.054 209.551);
--accent: oklch(0.25 0.066 333.378);
--accent-foreground: oklch(0.775 0.097 331.768);
--destructive: oklch(0.628 0.196 40.268);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.311 0.051 116.532);
--chart-1: oklch(0.311 0.051 116.532);
--chart-2: oklch(0.286 0.034 210.399);
--chart-3: oklch(0.25 0.066 333.378);
--chart-4: oklch(0.322 0.04 210.518);
--chart-5: oklch(0.315 0.054 116.696);
}