Handsome for shadcn/ui

Handsome is a shadcn/ui theme built around a muted green primary color (#9ea290) with muted indigo accents (#9490a2). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the muted green primary (#9ea290) on a green-tinted background (#090b05).

Color palette

TokenLightDark
Background
#fcfdf7snow
#090b05black
Foreground
#101306black
#ffffffwhite
Card
#fafcf3floralwhite
#0c0e06black
Card foreground
#0d0f05black
#ffffffwhite
Popover
#fcfdf7snow
#090b05black
Popover foreground
#101306black
#ffffffwhite
Primary
#9ea290darkgray
#9ea290darkgray
Primary foreground
#000000black
#000000black
Secondary
#9490a2lightslategray
#9490a2lightslategray
Secondary foreground
#000000black
#000000black
Muted
#e3dff1lavender
#120e20black
Muted foreground
#5b5964dimgray
#9e9ba6darkgray
Accent
#9490a2lightslategray
#9490a2lightslategray
Accent foreground
#000000black
#000000black
Destructive
#952804saddlebrown
#f95a24tomato
Destructive foreground
#fed9cdbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9ea290darkgray
#9ea290darkgray

Contrast

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

Light mode
Text on background18.35:1AAA
Text on card18.64:1AAA
Primary button8.03:1AAA
Secondary button6.76:1AA
Muted text5.26:1AA
Accent6.76:1AA
Destructive6.18:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.40:1AAA
Primary button8.03:1AAA
Secondary button6.76:1AA
Muted text6.94:1AA
Accent6.76:1AA
Destructive6.51:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 117.23);
  --foreground: oklch(0.18 0.026 119.423);
  --muted: oklch(0.912 0.025 296.582);
  --muted-foreground: oklch(0.469 0.018 296.373);
  --popover: oklch(0.991 0.008 117.23);
  --popover-foreground: oklch(0.18 0.026 119.423);
  --card: oklch(0.987 0.012 117.306);
  --card-foreground: oklch(0.164 0.022 118.753);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.704 0.027 117.757);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.662 0.027 296.334);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.662 0.027 296.334);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.447 0.15 35.947);
  --destructive-foreground: oklch(0.914 0.044 39.29);
  --ring: oklch(0.704 0.027 117.757);
  --chart-1: oklch(0.704 0.027 117.757);
  --chart-2: oklch(0.662 0.027 296.334);
  --chart-3: oklch(0.662 0.027 296.334);
  --chart-4: oklch(0.689 0.025 296.424);
  --chart-5: oklch(0.711 0.035 117.97);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.014 117.336);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.179 0.037 292.98);
  --muted-foreground: oklch(0.695 0.017 296.649);
  --popover: oklch(0.143 0.014 117.336);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.159 0.017 118.4);
  --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.704 0.027 117.757);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.662 0.027 296.334);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.662 0.027 296.334);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.673 0.205 37.305);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.704 0.027 117.757);
  --chart-1: oklch(0.704 0.027 117.757);
  --chart-2: oklch(0.662 0.027 296.334);
  --chart-3: oklch(0.662 0.027 296.334);
  --chart-4: oklch(0.689 0.025 296.424);
  --chart-5: oklch(0.711 0.035 117.97);
}