Plate is a shadcn/ui theme built around a vivid light violet primary color (#d5adf5) with vivid light purple accents (#f5adf2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light violet primary (#d5adf5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0d0514black | #f7f6f8whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #0b0410black | #faf9fbghostwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #0b0410black | #faf9fbghostwhite |
| Primary | #d5adf5plum | #d5adf5plum |
| Primary foreground | #3d0c64indigo | #3d0c64indigo |
| Secondary | #b0adf5lightsteelblue | #b0adf5lightsteelblue |
| Secondary foreground | #100c64midnightblue | #100c64midnightblue |
| Muted | #dadaddgainsboro | #222225black |
| Muted foreground | #58585adimgray | #a5a5a7darkgray |
| Accent | #f5adf2plum | #f5adf2plum |
| Accent foreground | #640c60indigo | #640c60indigo |
| Destructive | #792b01saddlebrown | #fd6412orangered |
| Destructive foreground | #fecaaepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d5adf5plum | #d5adf5plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 5.06:1 | AA |
| Accent | 6.88:1 | AA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 6.88:1 | AA |
| Destructive | 6.98:1 | AA |
Paste this into your globals.css to use Plate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.035 309.089);
--muted: oklch(0.888 0.005 288.608);
--muted-foreground: oklch(0.462 0.003 288.594);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.13 0.03 310.351);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.13 0.03 310.351);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.807 0.108 309.174);
--primary-foreground: oklch(0.297 0.14 303.098);
--secondary: oklch(0.777 0.103 286.033);
--secondary-foreground: oklch(0.25 0.144 271.286);
--accent: oklch(0.838 0.122 328.297);
--accent-foreground: oklch(0.357 0.151 330.567);
--destructive: oklch(0.4 0.118 42.503);
--destructive-foreground: oklch(0.878 0.07 49.72);
--ring: oklch(0.807 0.108 309.174);
--chart-1: oklch(0.807 0.108 309.174);
--chart-2: oklch(0.777 0.103 286.033);
--chart-3: oklch(0.838 0.122 328.297);
--chart-4: oklch(0.814 0.085 286.646);
--chart-5: oklch(0.806 0.112 309.121);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 310.412);
--muted: oklch(0.253 0.007 288.213);
--muted-foreground: oklch(0.722 0.003 288.643);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.984 0.002 310.421);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.002 310.421);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.807 0.108 309.174);
--primary-foreground: oklch(0.297 0.14 303.098);
--secondary: oklch(0.777 0.103 286.033);
--secondary-foreground: oklch(0.25 0.144 271.286);
--accent: oklch(0.838 0.122 328.297);
--accent-foreground: oklch(0.357 0.151 330.567);
--destructive: oklch(0.69 0.202 42.133);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.807 0.108 309.174);
--chart-1: oklch(0.807 0.108 309.174);
--chart-2: oklch(0.777 0.103 286.033);
--chart-3: oklch(0.838 0.122 328.297);
--chart-4: oklch(0.814 0.085 286.646);
--chart-5: oklch(0.806 0.112 309.121);
}