abernier / mosaico-backend

Ready to go backend for Mosaico editor
https://mosaicobackend-prod.herokuapp.com
GNU General Public License v3.0
12 stars 13 forks source link

Custom Color Pallete #50

Open ivinkaf opened 5 years ago

ivinkaf commented 5 years ago

Hi,

is it please possible to change the default colors for the colorpicker?

colors

thanks I.

Hiswe commented 5 years ago

@ivinkaf you should check https://evoluteur.github.io/colorpicker/

and

https://github.com/goodenough/mosaico-backend/blob/master/src/js/bindings/colorpicker.js#L47

ivinkaf commented 5 years ago

Thanks, but still no idea :(, could I add something like this?

$('#customTheme').colorpicker({ color: '#f44336', customTheme: ['#f44336','#ff9800','#ffc107','#4caf50','#00bcd4','#3f51b5','#9c27b0', 'white', 'black','#f44336','#ff9800','#ffc107','#4caf50','#00bcd4','#3f51b5','#9c27b0', 'white', 'black'] });

Hiswe commented 5 years ago

I really don't know how to configure evol-colorpicker. You should try their github issues if you have some problems configuring it