Change the Customizer color palette presets
Source: https://www.beaverjunction.com/a-user-friendly-customizer-for-the-beaver-builder-theme/
//Change the Customizer color palette presets
add_action('customize_controls_print_footer_scripts', function () {
?>
<script>
jQuery(document).ready(function($){
$('.wp-picker-container').iris({
mode: 'hsl',
controls: {
horiz: 'h', // square horizontal displays hue
vert: 's', // square vertical displays saturdation
strip: 'l' // slider displays lightness
},
\!h palettes: ['#91472c', '#6d775f', '#f9fffb', '#546a76'] //add the hex codes to the colors you want in the palette
})
});
</script>
<?php
});