articles

How to Calculate Unitless Line-Heights with Sass

A couple of weeks ago I was working on a project and I realized the designer had wanted a specific `line-height` for a few different headlines. So how do we go from a pixel value (like 22px) to a unitless value (like 1.45)? It's actually pretty simple with Sass.

Read More...

Converting PX to REMs with a Simple Mixin

One of the first challenges you face when working with a designer is fonts. Designers are typically working with a fixed unit such as pixels, and we developers are typically working in EMs or REMs. So how do we handle the conversion?

Read More...