Name the roles before choosing their numbers
List the short label, body paragraph, section heading and page title you really need. Try a small working set such as 14, 16, 24 and 32 CSS pixels in a prototype. Treat the numbers as examples. A role needs enough contrast from its neighbors, plus enough room for its longest content.
Pair each size with its own line height
The GOV.UK Design System publishes a type scale with size and line-height combinations and documents adjustments for small screens. Compare that approach with your own card or article. Set a body line and two heading lines in the actual font. Adjust the heading’s leading separately if it wraps.
Record the roles and proof one complete screen
Put each role in a style token or shared design note. Check a narrow screen, a larger browser text setting and one page where a label wraps. Keep the heading level in the document independent from its visual scale. Use the CSS size guide for the units and the homepage text styles for a separate short preview.
Your questions, answered.
Does a type scale need a mathematical ratio?
A ratio can generate starting values. Choose final steps by the roles, font and layout you need.
Should line height use the same number for all roles?
Proof it for each role, especially a longer heading and multi-line body text.
Sources & background
Sources supporting this page’s explanations. Practical examples are our editorial suggestions.