Agreeable is a shadcn/ui theme built around a green primary color (#3a9849) with red accents (#98493a). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the green primary (#3a9849) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #030704black |
| Foreground | #030c04black | #f5faf6whitesmoke |
| Card | #f4faf5whitesmoke | #050a06black |
| Card foreground | #020803black | #f8fcf9mintcream |
| Popover | #f8fcf9mintcream | #030704black |
| Popover foreground | #030c04black | #f5faf6whitesmoke |
| Primary | #3a9849seagreen | #3a9849seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #493a98darkslateblue | #493a98darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbdae2gainsboro | #1e1d25black |
| Muted foreground | #3e3d43darkslategray | #bdbcc2silver |
| Accent | #98493asienna | #98493asienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bf4f12chocolate | #ec7636tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3a9849seagreen | #3a9849seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.15:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 3.65:1 | AA Large |
| Secondary button | 9.00:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 6.27:1 | AA |
| Destructive | 4.84:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 3.65:1 | AA Large |
| Secondary button | 9.00:1 | AAA |
| Muted text | 8.85:1 | AAA |
| Accent | 6.27:1 | AA |
| Destructive | 7.22:1 | AAA |
Paste this into your globals.css to use Agreeable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 150.735);
--foreground: oklch(0.142 0.027 149.579);
--muted: oklch(0.891 0.012 293.819);
--muted-foreground: oklch(0.362 0.011 293.498);
--popover: oklch(0.987 0.006 150.735);
--popover-foreground: oklch(0.142 0.027 149.579);
--card: oklch(0.98 0.009 150.691);
--card-foreground: oklch(0.123 0.023 149.702);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.604 0.145 146.624);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.419 0.147 285.762);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.501 0.109 32.704);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.567 0.159 43.262);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.604 0.145 146.624);
--chart-1: oklch(0.604 0.145 146.624);
--chart-2: oklch(0.419 0.147 285.762);
--chart-3: oklch(0.501 0.109 32.704);
--chart-4: oklch(0.44 0.156 285.664);
--chart-5: oklch(0.611 0.153 146.385);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.013 150.197);
--foreground: oklch(0.98 0.008 150.707);
--muted: oklch(0.236 0.017 292.729);
--muted-foreground: oklch(0.798 0.009 293.856);
--popover: oklch(0.12 0.013 150.197);
--popover-foreground: oklch(0.98 0.008 150.707);
--card: oklch(0.137 0.015 150.196);
--card-foreground: oklch(0.987 0.005 150.746);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.604 0.145 146.624);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.419 0.147 285.762);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.501 0.109 32.704);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.693 0.164 46.095);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.604 0.145 146.624);
--chart-1: oklch(0.604 0.145 146.624);
--chart-2: oklch(0.419 0.147 285.762);
--chart-3: oklch(0.501 0.109 32.704);
--chart-4: oklch(0.44 0.156 285.664);
--chart-5: oklch(0.611 0.153 146.385);
}