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?


@JT_Grimes I wanted to write something nice and reassuring...just don't have it in me. Sorry. Hang in there buddy

When we wake up tomorrow, America will still exist, and we should think about what we can do to help alleviate the suffering that's to come.

@greydnls that hate and fear are very strong and we should never take those for granted

Americans are so fond of the word 'grit'. Good. You're going to need it ?

This Las Vegas just is *ripping* Trumps lawyer! It’s awesome and this lawyer is an idiot

My 7 year old is worried that @realDonaldTrump is going to make segregation real again. His words. 7 years old and worried about segregation

Oh god, someone has Christmas lights up and on

It’s interesting how people who make such a fuss about protecting the 2nd Amendment clearly want to repeal the 1st.…

SSL Certs is one of those topics that I know just enough to be dangerous if stuff goes wrong…and usually it goes wrong on my personal site

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.