Handsome for shadcn/ui

Handsome is a shadcn/ui theme built around a muted light orange primary color (#ccc4c2) with muted light cyan accents (#c2c9cc). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the muted light orange primary (#ccc4c2) on an orange-tinted background (#0a0605).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0a0605black
Foreground
#080402black
#fdfcfcsnow
Card
#fcf9f8snow
#0d0907black
Card foreground
#040201black
#ffffffwhite
Popover
#fdfcfcsnow
#0a0605black
Popover foreground
#080402black
#fdfcfcsnow
Primary
#ccc4c2silver
#ccc4c2silver
Primary foreground
#322c2adarkslategray
#322c2adarkslategray
Secondary
#c2c9ccsilver
#c2c9ccsilver
Secondary foreground
#2a3032darkslategray
#2a3032darkslategray
Muted
#e5eaeblavender
#14191ablack
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#c2c9ccsilver
#c2c9ccsilver
Accent foreground
#2a3032darkslategray
#2a3032darkslategray
Destructive
#8d1b0cdarkred
#d82a13firebrick
Destructive foreground
#fbd5d0bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ccc4c2silver
#ccc4c2silver

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.75:1AAA
Primary button8.02:1AAA
Secondary button8.01:1AAA
Muted text7.63:1AAA
Accent8.01:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.84:1AAA
Primary button8.02:1AAA
Secondary button8.01:1AAA
Muted text8.96:1AAA
Accent8.01:1AAA
Destructive4.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 39.498);
  --foreground: oklch(0.112 0.012 46.259);
  --muted: oklch(0.933 0.006 219.555);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(0.992 0.002 39.498);
  --popover-foreground: oklch(0.112 0.012 46.259);
  --card: oklch(0.984 0.003 39.487);
  --card-foreground: oklch(0.089 0.01 46.259);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.827 0.009 39.438);
  --primary-foreground: oklch(0.298 0.01 39.337);
  --secondary: oklch(0.832 0.009 219.59);
  --secondary-foreground: oklch(0.304 0.009 219.784);
  --accent: oklch(0.832 0.009 219.59);
  --accent-foreground: oklch(0.304 0.009 219.784);
  --destructive: oklch(0.419 0.151 31.038);
  --destructive-foreground: oklch(0.904 0.043 26.83);
  --ring: oklch(0.827 0.009 39.438);
  --chart-1: oklch(0.827 0.009 39.438);
  --chart-2: oklch(0.832 0.009 219.59);
  --chart-3: oklch(0.832 0.009 219.59);
  --chart-4: oklch(0.855 0.008 219.575);
  --chart-5: oklch(0.826 0.012 39.418);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.008 43.288);
  --foreground: oklch(0.992 0.002 39.497);
  --muted: oklch(0.207 0.009 219.908);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0.13 0.008 43.288);
  --popover-foreground: oklch(0.992 0.002 39.497);
  --card: oklch(0.144 0.01 41.988);
  --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.827 0.009 39.438);
  --primary-foreground: oklch(0.298 0.01 39.337);
  --secondary: oklch(0.832 0.009 219.59);
  --secondary-foreground: oklch(0.304 0.009 219.784);
  --accent: oklch(0.832 0.009 219.59);
  --accent-foreground: oklch(0.304 0.009 219.784);
  --destructive: oklch(0.571 0.211 30.987);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.827 0.009 39.438);
  --chart-1: oklch(0.827 0.009 39.438);
  --chart-2: oklch(0.832 0.009 219.59);
  --chart-3: oklch(0.832 0.009 219.59);
  --chart-4: oklch(0.855 0.008 219.575);
  --chart-5: oklch(0.826 0.012 39.418);
}