random-color-pair

1.0.5 • Public • Published

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();

Package Sidebar

Install

npm i random-color-pair

Weekly Downloads

2

Version

1.0.5

License

CC0

Unpacked Size

10.6 kB

Total Files

6

Last publish

Collaborators

  • benrosen