Handmaiden is a shadcn/ui theme built around a violet primary color (#433276) with green accents (#657632). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the violet primary (#433276) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfdsnow | #040307black |
| Foreground | #000000black | #f6f5fawhitesmoke |
| Card | #fcfbfdsnow | #040307black |
| Card foreground | #000000black | #f6f5fawhitesmoke |
| Popover | #fcfbfdsnow | #040307black |
| Popover foreground | #000000black | #f6f5fawhitesmoke |
| Primary | #433276darkslateblue | #433276darkslateblue |
| Primary foreground | #eae6f4lavender | #eae6f4lavender |
| Secondary | #657632darkolivegreen | #657632darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3f4f0whitesmoke | #0e0f0bblack |
| Muted foreground | #4c513edarkolivegreen | #bcc1aesilver |
| Accent | #657632darkolivegreen | #657632darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #640702maroon | #e11005red |
| Destructive foreground | #fda09blightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #433276darkslateblue | #433276darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 5.02:1 | AA |
| Muted text | 7.46:1 | AAA |
| Accent | 5.02:1 | AA |
| Destructive | 6.79:1 | AA |
| Text on background | 18.92:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 5.02:1 | AA |
| Muted text | 10.42:1 | AAA |
| Accent | 5.02:1 | AA |
| Destructive | 4.91:1 | AA |
Paste this into your globals.css to use Handmaiden in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 297.778);
--foreground: oklch(0 0 0);
--muted: oklch(0.966 0.006 117.932);
--muted-foreground: oklch(0.424 0.03 119.101);
--popover: oklch(0.99 0.003 297.778);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.003 297.778);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.375 0.111 291.671);
--primary-foreground: oklch(0.932 0.019 297.453);
--secondary: oklch(0.536 0.095 121.364);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.536 0.095 121.364);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.321 0.125 30.03);
--destructive-foreground: oklch(0.798 0.112 23.136);
--ring: oklch(0.375 0.111 291.671);
--chart-1: oklch(0.375 0.111 291.671);
--chart-2: oklch(0.536 0.095 121.364);
--chart-3: oklch(0.536 0.095 121.364);
--chart-4: oklch(0.57 0.102 121.401);
--chart-5: oklch(0.371 0.118 291.021);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.012 297.646);
--foreground: oklch(0.972 0.007 297.7);
--muted: oklch(0.165 0.009 118.795);
--muted-foreground: oklch(0.802 0.026 118.402);
--popover: oklch(0.106 0.012 297.646);
--popover-foreground: oklch(0.972 0.007 297.7);
--card: oklch(0.106 0.012 297.646);
--card-foreground: oklch(0.972 0.007 297.7);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.375 0.111 291.671);
--primary-foreground: oklch(0.932 0.019 297.453);
--secondary: oklch(0.536 0.095 121.364);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.536 0.095 121.364);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.575 0.231 29.568);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.375 0.111 291.671);
--chart-1: oklch(0.375 0.111 291.671);
--chart-2: oklch(0.536 0.095 121.364);
--chart-3: oklch(0.536 0.095 121.364);
--chart-4: oklch(0.57 0.102 121.401);
--chart-5: oklch(0.371 0.118 291.021);
}