Prey is a shadcn/ui theme built around a green primary color (#39b149) with muted light green accents (#b6ceb9). The light mode uses a neutral background (#f7fcf8). Dark mode keeps the green primary (#39b149) on a green-tinted background (#050f07).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcf8mintcream | #050f07black |
| Foreground | #031705black | #f8fcf8mintcream |
| Card | #f4fbf5whitesmoke | #071308black |
| Card foreground | #021204black | #fbfdfcwhite |
| Popover | #f7fcf8mintcream | #050f07black |
| Popover foreground | #031705black | #f8fcf8mintcream |
| Primary | #39b149limegreen | #39b149limegreen |
| Primary foreground | #07170ablack | #07170ablack |
| Secondary | #cedacflightgrey | #273028darkslategray |
| Secondary foreground | #324335darkslategray | #becbc0silver |
| Muted | #e6f0e7beige | #0f1a11black |
| Muted foreground | #4f5f51darkslategray | #a0b0a3darkgray |
| Accent | #b6ceb9silver | #314934darkslategray |
| Accent foreground | #213123darkslategray | #ceded0lightgrey |
| Destructive | #911608darkred | #e3230dorangered |
| Destructive foreground | #fcd3cfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #39b149limegreen | #39b149limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.98:1 | AAA |
| Text on card | 18.28:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 8.18:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 18.80:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.87:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 4.67:1 | AA |
Paste this into your globals.css to use Prey in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.008 149.589);
--foreground: oklch(0.181 0.046 146.942);
--muted: oklch(0.944 0.016 149.473);
--muted-foreground: oklch(0.466 0.029 148.885);
--popover: oklch(0.987 0.008 149.589);
--popover-foreground: oklch(0.181 0.046 146.942);
--card: oklch(0.981 0.011 149.54);
--card-foreground: oklch(0.163 0.041 147.431);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.672 0.178 145.391);
--primary-foreground: oklch(0.186 0.035 147.261);
--secondary: oklch(0.875 0.019 149.407);
--secondary-foreground: oklch(0.363 0.032 148.519);
--accent: oklch(0.827 0.039 149.077);
--accent-foreground: oklch(0.294 0.033 148.154);
--destructive: oklch(0.422 0.158 30.528);
--destructive-foreground: oklch(0.901 0.047 25.494);
--ring: oklch(0.672 0.178 145.391);
--chart-1: oklch(0.672 0.178 145.391);
--chart-2: oklch(0.875 0.019 149.407);
--chart-3: oklch(0.827 0.039 149.077);
--chart-4: oklch(0.898 0.016 149.464);
--chart-5: oklch(0.68 0.186 145.194);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.024 148.351);
--foreground: oklch(0.987 0.006 149.606);
--muted: oklch(0.202 0.023 148.161);
--muted-foreground: oklch(0.741 0.026 149.243);
--popover: oklch(0.155 0.024 148.351);
--popover-foreground: oklch(0.987 0.006 149.606);
--card: oklch(0.17 0.028 147.859);
--card-foreground: oklch(0.993 0.003 149.646);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.672 0.178 145.391);
--primary-foreground: oklch(0.186 0.035 147.261);
--secondary: oklch(0.298 0.02 148.827);
--secondary-foreground: oklch(0.828 0.021 149.368);
--accent: oklch(0.38 0.047 148.013);
--accent-foreground: oklch(0.885 0.026 149.316);
--destructive: oklch(0.586 0.225 30.45);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.672 0.178 145.391);
--chart-1: oklch(0.672 0.178 145.391);
--chart-2: oklch(0.298 0.02 148.827);
--chart-3: oklch(0.38 0.047 148.013);
--chart-4: oklch(0.329 0.023 148.794);
--chart-5: oklch(0.68 0.186 145.194);
}