Papa for shadcn/ui

Papa is a shadcn/ui theme built around a muted deep purple primary color (#5b3956) with muted deep cyan accents (#39565b). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the muted deep purple primary (#5b3956) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#040103black
Foreground
#0d020cblack
#f9f6f8whitesmoke
Card
#fcf3fblavenderblush
#080307black
Card foreground
#090108black
#fbf9fasnow
Popover
#fcf3fblavenderblush
#080307black
Popover foreground
#090108black
#fbf9fasnow
Primary
#5b3956darkslategray
#5b3956darkslategray
Primary foreground
#e9dce7gainsboro
#e9dce7gainsboro
Secondary
#565b39darkolivegreen
#565b39darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dddfd3gainsboro
#2b2c20darkslategray
Muted foreground
#474841darkslategray
#bdbeb7silver
Accent
#39565bdarkslategray
#39565bdarkslategray
Accent foreground
#dce7e9gainsboro
#dce7e9gainsboro
Destructive
#dc3e09orangered
#f65f2ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5b3956darkslategray
#5b3956darkslategray

Contrast

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

Light mode
Text on background19.25:1AAA
Text on card18.93:1AAA
Primary button7.33:1AAA
Secondary button7.12:1AAA
Muted text6.84:1AA
Accent6.28:1AA
Destructive4.42:1AA Large
Dark mode
Text on background19.33:1AAA
Text on card19.55:1AAA
Primary button7.33:1AAA
Secondary button7.12:1AAA
Muted text7.53:1AAA
Accent6.28:1AA
Destructive6.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.01 330.374);
  --foreground: oklch(0.121 0.036 332.159);
  --muted: oklch(0.898 0.017 113.649);
  --muted-foreground: oklch(0.399 0.011 113.836);
  --popover: oklch(0.973 0.015 330.44);
  --popover-foreground: oklch(0.105 0.031 331.663);
  --card: oklch(0.973 0.015 330.44);
  --card-foreground: oklch(0.105 0.031 331.663);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.395 0.065 332.217);
  --primary-foreground: oklch(0.909 0.02 330.531);
  --secondary: oklch(0.457 0.052 115.444);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.432 0.035 209.699);
  --accent-foreground: oklch(0.922 0.012 209.439);
  --destructive: oklch(0.595 0.202 35.519);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.395 0.065 332.217);
  --chart-1: oklch(0.395 0.065 332.217);
  --chart-2: oklch(0.457 0.052 115.444);
  --chart-3: oklch(0.432 0.035 209.699);
  --chart-4: oklch(0.49 0.056 115.471);
  --chart-5: oklch(0.395 0.073 332.454);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.016 331.179);
  --foreground: oklch(0.976 0.004 330.296);
  --muted: oklch(0.289 0.022 114.693);
  --muted-foreground: oklch(0.797 0.01 113.531);
  --popover: oklch(0.109 0.02 331.179);
  --popover-foreground: oklch(0.984 0.003 330.279);
  --card: oklch(0.109 0.02 331.179);
  --card-foreground: oklch(0.984 0.003 330.279);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.395 0.065 332.217);
  --primary-foreground: oklch(0.909 0.02 330.531);
  --secondary: oklch(0.457 0.052 115.444);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.432 0.035 209.699);
  --accent-foreground: oklch(0.922 0.012 209.439);
  --destructive: oklch(0.675 0.196 37.779);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.395 0.065 332.217);
  --chart-1: oklch(0.395 0.065 332.217);
  --chart-2: oklch(0.457 0.052 115.444);
  --chart-3: oklch(0.432 0.035 209.699);
  --chart-4: oklch(0.49 0.056 115.471);
  --chart-5: oklch(0.395 0.073 332.454);
}