postcss-scale-px

1.0.0 • Public • Published

PostCSS Scale

PostCSS plugin for scaling css px attributes.

/* postcss-scale-px box-shadow,border */
.foo {
  /* Input example */

  display: flex;
  font-size: 13px;
  border: 1px solid #fff;
}
.foo {
  /* Output example */
  display: flex;
  font-size: 26px;
  border: 1px solid #fff;
}

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-scale'),
    require('autoprefixer')
  ]
}

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

Package Sidebar

Install

npm i postcss-scale-px

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.2 kB

Total Files

5

Last publish

Collaborators

  • spxiaomin