Proposition for shadcn/ui

Proposition is a shadcn/ui theme built around a muted pink primary color (#bc8aa5) with muted red accents (#bc8a8c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#bc8aa5) on a pink-tinted background (#0d070a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d070ablack
Foreground
#0d0208black
#f8f6f7whitesmoke
Card
#ffffffwhite
#0d070ablack
Card foreground
#0d0208black
#f8f6f7whitesmoke
Popover
#ffffffwhite
#0d070ablack
Popover foreground
#0d0208black
#f8f6f7whitesmoke
Primary
#bc8aa5rosybrown
#bc8aa5rosybrown
Primary foreground
#0d070ablack
#0d070ablack
Secondary
#ba8abcdarkgray
#ba8abcdarkgray
Secondary foreground
#0d070dblack
#0d070dblack
Muted
#e1d0e2gainsboro
#2f1d2fdarkslategray
Muted foreground
#585658dimgray
#a9a7a9darkgray
Accent
#bc8a8crosybrown
#bc8a8crosybrown
Accent foreground
#0d0708black
#0d0708black
Destructive
#6b140bmaroon
#eb4937tomato
Destructive foreground
#f7b7b0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bc8aa5rosybrown
#bc8aa5rosybrown

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card20.40:1AAA
Primary button6.97:1AA
Secondary button7.10:1AAA
Muted text4.94:1AA
Accent6.82:1AA
Destructive7.15:1AAA
Dark mode
Text on background18.54:1AAA
Text on card18.54:1AAA
Primary button6.97:1AA
Secondary button7.10:1AAA
Muted text6.56:1AA
Accent6.82:1AA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.034 344.012);
  --muted: oklch(0.876 0.031 324.844);
  --muted-foreground: oklch(0.455 0.003 324.667);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.034 344.012);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.118 0.034 344.012);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.691 0.07 345.823);
  --primary-foreground: oklch(0.141 0.012 344.541);
  --secondary: oklch(0.697 0.089 325.385);
  --secondary-foreground: oklch(0.142 0.015 325.318);
  --accent: oklch(0.683 0.061 16.556);
  --accent-foreground: oklch(0.139 0.01 15.952);
  --destructive: oklch(0.346 0.122 30.417);
  --destructive-foreground: oklch(0.837 0.076 25.978);
  --ring: oklch(0.691 0.07 345.823);
  --chart-1: oklch(0.691 0.07 345.823);
  --chart-2: oklch(0.697 0.089 325.385);
  --chart-3: oklch(0.683 0.061 16.556);
  --chart-4: oklch(0.723 0.081 325.297);
  --chart-5: oklch(0.689 0.078 346.087);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.015 344.709);
  --foreground: oklch(0.976 0.002 343.504);
  --muted: oklch(0.262 0.042 325.561);
  --muted-foreground: oklch(0.732 0.003 324.645);
  --popover: oklch(0.14 0.015 344.709);
  --popover-foreground: oklch(0.976 0.002 343.504);
  --card: oklch(0.14 0.015 344.709);
  --card-foreground: oklch(0.976 0.002 343.504);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.691 0.07 345.823);
  --primary-foreground: oklch(0.141 0.012 344.541);
  --secondary: oklch(0.697 0.089 325.385);
  --secondary-foreground: oklch(0.142 0.015 325.318);
  --accent: oklch(0.683 0.061 16.556);
  --accent-foreground: oklch(0.139 0.01 15.952);
  --destructive: oklch(0.634 0.201 29.942);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.691 0.07 345.823);
  --chart-1: oklch(0.691 0.07 345.823);
  --chart-2: oklch(0.697 0.089 325.385);
  --chart-3: oklch(0.683 0.061 16.556);
  --chart-4: oklch(0.723 0.081 325.297);
  --chart-5: oklch(0.689 0.078 346.087);
}