postcss-palette-tool

1.0.0 • Public • Published

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:

module.exports = {
    plugins: [
        require('postcss-palette-tool'),
    ],
};

This plugin can mix a color based on a variable and then output a new color.

before:

body {
    color: palette(#d924241);
    background: palette(#24acd98) radial-gradient(palette(#24acd99), #ffffff);
}

after:

body {
    color: #fff2f0;
    background: #0a638c radial-gradient(#024366#ffffff);
}

Options

var desc required
color css color ✔️
level 1 - 10 (6 is default color) ✔️

Package Sidebar

Install

npm i postcss-palette-tool

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

7.93 kB

Total Files

4

Last publish

Collaborators

  • caigua
  • zwlo