Plastic is a shadcn/ui theme built around a muted red primary color (#7c5755) with muted teal accents (#557a7c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#7c5755) on a red-tinted background (#100605).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100605black |
| Foreground | #000000black | #fcf8f8snow |
| Card | #fcfcfcsnow | #140706black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fcfcfcsnow | #140706black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #7c5755dimgray | #7c5755dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #557a7cdimgray | #557a7cdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4ececlavender | #131b1bblack |
| Muted foreground | #525656dimgray | #a9acaddarkgray |
| Accent | #557a7cdimgray | #557a7cdimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #e11b05red | #fa341eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7c5755dimgray | #7c5755dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 4.72:1 | AA |
| Muted text | 6.19:1 | AA |
| Accent | 4.72:1 | AA |
| Destructive | 4.82:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 4.72:1 | AA |
| Muted text | 7.67:1 | AAA |
| Accent | 4.72:1 | AA |
| Destructive | 3.75: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 0 0);
--muted: oklch(0.937 0.009 202.115);
--muted-foreground: oklch(0.449 0.004 202.118);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.497 0.05 23.601);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.552 0.042 201.609);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.552 0.042 201.609);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.579 0.227 30.337);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.497 0.05 23.601);
--chart-1: oklch(0.497 0.05 23.601);
--chart-2: oklch(0.552 0.042 201.609);
--chart-3: oklch(0.552 0.042 201.609);
--chart-4: oklch(0.581 0.044 201.607);
--chart-5: oklch(0.494 0.058 23.891);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.021 26.096);
--foreground: oklch(0.983 0.003 22.252);
--muted: oklch(0.213 0.012 201.714);
--muted-foreground: oklch(0.743 0.004 202.163);
--popover: oklch(0.148 0.024 25.822);
--popover-foreground: oklch(0.991 0.002 22.233);
--card: oklch(0.148 0.024 25.822);
--card-foreground: oklch(0.991 0.002 22.233);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.497 0.05 23.601);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.552 0.042 201.609);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.552 0.042 201.609);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.64 0.234 30.512);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.497 0.05 23.601);
--chart-1: oklch(0.497 0.05 23.601);
--chart-2: oklch(0.552 0.042 201.609);
--chart-3: oklch(0.552 0.042 201.609);
--chart-4: oklch(0.581 0.044 201.607);
--chart-5: oklch(0.494 0.058 23.891);
}