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")]
}
}
]
}
]
}
};