Souvenir for shadcn/ui

Souvenir is a shadcn/ui theme built around a purple primary color (#d256b7) with muted purple accents (#c0b5bd). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#d256b7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0d020bblack
#fdfcfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#090207black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#0d020bblack
#fdfcfdwhite
Primary
#d256b7mediumorchid
#d256b7mediumorchid
Primary foreground
#000000black
#000000black
Secondary
#cfcecflightgrey
#1c171bblack
Secondary foreground
#363536darkslategray
#bbaab7darkgray
Muted
#ece9eblinen
#161315black
Muted foreground
#5b4857dimgray
#b7a4b3darkgray
Accent
#c0b5bdsilver
#342231darkslategray
Accent foreground
#241e23black
#d1b8cbthistle
Destructive
#991200darkred
#ff391forangered
Destructive foreground
#ffd2ccpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d256b7mediumorchid
#d256b7mediumorchid

Contrast

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

Light mode
Text on background20.37:1AAA
Text on card20.07:1AAA
Primary button5.74:1AA
Secondary button7.78:1AAA
Muted text6.95:1AA
Accent8.21:1AAA
Destructive6.28:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button5.74:1AA
Secondary button8.04:1AAA
Muted text7.88:1AAA
Accent8.02:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.034 334.245);
  --muted: oklch(0.938 0.004 332.677);
  --muted-foreground: oklch(0.427 0.036 333.856);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.121 0.034 334.245);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.029 333.676);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.644 0.191 336.913);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.853 0.001 332.644);
  --secondary-foreground: oklch(0.33 0.002 332.714);
  --accent: oklch(0.784 0.017 332.954);
  --accent-foreground: oklch(0.245 0.011 333.303);
  --destructive: oklch(0.436 0.169 31.135);
  --destructive-foreground: oklch(0.901 0.052 26.928);
  --ring: oklch(0.644 0.191 336.913);
  --chart-1: oklch(0.644 0.191 336.913);
  --chart-2: oklch(0.853 0.001 332.644);
  --chart-3: oklch(0.784 0.017 332.954);
  --chart-4: oklch(0.876 0.001 332.639);
  --chart-5: oklch(0.646 0.2 337.108);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.003 332.658);
  --muted: oklch(0.191 0.005 333.052);
  --muted-foreground: oklch(0.739 0.031 333.255);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.003 332.658);
  --card: oklch(0.092 0 180);
  --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.644 0.191 336.913);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.212 0.012 333.481);
  --secondary-foreground: oklch(0.757 0.027 333.151);
  --accent: oklch(0.281 0.037 334.512);
  --accent-foreground: oklch(0.809 0.038 333.331);
  --destructive: oklch(0.651 0.235 31.035);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.644 0.191 336.913);
  --chart-1: oklch(0.644 0.191 336.913);
  --chart-2: oklch(0.212 0.012 333.481);
  --chart-3: oklch(0.281 0.037 334.512);
  --chart-4: oklch(0.244 0.015 333.557);
  --chart-5: oklch(0.646 0.2 337.108);
}