Hitspace
Extend clickable areas with CSS while keeping content aligned.
Hitbox directions
Click inside a dashed outline, just outside the checkbox, to toggle it.
View source
Four spacing units equal 16px in the default Tailwind theme. Edge classes override axis classes, and axis classes override the all-sides value.
Installation
Install Hitspace in a project that uses Tailwind CSS 4.1 or later.
install.sh
1bun add -d hitspaceImport Hitspace after Tailwind in your main stylesheet.
globals.css
1@import 'tailwindcss';2@import 'hitspace';Share dialog
Hover over any row to see its expanded hitbox. The last row extends into the dialog's default padding on the left, right, and bottom. Click the edge of any row to change its demo access.
Share agent
View source