blazorbootstrap icon indicating copy to clipboard operation
blazorbootstrap copied to clipboard

Darkmode

Open maxdnet opened this issue 2 months ago • 2 comments

Discussed in https://github.com/vikramlearning/blazorbootstrap/discussions/466

Originally posted by ecospecifier December 12, 2023 With bootstrap 5.3 will we see Blazor Bootstrap embrace darkmode firstclass? I notce a lot of components like eg. toasts don't respect the darkmode class on the body of the parent.

maxdnet avatar Apr 13 '24 23:04 maxdnet

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

sikora507 avatar May 06 '24 10:05 sikora507

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.

Lucasharskamp avatar May 07 '24 11:05 Lucasharskamp