Madagascar Pink Silkworm is a shadcn/ui theme built around a red primary color (#d199a6) with orange accents (#d1a899). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the red primary (#d199a6) on a neutral background (#070304).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f8snow | #070304black |
| Foreground | #090103black | #ffffffwhite |
| Card | #fcf3f5lavenderblush | #0a0506black |
| Card foreground | #050101black | #ffffffwhite |
| Popover | #fdf7f8snow | #070304black |
| Popover foreground | #090103black | #ffffffwhite |
| Primary | #d199a6rosybrown | #d199a6rosybrown |
| Primary foreground | #271116black | #271116black |
| Secondary | #d199c2plum | #d199c2plum |
| Secondary foreground | #271121black | #271121black |
| Muted | #efe6edlavender | #191017black |
| Muted foreground | #5c4d58dimgray | #b2a3aedarkgray |
| Accent | #d1a899tan | #d1a899tan |
| Accent foreground | #271711black | #271711black |
| Destructive | #7e280csaddlebrown | #e54915orangered |
| Destructive foreground | #f9d0c2peachpuff | #ffffffwhite |
| Border | #e6e5e5gainsboro | #252323black |
| Input | #e6e5e5gainsboro | #252323black |
| Ring | #d199a6rosybrown | #d199a6rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 20.47:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Madagascar Pink Silkworm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 1.163);
--foreground: oklch(0.1 0.027 0.993);
--muted: oklch(0.934 0.014 334.781);
--muted-foreground: oklch(0.438 0.027 335.555);
--popover: oklch(0.981 0.007 1.163);
--popover-foreground: oklch(0.1 0.027 0.993);
--card: oklch(0.971 0.011 1.268);
--card-foreground: oklch(0.079 0.022 0.993);
--border: oklch(0.922 0.002 1.013);
--input: oklch(0.922 0.002 1.013);
--primary: oklch(0.74 0.069 3.486);
--primary-foreground: oklch(0.212 0.036 5.637);
--secondary: oklch(0.749 0.086 336.423);
--secondary-foreground: oklch(0.217 0.044 337.785);
--accent: oklch(0.765 0.053 40.935);
--accent-foreground: oklch(0.224 0.028 40.785);
--destructive: oklch(0.405 0.124 37.196);
--destructive-foreground: oklch(0.89 0.05 39.27);
--ring: oklch(0.74 0.069 3.486);
--chart-1: oklch(0.74 0.069 3.486);
--chart-2: oklch(0.749 0.086 336.423);
--chart-3: oklch(0.765 0.053 40.935);
--chart-4: oklch(0.775 0.077 336.169);
--chart-5: oklch(0.738 0.075 3.699);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.01 0.971);
--foreground: oklch(1 0 180);
--muted: oklch(0.187 0.02 336.324);
--muted-foreground: oklch(0.733 0.023 335.076);
--popover: oklch(0.11 0.01 0.971);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.012 0.971);
--card-foreground: oklch(1 0 180);
--border: oklch(0.257 0.003 1.321);
--input: oklch(0.257 0.003 1.321);
--primary: oklch(0.74 0.069 3.486);
--primary-foreground: oklch(0.212 0.036 5.637);
--secondary: oklch(0.749 0.086 336.423);
--secondary-foreground: oklch(0.217 0.044 337.785);
--accent: oklch(0.765 0.053 40.935);
--accent-foreground: oklch(0.224 0.028 40.785);
--destructive: oklch(0.621 0.2 36.515);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.74 0.069 3.486);
--chart-1: oklch(0.74 0.069 3.486);
--chart-2: oklch(0.749 0.086 336.423);
--chart-3: oklch(0.765 0.053 40.935);
--chart-4: oklch(0.775 0.077 336.169);
--chart-5: oklch(0.738 0.075 3.699);
}