Favorite is a shadcn/ui theme built around a vivid orange primary color (#c15110) with vivid violet accents (#5110c1). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid orange primary (#c15110) on a neutral background (#080402).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #080402black |
| Foreground | #140b05black | #ffffffwhite |
| Card | #fcf9f8snow | #0c0704black |
| Card foreground | #100904black | #ffffffwhite |
| Popover | #fcf9f8snow | #0c0704black |
| Popover foreground | #100904black | #ffffffwhite |
| Primary | #c15110chocolate | #c15110chocolate |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #10c151limegreen | #10c151limegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3e8e5gainsboro | #171c19black |
| Muted foreground | #505e55dimgray | #a1afa6darkgray |
| Accent | #5110c1rebeccapurple | #5110c1rebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a21907firebrick | #eb240aorangered |
| Destructive foreground | #fee1ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c15110chocolate | #c15110chocolate |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 4.71:1 | AA |
| Secondary button | 2.38:1 | Fail |
| Muted text | 5.49:1 | AA |
| Accent | 9.56:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 20.38:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 4.71:1 | AA |
| Secondary button | 2.38:1 | Fail |
| Muted text | 7.58:1 | AAA |
| Accent | 9.56:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Favorite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.001 52.561);
--foreground: oklch(0.16 0.02 54.412);
--muted: oklch(0.926 0.006 158.589);
--muted-foreground: oklch(0.466 0.022 157.645);
--popover: oklch(0.985 0.003 52.542);
--popover-foreground: oklch(0.147 0.017 57.793);
--card: oklch(0.985 0.003 52.542);
--card-foreground: oklch(0.147 0.017 57.793);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.573 0.16 44.201);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.71 0.201 148.173);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.421 0.233 287.145);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.457 0.173 30.933);
--destructive-foreground: oklch(0.931 0.033 26.71);
--ring: oklch(0.573 0.16 44.201);
--chart-1: oklch(0.573 0.16 44.201);
--chart-2: oklch(0.71 0.201 148.173);
--chart-3: oklch(0.421 0.233 287.145);
--chart-4: oklch(0.748 0.213 148.108);
--chart-5: oklch(0.577 0.164 43.633);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.012 60.429);
--foreground: oklch(1 0 180);
--muted: oklch(0.219 0.008 157.915);
--muted-foreground: oklch(0.741 0.02 158.127);
--popover: oklch(0.132 0.014 60.042);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.132 0.014 60.042);
--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.573 0.16 44.201);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.71 0.201 148.173);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.421 0.233 287.145);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.602 0.231 30.749);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.573 0.16 44.201);
--chart-1: oklch(0.573 0.16 44.201);
--chart-2: oklch(0.71 0.201 148.173);
--chart-3: oklch(0.421 0.233 287.145);
--chart-4: oklch(0.748 0.213 148.108);
--chart-5: oklch(0.577 0.164 43.633);
}