Rehospitalization for shadcn/ui

Rehospitalization is a shadcn/ui theme built around a light yellow primary color (#e8dab0) with light blue accents (#b0bee8). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the light yellow primary (#e8dab0) on a yellow-tinted background (#0b0904).

Color palette

TokenLightDark
Background
#fdfcf7snow
#0b0904black
Foreground
#161104black
#ffffffwhite
Card
#fdfcf7snow
#0b0904black
Card foreground
#161104black
#ffffffwhite
Popover
#fdfcf7snow
#0b0904black
Popover foreground
#161104black
#ffffffwhite
Primary
#e8dab0wheat
#e8dab0wheat
Primary foreground
#4f4117darkolivegreen
#4f4117darkolivegreen
Secondary
#b0bee8lightsteelblue
#b0bee8lightsteelblue
Secondary foreground
#17254fmidnightblue
#17254fmidnightblue
Muted
#e5e8f0lavender
#0f121ablack
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#b0bee8lightsteelblue
#b0bee8lightsteelblue
Accent foreground
#17254fmidnightblue
#17254fmidnightblue
Destructive
#b9410efirebrick
#d54b10chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8dab0wheat
#e8dab0wheat

Contrast

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

Light mode
Text on background18.26:1AAA
Text on card18.26:1AAA
Primary button7.18:1AAA
Secondary button8.04:1AAA
Muted text6.67:1AA
Accent8.04:1AAA
Destructive5.48:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button7.18:1AAA
Secondary button8.04:1AAA
Muted text8.65:1AAA
Accent8.04:1AAA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 91.468);
  --foreground: oklch(0.18 0.027 93.026);
  --muted: oklch(0.931 0.012 271.287);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.99 0.007 91.468);
  --popover-foreground: oklch(0.18 0.027 93.026);
  --card: oklch(0.99 0.007 91.468);
  --card-foreground: oklch(0.18 0.027 93.026);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.889 0.057 91.799);
  --primary-foreground: oklch(0.381 0.062 90.648);
  --secondary: oklch(0.805 0.062 270.539);
  --secondary-foreground: oklch(0.278 0.079 267.239);
  --accent: oklch(0.805 0.062 270.539);
  --accent-foreground: oklch(0.278 0.079 267.239);
  --destructive: oklch(0.539 0.164 39.347);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.889 0.057 91.799);
  --chart-1: oklch(0.889 0.057 91.799);
  --chart-2: oklch(0.805 0.062 270.539);
  --chart-3: oklch(0.805 0.062 270.539);
  --chart-4: oklch(0.834 0.052 270.727);
  --chart-5: oklch(0.892 0.06 91.805);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.013 95.145);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.181 0.018 270.21);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.141 0.013 95.145);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.013 95.145);
  --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.889 0.057 91.799);
  --primary-foreground: oklch(0.381 0.062 90.648);
  --secondary: oklch(0.805 0.062 270.539);
  --secondary-foreground: oklch(0.278 0.079 267.239);
  --accent: oklch(0.805 0.062 270.539);
  --accent-foreground: oklch(0.278 0.079 267.239);
  --destructive: oklch(0.598 0.184 39.133);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.889 0.057 91.799);
  --chart-1: oklch(0.889 0.057 91.799);
  --chart-2: oklch(0.805 0.062 270.539);
  --chart-3: oklch(0.805 0.062 270.539);
  --chart-4: oklch(0.834 0.052 270.727);
  --chart-5: oklch(0.892 0.06 91.805);
}