Nurse is a shadcn/ui theme built around a blue primary color (#4862e5) with muted light blue accents (#cdced5). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the blue primary (#4862e5) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #04050bblack |
| Foreground | #020308black | #fcfcfdwhite |
| Card | #f7f8fdghostwhite | #04050bblack |
| Card foreground | #020308black | #fcfcfdwhite |
| Popover | #f7f8fdghostwhite | #04050bblack |
| Popover foreground | #020308black | #fcfcfdwhite |
| Primary | #4862e5royalblue | #4862e5royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e0e0e1gainsboro | #1c1d21black |
| Secondary foreground | #464649darkslategray | #b1b3besilver |
| Muted | #d5d6dcgainsboro | #23242adarkslategray |
| Muted foreground | #494d5fdarkslategray | #a0a4b6darkgray |
| Accent | #cdced5lightgrey | #2c2f3fdarkslategray |
| Accent foreground | #33353ddarkslategray | #c6c9d7lightgrey |
| Destructive | #b24b10sienna | #ef8243coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4862e5royalblue | #4862e5royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 5.04:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 5.35:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 5.04:1 | AA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 6.25:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 7.94:1 | AAA |
Paste this into your globals.css to use Nurse in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 277.17);
--foreground: oklch(0.099 0.019 269.531);
--muted: oklch(0.878 0.008 277.135);
--muted-foreground: oklch(0.424 0.031 276.148);
--popover: oklch(0.98 0.006 277.17);
--popover-foreground: oklch(0.099 0.019 269.531);
--card: oklch(0.98 0.006 277.17);
--card-foreground: oklch(0.099 0.019 269.531);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.553 0.2 270.015);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.907 0.001 277.238);
--secondary-foreground: oklch(0.396 0.004 277.119);
--accent: oklch(0.853 0.01 277.103);
--accent-foreground: oklch(0.33 0.015 276.589);
--destructive: oklch(0.541 0.149 44.531);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.553 0.2 270.015);
--chart-1: oklch(0.553 0.2 270.015);
--chart-2: oklch(0.907 0.001 277.238);
--chart-3: oklch(0.853 0.01 277.103);
--chart-4: oklch(0.93 0.001 277.244);
--chart-5: oklch(0.55 0.207 269.641);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.015 272.606);
--foreground: oklch(0.992 0.001 277.248);
--muted: oklch(0.261 0.011 276.653);
--muted-foreground: oklch(0.72 0.027 276.721);
--popover: oklch(0.12 0.015 272.606);
--popover-foreground: oklch(0.992 0.001 277.248);
--card: oklch(0.12 0.015 272.606);
--card-foreground: oklch(0.992 0.001 277.248);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.553 0.2 270.015);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.231 0.009 276.695);
--secondary-foreground: oklch(0.769 0.015 276.978);
--accent: oklch(0.31 0.029 275.763);
--accent-foreground: oklch(0.837 0.02 276.912);
--destructive: oklch(0.717 0.154 48.462);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.553 0.2 270.015);
--chart-1: oklch(0.553 0.2 270.015);
--chart-2: oklch(0.231 0.009 276.695);
--chart-3: oklch(0.31 0.029 275.763);
--chart-4: oklch(0.261 0.011 276.653);
--chart-5: oklch(0.55 0.207 269.641);
}