Minor reformatting of code
Move variable definitions outside of switch
Be more clear on the lightness we are calculating
Remove opposite class when adding a new one
Moving functions to namespaced style
Unnecessary comma separation replaced
More obvious variable name
Refactor of the rgb conversion
Add helper function to remove duplicate code
Auto-remove hash from hex code
Add missing semi-colons
Remove DOM reaccess for every time element is needed
Remove need to pass 'type' as it can be automatically detected
More consistency in type of quotes used
Enforce colourType variable to be within enum
Remove unnecessary whitespace
Removing unused styles
Removing unneeded markup
Add bower.json
Adding image demo