Generate a color palette based on an input color and step value.
This package is available on npm.
npm install generate-palettenpm install -g generate-paletteThis package includes TypeScript type definitions for improved auto-completion and type safety.
To ensure compatibility, install the Node.js type definitions:
npm install @types/nodeconst generatePalette = require('generate-palette');Generates a color palette based on the given color and step value.
color(string) – The base color in HEX format.step(number, optional) – The intensity step for the palette, ranging from0to100.
An object containing the generated color palette.
const generatePalette = require('generate-palette');
const palette = generatePalette('#FFDD00', 10);
console.log(palette);generate-palette --color '#87CEEB' --step 10generate-palette --color '#FFDD00' --step 10 --jsonThis project is licensed under the MIT License.
