A couple quick start options are available:
- Install with npm:
npm i px-rem-reference --save-dev
. - Install with yarn:
yarn add px-rem-reference --dev
.
px-rem-reference
is a simple converstion reference chart. Within the download you'll find the following directories and files:
px-rem-reference
└── px-rem-reference.md
Install the package.
npm i px-rem-reference --save-dev
There are two ways to use px-rem-reference
:
- Visit the px-rem-reference on GitHub quick reference, then copy/paste values from the web page.
- Open
px-rem-reference.md
in your text editor, then copy/paste values from the file.
The px
to rem
conversions are based off of the typical browser default
root font-size
of 16px
. Therefore, 1rem
is equal to 16px
.
- Go to px-rem-reference on GitHub
- Go to px-rem-reference on NPM
Guy Lepage
By contributing your code, you agree to license your contribution under the MIT License.