Skip to content

Generate two random colors: one darker and one lighter.

License

Notifications You must be signed in to change notification settings

benrosen/random-color-pair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-color-pair

npm GitHub npm bundle size Maintenance npm GitHub issues GitHub pull requests

Generate two random colors: one darker and one lighter.

Quickstart

Install the package:

npm i random-color-pair

Import the function:

const getColorPair = require("random-color-pair");

// OR

import getColorPair from "random-color-pair";

Get the colors:

const [foreground, background] = getColorPair();