Set interface spacing with AI
Build a spacing scale from two base units and check where real components fall outside it. Keep dense layouts usable without inventing a new value for every gap.
Set interface spacing with AI when a design system has accumulated a dozen slightly different ways to pad a card. The spacing-system skill works from a minor unit, a major unit and the density you need. It can map existing values to a consistent scale and identify exceptions worth discussing.
A booking dashboard and its public reservation form may use the same system at different densities. Reducing the gap between table cells makes sense in one setting, but shrinking a touch target can make the other harder to use. The scale gives the team a basis for making those choices deliberately.
What it does
- Choose minor and major units for a stated density.
- Bring padding, gaps and component heights onto a shared grid.
- Pair numeric token names with equivalent size labels where both are used.
- Identify sizes that duplicate an existing value or break the naming sequence.
- Check spacing against the actual height and icon pairing of a control.
Install and use
- Install the skill in a compatible agent and share existing tokens or style definitions. Keep the maker’s component-sizing-principles companion available for control, type and icon pairings.
- Ask, “Map the padding in our order table and detail cards to the current scale. Show which exceptions have a purpose.”
- Review representative components at their intended density before applying the proposed tokens more widely.
FAQ
Source
Made by thrillmot (thrillmade). Original skill: spacing-system, published on GitHub under the MIT licence.
View on GitHub