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
- Host: GitHub
- URL: https://github.com/tossnet/blazor-detect-dark-theme
- Owner: tossnet
- License: mit
- Created: 2021-08-19T05:47:26.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-20T08:57:05.000Z (almost 5 years ago)
- Last Synced: 2025-03-06T03:47:37.499Z (over 1 year ago)
- Topics: blazor, browser, dark, light, mode, theme
- Language: HTML
- Homepage:
- Size: 209 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 😥