Mozzarella is a shadcn/ui theme built around an orange primary color (#b16848) with violet accents (#6848b1). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the orange primary (#b16848) on an orange-tinted background (#0c0604).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #0c0604black |
| Foreground | #0d0502black | #f9f7f6whitesmoke |
| Card | #fdfcfcsnow | #0c0604black |
| Card foreground | #0d0502black | #f9f7f6whitesmoke |
| Popover | #fdfcfcsnow | #0c0604black |
| Popover foreground | #0d0502black | #f9f7f6whitesmoke |
| Primary | #b16848indianred | #b16848indianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #48b168mediumseagreen | #48b168mediumseagreen |
| Secondary foreground | #0d2113black | #0d2113black |
| Muted | #dae2dcgainsboro | #1d251fblack |
| Muted foreground | #39463ddarkslategray | #b9c6bdsilver |
| Accent | #6848b1rebeccapurple | #6848b1rebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #5d1f09maroon | #ee7144tomato |
| Destructive foreground | #f6b8a2lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b16848indianred | #b16848indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 4.24:1 | AA Large |
| Secondary button | 6.27:1 | AA |
| Muted text | 7.50:1 | AAA |
| Accent | 6.63:1 | AA |
| Destructive | 7.35:1 | AAA |
| Text on background | 18.85:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 4.24:1 | AA Large |
| Secondary button | 6.27:1 | AA |
| Muted text | 8.84:1 | AAA |
| Accent | 6.63:1 | AA |
| Destructive | 7.09:1 | AAA |
Paste this into your globals.css to use Mozzarella in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 44.967);
--foreground: oklch(0.129 0.02 55.307);
--muted: oklch(0.905 0.012 155.608);
--muted-foreground: oklch(0.38 0.022 154.697);
--popover: oklch(0.992 0.002 44.967);
--popover-foreground: oklch(0.129 0.02 55.307);
--card: oklch(0.992 0.002 44.967);
--card-foreground: oklch(0.129 0.02 55.307);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.592 0.105 43.544);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.682 0.145 150.583);
--secondary-foreground: oklch(0.225 0.037 152.16);
--accent: oklch(0.493 0.16 293.5);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.333 0.096 38.683);
--destructive-foreground: oklch(0.835 0.079 40.863);
--ring: oklch(0.592 0.105 43.544);
--chart-1: oklch(0.592 0.105 43.544);
--chart-2: oklch(0.682 0.145 150.583);
--chart-3: oklch(0.493 0.16 293.5);
--chart-4: oklch(0.703 0.142 150.938);
--chart-5: oklch(0.594 0.112 43.388);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.014 51.822);
--foreground: oklch(0.977 0.002 44.957);
--muted: oklch(0.256 0.017 154.563);
--muted-foreground: oklch(0.813 0.019 155.426);
--popover: oklch(0.13 0.014 51.822);
--popover-foreground: oklch(0.977 0.002 44.957);
--card: oklch(0.13 0.014 51.822);
--card-foreground: oklch(0.977 0.002 44.957);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.592 0.105 43.544);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.682 0.145 150.583);
--secondary-foreground: oklch(0.225 0.037 152.16);
--accent: oklch(0.493 0.16 293.5);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.69 0.165 39.945);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.592 0.105 43.544);
--chart-1: oklch(0.592 0.105 43.544);
--chart-2: oklch(0.682 0.145 150.583);
--chart-3: oklch(0.493 0.16 293.5);
--chart-4: oklch(0.703 0.142 150.938);
--chart-5: oklch(0.594 0.112 43.388);
}