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

Override --md-typeset-color #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

imme-emosol
Copy link

Setting var --md-typeset-color to initial should make https://github.com/squidfunk/mkdocs-material/blob/6119df5d56fcdc90e25c5b1a47f7d2eba77f589e/src/assets/stylesheets/main/_typeset.scss#L43 use the color that was set by the user-agent/browser.

This does not seem like an ideal fix to me but it does fix a possible lack of contrast, as mentioned by me in: vimeo/psalm#9128 .

Setting var `--md-typeset-color` to `initial` should make https://github.com/squidfunk/mkdocs-material/blob/6119df5d56fcdc90e25c5b1a47f7d2eba77f589e/src/assets/stylesheets/main/_typeset.scss#L43 use the color that was set by the user-agent/browser.

This does not seem like an ideal fix to me but it does fix a possible lack of contrast, as mentioned by me in: vimeo/psalm#9128 .
@weirdan
Copy link
Member

weirdan commented Jan 18, 2023

An alternative would be to ignore user agent background settings and just explicitly set the background colour.

@imme-emosol
Copy link
Author

imme-emosol commented Jan 19, 2023

Yes, that would also work.

The demo of the material-theme seems to (by now) support dark/light/auto-mode ( https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/?h=toggle#color-palette-toggle ), so perhaps its a matter of updating & using that?

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.

None yet

2 participants