color-themer
v1.0.2
Published
A Javascript library that generates RGB colors based on a theme.
Downloads
1
Readme
color-themer
A Javascript library that generates RGB colors based on a theme.
Overview
Currently, a pain point for Javascript frontend development is the need to find cohesive colors and their RGB codes. Personally, I require a lot of time to test different colors and alter the RGB values so that the components on a page all look unified.
This library will automatically generate RGB color codes based on a user-inputted image. It will select the most common colors in the image to be part of the theme.
Installation
npm install color-themer
Usage
To run the package, call the method getColorScheme with the input image and the number of colors wanted.
Example
To find a color theme containing the five most popular colors in the below image, one can run the commands in the Jupyter notebook screenshotted below. Make sure that the correct dependencies are all installed: