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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.35:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 6.76:1 | AA |
| Muted text | 5.26:1 | AA |
| Accent | 6.76:1 | AA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 6.76:1 | AA |
| Muted text | 6.94:1 | AA |
| Accent | 6.76:1 | AA |
| Destructive | 6.51:1 | AA |
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);
}