Memora gift inspi for shadcn/ui

Memora gift inspi is a shadcn/ui theme built around a muted violet primary color (#70597d) with muted light violet accents (#d6cbdc). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted violet primary (#70597d) on a violet-tinted background (#08050b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#08050bblack
Foreground
#0c0212black
#fdfcfdwhite
Card
#fdfbfewhite
#08050bblack
Card foreground
#0c0212black
#fdfcfdwhite
Popover
#fdfbfewhite
#08050bblack
Popover foreground
#0c0212black
#fdfcfdwhite
Primary
#70597ddimgray
#70597ddimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d6cbdclightgrey
#2c272fdarkslategray
Secondary foreground
#3e2f46darkslategray
#c6bfcasilver
Muted
#e7e1ealavender
#1b151eblack
Muted foreground
#52435bdarkslategray
#b3a4bcdarkgray
Accent
#d6cbdclightgrey
#2c272fdarkslategray
Accent foreground
#3e2f46darkslategray
#c6bfcasilver
Destructive
#9d3606saddlebrown
#f75e18orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e6e5e6gainsboro
#1c1b1dblack
Input
#e6e5e6gainsboro
#1c1b1dblack
Ring
#70597ddimgray
#70597ddimgray

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button6.15:1AA
Secondary button7.90:1AAA
Muted text7.08:1AAA
Accent7.90:1AAA
Destructive7.07:1AAA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button6.15:1AA
Secondary button8.09:1AAA
Muted text7.62:1AAA
Accent8.09:1AAA
Destructive6.56:1AA

CSS variables

Paste this into your globals.css to use Memora gift inspi in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 313.576);
  --foreground: oklch(0.126 0.043 314.034);
  --muted: oklch(0.917 0.012 313.523);
  --muted-foreground: oklch(0.408 0.043 312.952);
  --popover: oklch(0.99 0.005 313.576);
  --popover-foreground: oklch(0.126 0.043 314.034);
  --card: oklch(0.99 0.005 313.576);
  --card-foreground: oklch(0.126 0.043 314.034);
  --border: oklch(0.923 0.002 313.596);
  --input: oklch(0.923 0.002 313.596);
  --primary: oklch(0.501 0.063 312.824);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.856 0.026 313.416);
  --secondary-foreground: oklch(0.332 0.045 312.76);
  --accent: oklch(0.856 0.026 313.416);
  --accent-foreground: oklch(0.332 0.045 312.76);
  --destructive: oklch(0.477 0.147 39.793);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.501 0.063 312.824);
  --chart-1: oklch(0.501 0.063 312.824);
  --chart-2: oklch(0.856 0.026 313.416);
  --chart-3: oklch(0.856 0.026 313.416);
  --chart-4: oklch(0.882 0.022 313.455);
  --chart-5: oklch(0.497 0.074 312.67);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.019 314.885);
  --foreground: oklch(0.991 0.003 313.589);
  --muted: oklch(0.208 0.018 313.082);
  --muted-foreground: oklch(0.739 0.038 313.295);
  --popover: oklch(0.123 0.019 314.885);
  --popover-foreground: oklch(0.991 0.003 313.589);
  --card: oklch(0.123 0.019 314.885);
  --card-foreground: oklch(0.991 0.003 313.589);
  --border: oklch(0.225 0.002 313.54);
  --input: oklch(0.225 0.002 313.54);
  --primary: oklch(0.501 0.063 312.824);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.283 0.016 313.266);
  --secondary-foreground: oklch(0.813 0.016 313.482);
  --accent: oklch(0.283 0.016 313.266);
  --accent-foreground: oklch(0.813 0.016 313.482);
  --destructive: oklch(0.674 0.2 40.56);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.501 0.063 312.824);
  --chart-1: oklch(0.501 0.063 312.824);
  --chart-2: oklch(0.283 0.016 313.266);
  --chart-3: oklch(0.283 0.016 313.266);
  --chart-4: oklch(0.313 0.018 313.253);
  --chart-5: oklch(0.497 0.074 312.67);
}