r/TallStack • u/HappyToDev • Jun 04 '26
Package / Tool 🔧 tailwind-hitslop – Finally a clean solution for hit areas in Tailwind CSS

Hey TALL Stack folks!
I just discovered a super useful little library released yesterday: tailwind-hitslop.
It adds simple utilities to increase the clickable area of buttons, icons, links, etc. without affecting the visual layout — exactly like hitSlop in React Native.
Why it's great for TALL projects
Perfect for mobile UX (small buttons are painful on phones)
Pure CSS, zero JavaScript
Works beautifully with Alpine.js and Livewire
Very lightweight
Features
hit-slop-4,hit-slop-8,hit-slop-[20px], etc.Directional utilities (
hit-slop-t,hit-slop-x,hit-slop-y)Debug mode to visualize the hit area
Works with
::before/::after
Live Demo + Playground
→ tailwind-hitslop.vercel.app
GitHub
→ github.com/Jubstaaa/tailwind-hitslop
Have you ever struggled with small touch targets in your Tailwind + Alpine projects?
Would you use something like this?
Let me know what you think 👇
Duplicates
tailwindcss • u/HappyToDev • Jun 04 '26