Pupa is a shadcn/ui theme built around a near-white primary color (#fafcf8) with muted green accents (#bcd0a9). The light mode uses a neutral background (#fafdf6). Dark mode keeps the near-white primary (#fafcf8) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf6mintcream | #030401black |
| Foreground | #050902black | #ffffffwhite |
| Card | #f7fdf2honeydew | #050703black |
| Card foreground | #020401black | #ffffffwhite |
| Popover | #f7fdf2honeydew | #050703black |
| Popover foreground | #020401black | #ffffffwhite |
| Primary | #fafcf8snow | #fafcf8snow |
| Primary foreground | #2d3e1edarkslategray | #2d3e1edarkslategray |
| Secondary | #d6decelightgrey | #292d24darkslategray |
| Secondary foreground | #3d4932darkslategray | #c2c9bbsilver |
| Muted | #dbe4d3gainsboro | #232c1bblack |
| Muted foreground | #666e5edimgray | #99a191darkseagreen |
| Accent | #bcd0a9silver | #38422fdarkslategray |
| Accent foreground | #232e19black | #d1d9c9lightgrey |
| Destructive | #c55311chocolate | #ec6c22chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fafcf8snow | #fafcf8snow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 11.15:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 4.04:1 | AA Large |
| Accent | 8.62:1 | AAA |
| Destructive | 4.54:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 11.15:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.74:1 | AA |
Paste this into your globals.css to use Pupa in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.01 129.233);
--foreground: oklch(0.128 0.023 127.728);
--muted: oklch(0.906 0.024 129.406);
--muted-foreground: oklch(0.527 0.027 129.681);
--popover: oklch(0.986 0.015 129.287);
--popover-foreground: oklch(0.102 0.019 127.728);
--card: oklch(0.986 0.015 129.287);
--card-foreground: oklch(0.102 0.019 127.728);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.988 0.005 129.179);
--primary-foreground: oklch(0.339 0.055 131.148);
--secondary: oklch(0.89 0.023 129.397);
--secondary-foreground: oklch(0.387 0.041 130.33);
--accent: oklch(0.832 0.057 129.871);
--accent-foreground: oklch(0.285 0.039 130.742);
--destructive: oklch(0.582 0.161 44.343);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.988 0.005 129.179);
--chart-1: oklch(0.988 0.005 129.179);
--chart-2: oklch(0.89 0.023 129.397);
--chart-3: oklch(0.832 0.057 129.871);
--chart-4: oklch(0.911 0.018 129.339);
--chart-5: oklch(0.988 0.005 129.183);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.012 128.185);
--foreground: oklch(1 0 180);
--muted: oklch(0.279 0.031 130.411);
--muted-foreground: oklch(0.698 0.025 129.514);
--popover: oklch(0.124 0.015 128.185);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.015 128.185);
--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.988 0.005 129.179);
--primary-foreground: oklch(0.339 0.055 131.148);
--secondary: oklch(0.291 0.017 129.771);
--secondary-foreground: oklch(0.825 0.02 129.384);
--accent: oklch(0.363 0.034 130.187);
--accent-foreground: oklch(0.874 0.023 129.405);
--destructive: oklch(0.677 0.177 45.723);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.988 0.005 129.179);
--chart-1: oklch(0.988 0.005 129.179);
--chart-2: oklch(0.291 0.017 129.771);
--chart-3: oklch(0.363 0.034 130.187);
--chart-4: oklch(0.323 0.02 129.797);
--chart-5: oklch(0.988 0.005 129.183);
}