Last Updated: February 25, 2016
· danzkusuma

Adding sassy modular-scale into sass

Sassy Modular Scale is a Sass based mixin that calculates the incremental values of the modular scale in proportion to a set size and ratio. These making useful for counting width or size of your html elements. In a short word, it make your sass code faster.

To add modular scale, you need to write these into your terminal (ruby gem already installed first).

gem install modular-scale

next is adding at your config file.

require 'modular-scale'

and finally adding import at scss file.

@import "modular-scale"

And I suggest if you use Scout, Livereload, Codekit and other things that auto compile sass, you must ran install first then you could start the scout..

Good Luck :D