Hospital is a shadcn/ui theme built around a muted light green primary color (#bfd0be) with muted light purple accents (#cfbed0). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted light green primary (#bfd0be) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #000000black |
| Foreground | #050f05black | #fcfdfcwhite |
| Card | #f8fcf8mintcream | #030303black |
| Card foreground | #040b04black | #ffffffwhite |
| Popover | #f8fcf8mintcream | #030303black |
| Popover foreground | #040b04black | #ffffffwhite |
| Primary | #bfd0besilver | #bfd0besilver |
| Primary foreground | #273527darkslategray | #273527darkslategray |
| Secondary | #cfbed0thistle | #cfbed0thistle |
| Secondary foreground | #352735darkslategray | #352735darkslategray |
| Muted | #ead7eagainsboro | #281528black |
| Muted foreground | #735874dimgray | #a68ba7darkgray |
| Accent | #cfbed0thistle | #cfbed0thistle |
| Accent foreground | #352735darkslategray | #352735darkslategray |
| Destructive | #d93802orangered | #fc4103orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bfd0besilver | #bfd0besilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.14:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 4.54:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.64:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 5.60:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Hospital in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 144.599);
--foreground: oklch(0.155 0.028 143.14);
--muted: oklch(0.899 0.033 324.851);
--muted-foreground: oklch(0.498 0.056 325.298);
--popover: oklch(0.987 0.006 144.58);
--popover-foreground: oklch(0.139 0.024 143.127);
--card: oklch(0.987 0.006 144.58);
--card-foreground: oklch(0.139 0.024 143.127);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.839 0.031 144.378);
--primary-foreground: oklch(0.312 0.032 143.931);
--secondary: oklch(0.821 0.031 324.858);
--secondary-foreground: oklch(0.294 0.033 325.295);
--accent: oklch(0.821 0.031 324.858);
--accent-foreground: oklch(0.294 0.033 325.295);
--destructive: oklch(0.584 0.204 34.939);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.839 0.031 144.378);
--chart-1: oklch(0.839 0.031 144.378);
--chart-2: oklch(0.821 0.031 324.858);
--chart-3: oklch(0.821 0.031 324.858);
--chart-4: oklch(0.846 0.027 324.818);
--chart-5: oklch(0.841 0.037 144.333);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 144.611);
--muted: oklch(0.23 0.046 325.762);
--muted-foreground: oklch(0.67 0.052 325.098);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.839 0.031 144.378);
--primary-foreground: oklch(0.312 0.032 143.931);
--secondary: oklch(0.821 0.031 324.858);
--secondary-foreground: oklch(0.294 0.033 325.295);
--accent: oklch(0.821 0.031 324.858);
--accent-foreground: oklch(0.294 0.033 325.295);
--destructive: oklch(0.652 0.23 34.686);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.839 0.031 144.378);
--chart-1: oklch(0.839 0.031 144.378);
--chart-2: oklch(0.821 0.031 324.858);
--chart-3: oklch(0.821 0.031 324.858);
--chart-4: oklch(0.846 0.027 324.818);
--chart-5: oklch(0.841 0.037 144.333);
}