An open API service indexing awesome lists of open source software.

https://github.com/tossnet/blazor-detect-dark-theme

How to detect the light or dark browser theme to adapt our style in our blazor application
https://github.com/tossnet/blazor-detect-dark-theme

blazor browser dark light mode theme

Last synced: 27 days ago
JSON representation

How to detect the light or dark browser theme to adapt our style in our blazor application

Awesome Lists containing this project

README

          

# blazor-Detect dark theme
How to detect the light or dark browser theme to adapt our style in our blazor application

https://user-images.githubusercontent.com/3845786/130021227-783dcf0d-82d3-4061-b4a1-4e4adefe3d03.mp4

it is enough to detect 'prefers-color-scheme: dark' . However it seems that it only works on Edge 😥