Handmade is a shadcn/ui theme built around a near-white primary color (#eeecee) with near-white accents (#eceeed). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the near-white primary (#eeecee) on a purple-tinted background (#10050e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #10050eblack |
| Foreground | #11040eblack | #ffffffwhite |
| Card | #fcf8fbsnow | #10050eblack |
| Card foreground | #11040eblack | #ffffffwhite |
| Popover | #fcf8fbsnow | #10050eblack |
| Popover foreground | #11040eblack | #ffffffwhite |
| Primary | #eeeceewhitesmoke | #eeeceewhitesmoke |
| Primary foreground | #585156dimgray | #585156dimgray |
| Secondary | #eceeedwhitesmoke | #eceeedwhitesmoke |
| Secondary foreground | #515852darkslategray | #515852darkslategray |
| Muted | #d5e7d8gainsboro | #182a1bblack |
| Muted foreground | #56715bdimgray | #8ea993darkseagreen |
| Accent | #eceeedwhitesmoke | #eceeedwhitesmoke |
| Accent foreground | #515852darkslategray | #515852darkslategray |
| Destructive | #cf2802firebrick | #f72f02orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eeeceewhitesmoke | #eeeceewhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 6.28:1 | AA |
| Muted text | 4.15:1 | AA Large |
| Accent | 6.28:1 | AA |
| Destructive | 5.31:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 6.28:1 | AA |
| Muted text | 5.92:1 | AA |
| Accent | 6.28:1 | AA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Handmade in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 331.48);
--foreground: oklch(0.137 0.034 333.729);
--muted: oklch(0.91 0.028 150.953);
--muted-foreground: oklch(0.521 0.048 149.987);
--popover: oklch(0.983 0.005 331.48);
--popover-foreground: oklch(0.137 0.034 333.729);
--card: oklch(0.983 0.005 331.48);
--card-foreground: oklch(0.137 0.034 333.729);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.946 0.002 331.44);
--primary-foreground: oklch(0.443 0.012 331.799);
--secondary: oklch(0.947 0.002 151.374);
--secondary-foreground: oklch(0.451 0.012 151.011);
--accent: oklch(0.947 0.002 151.374);
--accent-foreground: oklch(0.451 0.012 151.011);
--destructive: oklch(0.553 0.206 32.472);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.946 0.002 331.44);
--chart-1: oklch(0.946 0.002 331.44);
--chart-2: oklch(0.947 0.002 151.374);
--chart-3: oklch(0.947 0.002 151.374);
--chart-4: oklch(0.97 0.001 151.389);
--chart-5: oklch(0.945 0.004 331.464);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.028 333.381);
--foreground: oklch(1 0 180);
--muted: oklch(0.265 0.037 149.141);
--muted-foreground: oklch(0.709 0.045 150.457);
--popover: oklch(0.138 0.028 333.381);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.028 333.381);
--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.946 0.002 331.44);
--primary-foreground: oklch(0.443 0.012 331.799);
--secondary: oklch(0.947 0.002 151.374);
--secondary-foreground: oklch(0.451 0.012 151.011);
--accent: oklch(0.947 0.002 151.374);
--accent-foreground: oklch(0.451 0.012 151.011);
--destructive: oklch(0.631 0.236 32.242);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.946 0.002 331.44);
--chart-1: oklch(0.946 0.002 331.44);
--chart-2: oklch(0.947 0.002 151.374);
--chart-3: oklch(0.947 0.002 151.374);
--chart-4: oklch(0.97 0.001 151.389);
--chart-5: oklch(0.945 0.004 331.464);
}