Tenement is a shadcn/ui theme built around a deep teal primary color (#172b23) with deep pink accents (#2b171f). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the deep teal primary (#172b23) on a teal-tinted background (#060e0b).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfbmintcream | #060e0bblack |
| Foreground | #03120cblack | #f8fcfamintcream |
| Card | #f7fdfbmintcream | #060e0bblack |
| Card foreground | #03120cblack | #f8fcfamintcream |
| Popover | #f7fdfbmintcream | #060e0bblack |
| Popover foreground | #03120cblack | #f8fcfamintcream |
| Primary | #172b23black | #172b23black |
| Primary foreground | #a5cfbesilver | #a5cfbesilver |
| Secondary | #2b171fblack | #2b171fblack |
| Secondary foreground | #cfa5b6silver | #cfa5b6silver |
| Muted | #eeecedwhitesmoke | #131112black |
| Muted foreground | #4a4547darkslategray | #bab5b7silver |
| Accent | #2b171fblack | #2b171fblack |
| Accent foreground | #cfa5b6silver | #cfa5b6silver |
| Destructive | #71140amaroon | #eb2e19orangered |
| Destructive foreground | #f8bbb4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #172b23black | #172b23black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.61:1 | AAA |
| Text on card | 18.61:1 | AAA |
| Primary button | 8.68:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 8.68:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 9.31:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Tenement in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.008 170.404);
--foreground: oklch(0.164 0.027 167.62);
--muted: oklch(0.945 0.003 350.713);
--muted-foreground: oklch(0.395 0.009 351.227);
--popover: oklch(0.989 0.008 170.404);
--popover-foreground: oklch(0.164 0.027 167.62);
--card: oklch(0.989 0.008 170.404);
--card-foreground: oklch(0.164 0.027 167.62);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.27 0.031 166.726);
--primary-foreground: oklch(0.821 0.051 168.709);
--secondary: oklch(0.235 0.036 354.648);
--secondary-foreground: oklch(0.765 0.055 352.563);
--accent: oklch(0.235 0.036 354.648);
--accent-foreground: oklch(0.765 0.055 352.563);
--destructive: oklch(0.357 0.128 30.47);
--destructive-foreground: oklch(0.846 0.072 25.918);
--ring: oklch(0.27 0.031 166.726);
--chart-1: oklch(0.27 0.031 166.726);
--chart-2: oklch(0.235 0.036 354.648);
--chart-3: oklch(0.235 0.036 354.648);
--chart-4: oklch(0.265 0.043 354.895);
--chart-5: oklch(0.273 0.034 166.352);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.016 168.803);
--foreground: oklch(0.987 0.005 170.491);
--muted: oklch(0.179 0.005 351.332);
--muted-foreground: oklch(0.778 0.007 350.884);
--popover: oklch(0.155 0.016 168.803);
--popover-foreground: oklch(0.987 0.005 170.491);
--card: oklch(0.155 0.016 168.803);
--card-foreground: oklch(0.987 0.005 170.491);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.27 0.031 166.726);
--primary-foreground: oklch(0.821 0.051 168.709);
--secondary: oklch(0.235 0.036 354.648);
--secondary-foreground: oklch(0.765 0.055 352.563);
--accent: oklch(0.235 0.036 354.648);
--accent-foreground: oklch(0.765 0.055 352.563);
--destructive: oklch(0.608 0.225 30.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.27 0.031 166.726);
--chart-1: oklch(0.27 0.031 166.726);
--chart-2: oklch(0.235 0.036 354.648);
--chart-3: oklch(0.235 0.036 354.648);
--chart-4: oklch(0.265 0.043 354.895);
--chart-5: oklch(0.273 0.034 166.352);
}