Handsome for shadcn/ui

Handsome is a shadcn/ui theme built around a neutral gray primary color (#8f9194) with muted light blue accents (#d7dae0). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the neutral gray primary (#8f9194) on a blue-tinted background (#06090e).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#06090eblack
Foreground
#010204black
#ffffffwhite
Card
#f4f7fawhitesmoke
#080c12black
Card foreground
#000000black
#ffffffwhite
Popover
#f4f7fawhitesmoke
#080c12black
Popover foreground
#000000black
#ffffffwhite
Primary
#8f9194lightslategray
#8f9194lightslategray
Primary foreground
#000000black
#000000black
Secondary
#d7dae0gainsboro
#191d24black
Secondary foreground
#3a414bdarkslategray
#aab5c5silver
Muted
#e2e7eelavender
#11161dblack
Muted foreground
#485261darkslategray
#9ea8b7darkgray
Accent
#d7dae0gainsboro
#191d24black
Accent foreground
#3a414bdarkslategray
#aab5c5silver
Destructive
#8b1804darkred
#f8492atomato
Destructive foreground
#fdccc4pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8f9194lightslategray
#8f9194lightslategray

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.51:1AAA
Primary button6.64:1AA
Secondary button7.37:1AAA
Muted text6.35:1AA
Accent7.37:1AAA
Destructive6.56:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.62:1AAA
Primary button6.64:1AA
Secondary button8.12:1AAA
Muted text7.57:1AAA
Accent8.12:1AAA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 258.323);
  --foreground: oklch(0.086 0.011 249.65);
  --muted: oklch(0.926 0.011 258.341);
  --muted-foreground: oklch(0.434 0.028 258.368);
  --popover: oklch(0.974 0.006 258.328);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.006 258.328);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.656 0.004 258.33);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.888 0.009 258.336);
  --secondary-foreground: oklch(0.371 0.02 258.372);
  --accent: oklch(0.888 0.009 258.336);
  --accent-foreground: oklch(0.371 0.02 258.372);
  --destructive: oklch(0.412 0.151 32.07);
  --destructive-foreground: oklch(0.886 0.057 29.835);
  --ring: oklch(0.656 0.004 258.33);
  --chart-1: oklch(0.656 0.004 258.33);
  --chart-2: oklch(0.888 0.009 258.336);
  --chart-3: oklch(0.888 0.009 258.336);
  --chart-4: oklch(0.912 0.007 258.331);
  --chart-5: oklch(0.653 0.011 258.349);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.012 254.987);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.197 0.017 258.352);
  --muted-foreground: oklch(0.729 0.025 258.368);
  --popover: oklch(0.152 0.015 257.468);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.015 257.468);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.656 0.004 258.33);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.231 0.015 258.367);
  --secondary-foreground: oklch(0.769 0.026 258.368);
  --accent: oklch(0.231 0.015 258.367);
  --accent-foreground: oklch(0.769 0.026 258.368);
  --destructive: oklch(0.655 0.216 32.369);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.656 0.004 258.33);
  --chart-1: oklch(0.656 0.004 258.33);
  --chart-2: oklch(0.231 0.015 258.367);
  --chart-3: oklch(0.231 0.015 258.367);
  --chart-4: oklch(0.262 0.018 258.364);
  --chart-5: oklch(0.653 0.011 258.349);
}