@wppconnect/wa-js - v4.7.1
    Preparing search index...

    Function getColorPalette

    • Return the list color palette as hex codes. The index of each entry is the colorIndex accepted by create and setColor. Works for both personal and business accounts.

      Returns string[]

      const palette = WPP.lists.getColorPalette();
      console.log(palette); // ['#ff9485', '#64c4ff', ...]