Peony for shadcn/ui

Peony is a shadcn/ui theme built around a muted light teal primary color (#d3dede) with muted light blue accents (#d3d8de). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the muted light teal primary (#d3dede) on a neutral background (#020808).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#020808black
Foreground
#010909black
#ffffffwhite
Card
#f8fbfcghostwhite
#020808black
Card foreground
#010909black
#ffffffwhite
Popover
#f8fbfcghostwhite
#020808black
Popover foreground
#010909black
#ffffffwhite
Primary
#d3dedegainsboro
#d3dedegainsboro
Primary foreground
#364849darkslategray
#364849darkslategray
Secondary
#d3ded9gainsboro
#d3ded9gainsboro
Secondary foreground
#364941darkslategray
#364941darkslategray
Muted
#d3e4dcgainsboro
#1b2c25darkslategray
Muted foreground
#595f5cdimgray
#a0a6a3darkgray
Accent
#d3d8degainsboro
#d3d8degainsboro
Accent foreground
#363f49darkslategray
#363f49darkslategray
Destructive
#7b0e04maroon
#f84535tomato
Destructive foreground
#fcbbb5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3dedegainsboro
#d3dedegainsboro

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button7.00:1AAA
Secondary button6.98:1AA
Muted text4.93:1AA
Accent7.46:1AAA
Destructive6.76:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button7.00:1AAA
Secondary button6.98:1AA
Muted text5.89:1AA
Accent7.46:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.003 200.847);
  --foreground: oklch(0.127 0.018 198.22);
  --muted: oklch(0.903 0.021 167.156);
  --muted-foreground: oklch(0.478 0.008 167.347);
  --popover: oklch(0.987 0.003 200.847);
  --popover-foreground: oklch(0.127 0.018 198.22);
  --card: oklch(0.987 0.003 200.847);
  --card-foreground: oklch(0.127 0.018 198.22);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.892 0.012 200.731);
  --primary-foreground: oklch(0.388 0.023 200.266);
  --secondary: oklch(0.892 0.014 167.368);
  --secondary-foreground: oklch(0.387 0.028 165.617);
  --accent: oklch(0.881 0.01 253.297);
  --accent-foreground: oklch(0.363 0.022 253.555);
  --destructive: oklch(0.374 0.143 30.326);
  --destructive-foreground: oklch(0.851 0.076 24.685);
  --ring: oklch(0.892 0.012 200.731);
  --chart-1: oklch(0.892 0.012 200.731);
  --chart-2: oklch(0.892 0.014 167.368);
  --chart-3: oklch(0.881 0.01 253.297);
  --chart-4: oklch(0.914 0.011 167.468);
  --chart-5: oklch(0.894 0.014 200.701);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 198.818);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.276 0.027 164.737);
  --muted-foreground: oklch(0.72 0.007 167.535);
  --popover: oklch(0.124 0.013 198.818);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.013 198.818);
  --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.892 0.012 200.731);
  --primary-foreground: oklch(0.388 0.023 200.266);
  --secondary: oklch(0.892 0.014 167.368);
  --secondary-foreground: oklch(0.387 0.028 165.617);
  --accent: oklch(0.881 0.01 253.297);
  --accent-foreground: oklch(0.363 0.022 253.555);
  --destructive: oklch(0.651 0.217 29.444);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.892 0.012 200.731);
  --chart-1: oklch(0.892 0.012 200.731);
  --chart-2: oklch(0.892 0.014 167.368);
  --chart-3: oklch(0.881 0.01 253.297);
  --chart-4: oklch(0.914 0.011 167.468);
  --chart-5: oklch(0.894 0.014 200.701);
}