Back

When someone looks at a design, a clean layout is only part of it. Good spacing is what makes the interface feel like it can breathe, and the data in it has to be aligned to what the eye sees, not only to the grid.

This matters more as a screen fills up. Take a hero section with a headline, a short description, and two actions to bring someone in. Here, where the Get started button sits matters even more than the colour of it.

Start creating finance agents using templates from the marketplace

Create powerful finance agents using ready-made, customizable templates available in the marketplace.

The example follows one simple spacing rule, and it points the eye at what the customer should see first. The description matters less, so it takes the secondary text colour and sits close to the heading.

The heading is semibold, tracked a little tighter, and set larger, so it holds the most attention.

Between the title and the description there is 16px. With 8px as the base unit, the next gap, between the description and the buttons, is that 16px plus one more unit: 16px + 8px = 24px.

The two buttons then sit as far apart as the title and the description.

Start creating finance agents using templates from the marketplace

Create powerful finance agents using ready-made, customizable templates available in the marketplace.

Leading counts too

These gaps add up geometrically. Any leading that comes with a heading or a paragraph, the space inside its line above and below the letters, becomes part of the spacing you actually see.

total-optical-spacingtotal-optical-spacing

To keep the rhythm in cases like this, drop to a 4px base unit and set 20px instead, so the optical spacing comes back to 24px.

Articles are only designed for light and dark, so the other color themes are off here.