https://github.com/benrosen/random-color-pair
Generate two random colors: one darker and one lighter.
https://github.com/benrosen/random-color-pair
color-palette color-palette-generator color-scheme palette-generation random-generation
Last synced: over 1 year ago
JSON representation
Generate two random colors: one darker and one lighter.
- Host: GitHub
- URL: https://github.com/benrosen/random-color-pair
- Owner: benrosen
- License: cc0-1.0
- Created: 2020-12-31T06:05:09.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-01T20:06:45.000Z (over 5 years ago)
- Last Synced: 2025-01-21T19:49:17.266Z (over 1 year ago)
- Topics: color-palette, color-palette-generator, color-scheme, palette-generation, random-generation
- Language: JavaScript
- Homepage:
- Size: 261 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# random-color-pair
      
Generate two random colors: one darker and one lighter.
## Quickstart
Install the package:
```
npm i random-color-pair
```
Import the function:
```javascript
const getColorPair = require("random-color-pair");
// OR
import getColorPair from "random-color-pair";
```
Get the colors:
```javascript
const [foreground, background] = getColorPair();
```