@motork/postcss-custom-properties-transform

1.0.2 • Public • Published

PostCSS Custom Properties transform

PostCSS plugin that allows transformation of color values from hex to rgb and their usage in CSS Custom Properties. This plugin can be used with Webpack's PostCSS loader.

Installation

npm i -D @motork/postcss-custom-properties-transform

Example usage with webpack

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          {
            loader: "postcss-loader",
            options: {
              plugins: [require("@motork/postcss-custom-properties-transform")]
            }
          }
        ]
      }
    ]
  }
};

Readme

Keywords

none

Package Sidebar

Install

npm i @motork/postcss-custom-properties-transform

Weekly Downloads

94

Version

1.0.2

License

ISC

Unpacked Size

4 kB

Total Files

5

Last publish

Collaborators

  • cristian.frumusanu.motork
  • motork-user
  • davidet16
  • davidefavia.motork
  • drivek-ske
  • paolo.cavanna