Custom Theme

Hi all,

after seeking for a solution in all available forums without result … (beta8)

How can I integrate a custom theme?

I learned so far that for Vaadin 7 there is a new annotation for my UI class (don’t need a runtime switch):

@Theme("mytheme")
public class MyUIextends UI {

My theme is located in my WAR file under VAADIN/themes/mytheme. I tried “styles.css” and “styles.scss”, neither work.

any suggestions?

Ulf

Hi,

That’s how it should work. I don’t know what could be wrong from your description. What are the symptoms, how does it not work? You should first check with Firebug (or equivalent) if the CSS file is loaded without problems, in the Net tab of Firebug. Re-check the WAR file contents and server logs.