Pizza is a shadcn/ui theme built around a muted purple primary color (#946193) with muted green accents (#619462). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#946193) on a purple-tinted background (#0c040c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c040cblack |
| Foreground | #0c030cblack | #ffffffwhite |
| Card | #fcfcfcsnow | #10050fblack |
| Card foreground | #080208black | #ffffffwhite |
| Popover | #ffffffwhite | #0c040cblack |
| Popover foreground | #0c030cblack | #ffffffwhite |
| Primary | #946193gray | #946193gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #619462dimgray | #619462dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #cee9celightgrey | #163117black |
| Muted foreground | #3b4f3bdarkslategray | #b0c4b0silver |
| Accent | #619462dimgray | #619462dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #dd0c08red | #e20c08red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #946193gray | #946193gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 4.79:1 | AA |
| Secondary button | 3.54:1 | AA Large |
| Muted text | 6.82:1 | AA |
| Accent | 3.54:1 | AA Large |
| Destructive | 5.06:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 4.79:1 | AA |
| Secondary button | 3.54:1 | AA Large |
| Muted text | 7.62:1 | AAA |
| Accent | 3.54:1 | AA Large |
| Destructive | 4.88:1 | AA |
Paste this into your globals.css to use Pizza in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.032 327.792);
--muted: oklch(0.907 0.046 145.632);
--muted-foreground: oklch(0.405 0.042 145.156);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.032 327.792);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.108 0.028 327.731);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.565 0.097 327.332);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.617 0.093 144.721);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.617 0.093 144.721);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.567 0.229 29.115);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.565 0.097 327.332);
--chart-1: oklch(0.565 0.097 327.332);
--chart-2: oklch(0.617 0.093 144.721);
--chart-3: oklch(0.617 0.093 144.721);
--chart-4: oklch(0.643 0.094 144.762);
--chart-5: oklch(0.564 0.11 327.492);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.027 327.532);
--foreground: oklch(1 0 180);
--muted: oklch(0.285 0.058 144.196);
--muted-foreground: oklch(0.8 0.036 145.679);
--popover: oklch(0.125 0.027 327.532);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.031 327.643);
--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.565 0.097 327.332);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.617 0.093 144.721);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.617 0.093 144.721);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.577 0.233 29.12);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.565 0.097 327.332);
--chart-1: oklch(0.565 0.097 327.332);
--chart-2: oklch(0.617 0.093 144.721);
--chart-3: oklch(0.617 0.093 144.721);
--chart-4: oklch(0.643 0.094 144.762);
--chart-5: oklch(0.564 0.11 327.492);
}