PostCSS plugin that generates REM based font-size and line-height for every fontsize declaration. The line-height will be 1.5 times the fontsize value. A fallback option using pixel based font-size and line-height can also be generated.
Output:
Usage
npm install postcss-fontsize --save-dev
Gulp
var postcss = ;var fontsize = ; gulp;
Options
The plugin does not generate fallback px sizes by default. In order generate the px fallbacks include the following option in the gulp task:
var processors = ;
Including fallback option:
Output:
See PostCSS docs for examples for your environment.