Nursing is a shadcn/ui theme built around a light purple primary color (#f3d8ec) with light red accents (#f3d8df). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light purple primary (#f3d8ec) on a purple-tinted background (#0b0409).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0b0409black |
| Foreground | #0d020ablack | #fdfcfdwhite |
| Card | #fefbfdsnow | #0b0409black |
| Card foreground | #0d020ablack | #fdfcfdwhite |
| Popover | #fefbfdsnow | #0b0409black |
| Popover foreground | #0d020ablack | #fdfcfdwhite |
| Primary | #f3d8ecmistyrose | #f3d8ecmistyrose |
| Primary foreground | #74255fpurple | #74255fpurple |
| Secondary | #ecd8f3lavender | #ecd8f3lavender |
| Secondary foreground | #612574rebeccapurple | #612574rebeccapurple |
| Muted | #eeebefwhitesmoke | #131014black |
| Muted foreground | #625167dimgray | #a998aedarkgray |
| Accent | #f3d8dfmistyrose | #f3d8dfmistyrose |
| Accent foreground | #742538brown | #742538brown |
| Destructive | #b30f09firebrick | #df130cred |
| Destructive foreground | #fef1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3d8ecmistyrose | #f3d8ecmistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.01:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 4.96:1 | AA |
Paste this into your globals.css to use Nursing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 334.603);
--foreground: oklch(0.12 0.035 336.049);
--muted: oklch(0.944 0.007 318.323);
--muted-foreground: oklch(0.459 0.041 318.238);
--popover: oklch(0.991 0.004 334.603);
--popover-foreground: oklch(0.12 0.035 336.049);
--card: oklch(0.991 0.004 334.603);
--card-foreground: oklch(0.12 0.035 336.049);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.911 0.038 335.241);
--primary-foreground: oklch(0.405 0.129 339.855);
--secondary: oklch(0.908 0.041 318.285);
--secondary-foreground: oklch(0.39 0.137 317.439);
--accent: oklch(0.907 0.03 1.863);
--accent-foreground: oklch(0.39 0.11 9.697);
--destructive: oklch(0.487 0.193 29.169);
--destructive-foreground: oklch(0.968 0.014 19.816);
--ring: oklch(0.911 0.038 335.241);
--chart-1: oklch(0.911 0.038 335.241);
--chart-2: oklch(0.908 0.041 318.285);
--chart-3: oklch(0.907 0.03 1.863);
--chart-4: oklch(0.935 0.028 318.3);
--chart-5: oklch(0.91 0.04 335.283);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.02 335.144);
--foreground: oklch(0.992 0.002 334.562);
--muted: oklch(0.178 0.01 318.273);
--muted-foreground: oklch(0.702 0.037 318.278);
--popover: oklch(0.125 0.02 335.144);
--popover-foreground: oklch(0.992 0.002 334.562);
--card: oklch(0.125 0.02 335.144);
--card-foreground: oklch(0.992 0.002 334.562);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.911 0.038 335.241);
--primary-foreground: oklch(0.405 0.129 339.855);
--secondary: oklch(0.908 0.041 318.285);
--secondary-foreground: oklch(0.39 0.137 317.439);
--accent: oklch(0.907 0.03 1.863);
--accent-foreground: oklch(0.39 0.11 9.697);
--destructive: oklch(0.572 0.228 29.231);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.911 0.038 335.241);
--chart-1: oklch(0.911 0.038 335.241);
--chart-2: oklch(0.908 0.041 318.285);
--chart-3: oklch(0.907 0.03 1.863);
--chart-4: oklch(0.935 0.028 318.3);
--chart-5: oklch(0.91 0.04 335.283);
}