Pistachio Pudding Silkworm is a shadcn/ui theme built around a green primary color (#c7d4ab) with green accents (#b3d4ab). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#c7d4ab) on a green-tinted background (#0d1004).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0d1004black |
| Foreground | #0a0e02black | #ffffffwhite |
| Card | #fbfdf7snow | #101405black |
| Card foreground | #070901black | #ffffffwhite |
| Popover | #fdfefbwhite | #0d1004black |
| Popover foreground | #0a0e02black | #ffffffwhite |
| Primary | #c7d4absilver | #c7d4absilver |
| Primary foreground | #2b321adarkslategray | #2b321adarkslategray |
| Secondary | #d4cbabsilver | #d4cbabsilver |
| Secondary foreground | #322e1adarkslategray | #322e1adarkslategray |
| Muted | #edece9linen | #161612black |
| Muted foreground | #68655adimgray | #a5a297darkgray |
| Accent | #b3d4absilver | #b3d4absilver |
| Accent foreground | #1f321adarkslategray | #1f321adarkslategray |
| Destructive | #7c3309saddlebrown | #ef6b1fchocolate |
| Destructive foreground | #fad3bcpeachpuff | #000000black |
| Border | #eeefecwhitesmoke | #1a1c17black |
| Input | #eeefecwhitesmoke | #1a1c17black |
| Ring | #c7d4absilver | #c7d4absilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 4.93:1 | AA |
| Accent | 8.42:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.22:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 7.10:1 | AAA |
| Accent | 8.42:1 | AAA |
| Destructive | 6.82:1 | AA |
Paste this into your globals.css to use Pistachio Pudding Silkworm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 120.111);
--foreground: oklch(0.153 0.03 120.636);
--muted: oklch(0.942 0.004 95.09);
--muted-foreground: oklch(0.506 0.017 95.398);
--popover: oklch(0.996 0.004 120.111);
--popover-foreground: oklch(0.153 0.03 120.636);
--card: oklch(0.991 0.009 120.185);
--card-foreground: oklch(0.133 0.026 119.865);
--border: oklch(0.949 0.004 120.107);
--input: oklch(0.949 0.004 120.107);
--primary: oklch(0.849 0.056 121.175);
--primary-foreground: oklch(0.305 0.042 122.538);
--secondary: oklch(0.842 0.045 95.565);
--secondary-foreground: oklch(0.299 0.033 95.787);
--accent: oklch(0.834 0.066 139.433);
--accent-foreground: oklch(0.295 0.05 139.5);
--destructive: oklch(0.417 0.113 44.87);
--destructive-foreground: oklch(0.895 0.054 51.813);
--ring: oklch(0.849 0.056 121.175);
--chart-1: oklch(0.849 0.056 121.175);
--chart-2: oklch(0.842 0.045 95.565);
--chart-3: oklch(0.834 0.066 139.433);
--chart-4: oklch(0.861 0.039 95.504);
--chart-5: oklch(0.853 0.061 121.274);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.165 0.025 121.574);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.006 95.388);
--muted-foreground: oklch(0.712 0.016 95.282);
--popover: oklch(0.165 0.025 121.574);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.182 0.029 122.4);
--card-foreground: oklch(1 0 180);
--border: oklch(0.222 0.008 120.646);
--input: oklch(0.222 0.008 120.646);
--primary: oklch(0.849 0.056 121.175);
--primary-foreground: oklch(0.305 0.042 122.538);
--secondary: oklch(0.842 0.045 95.565);
--secondary-foreground: oklch(0.299 0.033 95.787);
--accent: oklch(0.834 0.066 139.433);
--accent-foreground: oklch(0.295 0.05 139.5);
--destructive: oklch(0.68 0.182 45.246);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.849 0.056 121.175);
--chart-1: oklch(0.849 0.056 121.175);
--chart-2: oklch(0.842 0.045 95.565);
--chart-3: oklch(0.834 0.066 139.433);
--chart-4: oklch(0.861 0.039 95.504);
--chart-5: oklch(0.853 0.061 121.274);
}