Residence is a shadcn/ui theme built around a vivid light teal primary color (#99f5df) with vivid light red accents (#f599ae). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid light teal primary (#99f5df) on a neutral background (#020807).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #020807black |
| Foreground | #04100dblack | #fcfdfdwhite |
| Card | #f7fdfbmintcream | #040c0ablack |
| Card foreground | #030c0ablack | #ffffffwhite |
| Popover | #fbfefdwhite | #020807black |
| Popover foreground | #04100dblack | #fcfdfdwhite |
| Primary | #99f5dfpaleturquoise | #99f5dfpaleturquoise |
| Primary foreground | #085442darkslategray | #085442darkslategray |
| Secondary | #f599aelightpink | #f599aelightpink |
| Secondary foreground | #54081amaroon | #54081amaroon |
| Muted | #f6eff0whitesmoke | #10090bblack |
| Muted foreground | #574c4fdarkslategray | #b3a8aadarkgray |
| Accent | #f599aelightpink | #f599aelightpink |
| Accent foreground | #54081amaroon | #54081amaroon |
| Destructive | #a72b02firebrick | #e33b02orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #99f5dfpaleturquoise | #99f5dfpaleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 7.03:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 7.03:1 | AAA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Residence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 180.87);
--foreground: oklch(0.16 0.019 178.512);
--muted: oklch(0.957 0.008 1.201);
--muted-foreground: oklch(0.428 0.016 1.973);
--popover: oklch(0.994 0.003 180.87);
--popover-foreground: oklch(0.16 0.019 178.512);
--card: oklch(0.989 0.006 180.778);
--card-foreground: oklch(0.143 0.016 180.371);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.906 0.093 177.556);
--primary-foreground: oklch(0.397 0.074 171.602);
--secondary: oklch(0.782 0.113 4.876);
--secondary-foreground: oklch(0.29 0.105 14.866);
--accent: oklch(0.782 0.113 4.876);
--accent-foreground: oklch(0.29 0.105 14.866);
--destructive: oklch(0.481 0.166 35.497);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.093 177.556);
--chart-1: oklch(0.906 0.093 177.556);
--chart-2: oklch(0.782 0.113 4.876);
--chart-3: oklch(0.782 0.113 4.876);
--chart-4: oklch(0.81 0.096 4.169);
--chart-5: oklch(0.909 0.096 177.436);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 180.949);
--foreground: oklch(0.993 0.001 180.932);
--muted: oklch(0.151 0.014 3.212);
--muted-foreground: oklch(0.741 0.014 1.472);
--popover: oklch(0.124 0.013 180.949);
--popover-foreground: oklch(0.993 0.001 180.932);
--card: oklch(0.142 0.015 180.513);
--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.906 0.093 177.556);
--primary-foreground: oklch(0.397 0.074 171.602);
--secondary: oklch(0.782 0.113 4.876);
--secondary-foreground: oklch(0.29 0.105 14.866);
--accent: oklch(0.782 0.113 4.876);
--accent-foreground: oklch(0.29 0.105 14.866);
--destructive: oklch(0.603 0.211 34.858);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.093 177.556);
--chart-1: oklch(0.906 0.093 177.556);
--chart-2: oklch(0.782 0.113 4.876);
--chart-3: oklch(0.782 0.113 4.876);
--chart-4: oklch(0.81 0.096 4.169);
--chart-5: oklch(0.909 0.096 177.436);
}