Favorite is a shadcn/ui theme built around a muted deep teal primary color (#1f2d2c) with muted deep yellow accents (#2d2c1f). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted deep teal primary (#1f2d2c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #000000black |
| Foreground | #010909black | #fbfdfdwhite |
| Card | #fbfefewhite | #000000black |
| Card foreground | #010909black | #fbfdfdwhite |
| Popover | #fbfefewhite | #000000black |
| Popover foreground | #010909black | #fbfdfdwhite |
| Primary | #1f2d2cdarkslategray | #1f2d2cdarkslategray |
| Primary foreground | #b4cbc9silver | #b4cbc9silver |
| Secondary | #2c1f2ddarkslategray | #2c1f2ddarkslategray |
| Secondary foreground | #c9b4cbsilver | #c9b4cbsilver |
| Muted | #ebdaeclavender | #241325black |
| Muted foreground | #584559dimgray | #b9a6badarkgray |
| Accent | #2d2c1fdarkslategray | #2d2c1fdarkslategray |
| Accent foreground | #cbc9b4silver | #cbc9b4silver |
| Destructive | #6e1602maroon | #fb532dtomato |
| Destructive foreground | #fdb5a5lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f2d2cdarkslategray | #1f2d2cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 6.93:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 8.39:1 | AAA |
| Destructive | 6.36:1 | AA |
Paste this into your globals.css to use Favorite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 192.352);
--foreground: oklch(0.129 0.019 191.124);
--muted: oklch(0.907 0.03 323.806);
--muted-foreground: oklch(0.417 0.042 324.131);
--popover: oklch(0.995 0.004 192.352);
--popover-foreground: oklch(0.129 0.019 191.124);
--card: oklch(0.995 0.004 192.352);
--card-foreground: oklch(0.129 0.019 191.124);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.285 0.019 191.037);
--primary-foreground: oklch(0.824 0.025 191.795);
--secondary: oklch(0.262 0.031 324.221);
--secondary-foreground: oklch(0.794 0.04 323.891);
--accent: oklch(0.291 0.022 104.279);
--accent-foreground: oklch(0.832 0.029 103.675);
--destructive: oklch(0.353 0.125 33.765);
--destructive-foreground: oklch(0.837 0.088 33.063);
--ring: oklch(0.285 0.019 191.037);
--chart-1: oklch(0.285 0.019 191.037);
--chart-2: oklch(0.262 0.031 324.221);
--chart-3: oklch(0.291 0.022 104.279);
--chart-4: oklch(0.292 0.036 324.246);
--chart-5: oklch(0.288 0.021 190.836);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 192.384);
--muted: oklch(0.219 0.042 324.533);
--muted-foreground: oklch(0.747 0.036 323.883);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 192.384);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 192.384);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.285 0.019 191.037);
--primary-foreground: oklch(0.824 0.025 191.795);
--secondary: oklch(0.262 0.031 324.221);
--secondary-foreground: oklch(0.794 0.04 323.891);
--accent: oklch(0.291 0.022 104.279);
--accent-foreground: oklch(0.832 0.029 103.675);
--destructive: oklch(0.668 0.21 33.974);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.285 0.019 191.037);
--chart-1: oklch(0.285 0.019 191.037);
--chart-2: oklch(0.262 0.031 324.221);
--chart-3: oklch(0.291 0.022 104.279);
--chart-4: oklch(0.292 0.036 324.246);
--chart-5: oklch(0.288 0.021 190.836);
}