Width & line height
Line height (leading in the old print terms) controls how tall a line box is. A larger line height can make the text easier to read, while going for numbers too large can make the lines feel disasociated from each other.
For body text you usually want to use relaxed values between 1.5 and 2.0. While for headings a tighter fit - such as 1.2 - tends to be a good option.
Every font and usecase is different tho so make sure adjust to what works best for you.
With width you want to avoid making your containers too large. A human eye has a tough time following long lines of text, so keeping them shorter, makes reading much easier.
The WCAG specifies 80 chars per line as a recommended maximum and for the bottom thershould, 40 seems to be the agreed upon standard.
Best range to aim for is 45 to 75 characters per line (including spaces).
The pursuit of the perfect espresso begins, as most important scientific investigations do, with somebody buying a much more expensive grinder than they intended. The dose is weighed to three decimal places, the beans are raked with a tiny collection of needles, and the portafilter is tamped with the concentration normally reserved for defusing explosives. The shot begins. Everyone watches in silence. Then someone takes a sip, pauses, and says, “There’s a little channeling.”
The pursuit of the perfect espresso begins, as most important scientific investigations do, with somebody buying a much more expensive grinder than they intended. The dose is weighed to three decimal places, the beans are raked with a tiny collection of needles, and the portafilter is tamped with the concentration normally reserved for defusing explosives. The shot begins. Everyone watches in silence. Then someone takes a sip, pauses, and says, “There’s a little channeling.”
Here is how those settings look applied to a real component.