Pup for shadcn/ui

Pup is a shadcn/ui theme built around a muted purple primary color (#b39db8) with muted purple accents (#b89db0). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the muted purple primary (#b39db8) on a purple-tinted background (#0a040b).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#0a040bblack
Foreground
#070208black
#f9f5faghostwhite
Card
#f9f4fawhitesmoke
#0d060eblack
Card foreground
#040104black
#fbf8fcghostwhite
Popover
#f9f4fawhitesmoke
#0d060eblack
Popover foreground
#040104black
#fbf8fcghostwhite
Primary
#b39db8darkgray
#b39db8darkgray
Primary foreground
#140f15black
#140f15black
Secondary
#a59db8darkgray
#a59db8darkgray
Secondary foreground
#110f15black
#110f15black
Muted
#eceaf1lavender
#100e15black
Muted foreground
#514d5cdarkslategray
#a8a3b2darkgray
Accent
#b89db0darkgray
#b89db0darkgray
Accent foreground
#150f13black
#150f13black
Destructive
#bb200cfirebrick
#e1270eorangered
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b39db8darkgray
#b39db8darkgray

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.19:1AAA
Primary button7.62:1AAA
Secondary button7.39:1AAA
Muted text6.84:1AA
Accent7.68:1AAA
Destructive6.13:1AA
Dark mode
Text on background18.78:1AAA
Text on card19.00:1AAA
Primary button7.62:1AAA
Secondary button7.39:1AAA
Muted text7.77:1AAA
Accent7.68:1AAA
Destructive4.65:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 319.446);
  --foreground: oklch(0.104 0.028 321.657);
  --muted: oklch(0.94 0.009 299.872);
  --muted-foreground: oklch(0.429 0.025 299.038);
  --popover: oklch(0.974 0.009 319.447);
  --popover-foreground: oklch(0.083 0.022 321.657);
  --card: oklch(0.974 0.009 319.447);
  --card-foreground: oklch(0.083 0.022 321.657);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.725 0.045 319.46);
  --primary-foreground: oklch(0.177 0.014 319.463);
  --secondary: oklch(0.713 0.04 299.097);
  --secondary-foreground: oklch(0.173 0.012 298.864);
  --accent: oklch(0.727 0.041 336.893);
  --accent-foreground: oklch(0.177 0.012 337.126);
  --destructive: oklch(0.511 0.191 30.938);
  --destructive-foreground: oklch(0.99 0.004 26.469);
  --ring: oklch(0.725 0.045 319.46);
  --chart-1: oklch(0.725 0.045 319.46);
  --chart-2: oklch(0.713 0.04 299.097);
  --chart-3: oklch(0.727 0.041 336.893);
  --chart-4: oklch(0.74 0.036 299.223);
  --chart-5: oklch(0.722 0.054 319.462);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.02 320.763);
  --foreground: oklch(0.974 0.009 319.447);
  --muted: oklch(0.172 0.014 298.624);
  --muted-foreground: oklch(0.725 0.022 299.522);
  --popover: oklch(0.138 0.023 319.986);
  --popover-foreground: oklch(0.983 0.006 319.446);
  --card: oklch(0.138 0.023 319.986);
  --card-foreground: oklch(0.983 0.006 319.446);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.725 0.045 319.46);
  --primary-foreground: oklch(0.177 0.014 319.463);
  --secondary: oklch(0.713 0.04 299.097);
  --secondary-foreground: oklch(0.173 0.012 298.864);
  --accent: oklch(0.727 0.041 336.893);
  --accent-foreground: oklch(0.177 0.012 337.126);
  --destructive: oklch(0.586 0.221 30.889);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.725 0.045 319.46);
  --chart-1: oklch(0.725 0.045 319.46);
  --chart-2: oklch(0.713 0.04 299.097);
  --chart-3: oklch(0.727 0.041 336.893);
  --chart-4: oklch(0.74 0.036 299.223);
  --chart-5: oklch(0.722 0.054 319.462);
}