Custom Color Palette

  1. Color picker palette overview
  2. Choosing the default colors in the color picker
  3. Disabling the color history
  4. Disabling the template's base colors

Color picker palette overview

The BEE Plugin color palette gathers a list of the default colors to display from multiple sources in order to create a convenient palette of color selections when the editor loads.
Specifically, colors are gathered as follows:
  • 3 colors from the body (message bg, content bd, link color)
  • custom colors (as many as the customers want)
  • 7 most recent colors used

Use the options outlined below to customize the default color palette.

Choosing the default colors in the color picker

BEE Plugin allows you to configure a custom color palette (per user), by modifying the client-side configuration.¬†This, for instance, allows you to provide users with easy access to their company’s brand colors.

If no color profile is provided, then BEE Plugin will continue to suggest a color palette based on the colors used in the template that is being loaded.




var beeConfig = {
        uid: config.uid,
        defaultColors ['#ffffff', '#000000', '#95d24f', '#ff00dd'],
        ...        


Disabling the color history

BEE Plugin will remember recently selected colors and add them to your color palette.¬† If the browser’s privacy settings allow it, the color picker history will be saved in the browser’s local storage.

If you want the color palette to be static such that recently selected colors are not included, then you can disable the history in your configuration.




var beeConfig = {
        uid: config.uid,
        disableColorHistory: true,
        ...        


Disabling the template's base colors

BEE Plugin by default adds colors found in the template’s body section to the color palette.

If you want the color palette to only show the colors you pass in via the bee config document, then you must disable the base colors.




var beeConfig = {
        uid: config.uid,
        disableBaseColors: true,
        ...