Plate is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#e1d5d5). The light mode uses a neutral background (#fdf6f6). Dark mode keeps the near-black primary (#000000) on a neutral background (#080202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f6snow | #080202black |
| Foreground | #110303black | #fdfcfcsnow |
| Card | #fdf6f6snow | #080202black |
| Card foreground | #110303black | #fdfcfcsnow |
| Popover | #fdf6f6snow | #080202black |
| Popover foreground | #110303black | #fdfcfcsnow |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #e1d5d5gainsboro | #292929darkslategray |
| Secondary foreground | #4e3737darkslategray | #c2c2c2silver |
| Muted | #eae1e1gainsboro | #1e1515black |
| Muted foreground | #444141darkslategray | #bebbbbsilver |
| Accent | #e1d5d5gainsboro | #292929darkslategray |
| Accent foreground | #4e3737darkslategray | #c2c2c2silver |
| Destructive | #b10502darkred | #ed0602red |
| Destructive foreground | #ffe6e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 9.37:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 4.52:1 | AA |
Paste this into your globals.css to use Plate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 17.283);
--foreground: oklch(0.13 0.03 22.102);
--muted: oklch(0.917 0.009 17.319);
--muted-foreground: oklch(0.378 0.004 17.316);
--popover: oklch(0.98 0.007 17.283);
--popover-foreground: oklch(0.13 0.03 22.102);
--card: oklch(0.98 0.007 17.283);
--card-foreground: oklch(0.13 0.03 22.102);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.883 0.013 17.411);
--secondary-foreground: oklch(0.362 0.032 18.767);
--accent: oklch(0.883 0.013 17.411);
--accent-foreground: oklch(0.362 0.032 18.767);
--destructive: oklch(0.478 0.194 29.336);
--destructive-foreground: oklch(0.945 0.027 18.81);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.883 0.013 17.411);
--chart-3: oklch(0.883 0.013 17.411);
--chart-4: oklch(0.909 0.01 17.349);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.019 20.789);
--foreground: oklch(0.991 0.002 17.192);
--muted: oklch(0.208 0.013 18.281);
--muted-foreground: oklch(0.795 0.003 17.22);
--popover: oklch(0.103 0.019 20.789);
--popover-foreground: oklch(0.991 0.002 17.192);
--card: oklch(0.103 0.019 20.789);
--card-foreground: oklch(0.991 0.002 17.192);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.28 0 180);
--secondary-foreground: oklch(0.813 0 165.964);
--accent: oklch(0.28 0 180);
--accent-foreground: oklch(0.813 0 165.964);
--destructive: oklch(0.596 0.243 29.304);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.28 0 180);
--chart-3: oklch(0.28 0 180);
--chart-4: oklch(0.311 0 180);
--chart-5: oklch(0 0 0);
}