Pharmacopoeia is a shadcn/ui theme built around a light green primary color (#afe4c0) with muted light green accents (#d8dfda). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#afe4c0) on a green-tinted background (#050a07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a07black |
| Foreground | #05140ablack | #fcfdfcwhite |
| Card | #fcfcfcsnow | #070e09black |
| Card foreground | #041008black | #ffffffwhite |
| Popover | #ffffffwhite | #050a07black |
| Popover foreground | #05140ablack | #fcfdfcwhite |
| Primary | #afe4c0powderblue | #afe4c0powderblue |
| Primary foreground | #184928darkslategray | #184928darkslategray |
| Secondary | #d8dfdagainsboro | #213026darkslategray |
| Secondary foreground | #3c4840darkslategray | #b7cdbesilver |
| Muted | #dfece3gainsboro | #132017black |
| Muted foreground | #4d514edarkslategray | #aeb2afdarkgray |
| Accent | #d8dfdagainsboro | #213026darkslategray |
| Accent foreground | #3c4840darkslategray | #b7cdbesilver |
| Destructive | #79290csaddlebrown | #e9521cchocolate |
| Destructive foreground | #f9cebepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #afe4c0powderblue | #afe4c0powderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.90:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 7.03:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 7.86:1 | AAA |
| Accent | 8.21:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Pharmacopoeia in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.175 0.031 153.57);
--muted: oklch(0.93 0.017 156.193);
--muted-foreground: oklch(0.431 0.008 156.188);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.175 0.031 153.57);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.159 0.027 154.836);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.873 0.075 154.738);
--primary-foreground: oklch(0.362 0.077 150.997);
--secondary: oklch(0.896 0.009 156.359);
--secondary-foreground: oklch(0.389 0.021 155.473);
--accent: oklch(0.896 0.009 156.359);
--accent-foreground: oklch(0.389 0.021 155.473);
--destructive: oklch(0.396 0.118 38.356);
--destructive-foreground: oklch(0.883 0.053 40.967);
--ring: oklch(0.873 0.075 154.738);
--chart-1: oklch(0.873 0.075 154.738);
--chart-2: oklch(0.896 0.009 156.359);
--chart-3: oklch(0.896 0.009 156.359);
--chart-4: oklch(0.919 0.007 156.407);
--chart-5: oklch(0.875 0.079 154.629);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.013 156.314);
--foreground: oklch(0.993 0.003 156.508);
--muted: oklch(0.227 0.024 154.29);
--muted-foreground: oklch(0.76 0.007 156.378);
--popover: oklch(0.137 0.013 156.314);
--popover-foreground: oklch(0.993 0.003 156.508);
--card: oklch(0.152 0.015 155.583);
--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.873 0.075 154.738);
--primary-foreground: oklch(0.362 0.077 150.997);
--secondary: oklch(0.293 0.027 154.596);
--secondary-foreground: oklch(0.827 0.032 155.785);
--accent: oklch(0.293 0.027 154.596);
--accent-foreground: oklch(0.827 0.032 155.785);
--destructive: oklch(0.637 0.196 37.92);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.873 0.075 154.738);
--chart-1: oklch(0.873 0.075 154.738);
--chart-2: oklch(0.293 0.027 154.596);
--chart-3: oklch(0.293 0.027 154.596);
--chart-4: oklch(0.326 0.031 154.513);
--chart-5: oklch(0.875 0.079 154.629);
}