Handsome is a shadcn/ui theme built around an indigo primary color (#47408c) with green accents (#408c47). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the indigo primary (#47408c) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #040307black |
| Foreground | #060515black | #fcfcfdwhite |
| Card | #f9f8fbghostwhite | #05050ablack |
| Card foreground | #050411black | #ffffffwhite |
| Popover | #fcfcfdwhite | #040307black |
| Popover foreground | #060515black | #fcfcfdwhite |
| Primary | #47408cdarkslateblue | #47408cdarkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8c4740sienna | #8c4740sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eee8e7linen | #181211black |
| Muted foreground | #5f5e5ddimgray | #a2a0a0darkgray |
| Accent | #408c47seagreen | #408c47seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #952809saddlebrown | #e13c0eorangered |
| Destructive foreground | #fcddd4antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #47408cdarkslateblue | #47408cdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 8.82:1 | AAA |
| Secondary button | 6.82:1 | AA |
| Muted text | 5.33:1 | AA |
| Accent | 4.16:1 | AA Large |
| Destructive | 6.38:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 8.82:1 | AAA |
| Secondary button | 6.82:1 | AA |
| Muted text | 7.14:1 | AAA |
| Accent | 4.16:1 | AA Large |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Handsome in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 290.207);
--foreground: oklch(0.128 0.037 285.066);
--muted: oklch(0.935 0.007 23.654);
--muted-foreground: oklch(0.482 0.002 23.626);
--popover: oklch(0.991 0.002 290.207);
--popover-foreground: oklch(0.128 0.037 285.066);
--card: oklch(0.981 0.004 290.166);
--card-foreground: oklch(0.118 0.032 285.888);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.42 0.121 283.636);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.481 0.095 26.57);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.574 0.127 145.295);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.445 0.149 34.818);
--destructive-foreground: oklch(0.92 0.037 35.944);
--ring: oklch(0.42 0.121 283.636);
--chart-1: oklch(0.42 0.121 283.636);
--chart-2: oklch(0.481 0.095 26.57);
--chart-3: oklch(0.574 0.127 145.295);
--chart-4: oklch(0.506 0.101 26.603);
--chart-5: oklch(0.414 0.13 282.857);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.013 288.636);
--foreground: oklch(0.991 0.001 290.225);
--muted: oklch(0.188 0.011 24.228);
--muted-foreground: oklch(0.707 0.002 23.609);
--popover: oklch(0.104 0.013 288.636);
--popover-foreground: oklch(0.991 0.001 290.225);
--card: oklch(0.119 0.015 288.634);
--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.42 0.121 283.636);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.481 0.095 26.57);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.574 0.127 145.295);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.602 0.208 34.387);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.42 0.121 283.636);
--chart-1: oklch(0.42 0.121 283.636);
--chart-2: oklch(0.481 0.095 26.57);
--chart-3: oklch(0.574 0.127 145.295);
--chart-4: oklch(0.506 0.101 26.603);
--chart-5: oklch(0.414 0.13 282.857);
}