@tremendous/help
    Preparing search index...

    Function getModifiedBackground

    • Adjusts the luminosity of a given color, making it lighter or darker. If the color's luminosity is less than 0.02, the color will be lightened. Otherwise, the color will be darkened.

      Parameters

      • color: string

        The CSS color string to be adjusted.

      Returns ColorInstance

      A new Color object representing the adjusted color.

      const modifiedColor = getModifiedBackground("#000000");
      console.log(modifiedColor.hex()); // "#1a1a1a"