1.0.2 • Published 1 year ago

color-themer v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

color-themer

A Javascript library that generates RGB colors based on a theme.

npm

npm.io

npm.io

Build Status codecov Github Page

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: