Piety for shadcn/ui

Piety is a shadcn/ui theme built around a light pink primary color (#f8e8f0) with light blue accents (#e8f0f8). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the light pink primary (#f8e8f0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fasnow
#000000black
Foreground
#000000black
#fcf8fasnow
Card
#fcf3f7lavenderblush
#030303black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdf7fasnow
#000000black
Popover foreground
#000000black
#fcf8fasnow
Primary
#f8e8f0lavenderblush
#f8e8f0lavenderblush
Primary foreground
#852957brown
#852957brown
Secondary
#f0f8e8honeydew
#f0f8e8honeydew
Secondary foreground
#243711darkgreen
#243711darkgreen
Muted
#f2f6eewhitesmoke
#0d1109black
Muted foreground
#4a5341darkslategray
#b5beacsilver
Accent
#e8f0f8lavender
#e8f0f8lavender
Accent foreground
#295785darkslateblue
#295785darkslateblue
Destructive
#c23a00firebrick
#ff4d00orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8e8f0lavenderblush
#f8e8f0lavenderblush

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.28:1AAA
Primary button7.23:1AAA
Secondary button11.81:1AAA
Muted text7.38:1AAA
Accent6.50:1AA
Destructive5.38:1AA
Dark mode
Text on background19.94:1AAA
Text on card20.19:1AAA
Primary button7.23:1AAA
Secondary button11.81:1AAA
Muted text9.94:1AAA
Accent6.50:1AA
Destructive3.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 345.34);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.969 0.011 128.59);
  --muted-foreground: oklch(0.428 0.031 129.29);
  --popover: oklch(0.981 0.007 345.34);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.011 345.441);
  --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.945 0.021 345.702);
  --primary-foreground: oklch(0.434 0.134 353.312);
  --secondary: oklch(0.968 0.023 128.728);
  --secondary-foreground: oklch(0.309 0.065 131.551);
  --accent: oklch(0.95 0.014 247.974);
  --accent-foreground: oklch(0.446 0.091 250.586);
  --destructive: oklch(0.545 0.18 37.504);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.945 0.021 345.702);
  --chart-1: oklch(0.945 0.021 345.702);
  --chart-2: oklch(0.968 0.023 128.728);
  --chart-3: oklch(0.95 0.014 247.974);
  --chart-4: oklch(0.984 0.011 128.591);
  --chart-5: oklch(0.944 0.022 345.734);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.005 345.269);
  --muted: oklch(0.169 0.017 129.569);
  --muted-foreground: oklch(0.789 0.026 128.84);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.005 345.269);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 345.206);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.945 0.021 345.702);
  --primary-foreground: oklch(0.434 0.134 353.312);
  --secondary: oklch(0.968 0.023 128.728);
  --secondary-foreground: oklch(0.309 0.065 131.551);
  --accent: oklch(0.95 0.014 247.974);
  --accent-foreground: oklch(0.446 0.091 250.586);
  --destructive: oklch(0.667 0.224 36.881);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.945 0.021 345.702);
  --chart-1: oklch(0.945 0.021 345.702);
  --chart-2: oklch(0.968 0.023 128.728);
  --chart-3: oklch(0.95 0.014 247.974);
  --chart-4: oklch(0.984 0.011 128.591);
  --chart-5: oklch(0.944 0.022 345.734);
}