Handmade for shadcn/ui

Handmade is a shadcn/ui theme built around a blue primary color (#2973a8) with indigo accents (#2933a8). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#2973a8) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#020303black
Foreground
#020c12black
#f9fafbghostwhite
Card
#f4f8fawhitesmoke
#040507black
Card foreground
#02090eblack
#fcfdfdwhite
Popover
#f8fafcghostwhite
#020303black
Popover foreground
#020c12black
#f9fafbghostwhite
Primary
#2973a8steelblue
#2973a8steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#29a89elightseagreen
#29a89elightseagreen
Secondary foreground
#010404black
#010404black
Muted
#d9e2e2gainsboro
#1d2625black
Muted foreground
#5d6968dimgray
#96a2a1darkgray
Accent
#2933a8darkslateblue
#2933a8darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#890301darkred
#fe1e1bred
Destructive foreground
#ffbebdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2973a8steelblue
#2973a8steelblue

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card18.75:1AAA
Primary button5.09:1AA
Secondary button7.06:1AAA
Muted text4.33:1AA Large
Accent9.80:1AAA
Destructive6.42:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.99:1AAA
Primary button5.09:1AA
Secondary button7.06:1AAA
Muted text5.90:1AA
Accent9.80:1AAA
Destructive3.87:1AA Large

CSS variables

Paste this into your globals.css to use Handmade in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.003 238.411);
  --foreground: oklch(0.145 0.023 234.401);
  --muted: oklch(0.907 0.01 191.008);
  --muted-foreground: oklch(0.512 0.015 190.62);
  --popover: oklch(0.984 0.003 238.411);
  --popover-foreground: oklch(0.145 0.023 234.401);
  --card: oklch(0.977 0.005 238.436);
  --card-foreground: oklch(0.131 0.019 230.334);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.536 0.11 243.902);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.664 0.107 186.473);
  --secondary-foreground: oklch(0.1 0.012 190.308);
  --accent: oklch(0.4 0.184 270.901);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.397 0.161 29.442);
  --destructive-foreground: oklch(0.86 0.075 19.833);
  --ring: oklch(0.536 0.11 243.902);
  --chart-1: oklch(0.536 0.11 243.902);
  --chart-2: oklch(0.664 0.107 186.473);
  --chart-3: oklch(0.4 0.184 270.901);
  --chart-4: oklch(0.699 0.113 186.443);
  --chart-5: oklch(0.538 0.115 244.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.005 234.39);
  --foreground: oklch(0.985 0.001 238.377);
  --muted: oklch(0.259 0.013 190.116);
  --muted-foreground: oklch(0.701 0.014 190.823);
  --popover: oklch(0.091 0.005 234.39);
  --popover-foreground: oklch(0.985 0.001 238.377);
  --card: oklch(0.115 0.006 234.39);
  --card-foreground: oklch(0.992 0.001 238.37);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.536 0.11 243.902);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.664 0.107 186.473);
  --secondary-foreground: oklch(0.1 0.012 190.308);
  --accent: oklch(0.4 0.184 270.901);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.634 0.248 28.66);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.536 0.11 243.902);
  --chart-1: oklch(0.536 0.11 243.902);
  --chart-2: oklch(0.664 0.107 186.473);
  --chart-3: oklch(0.4 0.184 270.901);
  --chart-4: oklch(0.699 0.113 186.443);
  --chart-5: oklch(0.538 0.115 244.323);
}