Skip to content

A utility for converting font-size css styles from px to rem units.

Notifications You must be signed in to change notification settings

dennis-johnson-dev/px_to_rem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  $ npm install px_to_rem 

Px_to_REM

Utility for converting font-size css styles using px units to rem

Usage

  var px_to_rem = require('px_to_rem');
  var css = "h1 { \n font-size: 12px;\n }";
  
  var output = px_to_rem.convert(css);
  
  console.log(output);

Command Line Tool

Also included is a command line tool that takes a css file as an argument (cwd = base folder of plugin)

  $ ./px_to_rem style.css

About

A utility for converting font-size css styles from px to rem units.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published