Pride is a shadcn/ui theme built around a green primary color (#4a8c56) with muted green accents (#a0caa8). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the green primary (#4a8c56) on a green-tinted background (#040b06).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #040b06black |
| Foreground | #000000black | #f8fbf9mintcream |
| Card | #f8fcf9mintcream | #040b06black |
| Card foreground | #000000black | #f8fbf9mintcream |
| Popover | #f8fcf9mintcream | #040b06black |
| Popover foreground | #000000black | #f8fbf9mintcream |
| Primary | #4a8c56seagreen | #4a8c56seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c3d5c6lightgrey | #252726darkslategray |
| Secondary foreground | #2a3c2ddarkslategray | #bec1besilver |
| Muted | #d9edddgainsboro | #122616black |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #a0caa8darkseagreen | #333d35darkslategray |
| Accent foreground | #142417black | #cdd5celightgrey |
| Destructive | #b21f06firebrick | #f95234tomato |
| Destructive foreground | #feeeeblinen | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4a8c56seagreen | #4a8c56seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 4.04:1 | AA Large |
| Secondary button | 7.66:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 8.87:1 | AAA |
| Destructive | 6.01:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 4.04:1 | AA Large |
| Secondary button | 8.26:1 | AAA |
| Muted text | 7.79:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 6.26:1 | AA |
Paste this into your globals.css to use Pride in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 151.323);
--foreground: oklch(0 0 0);
--muted: oklch(0.926 0.03 150.937);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(0.987 0.006 151.323);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.006 151.323);
--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.582 0.107 148.288);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.856 0.028 150.921);
--secondary-foreground: oklch(0.336 0.035 149.774);
--accent: oklch(0.799 0.065 150.178);
--accent-foreground: oklch(0.241 0.032 149.255);
--destructive: oklch(0.493 0.184 31.763);
--destructive-foreground: oklch(0.961 0.018 29.541);
--ring: oklch(0.582 0.107 148.288);
--chart-1: oklch(0.582 0.107 148.288);
--chart-2: oklch(0.856 0.028 150.921);
--chart-3: oklch(0.799 0.065 150.178);
--chart-4: oklch(0.877 0.024 151.008);
--chart-5: oklch(0.589 0.116 148.005);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.018 150.687);
--foreground: oklch(0.986 0.004 151.343);
--muted: oklch(0.246 0.04 148.733);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.138 0.018 150.687);
--popover-foreground: oklch(0.986 0.004 151.343);
--card: oklch(0.138 0.018 150.687);
--card-foreground: oklch(0.986 0.004 151.343);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.582 0.107 148.288);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.271 0.003 151.238);
--secondary-foreground: oklch(0.807 0.004 151.336);
--accent: oklch(0.348 0.02 150.574);
--accent-foreground: oklch(0.865 0.013 151.194);
--destructive: oklch(0.665 0.208 32.374);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.582 0.107 148.288);
--chart-1: oklch(0.582 0.107 148.288);
--chart-2: oklch(0.271 0.003 151.238);
--chart-3: oklch(0.348 0.02 150.574);
--chart-4: oklch(0.302 0.004 151.231);
--chart-5: oklch(0.589 0.116 148.005);
}