package
Change the lightness of a css color
npm install lightnessGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
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.
var lightness = require('lightness')
lightness('#000000', 100) // #ffffff
lightness('#ffffff', -100) // #000000
lightness('blue', 10) // #3333FF
Estimated unpacked size across 5 packages.
63.6 kB
Includes dependencies.
3 direct · 2 outdated