Exercise 2 solution: giving a flat recipe page a hierarchy ========================================================== The flat page: everything is 16px regular, one colour, one even gap between lines. The reader cannot tell the title from a step, or a step from a tip. A sample answer (yours may differ; what matters is that every level has a reason) Level Size Weight Colour Space above / below --------------- --------- ------- ---------------- ------------------- Recipe title 2.0rem 700 near-black 0 / 0.5rem Intro (lead) 1.25rem 400 dark grey 0 / 1.5rem Section heading 1.5rem 700 near-black 2.5rem / 0.75rem ("Ingredients", "Method") Ingredient list 1rem 400 near-black 0 / 1.5rem Method step 1rem 400 near-black 0 / 0.75rem Step number 1rem 700 accent colour - Tip 0.875rem 400 mid grey, italic 1rem / 1rem Photo caption 0.8rem 400 mid grey 0.4rem / 1.5rem Which contrast tools were used, and why --------------------------------------- * Size: title, section heading and body are three clearly different sizes (ratio between neighbours about 1.25 or more), so the eye finds the order at a glance. * Weight: the section headings are bold at a size only a little above body, so they stay compact but still stand out. Step numbers use bold plus colour so they can be scanned. * Colour: lead, tip and caption are greyer than the main text so they read as "secondary". Check that the grey still has enough contrast against the background (Chapter 7 covers the numbers). * Space: the gap ABOVE a section heading (2.5rem) is bigger than the gap BELOW it (0.75rem), so the heading visibly belongs to the text that follows it. This is the principle of proximity. Quick sanity check of the size steps ------------------------------------ 2.0 / 1.5 = 1.33 1.5 / 1.0 = 1.5 1.0 / 0.875 = 1.14 0.875 / 0.8 = 1.09 The last two are close: those levels (tip and caption) are separated by colour, style and position rather than by size alone, which is fine. Common mistakes to avoid ------------------------ * Making the title and the section headings almost the same size (they then compete). * Using bold, italic, colour AND a bigger size on one element: pick one or two tools per level. * Equal space above and below a heading, which leaves it floating between two paragraphs.