Proportions for Sass 📐
Organic, Mechanical and Musical Proportions for Sass
From The Elements of Typographic Style by Robert Bringhurst.
Install using npm
or yarn
:
[npm|yarn] install proportions-sass
Import using webpack's sass-loader:
@
Or the more verbose way in a vanilla Sass environment:
;
The proportions are implemented in a map. This way the global scope is not polluted width too many variables:
;
Use map-get
to fetch the desired proportion:
body