Relieved for shadcn/ui

Relieved is a shadcn/ui theme built around a deep pink primary color (#530e35) with muted light pink accents (#d3cacf). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#530e35) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#11040bblack
#fdfcfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#11040bblack
#fdfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#11040bblack
#fdfcfdwhite
Primary
#530e35maroon
#530e35maroon
Primary foreground
#f0a3cfplum
#f0a3cfplum
Secondary
#d3cacflightgrey
#24191fblack
Secondary foreground
#3a3136darkslategray
#c4abb9silver
Muted
#f2edf0whitesmoke
#120d10black
Muted foreground
#65585fdimgray
#a79aa2darkgray
Accent
#d3cacflightgrey
#24191fblack
Accent foreground
#3a3136darkslategray
#c4abb9silver
Destructive
#a21006darkred
#f84235tomato
Destructive foreground
#fedfddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#530e35maroon
#530e35maroon

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button7.31:1AAA
Secondary button7.85:1AAA
Muted text5.83:1AA
Accent7.85:1AAA
Destructive6.40:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button7.31:1AAA
Secondary button7.98:1AAA
Muted text7.14:1AAA
Accent7.98:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.135 0.032 344.14);
  --muted: oklch(0.951 0.006 341.968);
  --muted-foreground: oklch(0.475 0.021 342.818);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.135 0.032 344.14);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.135 0.032 344.14);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.303 0.108 351.084);
  --primary-foreground: oklch(0.803 0.106 344.754);
  --secondary: oklch(0.848 0.012 342.136);
  --secondary-foreground: oklch(0.325 0.017 342.99);
  --accent: oklch(0.848 0.012 342.136);
  --accent-foreground: oklch(0.325 0.017 342.99);
  --destructive: oklch(0.454 0.178 29.826);
  --destructive-foreground: oklch(0.928 0.035 22.666);
  --ring: oklch(0.303 0.108 351.084);
  --chart-1: oklch(0.303 0.108 351.084);
  --chart-2: oklch(0.848 0.012 342.136);
  --chart-3: oklch(0.848 0.012 342.136);
  --chart-4: oklch(0.872 0.01 342.075);
  --chart-5: oklch(0.305 0.111 351.495);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 341.849);
  --muted: oklch(0.166 0.01 343.19);
  --muted-foreground: oklch(0.7 0.019 342.436);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.002 341.849);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.002 341.849);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.303 0.108 351.084);
  --primary-foreground: oklch(0.803 0.106 344.754);
  --secondary: oklch(0.23 0.02 343.734);
  --secondary-foreground: oklch(0.768 0.034 342.826);
  --accent: oklch(0.23 0.02 343.734);
  --accent-foreground: oklch(0.768 0.034 342.826);
  --destructive: oklch(0.648 0.22 28.816);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.303 0.108 351.084);
  --chart-1: oklch(0.303 0.108 351.084);
  --chart-2: oklch(0.23 0.02 343.734);
  --chart-3: oklch(0.23 0.02 343.734);
  --chart-4: oklch(0.261 0.024 343.862);
  --chart-5: oklch(0.305 0.111 351.495);
}