Plastic is a shadcn/ui theme built around a muted deep green primary color (#355f49) with muted deep pink accents (#5f354b). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted deep green primary (#355f49) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #010403black |
| Foreground | #02120ablack | #ffffffwhite |
| Card | #fbfefcwhite | #010403black |
| Card foreground | #02120ablack | #ffffffwhite |
| Popover | #fbfefcwhite | #010403black |
| Popover foreground | #02120ablack | #ffffffwhite |
| Primary | #355f49darkslategray | #355f49darkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5f354bdarkslategray | #5f354bdarkslategray |
| Secondary foreground | #ebdbe3gainsboro | #ebdbe3gainsboro |
| Muted | #e7d9e1gainsboro | #26181fblack |
| Muted foreground | #685a61dimgray | #a5979edarkgray |
| Accent | #5f354bdarkslategray | #5f354bdarkslategray |
| Accent foreground | #ebdbe3gainsboro | #ebdbe3gainsboro |
| Destructive | #9a3604saddlebrown | #f96b24tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #355f49darkslategray | #355f49darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 4.79:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 6.12:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 7.18:1 | AAA |
Paste this into your globals.css to use Plastic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 164.172);
--foreground: oklch(0.165 0.031 161.503);
--muted: oklch(0.9 0.018 344.796);
--muted-foreground: oklch(0.484 0.021 345.342);
--popover: oklch(0.994 0.004 164.172);
--popover-foreground: oklch(0.165 0.031 161.503);
--card: oklch(0.994 0.004 164.172);
--card-foreground: oklch(0.165 0.031 161.503);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.449 0.061 160.059);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.388 0.069 348.492);
--secondary-foreground: oklch(0.906 0.021 344.87);
--accent: oklch(0.388 0.069 348.492);
--accent-foreground: oklch(0.906 0.021 344.87);
--destructive: oklch(0.472 0.144 40.728);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.449 0.061 160.059);
--chart-1: oklch(0.449 0.061 160.059);
--chart-2: oklch(0.388 0.069 348.492);
--chart-3: oklch(0.388 0.069 348.492);
--chart-4: oklch(0.415 0.075 348.556);
--chart-5: oklch(0.454 0.066 159.625);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.012 164.386);
--foreground: oklch(1 0 180);
--muted: oklch(0.228 0.026 347.004);
--muted-foreground: oklch(0.691 0.019 344.967);
--popover: oklch(0.098 0.012 164.386);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.098 0.012 164.386);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.449 0.061 160.059);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.388 0.069 348.492);
--secondary-foreground: oklch(0.906 0.021 344.87);
--accent: oklch(0.388 0.069 348.492);
--accent-foreground: oklch(0.906 0.021 344.87);
--destructive: oklch(0.695 0.19 42.957);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.449 0.061 160.059);
--chart-1: oklch(0.449 0.061 160.059);
--chart-2: oklch(0.388 0.069 348.492);
--chart-3: oklch(0.388 0.069 348.492);
--chart-4: oklch(0.415 0.075 348.556);
--chart-5: oklch(0.454 0.066 159.625);
}