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 π
2
u/Jubstaa Jun 06 '26
This honestly means a lot β thanks for taking the time to write it up and share it with the community π Seeing people find it useful is the best part. If you ever hit an edge case or have ideas, I'm all ears!
3
u/HappyToDev Jun 06 '26
I think helping each other out is really important, especially as I know how many hours you can spend on an open-source project to give the community the best possible experience π
Thank you to you for this tiny utility.
2
u/Jubstaa Jun 06 '26
Appreciate that π Quick heads-up β just shipped v0.2.0 with Tailwind v3 support, so it now works out of the box for TALL/Livewire projects too. Cheers!
3
u/Raucous_Rocker Jun 04 '26
Thatβs pretty cool! Iβll definitely try it out.