we have a Vaadin project with a customized theme. Now we have the additional requirement, that this theme should be customized for different customers. The following settings have to be changed for each customer:
color
logo at loginpage
name of the tool
What is the best practice for changing these settings without too much effort? Is there a simple way so that I don’t have to compile for each customer the code, if we release a new version?
If you’re using Vaadin 7, this is very simple; create variables in your root file (mytheme.scss), and use the variables instead of actual values in the theme. Then you can create separate themes that extend your ‘base’ theme, and set the variables to whatever you want. If you are using a single UI class, call setTheme() to switch based on the customer