Table of Contents

**@arolariu/components**


@arolariu/components / adjustLightness

Variable: adjustLightness()

const adjustLightness: (hexColor, lightnessAdjustment) => string = adjustHexColorLightness

Defined in: lib/color-conversion-utilities.ts:163

Adjusts the lightness of a hexadecimal color by a specified amount.

Parameters

hexColor

string

Hex color code

lightnessAdjustment

number

Amount to adjust lightness (-100 to 100)

Returns

string

Adjusted hex color code

Deprecated

Use adjustHexColorLightness instead