new-typography-scale
Sass size & scale management tools. Based on Accoutrement-scale. Removed superfluous functions and mixins (baseline and font-size). part of Accoutrement suite. Gather all your sizes into a single map, generate new sizes based on modular scales or arbitrary functions, and access them by name.
Quick Start
npm install new-typography-scale
Import the library:
Establish your palette of ratios and sizes:
; ;
Results will be returned in the units they were defined,
but can be converted in the map settings (as above),
or on-the-fly using size
:
.example
Access your sizes from anywhere, with helpers for setting font-sizes and line-heights:
h1
We can only calculate integer steps along an exponential scale, but if you want more power, install MathSass, and we'll let them do the hard math.
;