Synthesis is a shadcn/ui theme built around a green primary color (#84c936) with pink accents (#c93684). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#84c936) on a green-tinted background (#0b1004).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0b1004black |
| Foreground | #0d1406black | #ffffffwhite |
| Card | #fdfefbwhite | #0b1004black |
| Card foreground | #0d1406black | #ffffffwhite |
| Popover | #fdfefbwhite | #0b1004black |
| Popover foreground | #0d1406black | #ffffffwhite |
| Primary | #84c936yellowgreen | #84c936yellowgreen |
| Primary foreground | #1a280bblack | #1a280bblack |
| Secondary | #3684c9steelblue | #3684c9steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebf0f4whitesmoke | #0b1014black |
| Muted foreground | #43505bdarkslategray | #a4b1bcdarkgray |
| Accent | #c93684mediumvioletred | #c93684mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #e24603orangered | #fb5c18orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #84c936yellowgreen | #84c936yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.50:1 | AAA |
| Text on card | 18.50:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 3.94:1 | AA Large |
| Muted text | 7.21:1 | AAA |
| Accent | 4.82:1 | AA |
| Destructive | 4.10:1 | AA Large |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 3.94:1 | AA Large |
| Muted text | 8.75:1 | AAA |
| Accent | 4.82:1 | AA |
| Destructive | 6.67:1 | AA |
Paste this into your globals.css to use Synthesis in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 127.165);
--foreground: oklch(0.179 0.03 128.727);
--muted: oklch(0.953 0.008 244.191);
--muted-foreground: oklch(0.424 0.024 244.818);
--popover: oklch(0.995 0.004 127.165);
--popover-foreground: oklch(0.179 0.03 128.727);
--card: oklch(0.995 0.004 127.165);
--card-foreground: oklch(0.179 0.03 128.727);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.764 0.188 131.654);
--primary-foreground: oklch(0.257 0.053 130.349);
--secondary: oklch(0.599 0.13 248.387);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.577 0.197 352.514);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.613 0.202 37.482);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.764 0.188 131.654);
--chart-1: oklch(0.764 0.188 131.654);
--chart-2: oklch(0.599 0.13 248.387);
--chart-3: oklch(0.577 0.197 352.514);
--chart-4: oklch(0.622 0.123 247.695);
--chart-5: oklch(0.773 0.195 131.895);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.164 0.028 127.699);
--foreground: oklch(1 0 180);
--muted: oklch(0.168 0.012 244.997);
--muted-foreground: oklch(0.753 0.021 244.441);
--popover: oklch(0.164 0.028 127.699);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.164 0.028 127.699);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.764 0.188 131.654);
--primary-foreground: oklch(0.257 0.053 130.349);
--secondary: oklch(0.599 0.13 248.387);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.577 0.197 352.514);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.679 0.207 39.41);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.764 0.188 131.654);
--chart-1: oklch(0.764 0.188 131.654);
--chart-2: oklch(0.599 0.13 248.387);
--chart-3: oklch(0.577 0.197 352.514);
--chart-4: oklch(0.622 0.123 247.695);
--chart-5: oklch(0.773 0.195 131.895);
}