-
Like the picture above shows, when I change the palette, the media didn't change. I want to solve it because it cause the giscus didn't change theme when I change the palette, and I have removed customizations in Could anyone give me a possible reason or tell me if it's a bug? I'm not really good at English, thanks for reading. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
theme:
name: material
language: 'zh'
# custom_dir: overrides
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: white
accent: red
toggle:
icon: material/toggle-switch
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
accent: white
toggle:
icon: material/toggle-switch-off-outline
name: Switch to light mode |
Beta Was this translation helpful? Give feedback.
-
I'm sure that I'm running the latest version of Material for MkDocs, and you can have a test on My Blog. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
(prefers-color-scheme: light/dark)
queries your system preference, and then automatically changes to the respective color scheme. If you toggle the color palette selector, it will not change your system preferences, thus the result stays the same.