Guava is a shadcn/ui theme built around a vivid deep pink primary color (#6d0925) with vivid deep red accents (#6d1e09). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#6d0925) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0e0205black | #fdfcfcsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0e0205black | #fdfcfcsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0e0205black | #fdfcfcsnow |
| Primary | #6d0925maroon | #6d0925maroon |
| Primary foreground | #f8afc4lightpink | #f8afc4lightpink |
| Secondary | #6d0957purple | #6d0957purple |
| Secondary foreground | #f8afe9plum | #f8afe9plum |
| Muted | #e2d0degainsboro | #2f1d2bdarkslategray |
| Muted foreground | #6a6268dimgray | #9d959bdarkgray |
| Accent | #6d1e09maroon | #6d1e09maroon |
| Accent foreground | #f8bfaflightpink | #f8bfaflightpink |
| Destructive | #700e0amaroon | #d71a14firebrick |
| Destructive foreground | #f8b7b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d0925maroon | #6d0925maroon |
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 | 6.97:1 | AA |
| Secondary button | 6.76:1 | AA |
| Muted text | 4.00:1 | AA Large |
| Accent | 7.10:1 | AAA |
| Destructive | 7.07:1 | AAA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 6.76:1 | AA |
| Muted text | 5.39:1 | AA |
| Accent | 7.10:1 | AAA |
| Destructive | 5.19:1 | AA |
Paste this into your globals.css to use Guava in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.116 0.032 357.964);
--muted: oklch(0.875 0.028 333.104);
--muted-foreground: oklch(0.506 0.014 333.047);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.116 0.032 357.964);
--card: oklch(1 0 180);
--card-foreground: oklch(0.116 0.032 357.964);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.345 0.13 13.193);
--primary-foreground: oklch(0.829 0.09 0.682);
--secondary: oklch(0.365 0.151 339.683);
--secondary-foreground: oklch(0.841 0.113 334.565);
--accent: oklch(0.36 0.115 35.399);
--accent-foreground: oklch(0.852 0.071 36.004);
--destructive: oklch(0.351 0.132 28.537);
--destructive-foreground: oklch(0.838 0.077 21.063);
--ring: oklch(0.345 0.13 13.193);
--chart-1: oklch(0.345 0.13 13.193);
--chart-2: oklch(0.365 0.151 339.683);
--chart-3: oklch(0.36 0.115 35.399);
--chart-4: oklch(0.397 0.165 339.819);
--chart-5: oklch(0.348 0.133 13.822);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 357.756);
--muted: oklch(0.261 0.038 334.706);
--muted-foreground: oklch(0.679 0.013 332.916);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 357.756);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 357.756);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.345 0.13 13.193);
--primary-foreground: oklch(0.829 0.09 0.682);
--secondary: oklch(0.365 0.151 339.683);
--secondary-foreground: oklch(0.841 0.113 334.565);
--accent: oklch(0.36 0.115 35.399);
--accent-foreground: oklch(0.852 0.071 36.004);
--destructive: oklch(0.56 0.218 28.984);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.345 0.13 13.193);
--chart-1: oklch(0.345 0.13 13.193);
--chart-2: oklch(0.365 0.151 339.683);
--chart-3: oklch(0.36 0.115 35.399);
--chart-4: oklch(0.397 0.165 339.819);
--chart-5: oklch(0.348 0.133 13.822);
}