The problem
The invite card in the video has a title, a subtitle, an Email field, a helper line and two buttons. Its padding, the space inside the edge, and the gaps between items were all picked by eye: 15, 3, 18, 6, 10, 22 and 17 px. That is seven different values, none of them related, and nothing quite lines up.
The fix
- Snap every gap to a 4 px grid. 15 becomes 16, 3 becomes 4, and every edge lands on a grid line.
- Keep a short scale. Allow only a few sizes: 4, 8, 16 and 24. Use 8 px inside a group and 24 px between groups.
- Name each step as a token. space-6 is 24 px, so the code says
margin-top: var(--space-6), notmargin-top: 15px.
Why it works
On a grid of 4 px squares, every edge lands on a line, so things line up without anyone measuring. The short scale lets the space mean something: the small gap holds a group together and the large gap keeps groups apart, so the space shows what belongs together. Tokens keep it that way. In the video, a teammate types 15 pixels and the drift is back. With names to pick from, nobody types a number. Seven values picked by eye become three, 4, 8 and 24, all from one scale in steps of four.
How to apply it
Write your scale down as tokens and use only those. Then go through a screen gap by gap: snap each value to the grid, use 8 px inside a group and 24 px between groups, and replace every typed number with its token.

