Practitioner for shadcn/ui

Practitioner is a shadcn/ui theme built around a muted deep purple primary color (#0b080c) with muted deep green accents (#090c08). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#0b080c) on a neutral background (#070208).

Color palette

TokenLightDark
Background
#ffffffwhite
#070208black
Foreground
#030104black
#ffffffwhite
Card
#fcfcfcsnow
#0a040cblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#0a040cblack
Popover foreground
#000000black
#ffffffwhite
Primary
#0b080cblack
#0b080cblack
Primary foreground
#ac94b3darkgray
#ac94b3darkgray
Secondary
#090c08black
#090c08black
Secondary foreground
#9ab394darkseagreen
#9ab394darkseagreen
Muted
#e8efe6beige
#121910black
Muted foreground
#5a6d55dimgray
#98aa92darkseagreen
Accent
#090c08black
#090c08black
Accent foreground
#9ab394darkseagreen
#9ab394darkseagreen
Destructive
#933710saddlebrown
#d85118chocolate
Destructive foreground
#fbe4daantiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b080cblack
#0b080cblack

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button7.23:1AAA
Secondary button8.66:1AAA
Muted text4.77:1AA
Accent8.66:1AAA
Destructive6.14:1AA
Dark mode
Text on background20.54:1AAA
Text on card20.31:1AAA
Primary button7.23:1AAA
Secondary button8.66:1AAA
Muted text7.25:1AAA
Accent8.66:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.084 0.019 320.826);
  --muted: oklch(0.945 0.014 138.896);
  --muted-foreground: oklch(0.511 0.042 138.935);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.142 0.009 319.029);
  --primary-foreground: oklch(0.697 0.053 318.862);
  --secondary: oklch(0.149 0.009 138.556);
  --secondary-foreground: oklch(0.739 0.052 138.926);
  --accent: oklch(0.149 0.009 138.556);
  --accent-foreground: oklch(0.739 0.052 138.926);
  --destructive: oklch(0.462 0.133 40.478);
  --destructive-foreground: oklch(0.935 0.028 44.697);
  --ring: oklch(0.142 0.009 319.029);
  --chart-1: oklch(0.142 0.009 319.029);
  --chart-2: oklch(0.149 0.009 138.556);
  --chart-3: oklch(0.149 0.009 138.556);
  --chart-4: oklch(0.188 0.014 138.93);
  --chart-5: oklch(0.142 0.011 319.067);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.022 320.68);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.02 138.953);
  --muted-foreground: oklch(0.716 0.039 138.915);
  --popover: oklch(0.122 0.026 320.436);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.026 320.436);
  --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.142 0.009 319.029);
  --primary-foreground: oklch(0.697 0.053 318.862);
  --secondary: oklch(0.149 0.009 138.556);
  --secondary-foreground: oklch(0.739 0.052 138.926);
  --accent: oklch(0.149 0.009 138.556);
  --accent-foreground: oklch(0.739 0.052 138.926);
  --destructive: oklch(0.609 0.18 39.96);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.142 0.009 319.029);
  --chart-1: oklch(0.142 0.009 319.029);
  --chart-2: oklch(0.149 0.009 138.556);
  --chart-3: oklch(0.149 0.009 138.556);
  --chart-4: oklch(0.188 0.014 138.93);
  --chart-5: oklch(0.142 0.011 319.067);
}