Platelet is a shadcn/ui theme built around a green primary color (#85d756) with muted light green accents (#cedec4). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#85d756) on a green-tinted background (#090f05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #090f05black |
| Foreground | #000000black | #f7f8f6whitesmoke |
| Card | #ffffffwhite | #090f05black |
| Card foreground | #000000black | #f7f8f6whitesmoke |
| Popover | #ffffffwhite | #090f05black |
| Popover foreground | #000000black | #f7f8f6whitesmoke |
| Primary | #85d756yellowgreen | #85d756yellowgreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #dfe6dbgainsboro | #272e23darkslategray |
| Secondary foreground | #44553adarkolivegreen | #c0cabasilver |
| Muted | #dce4d7gainsboro | #1f281bblack |
| Muted foreground | #4b5049darkslategray | #b1b6afdarkgray |
| Accent | #cedec4lightgrey | #3a4b30darkslategray |
| Accent foreground | #344828darkslategray | #d4dfcdlightgrey |
| Destructive | #923d0csaddlebrown | #ec6618chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #85d756yellowgreen | #85d756yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 11.88:1 | AAA |
| Secondary button | 6.32:1 | AA |
| Muted text | 6.36:1 | AA |
| Accent | 7.06:1 | AAA |
| Destructive | 7.23:1 | AAA |
| Text on background | 18.19:1 | AAA |
| Text on card | 18.19:1 | AAA |
| Primary button | 11.88:1 | AAA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 6.47:1 | AA |
Paste this into your globals.css to use Platelet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.91 0.02 133.743);
--muted-foreground: oklch(0.426 0.014 133.812);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.8 0.183 135.732);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.917 0.017 133.725);
--secondary-foreground: oklch(0.427 0.048 134.391);
--accent: oklch(0.881 0.039 133.887);
--accent-foreground: oklch(0.375 0.057 134.735);
--destructive: oklch(0.469 0.128 44.778);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.8 0.183 135.732);
--chart-1: oklch(0.8 0.183 135.732);
--chart-2: oklch(0.917 0.017 133.725);
--chart-3: oklch(0.881 0.039 133.887);
--chart-4: oklch(0.938 0.013 133.693);
--chart-5: oklch(0.807 0.19 135.854);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.024 133.163);
--foreground: oklch(0.979 0.003 133.627);
--muted: oklch(0.263 0.027 134.298);
--muted-foreground: oklch(0.771 0.012 133.703);
--popover: oklch(0.159 0.024 133.163);
--popover-foreground: oklch(0.979 0.003 133.627);
--card: oklch(0.159 0.024 133.163);
--card-foreground: oklch(0.979 0.003 133.627);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.8 0.183 135.732);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.291 0.021 134.08);
--secondary-foreground: oklch(0.826 0.024 133.793);
--accent: oklch(0.389 0.049 134.496);
--accent-foreground: oklch(0.891 0.027 133.798);
--destructive: oklch(0.668 0.184 44.46);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.8 0.183 135.732);
--chart-1: oklch(0.8 0.183 135.732);
--chart-2: oklch(0.291 0.021 134.08);
--chart-3: oklch(0.389 0.049 134.496);
--chart-4: oklch(0.324 0.024 134.1);
--chart-5: oklch(0.807 0.19 135.854);
}