Did you ever notice that developers and designers have different languages? A designer, working in Photoshop or Sketch, will be talking about things in pixels. Designers make headers that are 48 pixels tall and have 60 pixel line-heights. Developers, like me, tend to think about things in percentages or EMs. We want font-sizes that are 4.8rem and line heights that are 1.6.
Today I want to resolve the pixel font-size issue with Sass.
Let's pretend you've got a new blog to code today. You crack open the design file and you see the following:
Main Header: 32px
Sub-Header: 28px
body copy: 18px