Communitygithub.com

spacing-ladder

Reviews screenshots of user interfaces for spacing and grouping with the spacing ladder - related things sit closer than unrelated ones, and gaps grow from the inside out, from icon-to-label to list rows to groups inside a component to container padding to page sections. Use whenever someone shares a screenshot, PNG or Figma export of a website, landing page, app screen, dashboard, card, form, header or email (one image, or two variants to compare) and asks you to look it over, give feedback or find what is wrong, or describes it as cluttered, cramped, crowded, messy, stuck together, scattered, sloppy, cheap-looking or "feels off". Spacing is usually the cause even when the person blames fonts or colors. Not for turning a design into code, drawing a new layout, choosing fonts or palettes, checking contrast, or reviewing copy.

spacing-ladder란 무엇인가요?

spacing-ladder is a Claude Code agent skill that reviews screenshots of user interfaces for spacing and grouping with the spacing ladder - related things sit closer than unrelated ones, and gaps grow from the inside out, from icon-to-label to list rows to groups inside a component to container padding to page sections. Use whenever someone shares a screenshot, PNG or Figma export of a website, landing page, app screen, dashboard, card, form, header or email (one image, or two variants to compare) and asks you to look it over, give feedback or find what is wrong, or describes it as cluttered, cramped, crowded, messy, stuck together, scattered, sloppy, cheap-looking or "feels off". Spacing is usually the cause even when the person blames fonts or colors. Not for turning a design into code, drawing a new layout, choosing fonts or palettes, checking contrast, or reviewing copy.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Free-cat/spacing-ladder/tree/HEAD/skills/spacing-ladder

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Spacing ladder: visual review of UI screenshots

The rule

The higher an element sits in the visual hierarchy, the more space surrounds it. Spacing grows from the inside out, like a ladder:

line gap inside a paragraph
  < heading <-> its own text, label <-> field, icon <-> caption
  < between sibling items (list rows, form fields, menu items)
  < between groups inside a component (photo / text / button)
  <= padding of the component (its edge to its content)
  < between meaningful blocks and page sections

The padding step applies to contained components (cards, panels, fields, buttons, dialogs): their edge to the content breathes more than the gaps between the groups inside. It does not apply to a bar or a page-wide row (header, toolbar, tab strip) whose groups spread across the width: there the groups may sit farther apart than the side padding, and the margin to the edge is not compared with the gap between groups.

A section or list heading is a special case. It belongs to the whole list, so its gap to the content is at least the step between list items (otherwise it sticks to the first item), and clearly smaller than the gap to the previous section (otherwise it floats). Example: between posts 32, "Blog" heading to first post 32-40, between sections 64+.

Two checkable requirements follow:

  1. Related is closer than unrelated. A heading is closer to its own text than to the previous block. An icon is closer to its caption than to the neighbouring row. A button is set apart from the fields more than the fields are from each other.
  2. A container breathes more than its content. The padding from the edge of a card, button or field to its content is larger than the gaps between the elements inside.

Why it matters. The eye groups objects by proximity before the person reads anything. A small gap says "one thing", a large gap says "something new starts here". When gaps are swapped or all equal, groups stop reading and the design looks sloppy, though nobody can say why. So every finding in a review is a claim about grouping: what stuck to what, or what fell apart.

A visible boundary changes the requirements.

  • With a boundary (fill, border, shadow: cards in a grid), the boundary does the grouping, so the gap between cards may be smaller than their padding. That is normal, not a violation. Typical: padding 20-24, gap 16-24.
  • Without a boundary (text blocks, sections, field groups, header groups), only empty space groups things, so the gap between groups must be clearly larger than the gaps inside them. About 1.5x or more reads clearly; 1.2-1.5x still reads, only weakly. A difference of a couple of pixels is not readable.

The rule is not "more space everywhere". Too much space inside a group breaks it as surely as too little space between groups.

Reference examples

references/examples.md walks through six measured BAD/GOOD cases (card, icon list, form, heading pairs, header, page rhythm), with the images in assets/examples/. The rule and the scale below are enough for most reviews. Open it only when the screenshot is a type you are unsure about, or when you doubt a call: it shows what "stuck", "floating" and "jammed against the edge" look like and which numbers explain them.

Review procedure

Judge by eye. Do not write scripts or measure pixels programmatically: vision compares "this is bigger than that" reliably and absolute pixels poorly. Build conclusions on comparisons and give numbers as estimates ("about").

1. Scale

First decide the unit for your numbers. Compare the image width with typical sizes: a phone screen is 360-430 pt, a desktop 1280-1920 px. A phone screenshot about 750-1300 px wide is 2x or 3x, so divide every estimate by that factor. Sanity-check against known sizes: body text 14-17 px, a button or field 36-52 px high, an icon 16-24 px. Give all numbers in CSS px / pt and state the scale once ("screenshot is 2x, numbers in pt"). A wrong scale makes every fix wrong by a factor of two, which is the most expensive mistake in a review.

2. First impression

Squint: the text is unreadable and only blobs remain. How many blobs, and where? Write this down before analysing. It is what the user sees in the first second.

3. Meaningful groups

Read the interface and list the groups that should exist by meaning ("logo / menu / actions", "photo / name + description / price + button", "section heading / content"). Compare them with the blobs from step 2. Every mismatch is a main finding: a group fell apart, or two groups stuck together.

4. Pairwise comparisons

For each group, compare the pairs of gaps that the ladder says must differ:

  • inside a group vs to the neighbouring group;
  • container padding vs the gaps inside it;
  • heading <-> its own text vs heading <-> previous block (above the heading must be clearly more than below);
  • icon <-> its caption vs the step between rows;
  • field <-> field vs last field <-> button;
  • icon <-> text inside a button vs the button's padding;
  • side padding of fields and buttons vs vertical padding (text must not hug the left edge).

Use rulers taken from the screenshot itself: line height, button height, icon diameter. Example: "row step is about half a line, but the icon sits a full icon-width from its caption: the icon is farther from its caption than rows are from each other".

To avoid errors:

  • measure between edges of visible content (letters, icons, the edge of a fill), not imaginary boxes;
  • a "gap" or "step" is the clear space between neighbours, never the pitch (start of one row to the start of the next). Rows 48 apart whose icons are 24 tall have a gap of 24, and that is the number to compare with icon-to-label;
  • a card shadow is not padding: measure from the edge of the card fill;
  • judge line gap by the clear space between lines, not by letter height;
  • if two gaps differ by less than about 20%, call them "about equal", not "one larger". Equality where a difference is needed is itself a grouping violation;
  • if a detail cannot be made out (tiny, blurry), say so and ask for a larger image.

5. Consistency

Identical situations get identical gaps. Compare all gaps between sections, all "section heading -> content" gaps, all card paddings. Values that wander without a reason break the rhythm. The opposite extreme, everything at one distance ("all 16"), breaks nothing but forms no groups.

6. Check before answering

Before sending the report, check yourself:

  • Every violation is named as a comparison of two gaps ("A about 20, larger than B about 10"), not in general words ("too little air").
  • Comparisons match your own numbers. If you write "A < B", your estimates must support it; if they overlap, write "about equal". Do not inflate a difference to sound convincing: "the button is closer to the list than the items are to each other" at equal gaps is wrong, the right statement is "equally close".
  • Proposed fixes obey the rule themselves. Write out the final ladder with every level you touched (including section heading <-> content) and check it is monotonic: inside group < between groups <= padding < between sections (the padding step only for contained components); section heading <-> content is no less than the item step and less than the gap between sections. If a fix makes a gap equal to the next level or flips the order, correct it.
  • Severity is calibrated. A violation is a pair of gaps that groups wrongly: a difference that is needed but missing (the gaps are about equal, within 20%, and the ladder asks for a difference between them), or an order that is inverted (something sits closer to a foreign group than to its own). A pair in the right order with a ratio of 1.2-1.5x is not a violation: at most list it under "Minor notes" as optional, two notes at the most, and never rank it above a real violation. The ladder allows padding to equal a gap between groups (the <= step), so that equality is never a violation. Mature, well-made interfaces often sit at 1.3x on purpose, so a review of one should usually end in "no serious violations".
  • No false violations. A gap between bordered cards that is smaller than their padding is normal. Identical gaps in identical situations are normal. If the design is good overall, say so and list only the real problems; do not invent findings to fill space.
  • Numbers are in the right scale (step 1).

Report format

**Scale:** <1x / 2x / 3x - numbers below in CSS px or pt>

## First impression
<which group-blobs read, and how that differs from the meaning - 2-4 sentences>

## Groups by meaning
<tree: block -> groups -> elements>

## Violations (most serious first)
1. **<where>** - <gap A about N vs gap B about M> -> <what stuck to what / what does not read> -> **fix:** <concrete values>
...
(if none: "No serious violations", then "Minor notes (optional)" with at most 2 pairs in the right order but only 1.2-1.5x apart)

## What already works
<1-3 points, so they are not broken by the fix>

## Final ladder
<for example: line gap about 4 -> heading<->text 8 -> list rows 12 -> groups 20 -> padding 24 -> sections 64>

Severity order: first what breaks grouping (an element closer to a foreign group than to its own, groups that do not differ), then jamming against edges, then inconsistency, then small things.

Scale for fixes

If the project has no scale of its own, propose values from this one (base 4/8, adjust to the product's density):

LevelWhatValue
L0line gap inside a paragraph2-6
L1label <-> field, heading <-> its text, icon <-> caption, icon <-> text inside a button4-8
L2between fields, items, list rows12-16
L3between groups inside a component; field -> button20-32
L4padding of a contained card or component (not a full-width bar)20-32, not less than L3
L5section or list heading <-> its content>= item step of the content, < L6
L6between sections and meaningful blocks48-96

If code arrives with the screenshot, still review from the picture. Use the code only to name the property to change.

관련 스킬