Important Notice - Forums is archived
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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Changing css for existing elements
Hi,
I would like to change the css for existing elements for example changing the color of the page or set image as background, change color of layout or element in layout like grid.
I know I need to add the style to the elemnt by addStyle or setStyle
What is the process to define new css ? In which file I should put it ?
How can I change the style dynamacily by getinng the style of the element and add new class ?
I am using Vadding 7.
Thanks
Hi,
Maybe this page in the Book of Vaadin is what you're looking for:
https://vaadin.com/docs/-/part/framework/themes/themes-creating.htm
-Olli