Apothecary is a shadcn/ui theme built around a muted green primary color (#626543) with muted light green accents (#d7d8d0). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted green primary (#626543) on a neutral background (#060704).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #060704black |
| Foreground | #070802black | #f8f8f7whitesmoke |
| Card | #fefefbwhite | #060704black |
| Card foreground | #070802black | #f8f8f7whitesmoke |
| Popover | #fefefbwhite | #060704black |
| Popover foreground | #070802black | #f8f8f7whitesmoke |
| Primary | #626543darkolivegreen | #626543darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d7d8d0lightgrey | #1e1e1ablack |
| Secondary foreground | #3f4035darkslategray | #babbafsilver |
| Muted | #f1f1efwhitesmoke | #10100eblack |
| Muted foreground | #68695ddimgray | #a1a296darkgray |
| Accent | #d7d8d0lightgrey | #1e1e1ablack |
| Accent foreground | #3f4035darkslategray | #babbafsilver |
| Destructive | #a60c0cdarkred | #ef2e2ecrimson |
| Destructive foreground | #fde7e7mistyrose | #ffffffwhite |
| Border | #eeeeecwhitesmoke | #252522darkslategray |
| Input | #eeeeecwhitesmoke | #252522darkslategray |
| Ring | #626543darkolivegreen | #626543darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 4.91:1 | AA |
| Accent | 7.29:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 8.59:1 | AAA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Apothecary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 110.326);
--foreground: oklch(0.13 0.018 111.716);
--muted: oklch(0.957 0.003 110.302);
--muted-foreground: oklch(0.518 0.018 110.901);
--popover: oklch(0.996 0.004 110.326);
--popover-foreground: oklch(0.13 0.018 111.716);
--card: oklch(0.996 0.004 110.326);
--card-foreground: oklch(0.13 0.018 111.716);
--border: oklch(0.949 0.002 110.294);
--input: oklch(0.949 0.002 110.294);
--primary: oklch(0.495 0.05 112.105);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.878 0.011 110.471);
--secondary-foreground: oklch(0.367 0.018 111.129);
--accent: oklch(0.878 0.011 110.471);
--accent-foreground: oklch(0.367 0.018 111.129);
--destructive: oklch(0.46 0.182 28.452);
--destructive-foreground: oklch(0.946 0.024 17.584);
--ring: oklch(0.495 0.05 112.105);
--chart-1: oklch(0.495 0.05 112.105);
--chart-2: oklch(0.878 0.011 110.471);
--chart-3: oklch(0.878 0.011 110.471);
--chart-4: oklch(0.9 0.009 110.426);
--chart-5: oklch(0.503 0.057 112.324);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.01 111.165);
--foreground: oklch(0.979 0.002 110.289);
--muted: oklch(0.174 0.004 110.71);
--muted-foreground: oklch(0.706 0.017 110.694);
--popover: oklch(0.124 0.01 111.165);
--popover-foreground: oklch(0.979 0.002 110.289);
--card: oklch(0.124 0.01 111.165);
--card-foreground: oklch(0.979 0.002 110.289);
--border: oklch(0.265 0.007 110.703);
--input: oklch(0.265 0.007 110.703);
--primary: oklch(0.495 0.05 112.105);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.234 0.008 110.91);
--secondary-foreground: oklch(0.788 0.016 110.635);
--accent: oklch(0.234 0.008 110.91);
--accent-foreground: oklch(0.788 0.016 110.635);
--destructive: oklch(0.618 0.226 27.038);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.495 0.05 112.105);
--chart-1: oklch(0.495 0.05 112.105);
--chart-2: oklch(0.234 0.008 110.91);
--chart-3: oklch(0.234 0.008 110.91);
--chart-4: oklch(0.268 0.01 110.958);
--chart-5: oklch(0.503 0.057 112.324);
}