Hand-holding for shadcn/ui

Hand-holding is a shadcn/ui theme built around a deep purple primary color (#6c1467) with deep teal accents (#14676c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#6c1467) on a purple-tinted background (#0b040b).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b040bblack
Foreground
#0d020dblack
#fbf9fbsnow
Card
#ffffffwhite
#0b040bblack
Card foreground
#0d020dblack
#fbf9fbsnow
Popover
#ffffffwhite
#0b040bblack
Popover foreground
#0d020dblack
#fbf9fbsnow
Primary
#6c1467purple
#6c1467purple
Primary foreground
#f3bef1thistle
#f3bef1thistle
Secondary
#676c14darkolivegreen
#676c14darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5e5e0gainsboro
#1e1f1ablack
Muted foreground
#4b4c39darkolivegreen
#c5c6b3silver
Accent
#14676cteal
#14676cteal
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8e2d10saddlebrown
#e64d1echocolate
Destructive foreground
#faded6antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6c1467purple
#6c1467purple

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button6.96:1AA
Secondary button5.63:1AA
Muted text6.97:1AA
Accent6.56:1AA
Destructive6.48:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button6.96:1AA
Secondary button5.63:1AA
Muted text9.58:1AAA
Accent6.56:1AA
Destructive3.86:1AA Large

CSS variables

Paste this into your globals.css to use Hand-holding in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.037 329.064);
  --muted: oklch(0.922 0.007 108.845);
  --muted-foreground: oklch(0.409 0.03 110.012);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.037 329.064);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.037 329.064);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.38 0.153 330.367);
  --primary-foreground: oklch(0.865 0.089 327.941);
  --secondary: oklch(0.51 0.105 112.563);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.471 0.074 200.417);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.441 0.137 36.346);
  --destructive-foreground: oklch(0.922 0.033 37.617);
  --ring: oklch(0.38 0.153 330.367);
  --chart-1: oklch(0.38 0.153 330.367);
  --chart-2: oklch(0.51 0.105 112.563);
  --chart-3: oklch(0.471 0.074 200.417);
  --chart-4: oklch(0.553 0.115 112.599);
  --chart-5: oklch(0.383 0.157 330.444);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.024 328.339);
  --foreground: oklch(0.984 0.004 327.076);
  --muted: oklch(0.235 0.009 109.437);
  --muted-foreground: oklch(0.821 0.025 109.275);
  --popover: oklch(0.125 0.024 328.339);
  --popover-foreground: oklch(0.984 0.004 327.076);
  --card: oklch(0.125 0.024 328.339);
  --card-foreground: oklch(0.984 0.004 327.076);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.38 0.153 330.367);
  --primary-foreground: oklch(0.865 0.089 327.941);
  --secondary: oklch(0.51 0.105 112.563);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.471 0.074 200.417);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.627 0.197 36.207);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.38 0.153 330.367);
  --chart-1: oklch(0.38 0.153 330.367);
  --chart-2: oklch(0.51 0.105 112.563);
  --chart-3: oklch(0.471 0.074 200.417);
  --chart-4: oklch(0.553 0.115 112.599);
  --chart-5: oklch(0.383 0.157 330.444);
}