Plastic is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted red accents (#c2a8a8). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #040202black |
| Foreground | #000000black | #faf5f5whitesmoke |
| Card | #fcf8f8snow | #040202black |
| Card foreground | #000000black | #faf5f5whitesmoke |
| Popover | #fcf8f8snow | #040202black |
| Popover foreground | #000000black | #faf5f5whitesmoke |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #d0c8c8lightgrey | #2d2a2adarkslategray |
| Secondary foreground | #372f2fdarkslategray | #c6c3c3silver |
| Muted | #e7e4e4gainsboro | #1b1818black |
| Muted foreground | #5a4949darkolivegreen | #b6a5a5darkgray |
| Accent | #c2a8a8darkgray | #483c3cdarkslategray |
| Accent foreground | #211717black | #dfd8d8gainsboro |
| Destructive | #ab2f0dfirebrick | #f16741tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 7.47:1 | AAA |
| Accent | 7.48:1 | AAA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Plastic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 17.237);
--foreground: oklch(0 0 0);
--muted: oklch(0.922 0.003 17.208);
--muted-foreground: oklch(0.424 0.022 18.063);
--popover: oklch(0.982 0.005 17.237);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.005 17.237);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.839 0.009 17.338);
--secondary-foreground: oklch(0.314 0.012 17.802);
--accent: oklch(0.754 0.031 17.864);
--accent-foreground: oklch(0.217 0.016 18.495);
--destructive: oklch(0.493 0.165 34.831);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.839 0.009 17.338);
--chart-3: oklch(0.754 0.031 17.864);
--chart-4: oklch(0.864 0.008 17.305);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.009 19.186);
--foreground: oklch(0.973 0.006 17.253);
--muted: oklch(0.213 0.004 17.474);
--muted-foreground: oklch(0.737 0.019 17.592);
--popover: oklch(0.085 0.009 19.186);
--popover-foreground: oklch(0.973 0.006 17.253);
--card: oklch(0.085 0.009 19.186);
--card-foreground: oklch(0.973 0.006 17.253);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.288 0.004 17.377);
--secondary-foreground: oklch(0.819 0.004 17.237);
--accent: oklch(0.37 0.017 17.933);
--accent-foreground: oklch(0.888 0.007 17.29);
--destructive: oklch(0.68 0.178 36.272);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.288 0.004 17.377);
--chart-3: oklch(0.37 0.017 17.933);
--chart-4: oklch(0.318 0.004 17.386);
--chart-5: oklch(1 0 180);
}