Hi all,

I am currently looking into updating the Kendo UI version in Wicketstuff.

For some Kendo styles (not for all), theres is a "normal" and a "dark" CSS 
file, e.g.

  default-main.css
  default-main-dark.css

Is there some best practice how to handle light/dark mode switching in Wicket 
apps
when it requires switching to an entirely different CSS stylesheet?

Kendo has the KendoUILibrarySettings, but those are global for the application, 
so
it doesn't make sense to have a light/dark switch there.

I had considered putting each of these CSS files into a separate Maven module, 
but
as the Wicket Kendo integration is written at the moment, only one style module 
can
be on the  classpath at a time (because they have SPI Initializers that 
register the
respective stylesheet), so it seems reasonable to bundle the "normal" and "dark"
variations into the same module.

Cheers,

-- Richard

Relevant PR: https://github.com/wicketstuff/core/pull/1300

Reply via email to