Mellow is a shadcn/ui theme built around a purple primary color (#c841bd) with cyan accents (#41bdc8). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the purple primary (#c841bd) on a purple-tinted background (#10040f).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #10040fblack |
| Foreground | #040104black | #fbf9fbsnow |
| Card | #fcf3fblavenderblush | #140513black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fcf3fblavenderblush | #140513black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #c841bdmediumorchid | #c841bdmediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #bdc841yellowgreen | #bdc841yellowgreen |
| Secondary foreground | #2d2f0eblack | #2d2f0eblack |
| Muted | #e0e0dcgainsboro | #23231fblack |
| Muted foreground | #505143darkolivegreen | #bbbcaesilver |
| Accent | #41bdc8mediumturquoise | #41bdc8mediumturquoise |
| Accent foreground | #0e2d2fdarkslategray | #0e2d2fdarkslategray |
| Destructive | #b33900firebrick | #fa4f00orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c841bdmediumorchid | #c841bdmediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 4.24:1 | AA Large |
| Secondary button | 7.53:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 6.48:1 | AA |
| Destructive | 6.03:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 4.24:1 | AA Large |
| Secondary button | 7.53:1 | AAA |
| Muted text | 8.16:1 | AAA |
| Accent | 6.48:1 | AA |
| Destructive | 3.39:1 | AA Large |
Paste this into your globals.css to use Mellow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 328.163);
--foreground: oklch(0.084 0.027 329.857);
--muted: oklch(0.906 0.006 110.376);
--muted-foreground: oklch(0.43 0.024 111.254);
--popover: oklch(0.973 0.014 328.213);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.014 328.213);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.611 0.217 331.42);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.799 0.155 114.001);
--secondary-foreground: oklch(0.296 0.052 113.562);
--accent: oklch(0.735 0.107 203.792);
--accent-foreground: oklch(0.274 0.036 203.462);
--destructive: oklch(0.517 0.167 38.696);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.611 0.217 331.42);
--chart-1: oklch(0.611 0.217 331.42);
--chart-2: oklch(0.799 0.155 114.001);
--chart-3: oklch(0.735 0.107 203.792);
--chart-4: oklch(0.811 0.149 113.74);
--chart-5: oklch(0.614 0.226 331.547);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.034 330.01);
--foreground: oklch(0.984 0.004 328.109);
--muted: oklch(0.256 0.009 110.862);
--muted-foreground: oklch(0.791 0.02 110.727);
--popover: oklch(0.151 0.038 330.28);
--popover-foreground: oklch(0.992 0.002 328.086);
--card: oklch(0.151 0.038 330.28);
--card-foreground: oklch(0.992 0.002 328.086);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.611 0.217 331.42);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.799 0.155 114.001);
--secondary-foreground: oklch(0.296 0.052 113.562);
--accent: oklch(0.735 0.107 203.792);
--accent-foreground: oklch(0.274 0.036 203.462);
--destructive: oklch(0.661 0.217 37.85);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.611 0.217 331.42);
--chart-1: oklch(0.611 0.217 331.42);
--chart-2: oklch(0.799 0.155 114.001);
--chart-3: oklch(0.735 0.107 203.792);
--chart-4: oklch(0.811 0.149 113.74);
--chart-5: oklch(0.614 0.226 331.547);
}