Hatchling for shadcn/ui

Hatchling is a shadcn/ui theme built around a muted deep pink primary color (#0c080a) with muted deep blue accents (#080a0c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep pink primary (#0c080a) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#040102black
#faf5f7whitesmoke
Card
#fcfcfcsnow
#070405black
Card foreground
#000000black
#fbf8f9snow
Popover
#ffffffwhite
#030202black
Popover foreground
#040102black
#faf5f7whitesmoke
Primary
#0c080ablack
#0c080ablack
Primary foreground
#b6919erosybrown
#b6919erosybrown
Secondary
#0a0c08black
#0a0c08black
Secondary foreground
#9eb691darkseagreen
#9eb691darkseagreen
Muted
#d8dbd6gainsboro
#262924darkslategray
Muted foreground
#424540darkslategray
#bcbfbasilver
Accent
#080a0cblack
#080a0cblack
Accent foreground
#919eb6darkgray
#919eb6darkgray
Destructive
#992205darkred
#ed3507orangered
Destructive foreground
#fedbd2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c080ablack
#0c080ablack

Contrast

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

Light mode
Text on background20.78:1AAA
Text on card20.54:1AAA
Primary button7.13:1AAA
Secondary button8.93:1AAA
Muted text6.97:1AA
Accent7.34:1AAA
Destructive6.26:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.39:1AAA
Primary button7.13:1AAA
Secondary button8.93:1AAA
Muted text7.97:1AAA
Accent7.34:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.083 0.017 353.149);
  --muted: oklch(0.888 0.007 134.264);
  --muted-foreground: oklch(0.385 0.01 134.366);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.083 0.017 353.149);
  --card: oklch(0.992 0 161.565);
  --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.142 0.008 354.176);
  --primary-foreground: oklch(0.694 0.047 355.46);
  --secondary: oklch(0.151 0.01 134.045);
  --secondary-foreground: oklch(0.747 0.058 134.679);
  --accent: oklch(0.142 0.006 261.478);
  --accent-foreground: oklch(0.696 0.038 262.868);
  --destructive: oklch(0.449 0.159 33.707);
  --destructive-foreground: oklch(0.918 0.04 34.321);
  --ring: oklch(0.142 0.008 354.176);
  --chart-1: oklch(0.142 0.008 354.176);
  --chart-2: oklch(0.151 0.01 134.045);
  --chart-3: oklch(0.142 0.006 261.478);
  --chart-4: oklch(0.19 0.016 134.717);
  --chart-5: oklch(0.141 0.009 354.25);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.008 353.394);
  --foreground: oklch(0.974 0.005 353.731);
  --muted: oklch(0.274 0.009 134.414);
  --muted-foreground: oklch(0.801 0.008 134.278);
  --popover: oklch(0.088 0.008 353.394);
  --popover-foreground: oklch(0.974 0.005 353.731);
  --card: oklch(0.111 0.01 353.394);
  --card-foreground: oklch(0.983 0.004 353.678);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.142 0.008 354.176);
  --primary-foreground: oklch(0.694 0.047 355.46);
  --secondary: oklch(0.151 0.01 134.045);
  --secondary-foreground: oklch(0.747 0.058 134.679);
  --accent: oklch(0.142 0.006 261.478);
  --accent-foreground: oklch(0.696 0.038 262.868);
  --destructive: oklch(0.617 0.224 33.117);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.142 0.008 354.176);
  --chart-1: oklch(0.142 0.008 354.176);
  --chart-2: oklch(0.151 0.01 134.045);
  --chart-3: oklch(0.142 0.006 261.478);
  --chart-4: oklch(0.19 0.016 134.717);
  --chart-5: oklch(0.141 0.009 354.25);
}