Plastic is a shadcn/ui theme built around a muted teal primary color (#81a29a) with muted cyan accents (#8199a2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#81a29a) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020303black |
| Foreground | #020d0bblack | #f5faf9mintcream |
| Card | #ffffffwhite | #020303black |
| Card foreground | #020d0bblack | #f5faf9mintcream |
| Popover | #ffffffwhite | #020303black |
| Popover foreground | #020d0bblack | #f5faf9mintcream |
| Primary | #81a29alightslategray | #81a29alightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #81a28adarkseagreen | #81a28adarkseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #d7eadcgainsboro | #15281ablack |
| Muted foreground | #5b625ddimgray | #9da49fdarkgray |
| Accent | #8199a2lightslategray | #8199a2lightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #9d2001darkred | #fe5025orangered |
| Destructive foreground | #ffdad1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #81a29alightslategray | #81a29alightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 4.97:1 | AA |
| Accent | 7.01:1 | AAA |
| Destructive | 6.11:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 7.01:1 | AAA |
| Destructive | 3.28:1 | AA Large |
Paste this into your globals.css to use Plastic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.02 179.817);
--muted: oklch(0.918 0.027 154.007);
--muted-foreground: oklch(0.488 0.013 154.057);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.02 179.817);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.02 179.817);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.685 0.038 179.296);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.68 0.051 153.128);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.667 0.03 221.821);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.454 0.165 33.509);
--destructive-foreground: oklch(0.918 0.043 34.326);
--ring: oklch(0.685 0.038 179.296);
--chart-1: oklch(0.685 0.038 179.296);
--chart-2: oklch(0.68 0.051 153.128);
--chart-3: oklch(0.667 0.03 221.821);
--chart-4: oklch(0.703 0.047 153.286);
--chart-5: oklch(0.69 0.045 178.972);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.007 180.952);
--foreground: oklch(0.981 0.006 180.781);
--muted: oklch(0.255 0.035 151.743);
--muted-foreground: oklch(0.712 0.012 154.236);
--popover: oklch(0.096 0.007 180.952);
--popover-foreground: oklch(0.981 0.006 180.781);
--card: oklch(0.096 0.007 180.952);
--card-foreground: oklch(0.981 0.006 180.781);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.685 0.038 179.296);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.68 0.051 153.128);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.667 0.03 221.821);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.67 0.217 34.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.685 0.038 179.296);
--chart-1: oklch(0.685 0.038 179.296);
--chart-2: oklch(0.68 0.051 153.128);
--chart-3: oklch(0.667 0.03 221.821);
--chart-4: oklch(0.703 0.047 153.286);
--chart-5: oklch(0.69 0.045 178.972);
}