UI Foundations
Short lessons on the basics that every screen depends on: typography, spacing, hierarchy, accessibility, layout, colour and component design.
Typography
Build a type scale you will actually use
A small, fixed set of text sizes makes screens look related and decisions faster. Here is how to choose the sizes and when to stop.
Spacing
Spacing on a 4-point scale
Use a fixed set of gaps based on multiples of four, and let the size of the gap show how closely two things belong together.
Hierarchy
Visual hierarchy: one primary action per screen
A screen is clear when it is obvious what to look at first and what to do next. Size, weight, colour and position are the four tools.
Accessibility
Contrast and touch targets: two checks that catch most problems
Most everyday accessibility failures on app screens are text that is too faint and controls that are too small. Both can be measured.
Layout
Layout grids for phone screens
On a phone, a grid is mostly two decisions: the side margin and how items share the width. Make them once and every screen lines up.
Colour
Colour roles instead of colour names
Decide what each colour is for, such as background, text, primary action or error, and you can change the palette later without redrawing the product.
Component design
Design every state of a component
A button or field is not one picture but a set of states. Listing them before you draw prevents most of the gaps that developers otherwise have to guess.