Palette
Generate a palette of related colors from a base color.
palette(input: string, formatOrOptions?: ColorType | PaletteOptions): string[]| Parameter | Description | Type | Default |
|---|---|---|---|
| format | Output format | ColorType | |
| lightness | Lightness adjustment (0-100) | number | |
| monochromatic | Generate a monochromatic palette | boolean | false |
| saturation | Saturation adjustment (0-100) | number | |
| size | Number of colors to generate | number | 6 |
Basic Usage
Section titled “Basic Usage”import { palette } from 'colorizr';
palette('#ff0044');// ['#ff0044', '#ffbb00', '#44ff00', '#00ffbb', '#0044ff', '#bb00ff']