Skip to content

Tooltips and colour palette toggle #8219

Answered by kamilkrzyskow
paulmmoloney asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @paulmmoloney,
to change a setting for dark mode you'd use the approach mentioned here:
https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#custom-color-schemes

[data-md-color-scheme="slate"] [role=tooltip] > .md-tooltip2__inner {
  color: #fff;
}

Or maybe use color: inherit to use the same color as the parent object 🤔

The rest of the settings will be inherited from the previous CSS rule for the default palette.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paulmmoloney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants