Skip to content

Tencil 0.7.0: measure spacing on the page

Measure an element’s spacing and send the numbers to your agent with your comment.

tencil@0.7.0 on npm

Inspect padding, margins and gaps

Turn on the ruler to see the hovered element’s padding, margin and flex or grid gap as you pick. Each value includes the Tailwind class that sets it.

Click the ruler button or press R to turn it on. It starts off. The project setting ruler, enabled by default, controls whether the ruler is available.

The Choose Pro button highlighted in comment mode, with padding labels of 12 and 20 pixels
The ruler shows 12 pixels of vertical padding and 20 pixels of horizontal padding on the button.

Measure distances with Alt

Hold Alt (Option on a Mac) to measure distances to an element’s parent. With a comment open, you can measure to any other element. Alt-click to include the distances in your comment, so your agent gets numbers alongside the request.

With the ruler on, you can also measure outside comment mode. Hold Alt anywhere, Alt-click to choose the element to measure from, then press C to comment with that spacing.

Red guides around Choose Pro showing 179 pixels above it and 25 pixels to the sides and bottom of its card
The red guides measure the button’s distance from its parent’s edges.

Include measurements in the agent’s prompt

Tencil includes the element’s box model and any measured spacing in the pin. Your agent receives both in its prompt.

Install or update Tencil

Run npx tencil in your project to get started. To update an existing install, run the command below. On Tencil 0.8.0 or later, you can also update from the overlay’s settings (About in 0.10.0 or later).

terminal

npx tencil@latest setup

Back to the changelog