Skip to content

Determines whether text should be black or white depending on the background colour

Notifications You must be signed in to change notification settings

jaredblyth/luminosity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Determines whether text should be black or white depending on the background colour

Resources

Stars

Watchers

Forks

Packages

No packages published