- 🇫🇷France canardesign Montpellier
Thank you for the tip ! I had to set the palette this way in order to get it to work :
$element['#attached']['drupalSettings']['color_field']['color_field_widget_box']['settings'][$element['#uid']]['palette'] = $colors;