npm.io
1.2.1 • Published 2d ago

pinkinator

Licence
MIT
Version
1.2.1
Deps
1
Size
6 kB
Vulns
0
Weekly
0
Stars
2

pinkinator

Generate random pink colors.

Installation

npm install pinkinator

Usage

Default
import { pinkinator } from 'pinkinator'

pinkinator()
// => "#ffa3b7"
Intensity

Control the maximum value of the green and blue channels (0–255).

Lower values tend to produce deeper reds, while higher values allow lighter pink shades.

pinkinator({ intensity: 120 })

Example output:

#ff3c5a
Gradient
pinkinator({ gradient: true })

Example output:

linear-gradient(135deg, #ff6a8f, #ff31b2)

API

pinkinator(options?: PinkinatorOptions): string
Options
Option Type Default Description
intensity number - Sets the maximum random value for the green and blue channels (0–255).
gradient boolean false Returns a CSS linear-gradient(135deg, ...) string instead of a single color.

Support

A big thank you to faraadi for all your support and guidance from the very beginning of this npm package journey. I couldn't have done it without your help. Really appreciate the time and knowledge shared.

Keywords