🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

postcss-palette-tool

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-palette-tool

> 🎨 [PostCSS](https://github.com/postcss/postcss) plugin to mixin monochromatic colors scheme

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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(#d92424, 1);
    background: palette(#24acd9, 8) radial-gradient(palette(#24acd9, 9), #ffffff);
}

after:

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

Options

vardescrequired
colorcss color✔️
level1 - 10 (6 is default color)✔️

Keywords

css

FAQs

Package last updated on 01 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts