We use a spacing system in a 4-pixel grid.
It helps to create a visual hierarchy and organises page content.
The 4px framework creates consistent spacing relationships and alignment across breakpoints. This is crucial for good UI design.
Spacing should be proportional to the size and importance of the elements on the page. For example, larger elements may need more space to balance their visual weight.
Consider spacing in responsive design to ensure that the spacing remains consistent and proportionate on different screen sizes and devices.
For page level, component and content spacing see layout.