Skip to content

rem-to-px cli program which you can put in your package.json. It replaces rem with px.

License

Notifications You must be signed in to change notification settings

web-ridge/rem-to-px

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What

rem-to-px cli program which you can put in your package.json. It replaces rem with px.

Why?

We use this to fix wordpress styling in the admin because all font-sizes of our template looks off.

Install

npm install https://github.com/web-ridge/rem-to-px --save-dev

or

yarn add https://github.com/web-ridge/rem-to-px --dev

Example

We are using this in our "scripts" in our projects like this

node node_modules/rem-to-px --file ./assets/css/editor-style-block.css --multiplier 10

Multiplier of 10 takes care of e.g. 1.5rem to 15px;

About

rem-to-px cli program which you can put in your package.json. It replaces rem with px.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published