Yummy is a shadcn/ui theme built around a neutral gray primary color (#85837a) with neutral gray accents (#7a7c85). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the neutral gray primary (#85837a) on a neutral background (#080702).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #080702black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fdfcf7snow | #080702black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fdfcf7snow | #080702black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #85837agray | #85837agray |
| Primary foreground | #000000black | #000000black |
| Secondary | #7a7c85gray | #7a7c85gray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5e6eblavender | #14151ablack |
| Muted foreground | #454a5edarkslategray | #a1a6badarkgray |
| Accent | #7a7c85gray | #7a7c85gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #773108saddlebrown | #f0752dtomato |
| Destructive foreground | #fad0b7peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #85837agray | #85837agray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.39:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 5.50:1 | AA |
| Secondary button | 4.14:1 | AA Large |
| Muted text | 7.03:1 | AAA |
| Accent | 4.14:1 | AA Large |
| Destructive | 6.62:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 5.50:1 | AA |
| Secondary button | 4.14:1 | AA Large |
| Muted text | 7.54:1 | AAA |
| Accent | 4.14:1 | AA Large |
| Destructive | 7.29:1 | AAA |
Paste this into your globals.css to use Yummy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 96.245);
--foreground: oklch(0 0 0);
--muted: oklch(0.926 0.007 276.064);
--muted-foreground: oklch(0.413 0.034 274.937);
--popover: oklch(0.99 0.006 96.245);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.006 96.245);
--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.608 0.013 96.415);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.588 0.013 275.873);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.588 0.013 275.873);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.405 0.11 44.982);
--destructive-foreground: oklch(0.887 0.058 51.75);
--ring: oklch(0.608 0.013 96.415);
--chart-1: oklch(0.608 0.013 96.415);
--chart-2: oklch(0.588 0.013 275.873);
--chart-3: oklch(0.588 0.013 275.873);
--chart-4: oklch(0.615 0.012 275.906);
--chart-5: oklch(0.616 0.022 96.576);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.016 100.302);
--foreground: oklch(0.994 0.002 96.189);
--muted: oklch(0.196 0.011 275.389);
--muted-foreground: oklch(0.727 0.029 275.604);
--popover: oklch(0.127 0.016 100.302);
--popover-foreground: oklch(0.994 0.002 96.189);
--card: oklch(0.127 0.016 100.302);
--card-foreground: oklch(0.994 0.002 96.189);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.608 0.013 96.415);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.588 0.013 275.873);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.588 0.013 275.873);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.696 0.172 46.704);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.608 0.013 96.415);
--chart-1: oklch(0.608 0.013 96.415);
--chart-2: oklch(0.588 0.013 275.873);
--chart-3: oklch(0.588 0.013 275.873);
--chart-4: oklch(0.615 0.012 275.906);
--chart-5: oklch(0.616 0.022 96.576);
}