Sanctuary for shadcn/ui

Sanctuary is a shadcn/ui theme built around a deep teal primary color (#0b4743) with neutral gray accents (#d5d7d7). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0b4743) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#ffffffwhite
#010404black
Foreground
#000000black
#f6f9f9whitesmoke
Card
#ffffffwhite
#010404black
Card foreground
#000000black
#f6f9f9whitesmoke
Popover
#ffffffwhite
#010404black
Popover foreground
#000000black
#f6f9f9whitesmoke
Primary
#0b4743darkslategray
#0b4743darkslategray
Primary foreground
#3de1d6turquoise
#3de1d6turquoise
Secondary
#d5d7d7lightgrey
#151e1dblack
Secondary foreground
#3b3f3fdarkslategray
#a5c0besilver
Muted
#cee9e7gainsboro
#16312fdarkslategray
Muted foreground
#44504fdarkslategray
#afbbbasilver
Accent
#d5d7d7lightgrey
#151e1dblack
Accent foreground
#3b3f3fdarkslategray
#a5c0besilver
Destructive
#bd190afirebrick
#f32412orangered
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b4743darkslategray
#0b4743darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.51:1AA
Secondary button7.40:1AAA
Muted text6.54:1AA
Accent7.40:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button6.51:1AA
Secondary button8.80:1AAA
Muted text6.99:1AA
Accent8.80:1AAA
Destructive4.15:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.913 0.029 191.771);
  --muted-foreground: oklch(0.42 0.015 191.675);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.36 0.058 188.101);
  --primary-foreground: oklch(0.825 0.131 188.223);
  --secondary: oklch(0.879 0.003 192.363);
  --secondary-foreground: oklch(0.364 0.005 192.143);
  --accent: oklch(0.879 0.003 192.363);
  --accent-foreground: oklch(0.364 0.005 192.143);
  --destructive: oklch(0.51 0.197 30.088);
  --destructive-foreground: oklch(0.99 0.005 23.625);
  --ring: oklch(0.36 0.058 188.101);
  --chart-1: oklch(0.36 0.058 188.101);
  --chart-2: oklch(0.879 0.003 192.363);
  --chart-3: oklch(0.879 0.003 192.363);
  --chart-4: oklch(0.902 0.002 192.377);
  --chart-5: oklch(0.363 0.059 187.974);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.01 191.51);
  --foreground: oklch(0.979 0.003 192.354);
  --muted: oklch(0.292 0.033 189.86);
  --muted-foreground: oklch(0.783 0.013 192.076);
  --popover: oklch(0.098 0.01 191.51);
  --popover-foreground: oklch(0.979 0.003 192.354);
  --card: oklch(0.098 0.01 191.51);
  --card-foreground: oklch(0.979 0.003 192.354);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.36 0.058 188.101);
  --primary-foreground: oklch(0.825 0.131 188.223);
  --secondary: oklch(0.226 0.013 191.185);
  --secondary-foreground: oklch(0.788 0.03 191.63);
  --accent: oklch(0.226 0.013 191.185);
  --accent-foreground: oklch(0.788 0.03 191.63);
  --destructive: oklch(0.616 0.237 30.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.36 0.058 188.101);
  --chart-1: oklch(0.36 0.058 188.101);
  --chart-2: oklch(0.226 0.013 191.185);
  --chart-3: oklch(0.226 0.013 191.185);
  --chart-4: oklch(0.262 0.017 191.086);
  --chart-5: oklch(0.363 0.059 187.974);
}