Authored by Primate

A rather awesome, informative
and witty blog about all things web

SASS typography maps

Since the release of SASS 3.3 and the inclusion of maps, I’ve been really keen to refactor the typography SASS file we use at Primate.

Before refactoring, the file was pretty large and repetitive, but it did provide all functions, @mixin’s, and placeholders we like to work with. I was keen to harness maps and for/each loops to take out the repetition and create a file that is easier to work with. I’d like to share what I created and briefly explain how it works.

Continue reading