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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 6.54:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 6.99:1 | AA |
| Accent | 8.80:1 | AAA |
| Destructive | 4.15:1 | AA Large |
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);
}