1
0
mirror of https://github.com/ChrisTitusTech/winutil.git synced 2025-01-12 07:50:36 -06:00

[Wiki] Automatically enabling Dark/Light mode set by user's browser Preference ()

This allows the website to automatically switch to the theme set by the browser or the whole system.
This commit is contained in:
Angaddeep Singh 2024-07-15 22:29:25 +05:30 committed by GitHub
parent 2e26ae7ef1
commit 30bea93dde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,13 +26,15 @@ theme:
logo: assets/favicon.png
favicon: assets/favicon.png
palette:
- scheme: default
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/toggle-switch-off-outline
name: Switch to dark mode
primary: black
accent: purple
- scheme: slate
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/toggle-switch
name: Switch to light mode