Skills / UI design / UI design foundations: hierarchy, spacing and alignment
UI design foundations: hierarchy, spacing and alignment
Good interfaces feel calm and obvious. Much of that comes from three habits: clear hierarchy, consistent spacing and careful alignment.
Hierarchy. On every screen, decide the one main thing the user should do, and make it the most visible element. Typically there is one primary button (filled, in the brand colour), with secondary actions in quieter styles (outlined or text-only). Two big bright buttons competing for attention make people hesitate.
Spacing on a scale. Use a fixed set of spacing values instead of random numbers. A common system is multiples of 8: 8, 16, 24, 32, 48 pixels. Small gaps group related things (a label and its input); larger gaps separate sections. Consistent spacing is the single quickest way to make a design look professional.
Proximity. Things that belong together should sit closer to each other than to anything else. If a caption is equally far from the photo above and the photo below, people cannot tell which one it describes.
Alignment. Line elements up along shared edges. Pick a few alignment lines and stick to them; text that starts at slightly different positions looks sloppy even when people cannot say why. Left-aligned text is easiest to scan.
Consistency. The same thing should look and behave the same everywhere: every primary button identical, every card the same corner radius, every error message in the same style. Users learn your interface once and then move fast.
Design with real content. Use realistic names, prices and text lengths, including long ones, so the design does not break when real data arrives.
The tutor gives hints, not finished answers. Log in to use it.