@tremendous/help
    Preparing search index...

    Function lightenColor

    • Lightens a color by a given percentage.

      Parameters

      • color: string

        The color in hex, rgb, or any CSS color value.

      • amount: number

        The percentage (0-1) to lighten the color.

      Returns string

      • The lightened color in hex format.
      const lightenedColor = lightenColor("#000000", 0.1);
      console.log(lightenedColor); // "#1a1a1a"