Postbox is a shadcn/ui theme built around a green primary color (#97d874) with green accents (#74d883). The light mode uses a neutral background (#f9fdf6). Dark mode keeps the green primary (#97d874) on a green-tinted background (#090f06).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf6mintcream | #090f06black |
| Foreground | #060d02black | #ffffffwhite |
| Card | #f6fdf2honeydew | #0b1207black |
| Card foreground | #040902black | #ffffffwhite |
| Popover | #f9fdf6mintcream | #090f06black |
| Popover foreground | #060d02black | #ffffffwhite |
| Primary | #97d874lightgreen | #97d874lightgreen |
| Primary foreground | #0b1406black | #0b1406black |
| Secondary | #c9d874darkkhaki | #c9d874darkkhaki |
| Secondary foreground | #121406black | #121406black |
| Muted | #e7e7e4gainsboro | #1b1b18black |
| Muted foreground | #535350darkslategray | #afafacdarkgray |
| Accent | #74d883lightgreen | #74d883lightgreen |
| Accent foreground | #061408black | #061408black |
| Destructive | #73290csaddlebrown | #e9612bchocolate |
| Destructive foreground | #f8cbbapeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #97d874lightgreen | #97d874lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 11.06:1 | AAA |
| Secondary button | 11.98:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 10.67:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 11.06:1 | AAA |
| Secondary button | 11.98:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 10.67:1 | AAA |
| Destructive | 6.18:1 | AA |
Paste this into your globals.css to use Postbox in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.01 134.279);
--foreground: oklch(0.146 0.029 132.596);
--muted: oklch(0.927 0.005 113.403);
--muted-foreground: oklch(0.442 0.005 113.529);
--popover: oklch(0.99 0.01 134.279);
--popover-foreground: oklch(0.146 0.029 132.596);
--card: oklch(0.985 0.016 134.309);
--card-foreground: oklch(0.127 0.025 132.335);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.815 0.148 135.529);
--primary-foreground: oklch(0.177 0.032 134.597);
--secondary: oklch(0.849 0.126 116.177);
--secondary-foreground: oklch(0.184 0.028 115.872);
--accent: oklch(0.8 0.152 147.33);
--accent-foreground: oklch(0.173 0.033 148.116);
--destructive: oklch(0.388 0.111 39.603);
--destructive-foreground: oklch(0.877 0.056 42.686);
--ring: oklch(0.815 0.148 135.529);
--chart-1: oklch(0.815 0.148 135.529);
--chart-2: oklch(0.849 0.126 116.177);
--chart-3: oklch(0.8 0.152 147.33);
--chart-4: oklch(0.861 0.117 115.892);
--chart-5: oklch(0.82 0.154 135.609);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.021 133.769);
--foreground: oklch(1 0 180);
--muted: oklch(0.221 0.007 113.88);
--muted-foreground: oklch(0.753 0.005 113.421);
--popover: oklch(0.157 0.021 133.769);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.172 0.025 134.718);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.815 0.148 135.529);
--primary-foreground: oklch(0.177 0.032 134.597);
--secondary: oklch(0.849 0.126 116.177);
--secondary-foreground: oklch(0.184 0.028 115.872);
--accent: oklch(0.8 0.152 147.33);
--accent-foreground: oklch(0.173 0.033 148.116);
--destructive: oklch(0.656 0.181 40.076);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.815 0.148 135.529);
--chart-1: oklch(0.815 0.148 135.529);
--chart-2: oklch(0.849 0.126 116.177);
--chart-3: oklch(0.8 0.152 147.33);
--chart-4: oklch(0.861 0.117 115.892);
--chart-5: oklch(0.82 0.154 135.609);
}