Black Cherry Dormouse is a shadcn/ui theme built around a deep pink primary color (#2f1825) with deep green accents (#182f23). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#2f1825) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #17030eblack | #f8f6f7whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #17030eblack | #f8f6f7whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #17030eblack | #f8f6f7whitesmoke |
| Primary | #2f1825black | #2f1825black |
| Primary foreground | #d3a7bfsilver | #d3a7bfsilver |
| Secondary | #182f23darkslategray | #182f23darkslategray |
| Secondary foreground | #a7d3bbsilver | #a7d3bbsilver |
| Muted | #cee3d8gainsboro | #1c3125darkslategray |
| Muted foreground | #474847darkslategray | #b7b8b8silver |
| Accent | #182f23darkslategray | #182f23darkslategray |
| Accent foreground | #a7d3bbsilver | #a7d3bbsilver |
| Destructive | #800d00maroon | #ff1900red |
| Destructive foreground | #ffbab3lightpink | #ffffffwhite |
| Border | #e9e2e6gainsboro | #281f24black |
| Input | #e9e2e6gainsboro | #281f24black |
| Ring | #2f1825black | #2f1825black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 8.58:1 | AAA |
| Muted text | 6.84:1 | AA |
| Accent | 8.58:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 8.58:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 8.58:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Black Cherry Dormouse in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.047 347.067);
--muted: oklch(0.898 0.028 161.833);
--muted-foreground: oklch(0.4 0.002 162.477);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0.047 347.067);
--card: oklch(1 0 180);
--card-foreground: oklch(0.145 0.047 347.067);
--border: oklch(0.92 0.008 342.83);
--input: oklch(0.92 0.008 342.83);
--primary: oklch(0.246 0.043 346.578);
--primary-foreground: oklch(0.775 0.06 344.43);
--secondary: oklch(0.283 0.038 158.601);
--secondary-foreground: oklch(0.828 0.057 160.788);
--accent: oklch(0.283 0.038 158.601);
--accent-foreground: oklch(0.828 0.057 160.788);
--destructive: oklch(0.382 0.148 31.096);
--destructive-foreground: oklch(0.851 0.081 26.048);
--ring: oklch(0.246 0.043 346.578);
--chart-1: oklch(0.246 0.043 346.578);
--chart-2: oklch(0.283 0.038 158.601);
--chart-3: oklch(0.283 0.038 158.601);
--chart-4: oklch(0.319 0.045 158.393);
--chart-5: oklch(0.246 0.047 346.937);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.002 342.678);
--muted: oklch(0.291 0.035 159.142);
--muted-foreground: oklch(0.782 0.002 162.557);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.002 342.678);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.002 342.678);
--border: oklch(0.253 0.016 344.066);
--input: oklch(0.253 0.016 344.066);
--primary: oklch(0.246 0.043 346.578);
--primary-foreground: oklch(0.775 0.06 344.43);
--secondary: oklch(0.283 0.038 158.601);
--secondary-foreground: oklch(0.828 0.057 160.788);
--accent: oklch(0.283 0.038 158.601);
--accent-foreground: oklch(0.828 0.057 160.788);
--destructive: oklch(0.634 0.252 30.244);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.246 0.043 346.578);
--chart-1: oklch(0.246 0.043 346.578);
--chart-2: oklch(0.283 0.038 158.601);
--chart-3: oklch(0.283 0.038 158.601);
--chart-4: oklch(0.319 0.045 158.393);
--chart-5: oklch(0.246 0.047 346.937);
}