Favorable is a shadcn/ui theme built around a deep red primary color (#721d17) with deep indigo accents (#1d1772). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the deep red primary (#721d17) on a neutral background (#080302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #080302black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fbf4f4lavenderblush | #0c0404black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf4f4lavenderblush | #0c0404black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #721d17maroon | #721d17maroon |
| Primary foreground | #f4cbc8pink | #f4cbc8pink |
| Secondary | #17721dforestgreen | #17721dforestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #cfe3d0lightgrey | #1c301edarkslategray |
| Muted foreground | #5c705ddimgray | #8fa390darkseagreen |
| Accent | #1d1772midnightblue | #1d1772midnightblue |
| Accent foreground | #cbc8f4thistle | #cbc8f4thistle |
| Destructive | #a2400bsaddlebrown | #db570fchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #721d17maroon | #721d17maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 6.04:1 | AA |
| Muted text | 3.94:1 | AA Large |
| Accent | 9.20:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 6.04:1 | AA |
| Muted text | 5.22:1 | AA |
| Accent | 9.20:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Favorable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 22.269);
--foreground: oklch(0 0 0);
--muted: oklch(0.895 0.033 147.176);
--muted-foreground: oklch(0.523 0.038 146.792);
--popover: oklch(0.973 0.007 22.298);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.007 22.298);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.371 0.12 28.4);
--primary-foreground: oklch(0.876 0.047 22.883);
--secondary: oklch(0.484 0.145 143.682);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.291 0.147 275.162);
--accent-foreground: oklch(0.849 0.061 288.09);
--destructive: oklch(0.499 0.142 42.922);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.371 0.12 28.4);
--chart-1: oklch(0.371 0.12 28.4);
--chart-2: oklch(0.484 0.145 143.682);
--chart-3: oklch(0.291 0.147 275.162);
--chart-4: oklch(0.522 0.158 143.641);
--chart-5: oklch(0.373 0.124 28.651);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.015 26.252);
--foreground: oklch(0.992 0.001 22.223);
--muted: oklch(0.287 0.042 145.94);
--muted-foreground: oklch(0.695 0.036 147.022);
--popover: oklch(0.122 0.017 26.22);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.017 26.22);
--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.371 0.12 28.4);
--primary-foreground: oklch(0.876 0.047 22.883);
--secondary: oklch(0.484 0.145 143.682);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.291 0.147 275.162);
--accent-foreground: oklch(0.849 0.061 288.09);
--destructive: oklch(0.621 0.181 42.346);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.371 0.12 28.4);
--chart-1: oklch(0.371 0.12 28.4);
--chart-2: oklch(0.484 0.145 143.682);
--chart-3: oklch(0.291 0.147 275.162);
--chart-4: oklch(0.522 0.158 143.641);
--chart-5: oklch(0.373 0.124 28.651);
}