Tired Petrichor for shadcn/ui

Tired Petrichor is a shadcn/ui theme built around a teal primary color (#5fc7c8) with neutral gray accents (#cdd0d0). The light mode uses a neutral background (#fcfdfd). Dark mode switches to a muted deep teal primary (#284942) on a blue-tinted background (#111418).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#111418black
Foreground
#020909black
#ffffffwhite
Card
#f8fbfbghostwhite
#0c0f12black
Card foreground
#010404black
#ffffffwhite
Popover
#f8fbfbghostwhite
#0a0d0fblack
Popover foreground
#010404black
#ffffffwhite
Primary
#5fc7c8mediumturquoise
#284942darkslategray
Primary foreground
#082021black
#ffffffwhite
Secondary
#cdd0d0lightgrey
#404040darkslategray
Secondary foreground
#333838darkslategray
#d9d9d9gainsboro
Muted
#e5ebeblavender
#22262bdarkslategray
Muted foreground
#546464dimgray
#9ba6b0darkgray
Accent
#cdd0d0lightgrey
#303b46darkslategray
Accent foreground
#333838darkslategray
#cbd4dclightgrey
Destructive
#8e0d0bdarkred
#fa2d29crimson
Destructive foreground
#fbd0d0pink
#ffffffwhite
Border
#e5e7eblavender
#1e2124black
Input
#e5e7eblavender
#25292cdarkslategray
Ring
#7cdedfskyblue
#ffffffwhite

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.84:1AAA
Primary button8.44:1AAA
Secondary button7.69:1AAA
Muted text5.13:1AA
Accent7.69:1AAA
Destructive6.78:1AA
Dark mode
Text on background18.43:1AAA
Text on card19.17:1AAA
Primary button9.84:1AAA
Secondary button7.37:1AAA
Muted text6.13:1AA
Accent7.64:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 198.338);
  --foreground: oklch(0.127 0.016 196.31);
  --muted: oklch(0.935 0.006 198.269);
  --muted-foreground: oklch(0.489 0.02 197.784);
  --popover: oklch(0.987 0.003 198.314);
  --popover-foreground: oklch(0.101 0.013 196.31);
  --card: oklch(0.987 0.003 198.314);
  --card-foreground: oklch(0.101 0.013 196.31);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.768 0.096 196.834);
  --primary-foreground: oklch(0.227 0.03 196.766);
  --secondary: oklch(0.856 0.004 198.289);
  --secondary-foreground: oklch(0.335 0.006 198.108);
  --accent: oklch(0.856 0.004 198.289);
  --accent-foreground: oklch(0.335 0.006 198.108);
  --destructive: oklch(0.413 0.161 28.592);
  --destructive-foreground: oklch(0.895 0.049 19.246);
  --ring: oklch(0.84 0.093 196.967);
  --chart-1: oklch(0.768 0.096 196.834);
  --chart-2: oklch(0.856 0.004 198.289);
  --chart-3: oklch(0.856 0.004 198.289);
  --chart-4: oklch(0.879 0.004 198.302);
  --chart-5: oklch(0.776 0.1 196.801);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.191 0.01 248.348);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.267 0.011 248.233);
  --muted-foreground: oklch(0.719 0.02 248.103);
  --popover: oklch(0.156 0.007 248.245);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.168 0.008 248.285);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.247 0.007 248.12);
  --input: oklch(0.278 0.009 248.137);
  --primary: oklch(0.379 0.041 178.943);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.346 0.025 248.541);
  --accent-foreground: oklch(0.865 0.015 247.995);
  --destructive: oklch(0.634 0.237 27.929);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(0.379 0.041 178.943);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.346 0.025 248.541);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.383 0.044 178.599);
}