Impassioned for shadcn/ui

Impassioned is a shadcn/ui theme built around a muted cyan primary color (#52646b) with muted orange accents (#6b5852). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the muted cyan primary (#52646b) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#010304black
Foreground
#061013black
#fcfdfdwhite
Card
#f8fbfcghostwhite
#010304black
Card foreground
#061013black
#fcfdfdwhite
Popover
#f8fbfcghostwhite
#010304black
Popover foreground
#061013black
#fcfdfdwhite
Primary
#52646bdimgray
#52646bdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6b5852dimgray
#6b5852dimgray
Secondary foreground
#f8f7f6whitesmoke
#f8f7f6whitesmoke
Muted
#f2efedwhitesmoke
#120e0dblack
Muted foreground
#69554fdimgray
#b09d96rosybrown
Accent
#6b5852dimgray
#6b5852dimgray
Accent foreground
#f8f7f6whitesmoke
#f8f7f6whitesmoke
Destructive
#791602maroon
#fb3a13orangered
Destructive foreground
#febcaflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#52646bdimgray
#52646bdimgray

Contrast

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

Light mode
Text on background18.50:1AAA
Text on card18.50:1AAA
Primary button6.15:1AA
Secondary button6.23:1AA
Muted text6.07:1AA
Accent6.23:1AA
Destructive6.78:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button6.15:1AA
Secondary button6.23:1AA
Muted text7.40:1AAA
Accent6.23:1AA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.004 219.536);
  --foreground: oklch(0.165 0.016 220.046);
  --muted: oklch(0.953 0.004 39.48);
  --muted-foreground: oklch(0.468 0.028 39.265);
  --popover: oklch(0.986 0.004 219.536);
  --popover-foreground: oklch(0.165 0.016 220.046);
  --card: oklch(0.986 0.004 219.536);
  --card-foreground: oklch(0.165 0.016 220.046);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.492 0.024 220.024);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.478 0.026 39.273);
  --secondary-foreground: oklch(0.977 0.002 39.496);
  --accent: oklch(0.478 0.026 39.273);
  --accent-foreground: oklch(0.977 0.002 39.496);
  --destructive: oklch(0.374 0.136 32.938);
  --destructive-foreground: oklch(0.852 0.079 31.517);
  --ring: oklch(0.492 0.024 220.024);
  --chart-1: oklch(0.492 0.024 220.024);
  --chart-2: oklch(0.478 0.026 39.273);
  --chart-3: oklch(0.478 0.026 39.273);
  --chart-4: oklch(0.504 0.028 39.272);
  --chart-5: oklch(0.494 0.03 220.19);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.008 215.589);
  --foreground: oklch(0.993 0.001 219.517);
  --muted: oklch(0.168 0.006 39.321);
  --muted-foreground: oklch(0.71 0.025 39.331);
  --popover: oklch(0.094 0.008 215.589);
  --popover-foreground: oklch(0.993 0.001 219.517);
  --card: oklch(0.094 0.008 215.589);
  --card-foreground: oklch(0.993 0.001 219.517);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.492 0.024 220.024);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.478 0.026 39.273);
  --secondary-foreground: oklch(0.977 0.002 39.496);
  --accent: oklch(0.478 0.026 39.273);
  --accent-foreground: oklch(0.977 0.002 39.496);
  --destructive: oklch(0.645 0.233 32.48);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.492 0.024 220.024);
  --chart-1: oklch(0.492 0.024 220.024);
  --chart-2: oklch(0.478 0.026 39.273);
  --chart-3: oklch(0.478 0.026 39.273);
  --chart-4: oklch(0.504 0.028 39.272);
  --chart-5: oklch(0.494 0.03 220.19);
}