Rescue for shadcn/ui

Rescue is a shadcn/ui theme built around a light teal primary color (#e9fbfc) with neutral gray accents (#d6d6d6). The light mode uses a neutral background (#fbfefe). Dark mode keeps the light teal primary (#e9fbfc) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#fbfefewhite
#030707black
Foreground
#020d0dblack
#ffffffwhite
Card
#fbfefewhite
#030707black
Card foreground
#020d0dblack
#ffffffwhite
Popover
#fbfefewhite
#030707black
Popover foreground
#020d0dblack
#ffffffwhite
Primary
#e9fbfcaliceblue
#e9fbfcaliceblue
Primary foreground
#0a4143darkslategray
#0a4143darkslategray
Secondary
#d6d6d6lightgrey
#121616black
Secondary foreground
#3d3d3ddarkslategray
#a5b5b6darkgray
Muted
#efe1e1mistyrose
#101d1eblack
Muted foreground
#564343darkslategray
#a9bcbcsilver
Accent
#d6d6d6lightgrey
#121616black
Accent foreground
#3d3d3ddarkslategray
#a5b5b6darkgray
Destructive
#c03507firebrick
#f86230tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e9fbfcaliceblue
#e9fbfcaliceblue

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button10.63:1AAA
Secondary button7.48:1AAA
Muted text7.25:1AAA
Accent7.48:1AAA
Destructive5.59:1AA
Dark mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button10.63:1AAA
Secondary button8.55:1AAA
Muted text8.69:1AAA
Accent8.55:1AAA
Destructive6.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 199.572);
  --foreground: oklch(0.146 0.02 197.559);
  --muted: oklch(0.921 0.015 17.431);
  --muted-foreground: oklch(0.402 0.028 18.365);
  --popover: oklch(0.994 0.002 199.572);
  --popover-foreground: oklch(0.146 0.02 197.559);
  --card: oklch(0.994 0.002 199.572);
  --card-foreground: oklch(0.146 0.02 197.559);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.975 0.019 199.341);
  --primary-foreground: oklch(0.343 0.054 198.503);
  --secondary: oklch(0.877 0 180);
  --secondary-foreground: oklch(0.361 0 180);
  --accent: oklch(0.877 0 180);
  --accent-foreground: oklch(0.361 0 180);
  --destructive: oklch(0.537 0.182 35.612);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.019 199.341);
  --chart-1: oklch(0.975 0.019 199.341);
  --chart-2: oklch(0.877 0 180);
  --chart-3: oklch(0.877 0 180);
  --chart-4: oklch(0.9 0 188.746);
  --chart-5: oklch(0.976 0.02 199.331);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.011 197.977);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.22 0.019 198.638);
  --muted-foreground: oklch(0.78 0.021 199.25);
  --popover: oklch(0.123 0.011 197.977);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.011 197.977);
  --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.975 0.019 199.341);
  --primary-foreground: oklch(0.343 0.054 198.503);
  --secondary: oklch(0.197 0.006 199.203);
  --secondary-foreground: oklch(0.761 0.018 199.301);
  --accent: oklch(0.197 0.006 199.203);
  --accent-foreground: oklch(0.761 0.018 199.301);
  --destructive: oklch(0.681 0.194 37.941);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.975 0.019 199.341);
  --chart-1: oklch(0.975 0.019 199.341);
  --chart-2: oklch(0.197 0.006 199.203);
  --chart-3: oklch(0.197 0.006 199.203);
  --chart-4: oklch(0.232 0.008 199.16);
  --chart-5: oklch(0.976 0.02 199.331);
}