Merry is a shadcn/ui theme built around a light violet primary color (#dfbbed) with light green accents (#c8edbb). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light violet primary (#dfbbed) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #060208black | #f8f6f9whitesmoke |
| Card | #fdfbfewhite | #000000black |
| Card foreground | #060208black | #f8f6f9whitesmoke |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #060208black | #f8f6f9whitesmoke |
| Primary | #dfbbedthistle | #dfbbedthistle |
| Primary foreground | #4b195dindigo | #4b195dindigo |
| Secondary | #c8edbblightgrey | #c8edbblightgrey |
| Secondary foreground | #2b5d19forestgreen | #2b5d19forestgreen |
| Muted | #dce1dbgainsboro | #20241eblack |
| Muted foreground | #42523ddarkslategray | #b3c2adsilver |
| Accent | #c8edbblightgrey | #c8edbblightgrey |
| Accent foreground | #2b5d19forestgreen | #2b5d19forestgreen |
| Destructive | #b50303darkred | #f10404red |
| Destructive foreground | #ffebeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dfbbedthistle | #dfbbedthistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 6.31:1 | AA |
| Accent | 6.06:1 | AA |
| Destructive | 6.16:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 8.42:1 | AAA |
| Accent | 6.06:1 | AA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Merry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 317.18);
--foreground: oklch(0.106 0.023 319.041);
--muted: oklch(0.904 0.009 137.213);
--muted-foreground: oklch(0.419 0.04 137.443);
--popover: oklch(0.991 0.004 317.18);
--popover-foreground: oklch(0.106 0.023 319.041);
--card: oklch(0.991 0.004 317.18);
--card-foreground: oklch(0.106 0.023 319.041);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.839 0.079 316.971);
--primary-foreground: oklch(0.324 0.121 315.593);
--secondary: oklch(0.906 0.077 137.412);
--secondary-foreground: oklch(0.427 0.113 138.607);
--accent: oklch(0.906 0.077 137.412);
--accent-foreground: oklch(0.427 0.113 138.607);
--destructive: oklch(0.486 0.198 29.086);
--destructive-foreground: oklch(0.956 0.022 17.536);
--ring: oklch(0.839 0.079 316.971);
--chart-1: oklch(0.839 0.079 316.971);
--chart-2: oklch(0.906 0.077 137.412);
--chart-3: oklch(0.906 0.077 137.412);
--chart-4: oklch(0.922 0.064 137.363);
--chart-5: oklch(0.837 0.083 316.958);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.005 317.178);
--muted: oklch(0.254 0.013 137.311);
--muted-foreground: oklch(0.797 0.034 137.293);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.005 317.178);
--card: oklch(0 0 0);
--card-foreground: oklch(0.975 0.005 317.178);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.839 0.079 316.971);
--primary-foreground: oklch(0.324 0.121 315.593);
--secondary: oklch(0.906 0.077 137.412);
--secondary-foreground: oklch(0.427 0.113 138.607);
--accent: oklch(0.906 0.077 137.412);
--accent-foreground: oklch(0.427 0.113 138.607);
--destructive: oklch(0.603 0.246 29.13);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.839 0.079 316.971);
--chart-1: oklch(0.839 0.079 316.971);
--chart-2: oklch(0.906 0.077 137.412);
--chart-3: oklch(0.906 0.077 137.412);
--chart-4: oklch(0.922 0.064 137.363);
--chart-5: oklch(0.837 0.083 316.958);
}