Inn is a shadcn/ui theme built around a muted purple primary color (#af749d) with muted red accents (#af7480). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#af749d) on a purple-tinted background (#0e070c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e070cblack |
| Foreground | #000000black | #faf5f8whitesmoke |
| Card | #fcfcfcsnow | #11090eblack |
| Card foreground | #000000black | #fcf8fbsnow |
| Popover | #fcfcfcsnow | #11090eblack |
| Popover foreground | #000000black | #fcf8fbsnow |
| Primary | #af749drosybrown | #af749drosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #a374afmediumpurple | #a374afmediumpurple |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7d6ebgainsboro | #251429black |
| Muted foreground | #655a68dimgray | #a297a5darkgray |
| Accent | #af7480rosybrown | #af7480rosybrown |
| Accent foreground | #000000black | #000000black |
| Destructive | #921207darkred | #ef1e0bred |
| Destructive foreground | #fdd2cepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #af749drosybrown | #af749drosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 5.66:1 | AA |
| Muted text | 4.72:1 | AA |
| Accent | 5.61:1 | AA |
| Destructive | 6.59:1 | AA |
| Text on background | 18.50:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 5.66:1 | AA |
| Muted text | 6.20:1 | AA |
| Accent | 5.61:1 | AA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Inn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.895 0.034 319.455);
--muted-foreground: oklch(0.483 0.025 319.458);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.633 0.093 338.433);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.627 0.102 319.451);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.623 0.076 6.417);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.423 0.162 30.145);
--destructive-foreground: oklch(0.9 0.048 24.186);
--ring: oklch(0.633 0.093 338.433);
--chart-1: oklch(0.633 0.093 338.433);
--chart-2: oklch(0.627 0.102 319.451);
--chart-3: oklch(0.623 0.076 6.417);
--chart-4: oklch(0.654 0.094 319.459);
--chart-5: oklch(0.632 0.103 338.708);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.016 337.255);
--foreground: oklch(0.975 0.007 336.005);
--muted: oklch(0.225 0.047 319.415);
--muted-foreground: oklch(0.691 0.023 319.454);
--popover: oklch(0.152 0.019 337.964);
--popover-foreground: oklch(0.983 0.005 335.959);
--card: oklch(0.152 0.019 337.964);
--card-foreground: oklch(0.983 0.005 335.959);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.633 0.093 338.433);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.627 0.102 319.451);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.623 0.076 6.417);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.606 0.237 30.057);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.633 0.093 338.433);
--chart-1: oklch(0.633 0.093 338.433);
--chart-2: oklch(0.627 0.102 319.451);
--chart-3: oklch(0.623 0.076 6.417);
--chart-4: oklch(0.654 0.094 319.459);
--chart-5: oklch(0.632 0.103 338.708);
}