Sympathetic is a shadcn/ui theme built around a green primary color (#bcd4aa) with muted green accents (#b2c6a4). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#bcd4aa) on a neutral background (#050802).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #050802black |
| Foreground | #050802black | #fcfdfcwhite |
| Card | #fcfdfcwhite | #050802black |
| Card foreground | #050802black | #fcfdfcwhite |
| Popover | #fcfdfcwhite | #050802black |
| Popover foreground | #050802black | #fcfdfcwhite |
| Primary | #bcd4aasilver | #bcd4aasilver |
| Primary foreground | #24331adarkslategray | #24331adarkslategray |
| Secondary | #cbd4c4lightgrey | #1c1f1ablack |
| Secondary foreground | #323b2bdarkslategray | #b4bcaesilver |
| Muted | #e2e9dcgainsboro | #1b2316black |
| Muted foreground | #64715bdimgray | #97a48edarkseagreen |
| Accent | #b2c6a4darkgray | #2d3527darkslategray |
| Accent foreground | #1b2316black | #c5cfbesilver |
| Destructive | #ba3112firebrick | #eb5533tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bcd4aasilver | #bcd4aasilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 4.18:1 | AA Large |
| Accent | 8.86:1 | AAA |
| Destructive | 5.95:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 6.20:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Sympathetic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 131.747);
--foreground: oklch(0.128 0.024 130.1);
--muted: oklch(0.926 0.019 131.893);
--muted-foreground: oklch(0.532 0.038 132.327);
--popover: oklch(0.994 0.003 131.747);
--popover-foreground: oklch(0.128 0.024 130.1);
--card: oklch(0.994 0.003 131.747);
--card-foreground: oklch(0.128 0.024 130.1);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.841 0.063 132.363);
--primary-foreground: oklch(0.3 0.047 133.247);
--secondary: oklch(0.859 0.024 131.959);
--secondary-foreground: oklch(0.339 0.03 132.506);
--accent: oklch(0.802 0.052 132.268);
--accent-foreground: oklch(0.242 0.026 132.681);
--destructive: oklch(0.522 0.178 33.533);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.841 0.063 132.363);
--chart-1: oklch(0.841 0.063 132.363);
--chart-2: oklch(0.859 0.024 131.959);
--chart-3: oklch(0.802 0.052 132.268);
--chart-4: oklch(0.88 0.021 131.917);
--chart-5: oklch(0.845 0.068 132.421);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.019 130.416);
--foreground: oklch(0.993 0.001 131.734);
--muted: oklch(0.242 0.026 132.681);
--muted-foreground: oklch(0.703 0.035 132.144);
--popover: oklch(0.125 0.019 130.416);
--popover-foreground: oklch(0.993 0.001 131.734);
--card: oklch(0.125 0.019 130.416);
--card-foreground: oklch(0.993 0.001 131.734);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.841 0.063 132.363);
--primary-foreground: oklch(0.3 0.047 133.247);
--secondary: oklch(0.232 0.01 132.1);
--secondary-foreground: oklch(0.784 0.02 131.939);
--accent: oklch(0.316 0.026 132.44);
--accent-foreground: oklch(0.843 0.025 131.972);
--destructive: oklch(0.645 0.192 34.105);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.841 0.063 132.363);
--chart-1: oklch(0.841 0.063 132.363);
--chart-2: oklch(0.232 0.01 132.1);
--chart-3: oklch(0.316 0.026 132.44);
--chart-4: oklch(0.266 0.013 132.128);
--chart-5: oklch(0.845 0.068 132.421);
}