Respite for shadcn/ui

Respite is a shadcn/ui theme built around a light pink primary color (#fbf4f8) with light blue accents (#f4f8fb). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the light pink primary (#fbf4f8) on a pink-tinted background (#0c0309).

Color palette

TokenLightDark
Background
#fcf8fasnow
#0c0309black
Foreground
#0d0309black
#f9f5f8whitesmoke
Card
#fcf8fasnow
#0c0309black
Card foreground
#0d0309black
#f9f5f8whitesmoke
Popover
#fcf8fasnow
#0c0309black
Popover foreground
#0d0309black
#f9f5f8whitesmoke
Primary
#fbf4f8lavenderblush
#fbf4f8lavenderblush
Primary foreground
#8a336apurple
#8a336apurple
Secondary
#f8fbf4whitesmoke
#f8fbf4whitesmoke
Secondary foreground
#313f17darkslategray
#313f17darkslategray
Muted
#e8eddebeige
#1c2112black
Muted foreground
#677057dimgray
#9fa88fdarkseagreen
Accent
#f4f8fbghostwhite
#f4f8fbghostwhite
Accent foreground
#17313fdarkslategray
#17313fdarkslategray
Destructive
#850905maroon
#f71f18red
Destructive foreground
#fdc1bflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbf4f8lavenderblush
#fbf4f8lavenderblush

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button7.01:1AAA
Secondary button10.83:1AAA
Muted text4.36:1AA Large
Accent12.72:1AAA
Destructive6.65:1AA
Dark mode
Text on background18.80:1AAA
Text on card18.80:1AAA
Primary button7.01:1AAA
Secondary button10.83:1AAA
Muted text6.63:1AA
Accent12.72:1AAA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 338.821);
  --foreground: oklch(0.121 0.03 339.536);
  --muted: oklch(0.938 0.021 123.275);
  --muted-foreground: oklch(0.531 0.041 124.133);
  --popover: oklch(0.983 0.005 338.821);
  --popover-foreground: oklch(0.121 0.03 339.536);
  --card: oklch(0.983 0.005 338.821);
  --card-foreground: oklch(0.121 0.03 339.536);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.973 0.01 338.928);
  --primary-foreground: oklch(0.462 0.134 344.694);
  --secondary: oklch(0.984 0.01 123.079);
  --secondary-foreground: oklch(0.346 0.065 126.351);
  --accent: oklch(0.977 0.006 232.664);
  --accent-foreground: oklch(0.299 0.041 235.795);
  --destructive: oklch(0.391 0.154 29.299);
  --destructive-foreground: oklch(0.864 0.069 20.855);
  --ring: oklch(0.973 0.01 338.928);
  --chart-1: oklch(0.973 0.01 338.928);
  --chart-2: oklch(0.984 0.01 123.079);
  --chart-3: oklch(0.977 0.006 232.664);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.973 0.01 338.942);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.025 339.329);
  --foreground: oklch(0.975 0.005 338.833);
  --muted: oklch(0.238 0.029 124.912);
  --muted-foreground: oklch(0.718 0.038 123.749);
  --popover: oklch(0.122 0.025 339.329);
  --popover-foreground: oklch(0.975 0.005 338.833);
  --card: oklch(0.122 0.025 339.329);
  --card-foreground: oklch(0.975 0.005 338.833);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.973 0.01 338.928);
  --primary-foreground: oklch(0.462 0.134 344.694);
  --secondary: oklch(0.984 0.01 123.079);
  --secondary-foreground: oklch(0.346 0.065 126.351);
  --accent: oklch(0.977 0.006 232.664);
  --accent-foreground: oklch(0.299 0.041 235.795);
  --destructive: oklch(0.621 0.242 29.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.973 0.01 338.928);
  --chart-1: oklch(0.973 0.01 338.928);
  --chart-2: oklch(0.984 0.01 123.079);
  --chart-3: oklch(0.977 0.006 232.664);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.973 0.01 338.942);
}