1.0.0 • Published 6 years ago
ultradynamism-palette v1.0.0
ultradynamism-palette
A color palette, inspired by the work of Felipe Pantone.
The colors were sampled manually by eye from images, so that the may not be true to reality.
Usage
const colors = require('ultradynamism-palette');
// Select a random color
var color = colors[Math.floor(Math.random() * colors.length)];
// Get the hex code e.g. '#FEE333'
console.log(color.hex);
// Get the name
console.log(color.name);
Each color has the following structure:
{
"name": "yellow",
"hex": "#FEE333"
}
Installation
$ npm install ultradynamism-palette --save
References
Colors sampled from https://www.instagram.com/felipepantone/
Some color names were taken from https://www.colorhexa.com
I used this tutorial to build the package: https://blog.teamtreehouse.com/build-npm-package
1.0.0
6 years ago