Wondering what’s next for npm?Check out our public roadmap! »

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

Install

npm i random-color-pair

DownloadsWeekly Downloads

17

Version

1.0.5

License

CC0

Unpacked Size

10.6 kB

Total Files

6

Last publish

Collaborators

  • avatar