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: ThemeService

Note that MaterialDark is a premium theme.

1 Like

Thanks for answer,

Should change something in repository /root/index.html ?

because in my WebAssembly application nothing changes.

404 ThemeService.cs Page Not Found.

Radzen.Blazor now supports dark/light themes by default. Check here: