Modular Scale is a Stylus-based mixin that calculates the incremental values of the modular scale in proportion to a set size and ratio. It was inspired by and adapted from Tim Brown's modularscale.com, Scott Kellum's sassy modular scale, and Cory Simmons's Jeet. I think it's valuable enought to be a seperate module.
Set the value of
modular-scale to one of the following ratios:
modular_scale = golden
ms() function to get a value in pixels:
height: ms(0) // 16.618px
msem() function to get a value in ems
height: msem(0) //1.03em