Favorable is a shadcn/ui theme built around a deep green primary color (#10381f) with deep pink accents (#381028). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#10381f) on a green-tinted background (#040c07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040c07black |
| Foreground | #06130bblack | #f5faf7whitesmoke |
| Card | #fcfcfcsnow | #051009black |
| Card foreground | #050f09black | #f8fbfamintcream |
| Popover | #ffffffwhite | #040c07black |
| Popover foreground | #06130bblack | #f5faf7whitesmoke |
| Primary | #10381fdarkgreen | #10381fdarkgreen |
| Primary foreground | #48cb7amediumseagreen | #48cb7amediumseagreen |
| Secondary | #381028black | #381028black |
| Secondary foreground | #e298c5plum | #e298c5plum |
| Muted | #e8cedegainsboro | #311727black |
| Muted foreground | #654e5cdimgray | #b19aa8darkgray |
| Accent | #381028black | #381028black |
| Accent foreground | #e298c5plum | #e298c5plum |
| Destructive | #71200amaroon | #e64114orangered |
| Destructive foreground | #f8c3b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #10381fdarkgreen | #10381fdarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Favorable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.172 0.026 156.404);
--muted: oklch(0.879 0.035 340.337);
--muted-foreground: oklch(0.452 0.038 341.229);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.172 0.026 156.404);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.157 0.022 157.898);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.304 0.063 153.17);
--primary-foreground: oklch(0.752 0.163 152.719);
--secondary: oklch(0.248 0.072 345.623);
--secondary-foreground: oklch(0.765 0.106 342.318);
--accent: oklch(0.248 0.072 345.623);
--accent-foreground: oklch(0.765 0.106 342.318);
--destructive: oklch(0.37 0.118 35.406);
--destructive-foreground: oklch(0.86 0.065 35.987);
--ring: oklch(0.304 0.063 153.17);
--chart-1: oklch(0.304 0.063 153.17);
--chart-2: oklch(0.248 0.072 345.623);
--chart-3: oklch(0.248 0.072 345.623);
--chart-4: oklch(0.278 0.084 345.941);
--chart-5: oklch(0.307 0.066 152.854);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.019 159.121);
--foreground: oklch(0.98 0.006 159.334);
--muted: oklch(0.247 0.048 343.461);
--muted-foreground: oklch(0.712 0.034 340.485);
--popover: oklch(0.141 0.019 159.121);
--popover-foreground: oklch(0.98 0.006 159.334);
--card: oklch(0.157 0.023 157.84);
--card-foreground: oklch(0.986 0.004 159.38);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.304 0.063 153.17);
--primary-foreground: oklch(0.752 0.163 152.719);
--secondary: oklch(0.248 0.072 345.623);
--secondary-foreground: oklch(0.765 0.106 342.318);
--accent: oklch(0.248 0.072 345.623);
--accent-foreground: oklch(0.765 0.106 342.318);
--destructive: oklch(0.615 0.208 34.737);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.304 0.063 153.17);
--chart-1: oklch(0.304 0.063 153.17);
--chart-2: oklch(0.248 0.072 345.623);
--chart-3: oklch(0.248 0.072 345.623);
--chart-4: oklch(0.278 0.084 345.941);
--chart-5: oklch(0.307 0.066 152.854);
}