Clinic is a shadcn/ui theme built around a pink primary color (#851445) with red accents (#851b14). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#851445) on a neutral background (#040102).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040102black |
| Foreground | #040102black | #fcf8fasnow |
| Card | #ffffffwhite | #040102black |
| Card foreground | #040102black | #fcf8fasnow |
| Popover | #ffffffwhite | #040102black |
| Popover foreground | #040102black | #fcf8fasnow |
| Primary | #851445brown | #851445brown |
| Primary foreground | #f8d3e3mistyrose | #f8d3e3mistyrose |
| Secondary | #85147epurple | #85147epurple |
| Secondary foreground | #f8d3f6lavender | #f8d3f6lavender |
| Muted | #ece4eblavender | #1b131ablack |
| Muted foreground | #676567dimgray | #9a989adarkgray |
| Accent | #851b14maroon | #851b14maroon |
| Accent foreground | #f8d5d3mistyrose | #f8d5d3mistyrose |
| Destructive | #cf1d02firebrick | #fd3517orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #851445brown | #851445brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.78:1 | AAA |
| Text on card | 20.78:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 4.65:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 5.47:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 6.34:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Clinic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.02 348.291);
--muted: oklch(0.928 0.012 327.673);
--muted-foreground: oklch(0.509 0.004 327.621);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.082 0.02 348.291);
--card: oklch(1 0 180);
--card-foreground: oklch(0.082 0.02 348.291);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.409 0.15 1.258);
--primary-foreground: oklch(0.902 0.047 350.129);
--secondary: oklch(0.436 0.183 331.353);
--secondary-foreground: oklch(0.908 0.062 328.198);
--accent: oklch(0.405 0.142 29.097);
--accent-foreground: oklch(0.902 0.04 22.756);
--destructive: oklch(0.546 0.211 31.091);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.409 0.15 1.258);
--chart-1: oklch(0.409 0.15 1.258);
--chart-2: oklch(0.436 0.183 331.353);
--chart-3: oklch(0.405 0.142 29.097);
--chart-4: oklch(0.467 0.196 331.383);
--chart-5: oklch(0.412 0.154 1.859);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.014 348.446);
--foreground: oklch(0.983 0.004 348.848);
--muted: oklch(0.2 0.018 328.377);
--muted-foreground: oklch(0.682 0.004 327.598);
--popover: oklch(0.085 0.014 348.446);
--popover-foreground: oklch(0.983 0.004 348.848);
--card: oklch(0.085 0.014 348.446);
--card-foreground: oklch(0.983 0.004 348.848);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.409 0.15 1.258);
--primary-foreground: oklch(0.902 0.047 350.129);
--secondary: oklch(0.436 0.183 331.353);
--secondary-foreground: oklch(0.908 0.062 328.198);
--accent: oklch(0.405 0.142 29.097);
--accent-foreground: oklch(0.902 0.04 22.756);
--destructive: oklch(0.644 0.236 31.477);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.409 0.15 1.258);
--chart-1: oklch(0.409 0.15 1.258);
--chart-2: oklch(0.436 0.183 331.353);
--chart-3: oklch(0.405 0.142 29.097);
--chart-4: oklch(0.467 0.196 331.383);
--chart-5: oklch(0.412 0.154 1.859);
}