Pendant for shadcn/ui

Pendant is a shadcn/ui theme built around a cyan primary color (#4794b8) with neutral gray accents (#cdcfd0). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the cyan primary (#4794b8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#000000black
Foreground
#020608black
#f9fafbghostwhite
Card
#f7fbfdghostwhite
#000000black
Card foreground
#020608black
#f9fafbghostwhite
Popover
#f7fbfdghostwhite
#000000black
Popover foreground
#020608black
#f9fafbghostwhite
Primary
#4794b8steelblue
#4794b8steelblue
Primary foreground
#000000black
#000000black
Secondary
#cdcfd0lightgrey
#1e2224black
Secondary foreground
#333638darkslategray
#b3bdc1silver
Muted
#d1dfe6gainsboro
#19272edarkslategray
Muted foreground
#4e5e65dimgray
#9aaab1darkgray
Accent
#cdcfd0lightgrey
#1e2224black
Accent foreground
#333638darkslategray
#b3bdc1silver
Destructive
#8d3807saddlebrown
#f36e20chocolate
Destructive foreground
#fcdccabisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4794b8steelblue
#4794b8steelblue

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button6.20:1AA
Secondary button7.79:1AAA
Muted text4.95:1AA
Accent7.79:1AAA
Destructive6.01:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button6.20:1AA
Secondary button8.34:1AAA
Muted text6.35:1AA
Accent8.34:1AAA
Destructive7.05:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 226.912);
  --foreground: oklch(0.117 0.013 220.748);
  --muted: oklch(0.895 0.018 227.111);
  --muted-foreground: oklch(0.469 0.023 227.575);
  --popover: oklch(0.985 0.004 226.912);
  --popover-foreground: oklch(0.117 0.013 220.748);
  --card: oklch(0.985 0.004 226.912);
  --card-foreground: oklch(0.117 0.013 220.748);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.633 0.092 230.734);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.854 0.003 226.905);
  --secondary-foreground: oklch(0.332 0.005 227.035);
  --accent: oklch(0.854 0.003 226.905);
  --accent-foreground: oklch(0.332 0.005 227.035);
  --destructive: oklch(0.452 0.127 44.088);
  --destructive-foreground: oklch(0.917 0.043 51.972);
  --ring: oklch(0.633 0.092 230.734);
  --chart-1: oklch(0.633 0.092 230.734);
  --chart-2: oklch(0.854 0.003 226.905);
  --chart-3: oklch(0.854 0.003 226.905);
  --chart-4: oklch(0.877 0.003 226.896);
  --chart-5: oklch(0.636 0.097 231.141);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.001 226.874);
  --muted: oklch(0.265 0.023 228.41);
  --muted-foreground: oklch(0.728 0.021 227.238);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.985 0.001 226.874);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.985 0.001 226.874);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.633 0.092 230.734);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.25 0.008 227.276);
  --secondary-foreground: oklch(0.791 0.012 227.051);
  --accent: oklch(0.25 0.008 227.276);
  --accent-foreground: oklch(0.791 0.012 227.051);
  --destructive: oklch(0.689 0.184 45.31);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.633 0.092 230.734);
  --chart-1: oklch(0.633 0.092 230.734);
  --chart-2: oklch(0.25 0.008 227.276);
  --chart-3: oklch(0.25 0.008 227.276);
  --chart-4: oklch(0.282 0.009 227.304);
  --chart-5: oklch(0.636 0.097 231.141);
}