Translating Color Codes To Actual Colors – Just Show Me The Colors

Category: Color , Javascript | July 14, 2015
Author: musically-ut
Views Total: 414
Official Page: Go to website
Last Update: July 14, 2015
License: MIT

Preview:

Translating Color Codes To Actual Colors – Just Show Me The Colors

Description:

Just Show Me The Colors is a lightweight yet useful JavaScript library that provides a simple way to translate html color codes in your document to actual colors. Supports any color string in RGB, RGBA, Hex, HSL or HSLA format.

How to use it:

Include the just-show-me-the-colors.js script on the web page.

<script src="just-show-me-the-colors.js"></script>

Call the justShowMeTheColors() method on document ready.

justShowMeTheColors();

Enable the color translating on a specified container.

justShowMeTheColors(ELEMENT);

Disable the color translating on a specified element.

<div data-do-not-color>
  ...
</div>