Change page content color depending on if dark or light mode is selected #7933
Replies: 1 comment
-
The error turned out to be the Cache configuration on the CDN I am using to serve the content. It works with the regular:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there.
I have a github icon that I have included in a page, specifying it as follows:
:fontawesome-brands-github:{ .github }
.I'd like to be able to change the color of the icon depending on if the site is in dark mode or not. After a bit of digging. I was able to get it to work with the following specified in my custom css file. This, however did not work after runing a build on the site.
Any suggestions?
Chatgpt said to try:
This did not work either.
My theme is defined
mkdocs.yml
as follows:Beta Was this translation helpful? Give feedback.
All reactions