postcss-palette-tool
🎨 PostCSS plugin to mixin monochromatic colors scheme
Color palettes calculator of Ant Design.
Install
npm install --dev postcss-palette-tool
Usage
Add to postcss.config.js
:
moduleexports = plugins: ;
This plugin can mix a color based on a variable and then output a new color.
before:
after:
Options
var | desc | required |
---|---|---|
color | css color | ✔️ |
level | 1 - 10 (6 is default color) | ✔️ |