postcss-pxn2rem

1.0.2 • Public • Published

PostCSS Pxn2rem

PostCSS plugin for convert pxn to rem for options(markBaseWidth, columns).

.foo {
  /* Input example */
  height: 37.5pxn;
}
.foo {
  /* Output example */
  height: 1rem;
}

Usage

Check you project for existed PostCSS config: postcss.config.js in the project root, "postcss" section in package.json or postcss in bundle config.

If you already use PostCSS, add the plugin to plugins list:

module.exports = {
  plugins: [
+   require('postcss-pxn2rem')({ markBaseWidth: 375, columns: 10 }),
    require('autoprefixer')
  ]
}

If you do not use PostCSS, add it according to official docs and set this plugin in settings.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i postcss-pxn2rem

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.6 kB

Total Files

5

Last publish

Collaborators

  • yusphy45