@motork/postcss-custom-properties-transform
v1.0.2
Published
PostCSS plugin that transform custom variables hex in rgb
Downloads
349
Keywords
Readme
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")]
}
}
]
}
]
}
};