House is a shadcn/ui theme built around a neutral gray primary color (#6d6d69) with neutral gray accents (#6d696d). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#6d6d69) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080901black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #6d6d69dimgray | #6d6d69dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #696d6ddimgray | #696d6ddimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edf1f2whitesmoke | #0d1112black |
| Muted foreground | #4c4d4ddarkslategray | #b2b3b3darkgray |
| Accent | #6d696ddimgray | #6d696ddimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b9160efirebrick | #ee2a20crimson |
| Destructive foreground | #fffafasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d6d69dimgray | #6d6d69dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 5.19:1 | AA |
| Secondary button | 5.26:1 | AA |
| Muted text | 7.47:1 | AAA |
| Accent | 5.39:1 | AA |
| Destructive | 6.37:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.19:1 | AA |
| Secondary button | 5.26:1 | AA |
| Muted text | 9.04:1 | AAA |
| Accent | 5.39:1 | AA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use House in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.134 0.024 115.069);
--muted: oklch(0.956 0.005 211.04);
--muted-foreground: oklch(0.419 0.002 211.04);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.106 0.019 115.069);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.019 115.069);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.534 0.007 114.297);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.53 0.005 211.038);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.526 0.008 331.016);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.501 0.194 29.355);
--destructive-foreground: oklch(0.99 0.004 20.946);
--ring: oklch(0.534 0.007 114.297);
--chart-1: oklch(0.534 0.007 114.297);
--chart-2: oklch(0.53 0.005 211.038);
--chart-3: oklch(0.526 0.008 331.016);
--chart-4: oklch(0.557 0.005 211.038);
--chart-5: oklch(0.542 0.016 114.628);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.007 211.088);
--muted-foreground: oklch(0.766 0.001 211.043);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.534 0.007 114.297);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.53 0.005 211.038);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.526 0.008 331.016);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.612 0.229 29.059);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.534 0.007 114.297);
--chart-1: oklch(0.534 0.007 114.297);
--chart-2: oklch(0.53 0.005 211.038);
--chart-3: oklch(0.526 0.008 331.016);
--chart-4: oklch(0.557 0.005 211.038);
--chart-5: oklch(0.542 0.016 114.628);
}