Yummy is a shadcn/ui theme built around a vivid green primary color (#bbed50) with vivid violet accents (#8150ed). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the vivid green primary (#bbed50) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #030302black |
| Foreground | #101603black | #f8f9f5whitesmoke |
| Card | #f9faf4whitesmoke | #060704black |
| Card foreground | #0d1203black | #fafbf9snow |
| Popover | #fbfcf8snow | #030302black |
| Popover foreground | #101603black | #f8f9f5whitesmoke |
| Primary | #bbed50greenyellow | #bbed50greenyellow |
| Primary foreground | #070901black | #070901black |
| Secondary | #8150edmediumslateblue | #8150edmediumslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1eff6whitesmoke | #0b0910black |
| Muted foreground | #5d5a63dimgray | #9f9ca5darkgray |
| Accent | #8150edmediumslateblue | #8150edmediumslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d52207firebrick | #f8462atomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bbed50greenyellow | #bbed50greenyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.89:1 | AAA |
| Text on card | 18.14:1 | AAA |
| Primary button | 14.58:1 | AAA |
| Secondary button | 4.89:1 | AA |
| Muted text | 5.91:1 | AA |
| Accent | 4.89:1 | AA |
| Destructive | 5.18:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 14.58:1 | AAA |
| Secondary button | 4.89:1 | AA |
| Muted text | 7.31:1 | AAA |
| Accent | 4.89:1 | AA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Yummy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 120.862);
--foreground: oklch(0.188 0.037 123.44);
--muted: oklch(0.955 0.009 300.605);
--muted-foreground: oklch(0.472 0.015 300.229);
--popover: oklch(0.989 0.006 120.862);
--popover-foreground: oklch(0.188 0.037 123.44);
--card: oklch(0.983 0.009 120.91);
--card-foreground: oklch(0.17 0.033 122.522);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.881 0.189 125.288);
--primary-foreground: oklch(0.133 0.027 120.45);
--secondary: oklch(0.572 0.223 292.456);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.572 0.223 292.456);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.56 0.213 31.149);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.881 0.189 125.288);
--chart-1: oklch(0.881 0.189 125.288);
--chart-2: oklch(0.572 0.223 292.456);
--chart-3: oklch(0.572 0.223 292.456);
--chart-4: oklch(0.602 0.208 293.825);
--chart-5: oklch(0.888 0.193 125.44);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.008 120.631);
--foreground: oklch(0.981 0.005 120.855);
--muted: oklch(0.148 0.015 299.118);
--muted-foreground: oklch(0.698 0.014 300.438);
--popover: oklch(0.097 0.008 120.631);
--popover-foreground: oklch(0.981 0.005 120.855);
--card: oklch(0.123 0.01 120.631);
--card-foreground: oklch(0.987 0.003 120.825);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.881 0.189 125.288);
--primary-foreground: oklch(0.133 0.027 120.45);
--secondary: oklch(0.572 0.223 292.456);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.572 0.223 292.456);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.652 0.219 31.658);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.881 0.189 125.288);
--chart-1: oklch(0.881 0.189 125.288);
--chart-2: oklch(0.572 0.223 292.456);
--chart-3: oklch(0.572 0.223 292.456);
--chart-4: oklch(0.602 0.208 293.825);
--chart-5: oklch(0.888 0.193 125.44);
}