Pork is a shadcn/ui theme built around a vivid green primary color (#2fd90d) with vivid red accents (#d90d2f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#2fd90d) on a green-tinted background (#060b05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060b05black |
| Foreground | #020401black | #f6f9f5whitesmoke |
| Card | #ffffffwhite | #060b05black |
| Card foreground | #020401black | #f6f9f5whitesmoke |
| Popover | #ffffffwhite | #060b05black |
| Popover foreground | #020401black | #f6f9f5whitesmoke |
| Primary | #2fd90dlimegreen | #2fd90dlimegreen |
| Primary foreground | #051801black | #051801black |
| Secondary | #0d2fd9mediumblue | #0d2fd9mediumblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7e7e9lavender | #161618black |
| Muted foreground | #545769dimgray | #969aabdarkgray |
| Accent | #d90d2fcrimson | #d90d2fcrimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #792002maroon | #fc5822tomato |
| Destructive foreground | #fec2aflightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2fd90dlimegreen | #2fd90dlimegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 9.70:1 | AAA |
| Secondary button | 8.68:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 5.19:1 | AA |
| Destructive | 6.74:1 | AA |
| Text on background | 18.75:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 9.70:1 | AAA |
| Secondary button | 8.68:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 5.19:1 | AA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Pork in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.018 138.739);
--muted: oklch(0.929 0.003 277.213);
--muted-foreground: oklch(0.462 0.028 276.329);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.018 138.739);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.018 138.739);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.771 0.254 141.494);
--primary-foreground: oklch(0.186 0.053 138.831);
--secondary: oklch(0.437 0.252 265.016);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.561 0.222 23.022);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.384 0.128 36.467);
--destructive-foreground: oklch(0.864 0.074 39.227);
--ring: oklch(0.771 0.254 141.494);
--chart-1: oklch(0.771 0.254 141.494);
--chart-2: oklch(0.437 0.252 265.016);
--chart-3: oklch(0.561 0.222 23.022);
--chart-4: oklch(0.458 0.265 264.967);
--chart-5: oklch(0.78 0.258 141.578);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.017 139.356);
--foreground: oklch(0.98 0.007 140.521);
--muted: oklch(0.201 0.005 276.934);
--muted-foreground: oklch(0.688 0.026 276.718);
--popover: oklch(0.139 0.017 139.356);
--popover-foreground: oklch(0.98 0.007 140.521);
--card: oklch(0.139 0.017 139.356);
--card-foreground: oklch(0.98 0.007 140.521);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.771 0.254 141.494);
--primary-foreground: oklch(0.186 0.053 138.831);
--secondary: oklch(0.437 0.252 265.016);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.561 0.222 23.022);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.675 0.208 37.146);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.771 0.254 141.494);
--chart-1: oklch(0.771 0.254 141.494);
--chart-2: oklch(0.437 0.252 265.016);
--chart-3: oklch(0.561 0.222 23.022);
--chart-4: oklch(0.458 0.265 264.967);
--chart-5: oklch(0.78 0.258 141.578);
}