Medical is a shadcn/ui theme built around a neutral gray primary color (#6a6c6a) with muted light green accents (#cce1cd). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the neutral gray primary (#6a6c6a) on a green-tinted background (#050b05).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #050b05black |
| Foreground | #020d03black | #fcfdfcwhite |
| Card | #f4fbf4whitesmoke | #060e07black |
| Card foreground | #010902black | #ffffffwhite |
| Popover | #f8fcf8mintcream | #050b05black |
| Popover foreground | #020d03black | #fcfdfcwhite |
| Primary | #6a6c6adimgray | #6a6c6adimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e7eee7beige | #19241ablack |
| Secondary foreground | #19241ablack | #abc4acdarkgray |
| Muted | #cde5celightgrey | #1a321cdarkslategray |
| Muted foreground | #4f544fdarkslategray | #abb0abdarkgray |
| Accent | #cce1cdlightgrey | #2a462cdarkslategray |
| Accent foreground | #2d4d2fdarkslategray | #c6ddc7lightgrey |
| Destructive | #862b03saddlebrown | #e54906orangered |
| Destructive foreground | #fdd1bepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6a6c6adimgray | #6a6c6adimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 5.28:1 | AA |
| Secondary button | 13.61:1 | AAA |
| Muted text | 5.76:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 5.28:1 | AA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 6.27:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Medical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.007 147.473);
--foreground: oklch(0.143 0.035 145.582);
--muted: oklch(0.897 0.039 147.105);
--muted-foreground: oklch(0.44 0.01 147.327);
--popover: oklch(0.987 0.007 147.473);
--popover-foreground: oklch(0.143 0.035 145.582);
--card: oklch(0.98 0.011 147.436);
--card-foreground: oklch(0.124 0.03 145.664);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.529 0.004 147.47);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.942 0.012 147.419);
--secondary-foreground: oklch(0.247 0.025 146.491);
--accent: oklch(0.888 0.035 147.147);
--accent-foreground: oklch(0.387 0.062 145.77);
--destructive: oklch(0.422 0.133 39.005);
--destructive-foreground: oklch(0.894 0.056 44.457);
--ring: oklch(0.529 0.004 147.47);
--chart-1: oklch(0.529 0.004 147.47);
--chart-2: oklch(0.942 0.012 147.419);
--chart-3: oklch(0.888 0.035 147.147);
--chart-4: oklch(0.964 0.007 147.469);
--chart-5: oklch(0.533 0.016 147.243);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.018 146.605);
--foreground: oklch(0.993 0.001 147.534);
--muted: oklch(0.291 0.05 145.65);
--muted-foreground: oklch(0.751 0.008 147.434);
--popover: oklch(0.138 0.018 146.605);
--popover-foreground: oklch(0.993 0.001 147.534);
--card: oklch(0.153 0.02 146.441);
--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.529 0.004 147.47);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.247 0.025 146.491);
--secondary-foreground: oklch(0.796 0.044 146.988);
--accent: oklch(0.364 0.056 145.862);
--accent-foreground: oklch(0.873 0.038 147.105);
--destructive: oklch(0.62 0.202 37.717);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.529 0.004 147.47);
--chart-1: oklch(0.529 0.004 147.47);
--chart-2: oklch(0.247 0.025 146.491);
--chart-3: oklch(0.364 0.056 145.862);
--chart-4: oklch(0.281 0.03 146.421);
--chart-5: oklch(0.533 0.016 147.243);
}