Compassionate is a shadcn/ui theme built around a vivid deep green primary color (#091401) with vivid deep pink accents (#140109). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid deep green primary (#091401) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #000000black |
| Foreground | #0c1405black | #fcfdfcwhite |
| Card | #fcfefbwhite | #000000black |
| Card foreground | #0c1405black | #fcfdfcwhite |
| Popover | #fcfefbwhite | #000000black |
| Popover foreground | #0c1405black | #fcfdfcwhite |
| Primary | #091401black | #091401black |
| Primary foreground | #5fd709lawngreen | #5fd709lawngreen |
| Secondary | #010914black | #010914black |
| Secondary foreground | #4f95f8cornflowerblue | #4f95f8cornflowerblue |
| Muted | #f0f2f4whitesmoke | #0b0c0fblack |
| Muted foreground | #4d4f51darkslategray | #aeb0b2darkgray |
| Accent | #140109black | #140109black |
| Accent foreground | #f84f95hotpink | #f84f95hotpink |
| Destructive | #641a07maroon | #f05d38tomato |
| Destructive foreground | #f8b6a5lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #091401black | #091401black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.53:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 10.11:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 7.33:1 | AAA |
| Accent | 6.31:1 | AA |
| Destructive | 7.24:1 | AAA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 10.11:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 8.97:1 | AAA |
| Accent | 6.31:1 | AA |
| Destructive | 6.31:1 | AA |
Paste this into your globals.css to use Compassionate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 131.763);
--foreground: oklch(0.178 0.032 132.594);
--muted: oklch(0.96 0.004 256.668);
--muted-foreground: oklch(0.426 0.003 256.684);
--popover: oklch(0.995 0.005 131.763);
--popover-foreground: oklch(0.178 0.032 132.594);
--card: oklch(0.995 0.005 131.763);
--card-foreground: oklch(0.178 0.032 132.594);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.172 0.044 131.321);
--primary-foreground: oklch(0.78 0.237 137.537);
--secondary: oklch(0.134 0.031 246.838);
--secondary-foreground: oklch(0.671 0.163 257.256);
--accent: oklch(0.128 0.047 352.056);
--accent-foreground: oklch(0.679 0.212 358.954);
--destructive: oklch(0.337 0.109 34.642);
--destructive-foreground: oklch(0.833 0.082 34.515);
--ring: oklch(0.172 0.044 131.321);
--chart-1: oklch(0.172 0.044 131.321);
--chart-2: oklch(0.134 0.031 246.838);
--chart-3: oklch(0.128 0.047 352.056);
--chart-4: oklch(0.168 0.046 253.283);
--chart-5: oklch(0.173 0.046 131.309);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 131.741);
--muted: oklch(0.155 0.006 256.766);
--muted-foreground: oklch(0.756 0.003 256.668);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 131.741);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 131.741);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.172 0.044 131.321);
--primary-foreground: oklch(0.78 0.237 137.537);
--secondary: oklch(0.134 0.031 246.838);
--secondary-foreground: oklch(0.671 0.163 257.256);
--accent: oklch(0.128 0.047 352.056);
--accent-foreground: oklch(0.679 0.212 358.954);
--destructive: oklch(0.664 0.189 35.102);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.172 0.044 131.321);
--chart-1: oklch(0.172 0.044 131.321);
--chart-2: oklch(0.134 0.031 246.838);
--chart-3: oklch(0.128 0.047 352.056);
--chart-4: oklch(0.168 0.046 253.283);
--chart-5: oklch(0.173 0.046 131.309);
}