Food is a shadcn/ui theme built around a light purple primary color (#f3cdf1) with light green accents (#cdf3d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f3cdf1) on a purple-tinted background (#10050f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #10050fblack |
| Foreground | #090108black | #ffffffwhite |
| Card | #ffffffwhite | #10050fblack |
| Card foreground | #090108black | #ffffffwhite |
| Popover | #ffffffwhite | #10050fblack |
| Popover foreground | #090108black | #ffffffwhite |
| Primary | #f3cdf1lavender | #f3cdf1lavender |
| Primary foreground | #741b6epurple | #741b6epurple |
| Secondary | #cdf3d0gainsboro | #cdf3d0gainsboro |
| Secondary foreground | #082109black | #082109black |
| Muted | #e8ede8linen | #121712black |
| Muted foreground | #526b54dimgray | #94ad96darkseagreen |
| Accent | #cdf3d0gainsboro | #cdf3d0gainsboro |
| Accent foreground | #082109black | #082109black |
| Destructive | #9e0705darkred | #e40b07red |
| Destructive foreground | #fed8d7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3cdf1lavender | #f3cdf1lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 14.11:1 | AAA |
| Muted text | 4.93:1 | AA |
| Accent | 14.11:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 14.11:1 | AAA |
| Muted text | 7.50:1 | AAA |
| Accent | 14.11:1 | AAA |
| Destructive | 4.84:1 | AA |
Paste this into your globals.css to use Food in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.106 0.033 329.358);
--muted: oklch(0.941 0.008 147.462);
--muted-foreground: oklch(0.5 0.046 146.577);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.106 0.033 329.358);
--card: oklch(1 0 180);
--card-foreground: oklch(0.106 0.033 329.358);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.892 0.063 328.215);
--primary-foreground: oklch(0.403 0.155 330.952);
--secondary: oklch(0.929 0.062 146.863);
--secondary-foreground: oklch(0.221 0.054 144.75);
--accent: oklch(0.929 0.062 146.863);
--accent-foreground: oklch(0.221 0.054 144.75);
--destructive: oklch(0.443 0.178 29.115);
--destructive-foreground: oklch(0.914 0.042 19.104);
--ring: oklch(0.892 0.063 328.215);
--chart-1: oklch(0.892 0.063 328.215);
--chart-2: oklch(0.929 0.062 146.863);
--chart-3: oklch(0.929 0.062 146.863);
--chart-4: oklch(0.946 0.046 147.05);
--chart-5: oklch(0.892 0.066 328.247);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.031 329.286);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.012 146.936);
--muted-foreground: oklch(0.722 0.043 146.944);
--popover: oklch(0.139 0.031 329.286);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.031 329.286);
--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.892 0.063 328.215);
--primary-foreground: oklch(0.403 0.155 330.952);
--secondary: oklch(0.929 0.062 146.863);
--secondary-foreground: oklch(0.221 0.054 144.75);
--accent: oklch(0.929 0.062 146.863);
--accent-foreground: oklch(0.221 0.054 144.75);
--destructive: oklch(0.579 0.234 29.156);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.892 0.063 328.215);
--chart-1: oklch(0.892 0.063 328.215);
--chart-2: oklch(0.929 0.062 146.863);
--chart-3: oklch(0.929 0.062 146.863);
--chart-4: oklch(0.946 0.046 147.05);
--chart-5: oklch(0.892 0.066 328.247);
}