Platelet is a shadcn/ui theme built around a green primary color (#3bba43) with teal accents (#3bba83). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#3bba43) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #020302black |
| Foreground | #041005black | #fcfdfcwhite |
| Card | #f8fcf8mintcream | #020302black |
| Card foreground | #041005black | #fcfdfcwhite |
| Popover | #f8fcf8mintcream | #020302black |
| Popover foreground | #041005black | #fcfdfcwhite |
| Primary | #3bba43limegreen | #3bba43limegreen |
| Primary foreground | #0a1f0bblack | #0a1f0bblack |
| Secondary | #72ba3byellowgreen | #72ba3byellowgreen |
| Secondary foreground | #131f0ablack | #131f0ablack |
| Muted | #dde6d6gainsboro | #202919black |
| Muted foreground | #666765dimgray | #999a98darkgray |
| Accent | #3bba83mediumseagreen | #3bba83mediumseagreen |
| Accent foreground | #0a1f16black | #0a1f16black |
| Destructive | #8e3b0bsaddlebrown | #df5c11chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3bba43limegreen | #3bba43limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 4.43:1 | AA Large |
| Accent | 6.99:1 | AA |
| Destructive | 7.54:1 | AAA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 6.99:1 | AA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Platelet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 147.483);
--foreground: oklch(0.158 0.032 145.788);
--muted: oklch(0.914 0.024 131.32);
--muted-foreground: oklch(0.512 0.003 131.144);
--popover: oklch(0.987 0.006 147.483);
--popover-foreground: oklch(0.158 0.032 145.788);
--card: oklch(0.987 0.006 147.483);
--card-foreground: oklch(0.158 0.032 145.788);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.695 0.194 144.076);
--primary-foreground: oklch(0.215 0.047 145.048);
--secondary: oklch(0.716 0.175 134.349);
--secondary-foreground: oklch(0.222 0.042 133.168);
--accent: oklch(0.706 0.138 160.517);
--accent-foreground: oklch(0.218 0.033 163.239);
--destructive: oklch(0.459 0.126 44.678);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.695 0.194 144.076);
--chart-1: oklch(0.695 0.194 144.076);
--chart-2: oklch(0.716 0.175 134.349);
--chart-3: oklch(0.706 0.138 160.517);
--chart-4: oklch(0.743 0.178 134.229);
--chart-5: oklch(0.704 0.202 143.938);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.012 146.633);
--foreground: oklch(0.993 0.003 147.519);
--muted: oklch(0.268 0.032 132.253);
--muted-foreground: oklch(0.685 0.003 131.126);
--popover: oklch(0.095 0.012 146.633);
--popover-foreground: oklch(0.993 0.003 147.519);
--card: oklch(0.095 0.012 146.633);
--card-foreground: oklch(0.993 0.003 147.519);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.695 0.194 144.076);
--primary-foreground: oklch(0.215 0.047 145.048);
--secondary: oklch(0.716 0.175 134.349);
--secondary-foreground: oklch(0.222 0.042 133.168);
--accent: oklch(0.706 0.138 160.517);
--accent-foreground: oklch(0.218 0.033 163.239);
--destructive: oklch(0.635 0.18 43.763);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.695 0.194 144.076);
--chart-1: oklch(0.695 0.194 144.076);
--chart-2: oklch(0.716 0.175 134.349);
--chart-3: oklch(0.706 0.138 160.517);
--chart-4: oklch(0.743 0.178 134.229);
--chart-5: oklch(0.704 0.202 143.938);
}