Plum Preserve Chinchilla is a shadcn/ui theme built around a muted violet primary color (#7e6ea6) with muted green accents (#6ea67e). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted violet primary (#7e6ea6) on a violet-tinted background (#06040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #06040cblack |
| Foreground | #040208black | #fcfcfdwhite |
| Card | #f9f8fbghostwhite | #080510black |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #f9f8fbghostwhite | #080510black |
| Popover foreground | #020104black | #ffffffwhite |
| Primary | #7e6ea6lightslategray | #7e6ea6lightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a67e6egray | #a67e6egray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f0efefwhitesmoke | #100f0fblack |
| Muted foreground | #6e5f59dimgray | #a69791rosybrown |
| Accent | #6ea67ecadetblue | #6ea67ecadetblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #bd1b0ffirebrick | #e72113crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e4e7gainsboro | #252429darkslategray |
| Input | #e5e4e7gainsboro | #252429darkslategray |
| Ring | #7e6ea6lightslategray | #7e6ea6lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 4.51:1 | AA |
| Secondary button | 5.84:1 | AA |
| Muted text | 5.33:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 4.51:1 | AA |
| Secondary button | 5.84:1 | AA |
| Muted text | 6.79:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 4.53:1 | AA |
Paste this into your globals.css to use Plum Preserve Chinchilla in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 300.003);
--foreground: oklch(0.096 0.025 300.305);
--muted: oklch(0.954 0.001 44.968);
--muted-foreground: oklch(0.499 0.022 44.583);
--popover: oklch(0.982 0.004 299.967);
--popover-foreground: oklch(0.076 0.02 300.305);
--card: oklch(0.982 0.004 299.967);
--card-foreground: oklch(0.076 0.02 300.305);
--border: oklch(0.92 0.004 299.961);
--input: oklch(0.92 0.004 299.961);
--primary: oklch(0.575 0.087 297.39);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.628 0.055 44.292);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.675 0.083 153.216);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.511 0.196 29.688);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.575 0.087 297.39);
--chart-1: oklch(0.575 0.087 297.39);
--chart-2: oklch(0.628 0.055 44.292);
--chart-3: oklch(0.675 0.083 153.216);
--chart-4: oklch(0.654 0.051 44.356);
--chart-5: oklch(0.568 0.098 296.992);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.023 300.086);
--foreground: oklch(0.991 0.002 300.002);
--muted: oklch(0.169 0.002 44.861);
--muted-foreground: oklch(0.688 0.021 44.701);
--popover: oklch(0.127 0.027 298.954);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.027 298.954);
--card-foreground: oklch(1 0 180);
--border: oklch(0.263 0.009 299.484);
--input: oklch(0.263 0.009 299.484);
--primary: oklch(0.575 0.087 297.39);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.628 0.055 44.292);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.675 0.083 153.216);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.593 0.229 29.721);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.575 0.087 297.39);
--chart-1: oklch(0.575 0.087 297.39);
--chart-2: oklch(0.628 0.055 44.292);
--chart-3: oklch(0.675 0.083 153.216);
--chart-4: oklch(0.654 0.051 44.356);
--chart-5: oklch(0.568 0.098 296.992);
}