How to implement Dark/Light theme?

Is there any examples how to implement Dark/Light theme switch in Blazor Webassembly app ?

You can see how theme switching works for https://blazor.radzen.com by having a look at the source code on GitHub:

Note that MaterialDark is a premium theme.