0.2.0 • Published 8 years ago

color-lib v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

color-lib

A color library which contains all colors in material design.

Install

$ npm install --save color-lib

Usage

const color = require('color-lib')

color.blue.hex // #2196f3

color.orange['500'] // #ff9800
color.deepOrange['a100'] // #ff9e80

// note that `black` and `white` only has a hex value
color.black.hex
// no color.black['500'] !!!

For all colors, see Google's color spec. All names are camelCased.

License

MIT © EGOIST