Nurse for shadcn/ui

Nurse is a shadcn/ui theme built around a near-white primary color (#f6fefe) with near-white accents (#fef6f6). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the near-white primary (#f6fefe) on a neutral background (#020808).

Color palette

TokenLightDark
Background
#f8fcfcmintcream
#020808black
Foreground
#000000black
#f5fafamintcream
Card
#f5fafamintcream
#040c0cblack
Card foreground
#000000black
#f8fbfbghostwhite
Popover
#f8fcfcmintcream
#020808black
Popover foreground
#000000black
#f5fafamintcream
Primary
#f6fefemintcream
#f6fefemintcream
Primary foreground
#0d4f4fdarkslategray
#0d4f4fdarkslategray
Secondary
#fef6f6snow
#fef6f6snow
Secondary foreground
#a71b1bfirebrick
#a71b1bfirebrick
Muted
#e9e2e2gainsboro
#1d1616black
Muted foreground
#514d4ddarkslategray
#b2aeaedarkgray
Accent
#fef6f6snow
#fef6f6snow
Accent foreground
#a71b1bfirebrick
#a71b1bfirebrick
Destructive
#b81f14firebrick
#e94135tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6fefemintcream
#f6fefemintcream

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.26:1AAA
Text on card19.90:1AAA
Primary button9.10:1AAA
Secondary button7.01:1AAA
Muted text6.51:1AA
Accent7.01:1AAA
Destructive6.48:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.02:1AAA
Primary button9.10:1AAA
Secondary button7.01:1AAA
Muted text8.12:1AAA
Accent7.01:1AAA
Destructive3.99:1AA Large

CSS variables

Paste this into your globals.css to use Nurse in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.003 197.101);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.918 0.008 17.308);
  --muted-foreground: oklch(0.425 0.004 17.321);
  --popover: oklch(0.987 0.003 197.101);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.005 197.072);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.99 0.008 197.031);
  --primary-foreground: oklch(0.389 0.062 194.918);
  --secondary: oklch(0.979 0.008 17.291);
  --secondary-foreground: oklch(0.47 0.174 27.228);
  --accent: oklch(0.979 0.008 17.291);
  --accent-foreground: oklch(0.47 0.174 27.228);
  --destructive: oklch(0.504 0.188 29.548);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.99 0.008 197.031);
  --chart-1: oklch(0.99 0.008 197.031);
  --chart-2: oklch(0.979 0.008 17.291);
  --chart-3: oklch(0.979 0.008 17.291);
  --chart-4: oklch(1.01 0.004 197.096);
  --chart-5: oklch(0.99 0.008 197.026);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.013 195.637);
  --foreground: oklch(0.98 0.005 197.08);
  --muted: oklch(0.208 0.012 18.201);
  --muted-foreground: oklch(0.755 0.004 17.237);
  --popover: oklch(0.125 0.013 195.637);
  --popover-foreground: oklch(0.98 0.005 197.08);
  --card: oklch(0.143 0.015 195.632);
  --card-foreground: oklch(0.987 0.003 197.107);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.99 0.008 197.031);
  --primary-foreground: oklch(0.389 0.062 194.918);
  --secondary: oklch(0.979 0.008 17.291);
  --secondary-foreground: oklch(0.47 0.174 27.228);
  --accent: oklch(0.979 0.008 17.291);
  --accent-foreground: oklch(0.47 0.174 27.228);
  --destructive: oklch(0.621 0.206 28.642);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.99 0.008 197.031);
  --chart-1: oklch(0.99 0.008 197.031);
  --chart-2: oklch(0.979 0.008 17.291);
  --chart-3: oklch(0.979 0.008 17.291);
  --chart-4: oklch(1.01 0.004 197.096);
  --chart-5: oklch(0.99 0.008 197.026);
}