Peaceful for shadcn/ui

Peaceful is a shadcn/ui theme built around a vivid deep pink primary color (#610535) with muted pink accents (#c8b1bd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#610535) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#040103black
#fcf8fasnow
Card
#fcfcfcsnow
#070405black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#030203black
Popover foreground
#040103black
#fcf8fasnow
Primary
#610535maroon
#610535maroon
Primary foreground
#fa9ecelightpink
#fa9ecelightpink
Secondary
#d1c7cclightgrey
#1a191ablack
Secondary foreground
#382e33darkslategray
#b5b0b3darkgray
Muted
#f0ebedlinen
#140f12black
Muted foreground
#705764dimgray
#a88f9crosybrown
Accent
#c8b1bdsilver
#322a2edarkslategray
Accent foreground
#2a1e24black
#ccc2c7silver
Destructive
#8c130ddarkred
#d21d14firebrick
Destructive foreground
#fbd2d0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#610535maroon
#610535maroon

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.54:1AAA
Primary button6.85:1AA
Secondary button7.95:1AAA
Muted text5.48:1AA
Accent8.02:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.98:1AAA
Primary button6.85:1AA
Secondary button8.21:1AAA
Muted text6.37:1AA
Accent8.05:1AAA
Destructive5.34:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.081 0.023 344.085);
  --muted: oklch(0.944 0.006 344.458);
  --muted-foreground: oklch(0.486 0.039 346.251);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.081 0.023 344.085);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.325 0.128 357.285);
  --primary-foreground: oklch(0.805 0.124 347.956);
  --secondary: oklch(0.84 0.012 344.65);
  --secondary-foreground: oklch(0.315 0.016 345.505);
  --accent: oklch(0.784 0.03 345.246);
  --accent-foreground: oklch(0.251 0.022 346.391);
  --destructive: oklch(0.412 0.155 29.12);
  --destructive-foreground: oklch(0.899 0.045 21.586);
  --ring: oklch(0.325 0.128 357.285);
  --chart-1: oklch(0.325 0.128 357.285);
  --chart-2: oklch(0.84 0.012 344.65);
  --chart-3: oklch(0.784 0.03 345.246);
  --chart-4: oklch(0.864 0.01 344.585);
  --chart-5: oklch(0.327 0.13 357.708);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.009 344.214);
  --foreground: oklch(0.983 0.005 344.407);
  --muted: oklch(0.177 0.01 345.639);
  --muted-foreground: oklch(0.676 0.036 345.602);
  --popover: oklch(0.088 0.009 344.214);
  --popover-foreground: oklch(0.983 0.005 344.407);
  --card: oklch(0.111 0.011 344.214);
  --card-foreground: oklch(0.991 0.002 344.346);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.325 0.128 357.285);
  --primary-foreground: oklch(0.805 0.124 347.956);
  --secondary: oklch(0.214 0.003 344.621);
  --secondary-foreground: oklch(0.762 0.006 344.492);
  --accent: oklch(0.295 0.014 345.476);
  --accent-foreground: oklch(0.823 0.013 344.696);
  --destructive: oklch(0.552 0.213 29.303);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.325 0.128 357.285);
  --chart-1: oklch(0.325 0.128 357.285);
  --chart-2: oklch(0.214 0.003 344.621);
  --chart-3: oklch(0.295 0.014 345.476);
  --chart-4: oklch(0.247 0.004 344.651);
  --chart-5: oklch(0.327 0.13 357.708);
}