Medical is a shadcn/ui theme built around a violet primary color (#76309c) with teal accents (#309c76). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#76309c) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030104black |
| Foreground | #0f0415black | #ffffffwhite |
| Card | #fcfcfcsnow | #060308black |
| Card foreground | #0c0311black | #ffffffwhite |
| Popover | #fcfcfcsnow | #060308black |
| Popover foreground | #0c0311black | #ffffffwhite |
| Primary | #76309crebeccapurple | #76309crebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9c7630sienna | #9c7630sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edebe8linen | #171512black |
| Muted foreground | #53504bdarkslategray | #b4b1acdarkgray |
| Accent | #309c76mediumseagreen | #309c76mediumseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c91808firebrick | #dc1b09red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #76309crebeccapurple | #76309crebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 4.15:1 | AA Large |
| Muted text | 6.75:1 | AA |
| Accent | 3.41:1 | AA Large |
| Destructive | 5.81:1 | AA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 4.15:1 | AA Large |
| Muted text | 8.52:1 | AAA |
| Accent | 3.41:1 | AA Large |
| Destructive | 4.98:1 | AA |
Paste this into your globals.css to use Medical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.042 313.571);
--muted: oklch(0.941 0.004 83.059);
--muted-foreground: oklch(0.433 0.009 83.063);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.129 0.037 314.58);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.129 0.037 314.58);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.459 0.172 311.268);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.59 0.099 80.072);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.622 0.113 165.488);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.532 0.208 30.074);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.459 0.172 311.268);
--chart-1: oklch(0.459 0.172 311.268);
--chart-2: oklch(0.59 0.099 80.072);
--chart-3: oklch(0.622 0.113 165.488);
--chart-4: oklch(0.622 0.105 80.013);
--chart-5: oklch(0.459 0.18 311.008);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.015 315.823);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.006 83.05);
--muted-foreground: oklch(0.762 0.008 83.064);
--popover: oklch(0.106 0.019 315.823);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.106 0.019 315.823);
--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.459 0.172 311.268);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.59 0.099 80.072);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.622 0.113 165.488);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.57 0.223 30.056);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.459 0.172 311.268);
--chart-1: oklch(0.459 0.172 311.268);
--chart-2: oklch(0.59 0.099 80.072);
--chart-3: oklch(0.622 0.113 165.488);
--chart-4: oklch(0.622 0.105 80.013);
--chart-5: oklch(0.459 0.18 311.008);
}