Pagan for shadcn/ui

Pagan is a shadcn/ui theme built around a violet primary color (#421f89) with green accents (#66891f). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#421f89) on a violet-tinted background (#09060f).

Color palette

TokenLightDark
Background
#ffffffwhite
#09060fblack
Foreground
#080312black
#f7f6f9whitesmoke
Card
#ffffffwhite
#09060fblack
Card foreground
#080312black
#f7f6f9whitesmoke
Popover
#ffffffwhite
#09060fblack
Popover foreground
#080312black
#f7f6f9whitesmoke
Primary
#421f89darkslateblue
#421f89darkslateblue
Primary foreground
#e9e2f8lavender
#e9e2f8lavender
Secondary
#66891folivedrab
#66891folivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eaede3beige
#191c12black
Muted foreground
#666c5adimgray
#9fa593darkgray
Accent
#66891folivedrab
#66891folivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ad4410saddlebrown
#e05915chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#421f89darkslateblue
#421f89darkslateblue

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.34:1AAA
Primary button9.30:1AAA
Secondary button4.06:1AA Large
Muted text4.60:1AA
Accent4.06:1AA Large
Destructive5.81:1AA
Dark mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button9.30:1AAA
Secondary button4.06:1AA Large
Muted text6.79:1AA
Accent4.06:1AA Large
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.119 0.039 300.251);
  --muted: oklch(0.942 0.015 121.741);
  --muted-foreground: oklch(0.522 0.028 122.376);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.119 0.039 300.251);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.119 0.039 300.251);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.36 0.162 291.147);
  --primary-foreground: oklch(0.925 0.031 300.95);
  --secondary: oklch(0.583 0.136 126.749);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.583 0.136 126.749);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.522 0.149 42.187);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.36 0.162 291.147);
  --chart-1: oklch(0.36 0.162 291.147);
  --chart-2: oklch(0.583 0.136 126.749);
  --chart-3: oklch(0.583 0.136 126.749);
  --chart-4: oklch(0.621 0.146 126.807);
  --chart-5: oklch(0.359 0.168 290.4);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.023 300.737);
  --foreground: oklch(0.974 0.004 301.427);
  --muted: oklch(0.22 0.02 123.04);
  --muted-foreground: oklch(0.71 0.026 122.093);
  --popover: oklch(0.13 0.023 300.737);
  --popover-foreground: oklch(0.974 0.004 301.427);
  --card: oklch(0.13 0.023 300.737);
  --card-foreground: oklch(0.974 0.004 301.427);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.36 0.162 291.147);
  --primary-foreground: oklch(0.925 0.031 300.95);
  --secondary: oklch(0.583 0.136 126.749);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.583 0.136 126.749);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.183 41.774);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.36 0.162 291.147);
  --chart-1: oklch(0.36 0.162 291.147);
  --chart-2: oklch(0.583 0.136 126.749);
  --chart-3: oklch(0.583 0.136 126.749);
  --chart-4: oklch(0.621 0.146 126.807);
  --chart-5: oklch(0.359 0.168 290.4);
}