Extremely basic color tinting component
Extremely basic color tinting component. Based on an answer to the SO question: Programmatically darken a Hex colour
$ component install matthewmueller/color
var color = require('color'),
c = 'red';
color.darken(c, .5) // '#ff3232'
color.lighten(c, .5) // '#cd3232'
Darkens the color
by the given val
.
Lightens the color
by the given val
.
MIT