Hatchet for shadcn/ui

Hatchet is a shadcn/ui theme built around a muted light purple primary color (#e9dde8) with muted light cyan accents (#dde8e9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#e9dde8) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#ffffffwhite
#070307black
Foreground
#150413black
#fdfcfdwhite
Card
#ffffffwhite
#070307black
Card foreground
#150413black
#fdfcfdwhite
Popover
#ffffffwhite
#070307black
Popover foreground
#150413black
#fdfcfdwhite
Primary
#e9dde8gainsboro
#e9dde8gainsboro
Primary foreground
#593a56darkslategray
#593a56darkslategray
Secondary
#e8e9ddgainsboro
#e8e9ddgainsboro
Secondary foreground
#1b1c12black
#1b1c12black
Muted
#e8e8e3gainsboro
#1c1c17black
Muted foreground
#464837darkslategray
#c6c8b7silver
Accent
#dde8e9gainsboro
#dde8e9gainsboro
Accent foreground
#3a5659darkslategray
#3a5659darkslategray
Destructive
#cc3614firebrick
#e33c16orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e9dde8gainsboro
#e9dde8gainsboro

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button7.37:1AAA
Secondary button14.00:1AAA
Muted text7.62:1AAA
Accent6.31:1AA
Destructive5.10:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button7.37:1AAA
Secondary button14.00:1AAA
Muted text10.03:1AAA
Accent6.31:1AA
Destructive4.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.15 0.044 331.166);
  --muted: oklch(0.93 0.008 111.165);
  --muted-foreground: oklch(0.395 0.027 112.269);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.15 0.044 331.166);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.15 0.044 331.166);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.91 0.019 328.822);
  --primary-foreground: oklch(0.397 0.061 330.178);
  --secondary: oklch(0.929 0.016 111.33);
  --secondary-foreground: oklch(0.221 0.018 112.509);
  --accent: oklch(0.922 0.011 204.898);
  --accent-foreground: oklch(0.434 0.034 204.692);
  --destructive: oklch(0.56 0.192 33.479);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.91 0.019 328.822);
  --chart-1: oklch(0.91 0.019 328.822);
  --chart-2: oklch(0.929 0.016 111.33);
  --chart-3: oklch(0.922 0.011 204.898);
  --chart-4: oklch(0.949 0.011 111.239);
  --chart-5: oklch(0.909 0.022 328.855);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.016 329.446);
  --foreground: oklch(0.992 0.001 328.608);
  --muted: oklch(0.225 0.011 111.884);
  --muted-foreground: oklch(0.825 0.023 111.527);
  --popover: oklch(0.111 0.016 329.446);
  --popover-foreground: oklch(0.992 0.001 328.608);
  --card: oklch(0.111 0.016 329.446);
  --card-foreground: oklch(0.992 0.001 328.608);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.91 0.019 328.822);
  --primary-foreground: oklch(0.397 0.061 330.178);
  --secondary: oklch(0.929 0.016 111.33);
  --secondary-foreground: oklch(0.221 0.018 112.509);
  --accent: oklch(0.922 0.011 204.898);
  --accent-foreground: oklch(0.434 0.034 204.692);
  --destructive: oklch(0.606 0.209 33.421);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.91 0.019 328.822);
  --chart-1: oklch(0.91 0.019 328.822);
  --chart-2: oklch(0.929 0.016 111.33);
  --chart-3: oklch(0.922 0.011 204.898);
  --chart-4: oklch(0.949 0.011 111.239);
  --chart-5: oklch(0.909 0.022 328.855);
}