Mellow is a shadcn/ui theme built around a vivid deep orange primary color (#7c360e) with muted light orange accents (#d5d0cd). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the vivid deep orange primary (#7c360e) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf9f7snow | #040202black |
| Foreground | #040201black | #ffffffwhite |
| Card | #fdf9f7snow | #040202black |
| Card foreground | #040201black | #ffffffwhite |
| Popover | #fdf9f7snow | #040202black |
| Popover foreground | #040201black | #ffffffwhite |
| Primary | #7c360esaddlebrown | #7c360esaddlebrown |
| Primary foreground | #f8d7c3peachpuff | #f8d7c3peachpuff |
| Secondary | #d5d0cdlightgrey | #2a2928darkslategray |
| Secondary foreground | #3d3734darkslategray | #c3c1c1silver |
| Muted | #e7d8d0gainsboro | #2f2118black |
| Muted foreground | #676665dimgray | #9a9998darkgray |
| Accent | #d5d0cdlightgrey | #2a2928darkslategray |
| Accent foreground | #3d3734darkslategray | #c3c1c1silver |
| Destructive | #dc0d09red | #f51d19red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7c360esaddlebrown | #7c360esaddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 4.13:1 | AA Large |
| Accent | 7.65:1 | AAA |
| Destructive | 5.10:1 | AA |
| Text on background | 20.68:1 | AAA |
| Text on card | 20.68:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 5.47:1 | AA |
| Accent | 8.14:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Mellow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.005 52.509);
--foreground: oklch(0.092 0.009 60.093);
--muted: oklch(0.892 0.02 52.288);
--muted-foreground: oklch(0.51 0.002 52.526);
--popover: oklch(0.985 0.005 52.509);
--popover-foreground: oklch(0.092 0.009 60.093);
--card: oklch(0.985 0.005 52.509);
--card-foreground: oklch(0.092 0.009 60.093);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.422 0.109 45.921);
--primary-foreground: oklch(0.902 0.046 51.929);
--secondary: oklch(0.861 0.006 52.48);
--secondary-foreground: oklch(0.341 0.01 52.202);
--accent: oklch(0.861 0.006 52.48);
--accent-foreground: oklch(0.341 0.01 52.202);
--destructive: oklch(0.565 0.228 29.08);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.422 0.109 45.921);
--chart-1: oklch(0.422 0.109 45.921);
--chart-2: oklch(0.861 0.006 52.48);
--chart-3: oklch(0.861 0.006 52.48);
--chart-4: oklch(0.884 0.005 52.499);
--chart-5: oklch(0.424 0.112 45.435);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.007 57.996);
--foreground: oklch(1 0 180);
--muted: oklch(0.261 0.027 51.235);
--muted-foreground: oklch(0.683 0.002 52.543);
--popover: oklch(0.092 0.007 57.996);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0.007 57.996);
--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.422 0.109 45.921);
--primary-foreground: oklch(0.902 0.046 51.929);
--secondary: oklch(0.28 0.002 52.489);
--secondary-foreground: oklch(0.813 0.002 52.544);
--accent: oklch(0.28 0.002 52.489);
--accent-foreground: oklch(0.813 0.002 52.544);
--destructive: oklch(0.618 0.242 28.679);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.422 0.109 45.921);
--chart-1: oklch(0.422 0.109 45.921);
--chart-2: oklch(0.28 0.002 52.489);
--chart-3: oklch(0.28 0.002 52.489);
--chart-4: oklch(0.311 0.002 52.485);
--chart-5: oklch(0.424 0.112 45.435);
}