Roommate is a shadcn/ui theme built around a muted light green primary color (#b4cfc1) with muted light teal accents (#b4cfcf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#b4cfc1) on a green-tinted background (#060e0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060e0ablack |
| Foreground | #010905black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #08110dblack |
| Card foreground | #010502black | #ffffffwhite |
| Popover | #fcfcfcsnow | #08110dblack |
| Popover foreground | #010502black | #ffffffwhite |
| Primary | #b4cfc1silver | #b4cfc1silver |
| Primary foreground | #203229darkslategray | #203229darkslategray |
| Secondary | #b5cfb4silver | #b5cfb4silver |
| Secondary foreground | #203220darkslategray | #203220darkslategray |
| Muted | #d8dfd8gainsboro | #202720black |
| Muted foreground | #526c51dimgray | #94ae93darkseagreen |
| Accent | #b4cfcflightsteelblue | #b4cfcflightsteelblue |
| Accent foreground | #203231darkslategray | #203231darkslategray |
| Destructive | #8d1907darkred | #f33c20orangered |
| Destructive foreground | #fcd0capink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b4cfc1silver | #b4cfc1silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 4.26:1 | AA Large |
| Accent | 8.19:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 6.34:1 | AA |
| Accent | 8.19:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Roommate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.127 0.022 164.433);
--muted: oklch(0.896 0.012 145.005);
--muted-foreground: oklch(0.501 0.052 144.347);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.1 0.018 164.433);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.018 164.433);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.831 0.035 163.163);
--primary-foreground: oklch(0.297 0.029 161.444);
--secondary: oklch(0.828 0.047 144.695);
--secondary-foreground: oklch(0.295 0.04 144.102);
--accent: oklch(0.835 0.029 195.381);
--accent-foreground: oklch(0.301 0.023 194.663);
--destructive: oklch(0.417 0.153 31.52);
--destructive-foreground: oklch(0.895 0.05 28.326);
--ring: oklch(0.831 0.035 163.163);
--chart-1: oklch(0.831 0.035 163.163);
--chart-2: oklch(0.828 0.047 144.695);
--chart-3: oklch(0.835 0.029 195.381);
--chart-4: oklch(0.85 0.041 144.758);
--chart-5: oklch(0.834 0.039 163.01);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.015 162.917);
--foreground: oklch(0.993 0.001 164.263);
--muted: oklch(0.264 0.016 144.652);
--muted-foreground: oklch(0.723 0.047 144.628);
--popover: oklch(0.168 0.018 161.516);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.168 0.018 161.516);
--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.831 0.035 163.163);
--primary-foreground: oklch(0.297 0.029 161.444);
--secondary: oklch(0.828 0.047 144.695);
--secondary-foreground: oklch(0.295 0.04 144.102);
--accent: oklch(0.835 0.029 195.381);
--accent-foreground: oklch(0.301 0.023 194.663);
--destructive: oklch(0.634 0.222 31.634);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.831 0.035 163.163);
--chart-1: oklch(0.831 0.035 163.163);
--chart-2: oklch(0.828 0.047 144.695);
--chart-3: oklch(0.835 0.029 195.381);
--chart-4: oklch(0.85 0.041 144.758);
--chart-5: oklch(0.834 0.039 163.01);
}