Fortunately, I have the freedom here at ChefSteps to go down rabbit holes I think are important, as long as I can A) Convince the team they are necessary and B) Can execute. So, after feeling like something was a bit off about the typography of the site, you’ll notice in the last couple of months that we moved away from using Raleway and Helvetica Neue on headers and body text respectively, and moved to mostly just Gotham. I love it, and I think the site looks very clean with it, but there was something missing.
It all started with MailChimp’s Archived Post of Rhythm and Grid , and I got started down the path of looking at our own typography and vertical rhythm (it was lacking). Once I started on the path of defining a vertical rhythm, I found several great resources that all coincided with choosing a scale for the typography as well. We’re currently using Gotham as the main font for the site through H&FJ (typography.com). A little more digging and bam! 8th light post about choosing a scale.
I started here, with a 9:16 scale, which is a minor seventh in musical terms. I chose 9:16 because of the similarity (while not exactly the same as) to 16:9 aspect ratio, which Ryan shoots the video at. That scale looks like this. The minor seventh looked good, but sounded a tad discordant for my taste. Knowing no one would really care/know about his, I still took the time to change it so it matched up to a perfect fourth. A perfect fourth sounds like the first chord on this song, which was playing everywhere at ChefSteps one day:
By this time, I’d seen several blog posts about incorporating music into your typography, and Robert Bringhurst’s advice to compose to scale is where a lot of these rooted from. Tim Brown’s article on A List Apart and Owen Gregory’s on 24 Ways are older posts, but also absolutely amazing and in-depth. I’ve not even come close to the thoroughness of the composition for layout as these two do, but it’s a start.
Here’s what I did: I took the Perfect Fourth and associated our scale to those and used the true 16:9 pixel dimension as the magic number (in this case, 1136px for our videos, which is a true 16:9 resolution. So, we’re using the perfect fourth scale now, which was a small adjustment, but gives me a really nice story behind the design 🙂 — Here’s the modular scale. We skip a few sizes between h3 and h5, but that also allows us flexibility in typography for different sized text should we need it.
One of the big things I struggled with was em vs. rem. I was defining baseline by em, which was screwing up issues because it was all defined by the parent and ems can compound in size based on inheritance. The only real solution while still using ems is to write more css — The answer was to use rems. I then defined the root for html to be 62.5%, which is the same as what Jonathan recommends, in order to have every X.Xrem to translate into XXpx (1.1rem = 11px). Then I used a SASS mixin to define a baseline of 1.1rem and anytime I add margin, I use $baseline * N for as much space as I need.
All this took a little while, because the rhythm is constantly disrupted by image sizes that don’t fall into multiples of our baseline (11px), but for the most part, the text up and down the page does. It helps the pages look more composed and any new modules we have in the future should fit neatly into the grid, making the entire site more flexible and robust from a UX perspective.
Did you get this far? You must really like typography! You’re probably like:
But I’m like:
Vertical rhythm and composing to a scale: Like doing the robot in a robot suit. Thanks to everyone linked here for helping me figure out how to implement something like this on ChefSteps. What’s next?
Some more resources: