postcss-blend-colors
v1.2.0
Published
A postcss plugin to blend 2 colors by a given factor
Downloads
21
Maintainers
Readme
PostCSS Blend Colors Plugin
A PostCSS plugin for mixing to colors.
📇 Table of Contents
Installation
To use this plugin, you need to have Tailwind CSS installed in your project. If you haven't installed Tailwind CSS yet, follow these steps:
Using pnpm
pnpm add postcss-blend-colors
Using npm
npm install postcss-blend-colors
Using yarn
yarn add postcss-blend-colors
Setup config
In postcss.config.js paste the following
module.exports = {
plugins: {
"postcss-blend-colors": {}
}
}
How to use
body {
background: mix(red, blue);
color: mix(red, blue, 0.25);
}
Output
body {
background: #b400b4;
color: #dd0080;
}
Contributing
Contributions to this plugin are welcome! If you encounter any issues, have feature requests, or want to improve the plugin, feel free to create a pull request or submit an issue on the GitHub repository.
Contributors
License
This project is licensed under the MIT License - see the LICENSE file for details.