Search code examples
vaadinvaadin24

Vaadin 24 Not Using Specified Theme


Is there some reason why Vaadin 24 is not using the specified theme? Its using some default light theme. You can even generate a new Vaadin 24 starter app and choose the lumo dark theme. When you run the app it doesn't use it. This was a working app in 23, just updated to 24. And I tried a new starter app, same problem.

Also, the gradle buildFrontend task now fails with licensing complaints for components that aren't being used, even in dev mode. That is broken. This problem began in version 23.

If you just need to see some code:

@Theme( value = "myapp", variant = Lumo.DARK )
public class Application extends SpringBootServletInitializer implements AppShellConfigurator {

    // the usual stuff
}

Solution

  • It's currently a known bug that dark mode isn't rendered with the latest precompiled frontend bundle. Use the hot deploy flag if you wanna deactivate the feature for the time being.

    Your second issue sounds like you are using vaadin instead of vaadin-core as Dependency, which includes licensed features.