postcss-pr
PostCSS plugin that defines a pr
unit that transforms a value in px to output its equivalent in rem.
Write this:
And get this:
Installation
$ npm install postcss-pr
Usage
postcss([ require('postcss-pr') ])
See PostCSS docs for examples for your environment.
Options
rootSelector
- Type:
string
- Default:
:root
The selector where the font-size is set.
unit
- Type:
string
- Default:
pr
The unit to be used in your CSS.
fontSize
- Type:
number
- Default:
16
The default root font size. Used only when a font size definition in the root element is not found.
License
MIT - James Kolce