Merry is a shadcn/ui theme built around a purple primary color (#cb7cc3) with green accents (#7ccb84). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the purple primary (#cb7cc3) on a purple-tinted background (#0a050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #0a050ablack |
| Foreground | #050104black | #fcf8fbsnow |
| Card | #fbf3fbghostwhite | #0e070dblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdf7fcsnow | #0a050ablack |
| Popover foreground | #050104black | #fcf8fbsnow |
| Primary | #cb7cc3orchid | #cb7cc3orchid |
| Primary foreground | #0f060eblack | #0f060eblack |
| Secondary | #7ccb84darkseagreen | #7ccb84darkseagreen |
| Secondary foreground | #060f07black | #060f07black |
| Muted | #dfece0gainsboro | #132014black |
| Muted foreground | #566157dimgray | #9ea99fdarkgray |
| Accent | #7ccb84darkseagreen | #7ccb84darkseagreen |
| Accent foreground | #060f07black | #060f07black |
| Destructive | #9d0702darkred | #fd3c35tomato |
| Destructive foreground | #ffd3d2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cb7cc3orchid | #cb7cc3orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 9.91:1 | AAA |
| Muted text | 5.30:1 | AA |
| Accent | 9.91:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 9.91:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 9.91:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Merry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 328.687);
--foreground: oklch(0.083 0.028 330.362);
--muted: oklch(0.93 0.02 148.346);
--muted-foreground: oklch(0.481 0.021 148.101);
--popover: oklch(0.982 0.008 328.687);
--popover-foreground: oklch(0.083 0.028 330.362);
--card: oklch(0.973 0.013 328.736);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.693 0.134 330.555);
--primary-foreground: oklch(0.14 0.024 330.09);
--secondary: oklch(0.772 0.127 146.527);
--secondary-foreground: oklch(0.154 0.023 147.359);
--accent: oklch(0.772 0.127 146.527);
--accent-foreground: oklch(0.154 0.023 147.359);
--destructive: oklch(0.439 0.177 29.588);
--destructive-foreground: oklch(0.904 0.049 20.425);
--ring: oklch(0.693 0.134 330.555);
--chart-1: oklch(0.693 0.134 330.555);
--chart-2: oklch(0.772 0.127 146.527);
--chart-3: oklch(0.772 0.127 146.527);
--chart-4: oklch(0.79 0.117 146.766);
--chart-5: oklch(0.693 0.143 330.677);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.016 329.355);
--foreground: oklch(0.983 0.005 328.651);
--muted: oklch(0.227 0.028 147.078);
--muted-foreground: oklch(0.722 0.019 148.3);
--popover: oklch(0.127 0.016 329.355);
--popover-foreground: oklch(0.983 0.005 328.651);
--card: oklch(0.141 0.019 329.785);
--card-foreground: oklch(0.992 0.003 328.622);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.693 0.134 330.555);
--primary-foreground: oklch(0.14 0.024 330.09);
--secondary: oklch(0.772 0.127 146.527);
--secondary-foreground: oklch(0.154 0.023 147.359);
--accent: oklch(0.772 0.127 146.527);
--accent-foreground: oklch(0.154 0.023 147.359);
--destructive: oklch(0.652 0.229 27.764);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.693 0.134 330.555);
--chart-1: oklch(0.693 0.134 330.555);
--chart-2: oklch(0.772 0.127 146.527);
--chart-3: oklch(0.772 0.127 146.527);
--chart-4: oklch(0.79 0.117 146.766);
--chart-5: oklch(0.693 0.143 330.677);
}