Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Auto-configure dark mode feature documented #24

Merged
merged 2 commits into from
Dec 2, 2020
Merged

docs: Auto-configure dark mode feature documented #24

merged 2 commits into from
Dec 2, 2020

Conversation

kratsg
Copy link
Contributor

@kratsg kratsg commented Dec 1, 2020

This resolves #23.

Add in documentation about how to configure this plugin for auto-configuring dark mode based on the CSS media feature prefers-color-scheme.

Copy link
Owner

@fralau fralau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Perhaps you want to expand a little on scheme:preference in material (explain what it does, and provide a link to exact point where this is documented)?

Since I am not totally familiar, I guess you refer to this: squidfunk/mkdocs-material#1266 (unless it's documented somewhere on Squidfunk's excellent doc for the material theme)?

@kratsg
Copy link
Contributor Author

kratsg commented Dec 1, 2020

Thanks! Perhaps you want to expand a little on scheme:preference in material (explain what it does, and provide a link to exact point where this is documented)?

Good point, the documentation is here: https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#color-scheme

@fralau fralau merged commit cffd320 into fralau:master Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom initialization based on media preferences
2 participants