Pack is a shadcn/ui theme built around a green primary color (#67b361) with red accents (#b36167). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#67b361) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #020302black |
| Foreground | #010401black | #fcfdfcwhite |
| Card | #f7fdf7mintcream | #040703black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefbwhite | #020302black |
| Popover foreground | #010401black | #fcfdfcwhite |
| Primary | #67b361mediumseagreen | #67b361mediumseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #6167b3slateblue | #6167b3slateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dfe0ecgainsboro | #131420black |
| Muted foreground | #3a3b4bdarkslategray | #b4b6c5silver |
| Accent | #b36167indianred | #b36167indianred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #712509maroon | #d94712chocolate |
| Destructive foreground | #f9c6b4peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #67b361mediumseagreen | #67b361mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 5.10:1 | AA |
| Muted text | 8.39:1 | AAA |
| Accent | 4.36:1 | AA Large |
| Destructive | 6.97:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 5.10:1 | AA |
| Muted text | 9.08:1 | AAA |
| Accent | 4.36:1 | AA Large |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Pack in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 143.111);
--foreground: oklch(0.098 0.021 141.17);
--muted: oklch(0.909 0.017 281.906);
--muted-foreground: oklch(0.358 0.027 280.842);
--popover: oklch(0.994 0.005 143.111);
--popover-foreground: oklch(0.098 0.021 141.17);
--card: oklch(0.988 0.01 143.087);
--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.697 0.138 142.2);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.545 0.117 277.842);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.588 0.106 15.584);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.377 0.114 38.179);
--destructive-foreground: oklch(0.867 0.064 40.923);
--ring: oklch(0.697 0.138 142.2);
--chart-1: oklch(0.697 0.138 142.2);
--chart-2: oklch(0.545 0.117 277.842);
--chart-3: oklch(0.588 0.106 15.584);
--chart-4: oklch(0.575 0.108 278.475);
--chart-5: oklch(0.704 0.148 142.148);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.012 142.069);
--foreground: oklch(0.993 0.001 143.13);
--muted: oklch(0.196 0.024 279.865);
--muted-foreground: oklch(0.779 0.022 281.722);
--popover: oklch(0.095 0.012 142.069);
--popover-foreground: oklch(0.993 0.001 143.13);
--card: oklch(0.12 0.014 142.069);
--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.697 0.138 142.2);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.545 0.117 277.842);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.588 0.106 15.584);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.599 0.191 37.257);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.697 0.138 142.2);
--chart-1: oklch(0.697 0.138 142.2);
--chart-2: oklch(0.545 0.117 277.842);
--chart-3: oklch(0.588 0.106 15.584);
--chart-4: oklch(0.575 0.108 278.475);
--chart-5: oklch(0.704 0.148 142.148);
}