Sympathetic is a shadcn/ui theme built around a vivid indigo primary color (#583ffd) with vivid green accents (#3ffd58). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the vivid indigo primary (#583ffd) on a neutral background (#030307).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #030307black |
| Foreground | #060416black | #f5f5fawhitesmoke |
| Card | #f8f7fdghostwhite | #030307black |
| Card foreground | #060416black | #f5f5fawhitesmoke |
| Popover | #f8f7fdghostwhite | #030307black |
| Popover foreground | #060416black | #f5f5fawhitesmoke |
| Primary | #583ffdroyalblue | #583ffdroyalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #fd583ftomato | #fd583ftomato |
| Secondary foreground | #0a0100black | #0a0100black |
| Muted | #e1d3d0lightgrey | #2f201eblack |
| Muted foreground | #5c5351dimgray | #aea4a3darkgray |
| Accent | #3ffd58limegreen | #3ffd58limegreen |
| Accent foreground | #000a01black | #000a01black |
| Destructive | #8d1e07darkred | #f44725orangered |
| Destructive foreground | #fcd2capink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #583ffdroyalblue | #583ffdroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 5.91:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.12:1 | AA |
| Accent | 14.76:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 18.95:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 5.91:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 6.42:1 | AA |
| Accent | 14.76:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Sympathetic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.007 292.408);
--foreground: oklch(0.124 0.043 286.952);
--muted: oklch(0.877 0.017 28.037);
--muted-foreground: oklch(0.45 0.012 28.091);
--popover: oklch(0.979 0.007 292.408);
--popover-foreground: oklch(0.124 0.043 286.952);
--card: oklch(0.979 0.007 292.408);
--card-foreground: oklch(0.124 0.043 286.952);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.531 0.262 278.598);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.68 0.205 31.44);
--secondary-foreground: oklch(0.102 0.029 42.834);
--accent: oklch(0.871 0.254 144.718);
--accent-foreground: oklch(0.127 0.036 147.698);
--destructive: oklch(0.42 0.149 32.671);
--destructive-foreground: oklch(0.898 0.049 31.249);
--ring: oklch(0.531 0.262 278.598);
--chart-1: oklch(0.531 0.262 278.598);
--chart-2: oklch(0.68 0.205 31.44);
--chart-3: oklch(0.871 0.254 144.718);
--chart-4: oklch(0.698 0.19 31.107);
--chart-5: oklch(0.529 0.269 277.965);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.017 290.936);
--foreground: oklch(0.971 0.008 292.397);
--muted: oklch(0.261 0.023 28.649);
--muted-foreground: oklch(0.727 0.011 28.012);
--popover: oklch(0.1 0.017 290.936);
--popover-foreground: oklch(0.971 0.008 292.397);
--card: oklch(0.1 0.017 290.936);
--card-foreground: oklch(0.971 0.008 292.397);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.531 0.262 278.598);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.68 0.205 31.44);
--secondary-foreground: oklch(0.102 0.029 42.834);
--accent: oklch(0.871 0.254 144.718);
--accent-foreground: oklch(0.127 0.036 147.698);
--destructive: oklch(0.645 0.214 33.058);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.531 0.262 278.598);
--chart-1: oklch(0.531 0.262 278.598);
--chart-2: oklch(0.68 0.205 31.44);
--chart-3: oklch(0.871 0.254 144.718);
--chart-4: oklch(0.698 0.19 31.107);
--chart-5: oklch(0.529 0.269 277.965);
}