Rehospitalization is a shadcn/ui theme built around a light yellow primary color (#e8dab0) with light blue accents (#b0bee8). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the light yellow primary (#e8dab0) on a yellow-tinted background (#0b0904).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #0b0904black |
| Foreground | #161104black | #ffffffwhite |
| Card | #fdfcf7snow | #0b0904black |
| Card foreground | #161104black | #ffffffwhite |
| Popover | #fdfcf7snow | #0b0904black |
| Popover foreground | #161104black | #ffffffwhite |
| Primary | #e8dab0wheat | #e8dab0wheat |
| Primary foreground | #4f4117darkolivegreen | #4f4117darkolivegreen |
| Secondary | #b0bee8lightsteelblue | #b0bee8lightsteelblue |
| Secondary foreground | #17254fmidnightblue | #17254fmidnightblue |
| Muted | #e5e8f0lavender | #0f121ablack |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #b0bee8lightsteelblue | #b0bee8lightsteelblue |
| Accent foreground | #17254fmidnightblue | #17254fmidnightblue |
| Destructive | #b9410efirebrick | #d54b10chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8dab0wheat | #e8dab0wheat |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.26:1 | AAA |
| Text on card | 18.26:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.67:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 5.48:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.65:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Rehospitalization in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 91.468);
--foreground: oklch(0.18 0.027 93.026);
--muted: oklch(0.931 0.012 271.287);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(0.99 0.007 91.468);
--popover-foreground: oklch(0.18 0.027 93.026);
--card: oklch(0.99 0.007 91.468);
--card-foreground: oklch(0.18 0.027 93.026);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.889 0.057 91.799);
--primary-foreground: oklch(0.381 0.062 90.648);
--secondary: oklch(0.805 0.062 270.539);
--secondary-foreground: oklch(0.278 0.079 267.239);
--accent: oklch(0.805 0.062 270.539);
--accent-foreground: oklch(0.278 0.079 267.239);
--destructive: oklch(0.539 0.164 39.347);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.889 0.057 91.799);
--chart-1: oklch(0.889 0.057 91.799);
--chart-2: oklch(0.805 0.062 270.539);
--chart-3: oklch(0.805 0.062 270.539);
--chart-4: oklch(0.834 0.052 270.727);
--chart-5: oklch(0.892 0.06 91.805);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.013 95.145);
--foreground: oklch(1 0 180);
--muted: oklch(0.181 0.018 270.21);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.141 0.013 95.145);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.013 95.145);
--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.889 0.057 91.799);
--primary-foreground: oklch(0.381 0.062 90.648);
--secondary: oklch(0.805 0.062 270.539);
--secondary-foreground: oklch(0.278 0.079 267.239);
--accent: oklch(0.805 0.062 270.539);
--accent-foreground: oklch(0.278 0.079 267.239);
--destructive: oklch(0.598 0.184 39.133);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.889 0.057 91.799);
--chart-1: oklch(0.889 0.057 91.799);
--chart-2: oklch(0.805 0.062 270.539);
--chart-3: oklch(0.805 0.062 270.539);
--chart-4: oklch(0.834 0.052 270.727);
--chart-5: oklch(0.892 0.06 91.805);
}