@powel/colors
v1.3.1
Published
Powel web color palette.
Readme
Powel colors
Powel web color palette.
Installation
npm install --save @powel/colorsUsing
var colors = require("@powel/colors");
colors();
//=> [{name: 'black', hex: '#000'}, {name: 'white', hex: '#fff', ...}]
colors({ name: "black" });
//=> {name: 'black', hex: '#000'}Options
colors({
name: "" // must be a string value. Will return color object for that name.
});API
.getColorNames()
Returns an array of color names.
.getColorByName(name)
Returns color object with name and hex properties or null.
