What It Does
Measure to Selection mode automatically shows the spacing between other nodes and your selected element as you hover over the canvas. This eliminates the need to hold Alt/Option every time you want to check distances and padding.
The Problem It Solves
In Figma’s read-only view, measuring spacing requires:- Selecting an element first
- Holding Alt/Option continuously
- Moving the cursor to see spacing to other elements
- Releasing and re-pressing Alt for each measurement session
How to Enable
- Open TemPad Dev panel
- Click the Preferences icon (gear icon in the top right)
- In the Tools section, click the Measure to selection button to toggle it on
When enabled, the Measure button appears highlighted
How It Works
Once enabled, Measure mode automatically:- Detects when you have an element selected
- Simulates Alt key press when hovering over the canvas
- Shows spacing measurements between the selected element and elements under your cursor
- Releases when you press Alt manually (to access normal behavior)
Technical Implementation
Measure mode works by:- Monitoring canvas hover state and active selection
- Setting a “lock” on the Alt key when hovering over the canvas
- Managing cursor appearance to reflect the measurement state
- Temporarily disabling during manual Alt press for normal cursor operations
Behavior Details
When Measure Mode is Active
- With Selection
- Manual Alt Press
- No Selection
- Hover over other elements to see spacing automatically
- Red measurement lines appear showing distances
- Pixel values display next to measurement lines
- No need to hold any keys
When Measure Mode is Inactive
Measuring behaves like standard Figma:- Select an element
- Hold Alt/Option manually to see spacing
- Move cursor to measure different distances
- Release Alt to stop measuring
Visual Feedback
Measurement Display
When hovering with Measure mode enabled:Cursor States
The system manages cursor appearance intelligently:- Normal cursor: When measure mode is off or no selection
- Measurement cursor: When auto-measuring (looks like Alt-hover)
- Duplicate cursor: Temporarily shown when pressing Alt manually
Use Cases
Design System Verification
Design System Verification
Quickly verify that spacing follows design system tokens:Workflow:
- Enable Measure mode
- Select a component
- Hover over surrounding elements
- Verify spacing matches 4px, 8px, 16px, 24px grid
Layout Implementation
Layout Implementation
Extract exact spacing values for CSS/code:Example:
- Select a button
- Hover over adjacent elements
- Note margins: 16px top, 24px right
- Write CSS:
margin: 16px 24px 0 0
Responsive Design Review
Responsive Design Review
Check spacing consistency across breakpoints:Process:
- Enable Measure mode
- Select same element in different frames
- Compare spacing values quickly
Interaction with Other Features
Deep Select Mode
Measure mode pairs perfectly with Deep Select:- Deep Select lets you click once to select nested elements
- Measure mode automatically shows spacing as you hover
- Together: click → select deeply → hover → measure immediately
Code Inspection
Measurements complement the code output:- Select an element with spacing
- Check visual measurements with Measure mode
- Verify in Code panel:
Advanced Features
Cursor Override System
Measure mode includes an intelligent cursor management system that:- Detects Figma’s duplicate cursor (appears when Alt is pressed)
- Learns the CSS class Figma uses for the duplicate cursor
- Applies a cursor override when in measure mode to prevent confusion
- Removes override when you manually press Alt
Interaction Pausing
Measure mode intelligently pauses during:- Pointer down events: Prevents interference with selection
- Space bar panning: Doesn’t interfere with canvas navigation
- Manual Alt press: Allows normal Alt-key operations
Compatibility
Supported Platforms
- Chrome/Edge browser extension (full support)
- Figma web app in read-only mode (full support)
- Figma web app with edit access (partial support)
- Figma desktop app (not supported)
Tips and Best Practices
If you need to perform Alt-based operations (like viewing duplicate distance or creating duplicates), press Alt manually to temporarily disable auto-measure.
Common Workflows
Quick Spacing Audit
Spacing Documentation
Troubleshooting
Measurements not appearing
Measurements not appearing
Check these:
- Is an element selected?
- Is Measure mode enabled (button highlighted)?
- Are you hovering over the canvas?
- Try selecting a different element
Cursor looks wrong
Cursor looks wrong
Explanation: The cursor override system learns Figma’s cursor classes. If the cursor appears incorrect:
- Toggle Measure mode off and on
- Refresh the page to reset cursor learning
Alt key doesn't work normally
Alt key doesn't work normally
Expected behavior: Pressing Alt manually temporarily disables Measure mode. Release Alt to re-enable auto-measuring.
Interferes with selection
Interferes with selection
Solution: Measure mode automatically pauses during pointer down events. If you experience issues, try toggling it off while making selections.
Keyboard Reference
| Key | Behavior with Measure Mode |
|---|---|
| Alt | Temporarily disables auto-measure |
| Space + drag | Auto-measure pauses during pan |
| Shift + click | Normal multi-select behavior |
| Arrow keys | Navigate selection, measurements update on hover |
Next Steps
Deep Select Mode
Select nested elements with a single click
Inspect Code
Extract CSS values including spacing and padding