Handsome for shadcn/ui

Handsome is a shadcn/ui theme built around a light purple primary color (#e3bad8) with light red accents (#e3bac3). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the light purple primary (#e3bad8) on a purple-tinted background (#0e060c).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#0e060cblack
Foreground
#130610black
#f9f6f8whitesmoke
Card
#fbf4f9lavenderblush
#11080fblack
Card foreground
#0f050dblack
#fbf9fasnow
Popover
#fbf4f9lavenderblush
#11080fblack
Popover foreground
#0f050dblack
#fbf9fasnow
Primary
#e3bad8thistle
#e3bad8thistle
Primary foreground
#4d1f40darkslategray
#4d1f40darkslategray
Secondary
#dabae3thistle
#dabae3thistle
Secondary foreground
#421f4ddarkslategray
#421f4ddarkslategray
Muted
#e0dae2gainsboro
#231d25black
Muted foreground
#656165dimgray
#9d9a9edarkgray
Accent
#e3bac3thistle
#e3bac3thistle
Accent foreground
#4d1f29darkslategray
#4d1f29darkslategray
Destructive
#b23d0afirebrick
#f4753etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3bad8thistle
#e3bad8thistle

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.52:1AAA
Primary button7.74:1AAA
Secondary button7.87:1AAA
Muted text4.42:1AA Large
Accent7.81:1AAA
Destructive5.88:1AA
Dark mode
Text on background18.60:1AAA
Text on card18.78:1AAA
Primary button7.74:1AAA
Secondary button7.87:1AAA
Muted text5.92:1AA
Accent7.81:1AAA
Destructive7.43:1AAA

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.006 334.637);
  --foreground: oklch(0.15 0.031 337.341);
  --muted: oklch(0.895 0.014 318.315);
  --muted-foreground: oklch(0.498 0.007 318.316);
  --popover: oklch(0.974 0.009 334.693);
  --popover-foreground: oklch(0.138 0.027 336.568);
  --card: oklch(0.974 0.009 334.693);
  --card-foreground: oklch(0.138 0.027 336.568);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.834 0.062 335.782);
  --primary-foreground: oklch(0.318 0.084 338.823);
  --secondary: oklch(0.829 0.067 318.248);
  --secondary-foreground: oklch(0.308 0.089 317.782);
  --accent: oklch(0.827 0.049 2.582);
  --accent-foreground: oklch(0.308 0.071 7.545);
  --destructive: oklch(0.522 0.162 38.988);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.834 0.062 335.782);
  --chart-1: oklch(0.834 0.062 335.782);
  --chart-2: oklch(0.829 0.067 318.248);
  --chart-3: oklch(0.827 0.049 2.582);
  --chart-4: oklch(0.856 0.056 318.265);
  --chart-5: oklch(0.833 0.067 335.868);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.019 336.049);
  --foreground: oklch(0.976 0.004 334.594);
  --muted: oklch(0.241 0.019 318.251);
  --muted-foreground: oklch(0.689 0.007 318.32);
  --popover: oklch(0.152 0.022 336.713);
  --popover-foreground: oklch(0.984 0.002 334.572);
  --card: oklch(0.152 0.022 336.713);
  --card-foreground: oklch(0.984 0.002 334.572);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.834 0.062 335.782);
  --primary-foreground: oklch(0.318 0.084 338.823);
  --secondary: oklch(0.829 0.067 318.248);
  --secondary-foreground: oklch(0.308 0.089 317.782);
  --accent: oklch(0.827 0.049 2.582);
  --accent-foreground: oklch(0.308 0.071 7.545);
  --destructive: oklch(0.702 0.171 42.254);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.834 0.062 335.782);
  --chart-1: oklch(0.834 0.062 335.782);
  --chart-2: oklch(0.829 0.067 318.248);
  --chart-3: oklch(0.827 0.049 2.582);
  --chart-4: oklch(0.856 0.056 318.265);
  --chart-5: oklch(0.833 0.067 335.868);
}