Favorite is a shadcn/ui theme built around a red primary color (#be6479) with orange accents (#be7c64). The light mode uses a neutral background (#fefbfc). Dark mode keeps the red primary (#be6479) on a red-tinted background (#0e0608).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0e0608black |
| Foreground | #110306black | #ffffffwhite |
| Card | #fefbfcsnow | #0e0608black |
| Card foreground | #110306black | #ffffffwhite |
| Popover | #fefbfcsnow | #0e0608black |
| Popover foreground | #110306black | #ffffffwhite |
| Primary | #be6479indianred | #be6479indianred |
| Primary foreground | #000000black | #000000black |
| Secondary | #be64a6palevioletred | #be64a6palevioletred |
| Secondary foreground | #000000black | #000000black |
| Muted | #f2e4eelinen | #1b0d18black |
| Muted foreground | #4a4047darkslategray | #bfb5bcsilver |
| Accent | #be7c64indianred | #be7c64indianred |
| Accent foreground | #000000black | #000000black |
| Destructive | #cc3e05firebrick | #f44a06orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #be6479indianred | #be6479indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 5.31:1 | AA |
| Secondary button | 5.58:1 | AA |
| Muted text | 8.06:1 | AAA |
| Accent | 6.28:1 | AA |
| Destructive | 4.94:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 5.31:1 | AA |
| Secondary button | 5.58:1 | AA |
| Muted text | 9.41:1 | AAA |
| Accent | 6.28:1 | AA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Favorite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 1.05);
--foreground: oklch(0.131 0.031 2.78);
--muted: oklch(0.932 0.02 334.902);
--muted-foreground: oklch(0.384 0.018 335.304);
--popover: oklch(0.991 0.003 1.05);
--popover-foreground: oklch(0.131 0.031 2.78);
--card: oklch(0.991 0.003 1.05);
--card-foreground: oklch(0.131 0.031 2.78);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.615 0.117 6.245);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.63 0.141 338.131);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.65 0.09 40.743);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.566 0.187 37.004);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.615 0.117 6.245);
--chart-1: oklch(0.615 0.117 6.245);
--chart-2: oklch(0.63 0.141 338.131);
--chart-3: oklch(0.65 0.09 40.743);
--chart-4: oklch(0.655 0.131 337.749);
--chart-5: oklch(0.613 0.125 6.693);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.016 1.971);
--foreground: oklch(1 0 180);
--muted: oklch(0.186 0.03 337.148);
--muted-foreground: oklch(0.784 0.015 334.851);
--popover: oklch(0.137 0.016 1.971);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.016 1.971);
--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.615 0.117 6.245);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.63 0.141 338.131);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.65 0.09 40.743);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.646 0.215 36.691);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.615 0.117 6.245);
--chart-1: oklch(0.615 0.117 6.245);
--chart-2: oklch(0.63 0.141 338.131);
--chart-3: oklch(0.65 0.09 40.743);
--chart-4: oklch(0.655 0.131 337.749);
--chart-5: oklch(0.613 0.125 6.693);
}