Loading topic
font-size, font-weight, and color work. It covers one idea: decide what a piece of text is, mark it up with the element for that role, and only then decide how it looks.7 min readfont-size, font-weight, and color do. The previous chapters covered why text needs a hierarchy and why you pick elements by role. Here you decide which sizes the page uses and how to express them in 7 min readfont-size, color, and rem units. It also assumes you have read the earlier chapters on the type scale, body text, captions, and labels. Those chapters gave each text role its own size and weight. This one checks that readers can still8 min readfont-size, font-weight, and color, and have seen the type scale from the earlier chapters. Here you will turn that scale into a small set of named values called design tokens, so headings, body text, captions, and labels stay consi7 min readfont-size, rem, and custom properties. It also assumes you have a type scale like the one built earlier in this tutorial. The goal here is to keep that scale readable and in proportion on a 320px phone and a7 min read