Plastic is a shadcn/ui theme built around a light red primary color (#e4cbc9) with light cyan accents (#c9e1e4). The light mode uses a neutral background (#fefbfb). Dark mode keeps the light red primary (#e4cbc9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #000000black | #f8f6f6whitesmoke |
| Card | #fefbfbsnow | #000000black |
| Card foreground | #000000black | #f8f6f6whitesmoke |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #000000black | #f8f6f6whitesmoke |
| Primary | #e4cbc9lightgrey | #e4cbc9lightgrey |
| Primary foreground | #512c29darkslategray | #512c29darkslategray |
| Secondary | #c9e1e4gainsboro | #c9e1e4gainsboro |
| Secondary foreground | #294e51darkslategray | #294e51darkslategray |
| Muted | #eef1f2whitesmoke | #0d1111black |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #c9e1e4gainsboro | #c9e1e4gainsboro |
| Accent foreground | #294e51darkslategray | #294e51darkslategray |
| Destructive | #8d330csaddlebrown | #ee733ftomato |
| Destructive foreground | #fbddd0bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e4cbc9lightgrey | #e4cbc9lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 6.69:1 | AA |
| Muted text | 5.46:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 6.69:1 | AA |
| Muted text | 7.08:1 | AAA |
| Accent | 6.69:1 | AA |
| 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.991 0.003 23.609);
--foreground: oklch(0 0 0);
--muted: oklch(0.957 0.004 203.543);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(0.991 0.003 23.609);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.003 23.609);
--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.862 0.028 23.925);
--primary-foreground: oklch(0.341 0.055 25.891);
--secondary: oklch(0.894 0.026 203.336);
--secondary-foreground: oklch(0.398 0.043 203.183);
--accent: oklch(0.894 0.026 203.336);
--accent-foreground: oklch(0.398 0.043 203.183);
--destructive: oklch(0.445 0.131 40.06);
--destructive-foreground: oklch(0.919 0.038 44.613);
--ring: oklch(0.862 0.028 23.925);
--chart-1: oklch(0.862 0.028 23.925);
--chart-2: oklch(0.894 0.026 203.336);
--chart-3: oklch(0.894 0.026 203.336);
--chart-4: oklch(0.914 0.021 203.381);
--chart-5: oklch(0.861 0.031 23.961);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.002 23.602);
--muted: oklch(0.174 0.006 203.308);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.002 23.602);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.002 23.602);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.862 0.028 23.925);
--primary-foreground: oklch(0.341 0.055 25.891);
--secondary: oklch(0.894 0.026 203.336);
--secondary-foreground: oklch(0.398 0.043 203.183);
--accent: oklch(0.894 0.026 203.336);
--accent-foreground: oklch(0.398 0.043 203.183);
--destructive: oklch(0.693 0.166 42.352);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.862 0.028 23.925);
--chart-1: oklch(0.862 0.028 23.925);
--chart-2: oklch(0.894 0.026 203.336);
--chart-3: oklch(0.894 0.026 203.336);
--chart-4: oklch(0.914 0.021 203.381);
--chart-5: oklch(0.861 0.031 23.961);
}