pharmacy for shadcn/ui

pharmacy is a shadcn/ui theme built around a vivid light green primary color (#89fa8b) with vivid light red accents (#fa8b89). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the vivid light green primary (#89fa8b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#000000black
Foreground
#041104black
#fcfdfcwhite
Card
#f7fdf7mintcream
#000000black
Card foreground
#041104black
#fcfdfcwhite
Popover
#f7fdf7mintcream
#000000black
Popover foreground
#041104black
#fcfdfcwhite
Primary
#89fa8blightgreen
#89fa8blightgreen
Primary foreground
#034e05darkgreen
#034e05darkgreen
Secondary
#8b89famediumslateblue
#8b89famediumslateblue
Secondary foreground
#05034emidnightblue
#05034emidnightblue
Muted
#dcdce5gainsboro
#1a1a23black
Muted foreground
#46464edarkslategray
#b1b1b9darkgray
Accent
#fa8b89lightcoral
#fa8b89lightcoral
Accent foreground
#4e0503maroon
#4e0503maroon
Destructive
#d05711chocolate
#f08242coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e7e9e7lavender
#242924darkslategray
Input
#e7e9e7lavender
#242924darkslategray
Ring
#89fa8blightgreen
#89fa8blightgreen

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.67:1AAA
Text on card18.67:1AAA
Primary button7.69:1AAA
Secondary button6.27:1AA
Muted text6.86:1AA
Accent6.79:1AA
Destructive4.17:1AA Large
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button7.69:1AAA
Secondary button6.27:1AA
Muted text8.08:1AAA
Accent6.79:1AA
Destructive7.96:1AAA

CSS variables

Paste this into your globals.css to use pharmacy in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.009 145.981);
  --foreground: oklch(0.158 0.035 144.143);
  --muted: oklch(0.897 0.012 286.931);
  --muted-foreground: oklch(0.398 0.012 286.591);
  --popover: oklch(0.987 0.009 145.981);
  --popover-foreground: oklch(0.158 0.035 144.143);
  --card: oklch(0.987 0.009 145.981);
  --card-foreground: oklch(0.158 0.035 144.143);
  --border: oklch(0.932 0.005 146.013);
  --input: oklch(0.932 0.005 146.013);
  --primary: oklch(0.893 0.181 144.207);
  --primary-foreground: oklch(0.369 0.122 142.765);
  --secondary: oklch(0.684 0.163 281.96);
  --secondary-foreground: oklch(0.201 0.127 267.661);
  --accent: oklch(0.757 0.135 21.765);
  --accent-foreground: oklch(0.272 0.105 28.756);
  --destructive: oklch(0.603 0.169 44.071);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.893 0.181 144.207);
  --chart-1: oklch(0.893 0.181 144.207);
  --chart-2: oklch(0.684 0.163 281.96);
  --chart-3: oklch(0.757 0.135 21.765);
  --chart-4: oklch(0.723 0.141 283.03);
  --chart-5: oklch(0.896 0.186 144.156);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 146.038);
  --muted: oklch(0.223 0.017 285.739);
  --muted-foreground: oklch(0.764 0.01 286.918);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 146.038);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.002 146.038);
  --border: oklch(0.273 0.011 145.735);
  --input: oklch(0.273 0.011 145.735);
  --primary: oklch(0.893 0.181 144.207);
  --primary-foreground: oklch(0.369 0.122 142.765);
  --secondary: oklch(0.684 0.163 281.96);
  --secondary-foreground: oklch(0.201 0.127 267.661);
  --accent: oklch(0.757 0.135 21.765);
  --accent-foreground: oklch(0.272 0.105 28.756);
  --destructive: oklch(0.717 0.155 48.374);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.893 0.181 144.207);
  --chart-1: oklch(0.893 0.181 144.207);
  --chart-2: oklch(0.684 0.163 281.96);
  --chart-3: oklch(0.757 0.135 21.765);
  --chart-4: oklch(0.723 0.141 283.03);
  --chart-5: oklch(0.896 0.186 144.156);
}