Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/web-ridge/rem-to-px
rem-to-px cli program which you can put in your package.json. It replaces rem with px.
https://github.com/web-ridge/rem-to-px
Last synced: 3 days ago
JSON representation
rem-to-px cli program which you can put in your package.json. It replaces rem with px.
- Host: GitHub
- URL: https://github.com/web-ridge/rem-to-px
- Owner: web-ridge
- License: mit
- Created: 2020-03-05T18:35:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-31T17:01:40.000Z (over 3 years ago)
- Last Synced: 2023-03-06T12:52:31.399Z (over 1 year ago)
- Language: JavaScript
- Size: 184 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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;