Papa is a shadcn/ui theme built around a green primary color (#4d9433) with green accents (#339449). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#4d9433) on a green-tinted background (#060a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #060a05black |
| Foreground | #020401black | #fcfdfcwhite |
| Card | #fcfefbwhite | #060a05black |
| Card foreground | #020401black | #fcfdfcwhite |
| Popover | #fcfefbwhite | #060a05black |
| Popover foreground | #020401black | #fcfdfcwhite |
| Primary | #4d9433olivedrab | #4d9433olivedrab |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7d9433olivedrab | #7d9433olivedrab |
| Secondary foreground | #000000black | #000000black |
| Muted | #ebefdcbeige | #1f2310black |
| Muted foreground | #656959dimgray | #a2a696darkgray |
| Accent | #339449seagreen | #339449seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #930606darkred | #f61e1ecrimson |
| Destructive foreground | #fdcecepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d9433olivedrab | #4d9433olivedrab |
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 | 3.74:1 | AA Large |
| Secondary button | 6.17:1 | AA |
| Muted text | 4.81:1 | AA |
| Accent | 3.82:1 | AA Large |
| Destructive | 6.56:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 6.17:1 | AA |
| Muted text | 6.46:1 | AA |
| Accent | 3.82:1 | AA Large |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Papa in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 137.198);
--foreground: oklch(0.099 0.017 135.543);
--muted: oklch(0.943 0.025 117.563);
--muted-foreground: oklch(0.512 0.024 117.931);
--popover: oklch(0.994 0.004 137.198);
--popover-foreground: oklch(0.099 0.017 135.543);
--card: oklch(0.994 0.004 137.198);
--card-foreground: oklch(0.099 0.017 135.543);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.599 0.151 138.435);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.629 0.126 121.345);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.592 0.143 147.99);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.419 0.168 28.728);
--destructive-foreground: oklch(0.892 0.053 18.196);
--ring: oklch(0.599 0.151 138.435);
--chart-1: oklch(0.599 0.151 138.435);
--chart-2: oklch(0.629 0.126 121.345);
--chart-3: oklch(0.592 0.143 147.99);
--chart-4: oklch(0.664 0.133 121.376);
--chart-5: oklch(0.606 0.158 138.551);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.016 136.07);
--foreground: oklch(0.993 0.002 137.195);
--muted: oklch(0.246 0.034 119.674);
--muted-foreground: oklch(0.717 0.022 117.639);
--popover: oklch(0.139 0.016 136.07);
--popover-foreground: oklch(0.993 0.002 137.195);
--card: oklch(0.139 0.016 136.07);
--card-foreground: oklch(0.993 0.002 137.195);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.599 0.151 138.435);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.629 0.126 121.345);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.592 0.143 147.99);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.619 0.242 28.175);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.599 0.151 138.435);
--chart-1: oklch(0.599 0.151 138.435);
--chart-2: oklch(0.629 0.126 121.345);
--chart-3: oklch(0.592 0.143 147.99);
--chart-4: oklch(0.664 0.133 121.376);
--chart-5: oklch(0.606 0.158 138.551);
}