npm

luminosity

1.0.12 • Public • Published

A jQuery plugin that determines whether text should be black or white depending on the background colour.

To install via NPM run:

npm install luminosity

To install via Bower run:

bower install luminosity

To use, simply pass in a valid HEX colour string.

For example:

$().('#FF0000');

This HEX colour (red) will return '#fff'

For a working example, please visit my demo page.

Package Sidebar

Install

npm i luminosity

Weekly Downloads

3

Version

1.0.12

License

ISC

Last publish

Collaborators

  • jaredblyth