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-scaleto one of the following ratios:double_octavemajor_twelfthmajor_eleventhmajor_tenthoctavemajor_seventhminor_seventhmajor_sixthminor_sixthfifthaugmented_fourthfourthmajor_thirdminor_thirdmajor_secondminor_second
modular_scale = golden
ms()function to get a value in pixels:height: ms(0) // 16.618px
msem()function to get a value in emsheight: msem(0) //1.03em