import { adjustHue, hexToHSL, hslToHex } from './Utils.Common';
// Function to generate an analogous color palette
export function generateAnalogousPalette(baseHex, adjustment) {
    const baseHSL = hexToHSL(baseHex);
    const adjustedHSL = adjustHue(baseHSL, adjustment);
    const palette = {};
    // Define the steps
    const steps = [
        0,
        50,
        100,
        200,
        300,
        400,
        500,
        600,
        700,
        800,
        900
    ];
    steps.forEach((step) => {
        // eslint-disable-next-line prefer-const
        let [h, s, l] = adjustedHSL;
        if (step === 0) {
            l = 1; // White
        }
        else {
            // Gradually decrease lightness for other steps
            l = 1 - (step / 1000);
        }
        palette[`${step}`] = hslToHex(h, s, Math.max(0, Math.min(1, l)));
    });
    return palette;
}
//# sourceMappingURL=Utils.Analogous.js.map