Color palettes calculator of Ant Design
$ gnpm install ant-design-palettes
:art: Color palettes calculator of Ant Design.
$ npm install ant-design-palettes --save
import { generate, presetPalettes } from 'ant-design-palettes';
// Generate color palettes by a given color
const colors = generate('#1890ff');
console.log(colors); // ['#E6F7FF', '#BAE7FF', '#91D5FF', ''#69C0FF', '#40A9FF', '#1890FF', '#096DD9', '#0050B3', '#003A8C', '#002766']
console.log(presetPalettes);
/*
{
red: [...],
volcano: [...],
orange: [...],
gold: [...],
yellow: [...],
lime: [...],
green: [...],
cyan: [...],
blue: [...],
geekblue: [...],
purple: [...],
magenta: [...],
}
*/
Copyright 2013 - present © cnpmjs.org | Home |