Mellow is a shadcn/ui theme built around a vivid light green primary color (#c4fac2) with vivid light green accents (#c2fadc). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid light green primary (#c4fac2) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #020401black |
| Foreground | #031703black | #f5f9f5whitesmoke |
| Card | #fbfefbwhite | #020401black |
| Card foreground | #031703black | #f5f9f5whitesmoke |
| Popover | #fbfefbwhite | #020401black |
| Popover foreground | #031703black | #f5f9f5whitesmoke |
| Primary | #c4fac2lightgrey | #c4fac2lightgrey |
| Primary foreground | #042103black | #042103black |
| Secondary | #e0fac2lightgoldenrodyellow | #e0fac2lightgoldenrodyellow |
| Secondary foreground | #132103black | #132103black |
| Muted | #dee4d8gainsboro | #22271bblack |
| Muted foreground | #454545darkslategray | #bababasilver |
| Accent | #c2fadcpaleturquoise | #c2fadcpaleturquoise |
| Accent foreground | #032111black | #032111black |
| Destructive | #ce3d0dfirebrick | #e6450forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c4fac2lightgrey | #c4fac2lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.34:1 | AAA |
| Text on card | 18.34:1 | AAA |
| Primary button | 14.50:1 | AAA |
| Secondary button | 14.90:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 14.61:1 | AAA |
| Destructive | 4.87:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 14.50:1 | AAA |
| Secondary button | 14.90:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 14.61:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Mellow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.006 144.582);
--foreground: oklch(0.181 0.051 142.268);
--muted: oklch(0.911 0.018 127.356);
--muted-foreground: oklch(0.39 0 165.964);
--popover: oklch(0.994 0.006 144.582);
--popover-foreground: oklch(0.181 0.051 142.268);
--card: oklch(0.994 0.006 144.582);
--card-foreground: oklch(0.181 0.051 142.268);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.933 0.092 143.955);
--primary-foreground: oklch(0.217 0.065 142.234);
--secondary: oklch(0.951 0.078 128.16);
--secondary-foreground: oklch(0.226 0.055 130.432);
--accent: oklch(0.938 0.069 161.418);
--accent-foreground: oklch(0.219 0.048 156.507);
--destructive: oklch(0.57 0.189 36.068);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.933 0.092 143.955);
--chart-1: oklch(0.933 0.092 143.955);
--chart-2: oklch(0.951 0.078 128.16);
--chart-3: oklch(0.938 0.069 161.418);
--chart-4: oklch(0.962 0.06 127.899);
--chart-5: oklch(0.934 0.096 143.932);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.014 143.369);
--foreground: oklch(0.979 0.007 144.575);
--muted: oklch(0.264 0.024 128.293);
--muted-foreground: oklch(0.789 0 171.254);
--popover: oklch(0.096 0.014 143.369);
--popover-foreground: oklch(0.979 0.007 144.575);
--card: oklch(0.096 0.014 143.369);
--card-foreground: oklch(0.979 0.007 144.575);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.933 0.092 143.955);
--primary-foreground: oklch(0.217 0.065 142.234);
--secondary: oklch(0.951 0.078 128.16);
--secondary-foreground: oklch(0.226 0.055 130.432);
--accent: oklch(0.938 0.069 161.418);
--accent-foreground: oklch(0.219 0.048 156.507);
--destructive: oklch(0.618 0.206 35.94);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.933 0.092 143.955);
--chart-1: oklch(0.933 0.092 143.955);
--chart-2: oklch(0.951 0.078 128.16);
--chart-3: oklch(0.938 0.069 161.418);
--chart-4: oklch(0.962 0.06 127.899);
--chart-5: oklch(0.934 0.096 143.932);
}