Open maxdnet opened 2 months ago
There is even a dark/light mode switch on blazorBootstrap docs site https://docs.blazorbootstrap.com/
Before the feature is implemented, can we know how this was done? It looks similar to how bootstrap 5.3 handles darkmode but the attribute name is slightly different:
How this is done with Blazor? When I tried to implement it myself using webassembly component to write to localstorage and use immediately invoked function expression to set the proper theme on page render, it works when I refresh the page, but when I navigate through links, the attribute keeps disappearing, and turns on the default light mode
I agree that this is a sorely needed feature, plus the necessary documentation to get it easily up and running in our projects. Would make life a lot easier.
Discussed in https://github.com/vikramlearning/blazorbootstrap/discussions/466