Compassion is a shadcn/ui theme built around a teal primary color (#3bba92) with pink accents (#ba3b63). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#3bba92) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #05140fblack | #f4faf8mintcream |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #04100cblack | #f8fcfbmintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #05140fblack | #f4faf8mintcream |
| Primary | #3bba92mediumseagreen | #3bba92mediumseagreen |
| Primary foreground | #0a1f18black | #0a1f18black |
| Secondary | #ba3b63indianred | #ba3b63indianred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #efe6e9linen | #191013black |
| Muted foreground | #664d55dimgray | #b299a1darkgray |
| Accent | #ba3b63indianred | #ba3b63indianred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c52f11firebrick | #e63714orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3bba92mediumseagreen | #3bba92mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.86:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 5.39:1 | AA |
| Muted text | 6.22:1 | AA |
| Accent | 5.39:1 | AA |
| Destructive | 5.53:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 5.39:1 | AA |
| Muted text | 7.09:1 | AAA |
| Accent | 5.39:1 | AA |
| Destructive | 4.27:1 | AA Large |
Paste this into your globals.css to use Compassion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.176 0.024 171.67);
--muted: oklch(0.933 0.011 355.951);
--muted-foreground: oklch(0.448 0.036 357.813);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.176 0.024 171.67);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.16 0.021 173.064);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.709 0.126 167.699);
--primary-foreground: oklch(0.219 0.031 170.319);
--secondary: oklch(0.546 0.165 5.189);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.546 0.165 5.189);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.541 0.19 32.715);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.126 167.699);
--chart-1: oklch(0.709 0.126 167.699);
--chart-2: oklch(0.546 0.165 5.189);
--chart-3: oklch(0.546 0.165 5.189);
--chart-4: oklch(0.57 0.168 4.809);
--chart-5: oklch(0.718 0.131 167.264);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.007 175.419);
--muted: oklch(0.185 0.017 358.1);
--muted-foreground: oklch(0.708 0.031 356.863);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.007 175.419);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.004 175.486);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.709 0.126 167.699);
--primary-foreground: oklch(0.219 0.031 170.319);
--secondary: oklch(0.546 0.165 5.189);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.546 0.165 5.189);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.606 0.215 32.639);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.126 167.699);
--chart-1: oklch(0.709 0.126 167.699);
--chart-2: oklch(0.546 0.165 5.189);
--chart-3: oklch(0.546 0.165 5.189);
--chart-4: oklch(0.57 0.168 4.809);
--chart-5: oklch(0.718 0.131 167.264);
}