izi-ui-palettes
v1.0.0
Published
Color palettes calculator of IZI User Interface
Downloads
8
Readme
IZI User Interface Palettes
:art: Color palettes calculator of IZI UI.
Usage
$ npm install izi-ui-palettes --save
import { generate, presetPalettes } from 'izi-ui-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: [...],
}
*/