To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
for our customers we want to allow to change the colors of the valo theme.
My first idea is to override the VaadinServlet and deliver the war without style.css. In case of initial a call to the application i will generate the CSS on the fly with some custom colors from database. Is this a good solution or have someone a better one?
Yes i could generate it in deployment but the application will be deployed to many different customers. So i can’t decide the wishes of the client at compile time.
Approach is good. I'm using similar thing, although I'm using custom route to run explicit compilation. User is expected to put custom scss file on predefined path and application will do the rest.
I'm keeping VAADIN folder writeable (by either expecting war to be extracted by Tomcat or other app server or shipping it outside standalone jar), so application can overwrite style.css when is recompiled.