voidlabs / mosaico

Mosaico - Responsive Email Template Editor
https://mosaico.io
GNU General Public License v3.0
1.71k stars 504 forks source link

Can the default background color be changed? #442

Closed CaptainHypertext closed 6 years ago

CaptainHypertext commented 6 years ago

Is it possible to change the default background color? It's #3F3F3F and I'd like to make it #FFFFFF. I tried changing this in the template, but it broke with this error:

TODO error!!! Trying to set a new default value for frameTheme backgroundColor while it already exists (current: #3f3f3f, new: #FFFFFF)

bago commented 6 years ago

If you want to change a default color you have to make sure to change it everywhere (in every block sharing the same variable/theme), otherwise mosaico doesn't know what is the theme color.

So, the error is telling you that you have another backgroundColor in a "frameTheme"d block (header, footer, social) that is declared with a different color. Just change them to match and it will go ahead.

If you go to https://github.com/voidlabs/versafix-template you'll find that it is easier there to change https://github.com/voidlabs/versafix-template/blob/master/template-def/template-versafix-1.htmml#L740 and https://github.com/voidlabs/versafix-template/blob/master/template-def/template-versafix-1.htmml#L794

CaptainHypertext commented 6 years ago

Thanks for the help, I'll check that out.