Use for Figma layout work when creating new screens, refactoring spacing, standardizing hierarchy, or spacing nested components. Apply hierarchical spacing using the Gestalt principle of proximity so outer containers get proportionally more spacing than inner elements, using 8px/4px increments from the file's library variables.
spacing/4, spacing/8, spacing/16, spacing/24).spacing/xs → 4pxspacing/sm → 8pxspacing/md → 12pxspacing/lg → 16pxspacing/xl → 24pxspacing/2xl → 32pxspacing/3xl → 48pxuse_figma MCP tool:
Input request: "Create a settings page with a sidebar and content area containing form sections."
Hierarchy and spacing calculation (base = 8px, working outward):
| Level | Element | Spacing | Calculation |
|---|---|---|---|
| 4 (innermost) | Form field labels and inputs | 8px gap | Base value |
| 3 | Fields within a form section | 12px gap | 8 × 1.4 = 11.2 → snaps to 12px (4px increment) |
| 2 | Form sections within content area | 16px gap | 12 × 1.4 = 16.8 → snaps to 16px |
| 1 | Content area padding | 24px padding | 16 × 1.4 = 22.4 → snaps to 24px |
| 0 (outermost) | Page padding | 32px padding | 24 × 1.4 = 33.6 → snaps to 32px |
Result: A settings page where the tightest spacing (8px) groups labels with their inputs, slightly wider spacing (12px) separates fields, wider still (16px) distinguishes form sections, and the largest spacing (24–32px) frames the overall page and content area. The eye naturally parses the groupings without explicit dividers.