Mellow is a shadcn/ui theme built around a vivid red primary color (#f34316) with vivid cyan accents (#16c7f3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#f34316) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #110603black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #0d0402black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #110603black | #ffffffwhite |
| Primary | #f34316orangered | #f34316orangered |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #16c7f3deepskyblue | #16c7f3deepskyblue |
| Secondary foreground | #032f3adarkslategray | #032f3adarkslategray |
| Muted | #e3eff2lavender | #0d191cblack |
| Muted foreground | #4a4e4fdarkslategray | #b0b4b5darkgray |
| Accent | #16c7f3deepskyblue | #16c7f3deepskyblue |
| Accent foreground | #032f3adarkslategray | #032f3adarkslategray |
| Destructive | #cd2c13firebrick | #eb4228orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f34316orangered | #f34316orangered |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 7.11:1 | AAA |
| Muted text | 7.17:1 | AAA |
| Accent | 7.11:1 | AAA |
| Destructive | 5.28:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 7.11:1 | AAA |
| Muted text | 8.57:1 | AAA |
| Accent | 7.11:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Mellow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.139 0.024 41.407);
--muted: oklch(0.944 0.013 214.359);
--muted-foreground: oklch(0.42 0.005 214.352);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.139 0.024 41.407);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.125 0.02 42.891);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.638 0.218 34.022);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.769 0.139 221.873);
--secondary-foreground: oklch(0.283 0.049 219.328);
--accent: oklch(0.769 0.139 221.873);
--accent-foreground: oklch(0.283 0.049 219.328);
--destructive: oklch(0.553 0.2 31.542);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.638 0.218 34.022);
--chart-1: oklch(0.638 0.218 34.022);
--chart-2: oklch(0.769 0.139 221.873);
--chart-3: oklch(0.769 0.139 221.873);
--chart-4: oklch(0.779 0.136 220.572);
--chart-5: oklch(0.642 0.224 33.791);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.203 0.018 215.148);
--muted-foreground: oklch(0.767 0.004 214.332);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.638 0.218 34.022);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.769 0.139 221.873);
--secondary-foreground: oklch(0.283 0.049 219.328);
--accent: oklch(0.769 0.139 221.873);
--accent-foreground: oklch(0.283 0.049 219.328);
--destructive: oklch(0.626 0.209 31.655);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.638 0.218 34.022);
--chart-1: oklch(0.638 0.218 34.022);
--chart-2: oklch(0.769 0.139 221.873);
--chart-3: oklch(0.769 0.139 221.873);
--chart-4: oklch(0.779 0.136 220.572);
--chart-5: oklch(0.642 0.224 33.791);
}