Priest for shadcn/ui

Priest is a shadcn/ui theme built around a muted violet primary color (#756d83) with muted green accents (#6d8375). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted violet primary (#756d83) on a violet-tinted background (#07040b).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#07040bblack
Foreground
#000000black
#faf9fasnow
Card
#f9f8fcghostwhite
#07040bblack
Card foreground
#000000black
#faf9fasnow
Popover
#f9f8fcghostwhite
#07040bblack
Popover foreground
#000000black
#faf9fasnow
Primary
#756d83gray
#756d83gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#83756dgray
#83756dgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2e9e3linen
#1c130dblack
Muted foreground
#63574fdimgray
#b0a39cdarkgray
Accent
#6d8375gray
#6d8375gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b8420ffirebrick
#e25112chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#756d83gray
#756d83gray

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button4.91:1AA
Secondary button4.42:1AA Large
Muted text5.82:1AA
Accent4.08:1AA Large
Destructive5.50:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button4.91:1AA
Secondary button4.42:1AA Large
Muted text7.47:1AAA
Accent4.08:1AA Large
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 303.567);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.939 0.013 54.314);
  --muted-foreground: oklch(0.466 0.02 53.932);
  --popover: oklch(0.982 0.005 303.567);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 303.567);
  --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.55 0.034 302.713);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.573 0.021 54.018);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.587 0.032 158.187);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.538 0.163 39.493);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.55 0.034 302.713);
  --chart-1: oklch(0.55 0.034 302.713);
  --chart-2: oklch(0.573 0.021 54.018);
  --chart-3: oklch(0.587 0.032 158.187);
  --chart-4: oklch(0.599 0.022 54.015);
  --chart-5: oklch(0.543 0.046 302.38);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.021 304.291);
  --foreground: oklch(0.984 0.002 303.616);
  --muted: oklch(0.195 0.02 53.108);
  --muted-foreground: oklch(0.725 0.018 54.173);
  --popover: oklch(0.118 0.021 304.291);
  --popover-foreground: oklch(0.984 0.002 303.616);
  --card: oklch(0.118 0.021 304.291);
  --card-foreground: oklch(0.984 0.002 303.616);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.55 0.034 302.713);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.573 0.021 54.018);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.587 0.032 158.187);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.626 0.192 39.197);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.55 0.034 302.713);
  --chart-1: oklch(0.55 0.034 302.713);
  --chart-2: oklch(0.573 0.021 54.018);
  --chart-3: oklch(0.587 0.032 158.187);
  --chart-4: oklch(0.599 0.022 54.015);
  --chart-5: oklch(0.543 0.046 302.38);
}