Skip to content

finnp/lightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightness

NPM

Lighten or darken a css color (similar to less.css lighten() and darken())

The second parameter is the absolute percentage value to add to the color.

usage

var lightness = require('lightness')

lightness('#000000', 100) // #ffffff
lightness('#ffffff', -100) // #000000
lightness('blue', 10) // #3333FF

About

Change the lightness of a css color

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published