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.