Practitioner for shadcn/ui

Practitioner is a shadcn/ui theme built around a green primary color (#76c374) with purple accents (#c174c3). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#76c374) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefbwhite
#000000black
Foreground
#010401black
#f8fcf8mintcream
Card
#fbfefbwhite
#000000black
Card foreground
#010401black
#f8fcf8mintcream
Popover
#fbfefbwhite
#000000black
Popover foreground
#010401black
#f8fcf8mintcream
Primary
#76c374darkseagreen
#76c374darkseagreen
Primary foreground
#020402black
#020402black
Secondary
#c174c3orchid
#c174c3orchid
Secondary foreground
#040204black
#040204black
Muted
#f4ebf4whitesmoke
#140b14black
Muted foreground
#413e41darkslategray
#c0bec1silver
Accent
#c174c3orchid
#c174c3orchid
Accent foreground
#040204black
#040204black
Destructive
#910b08darkred
#f1120ered
Destructive foreground
#fcd0cfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#76c374darkseagreen
#76c374darkseagreen

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button9.66:1AAA
Secondary button6.43:1AA
Muted text9.07:1AAA
Accent6.43:1AA
Destructive6.70:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button9.66:1AAA
Secondary button6.43:1AA
Muted text10.48:1AAA
Accent6.43:1AA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 144.593);
  --foreground: oklch(0.098 0.024 142.467);
  --muted: oklch(0.95 0.015 324.721);
  --muted-foreground: oklch(0.369 0.005 324.712);
  --popover: oklch(0.994 0.004 144.593);
  --popover-foreground: oklch(0.098 0.024 142.467);
  --card: oklch(0.994 0.004 144.593);
  --card-foreground: oklch(0.098 0.024 142.467);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.749 0.135 143.374);
  --primary-foreground: oklch(0.096 0.013 143.43);
  --secondary: oklch(0.669 0.141 325.827);
  --secondary-foreground: oklch(0.088 0.014 325.781);
  --accent: oklch(0.669 0.141 325.827);
  --accent-foreground: oklch(0.088 0.014 325.781);
  --destructive: oklch(0.416 0.164 28.776);
  --destructive-foreground: oklch(0.894 0.051 19.281);
  --ring: oklch(0.749 0.135 143.374);
  --chart-1: oklch(0.749 0.135 143.374);
  --chart-2: oklch(0.669 0.141 325.827);
  --chart-3: oklch(0.669 0.141 325.827);
  --chart-4: oklch(0.694 0.13 325.708);
  --chart-5: oklch(0.754 0.144 143.296);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.007 144.575);
  --muted: oklch(0.165 0.024 325.468);
  --muted-foreground: oklch(0.804 0.004 324.654);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.007 144.575);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.007 144.575);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.749 0.135 143.374);
  --primary-foreground: oklch(0.096 0.013 143.43);
  --secondary: oklch(0.669 0.141 325.827);
  --secondary-foreground: oklch(0.088 0.014 325.781);
  --accent: oklch(0.669 0.141 325.827);
  --accent-foreground: oklch(0.088 0.014 325.781);
  --destructive: oklch(0.606 0.243 29.013);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.749 0.135 143.374);
  --chart-1: oklch(0.749 0.135 143.374);
  --chart-2: oklch(0.669 0.141 325.827);
  --chart-3: oklch(0.669 0.141 325.827);
  --chart-4: oklch(0.694 0.13 325.708);
  --chart-5: oklch(0.754 0.144 143.296);
}