Packet is a shadcn/ui theme built around a muted deep green primary color (#101410) with muted deep purple accents (#141014). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the muted deep green primary (#101410) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf7mintcream | #020402black |
| Foreground | #020802black | #ffffffwhite |
| Card | #f3fcf3honeydew | #030703black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #f3fcf3honeydew | #030703black |
| Popover foreground | #010401black | #ffffffwhite |
| Primary | #101410black | #101410black |
| Primary foreground | #a1b5a1darkgray | #a1b5a1darkgray |
| Secondary | #141014black | #141014black |
| Secondary foreground | #b5a1b5darkgray | #b5a1b5darkgray |
| Muted | #f0ebf0whitesmoke | #140f14black |
| Muted foreground | #635f63dimgray | #a09ca0darkgray |
| Accent | #141014black | #141014black |
| Accent foreground | #b5a1b5darkgray | #b5a1b5darkgray |
| Destructive | #b43904firebrick | #f54d05orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #101410black | #101410black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.57:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 8.53:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 5.97:1 | AA |
| Text on background | 20.62:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 8.53:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 6.98:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Packet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.01 145.501);
--foreground: oklch(0.122 0.026 143.805);
--muted: oklch(0.944 0.009 325.644);
--muted-foreground: oklch(0.49 0.008 325.695);
--popover: oklch(0.981 0.015 145.462);
--popover-foreground: oklch(0.097 0.02 143.805);
--card: oklch(0.981 0.015 145.462);
--card-foreground: oklch(0.097 0.02 143.805);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.185 0.011 145.118);
--primary-foreground: oklch(0.752 0.036 145.204);
--secondary: oklch(0.179 0.011 326.027);
--secondary-foreground: oklch(0.732 0.037 325.944);
--accent: oklch(0.179 0.011 326.027);
--accent-foreground: oklch(0.732 0.037 325.944);
--destructive: oklch(0.519 0.168 38.099);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.185 0.011 145.118);
--chart-1: oklch(0.185 0.011 145.118);
--chart-2: oklch(0.179 0.011 326.027);
--chart-3: oklch(0.179 0.011 326.027);
--chart-4: oklch(0.212 0.015 326.094);
--chart-5: oklch(0.186 0.014 145.005);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.013 144.444);
--foreground: oklch(1 0 180);
--muted: oklch(0.179 0.013 326.101);
--muted-foreground: oklch(0.698 0.007 325.653);
--popover: oklch(0.12 0.017 144.444);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.017 144.444);
--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.185 0.011 145.118);
--primary-foreground: oklch(0.752 0.036 145.204);
--secondary: oklch(0.179 0.011 326.027);
--secondary-foreground: oklch(0.732 0.037 325.944);
--accent: oklch(0.179 0.011 326.027);
--accent-foreground: oklch(0.732 0.037 325.944);
--destructive: oklch(0.651 0.214 37.461);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.185 0.011 145.118);
--chart-1: oklch(0.185 0.011 145.118);
--chart-2: oklch(0.179 0.011 326.027);
--chart-3: oklch(0.179 0.011 326.027);
--chart-4: oklch(0.212 0.015 326.094);
--chart-5: oklch(0.186 0.014 145.005);
}