@Theme annotation is ignored

65 Views Asked by At

I use the Theme annotation in a class extending AppShellConfigurator ar required. @Theme(value="Material") is my annotation. However I can write anything in the value, also meaningless values but is ignored : I allways see Lumo theme. I also tried to set the variant DARK of the lumo theme but still is ignored. My version is 23.3.21. What's wrong ? Tks

P.S. : also @JsModule("@vaadin/vaadin-lumo-styles/presets/compact.js") seems to be ignored

1

There are 1 best solutions below

8
On

Based on documentation here:

@Theme(themeClass = Material.class, variant = Material.DARK)
public class AppShell implements AppShellConfigurator {
}