lumo variant

Why does variant = “Lumo.DARK” on application.java not work?

There was a bug in 24.0.0–24.0.1: https://github.com/vaadin/flow/issues/16256

Bumping your Vaadin version to 24.0.2 should do it.