A small spacing change fixes a broken layout. Using 12 px padding inside related elements instead of 24 px makes them feel grouped together, while 24 px gaps work for separating distinct sections. The difference is dramatic even when typography and colors stay the same.
Chapters
How do you go from this to this? And why does the second one look so much better? The typography is the same, the color's the same. So what's different? There's a hidden culprit that's making the entire thing feel off. We've got 24 pixels here, 24 here, 24 here, over here, 24. Everything seems pretty decent. So what's the problem right here between these two modules? 12 pixels. That one inconsistency is throwing off the entire layout. Now you'd think, let's just make this 24 pixels. But watch, everything now feels disconnected. The gaps are now too important. That 12 pixels wasn't wrong. It was actually the entire backbone. The steps, the calories, the distance, the movement streak. It's all related content inside of that main area. And that spacing feels much better set to 12 pixels. The 24 pixels between sections is just too much negative space for related objects, and it makes things feel disconnected when they should feel grouped. Tighter 12-pixel internal spacing says these belong together. 24 pixels is good for separation, the sides, the margins, the space between things that aren't as closely related. Once you can see the difference, the whole layout clicks. Very small change, but completely different feel. Follow for more design tips or share with a friend that likes to sweat the details.