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
My sites --md-primary-fg-color
get overridden
#4620
Comments
Thanks for reporting. Does the following work? [data-md-color-scheme="default"] {
--md-primary-fg-color: rgb(219, 149, 80);
--md-accent-fg-color: rgb(144, 180, 254);
} If it works, we need to update the documentation. We needed to change the way color variables are defined (see the changelog of 8.5.9 and the linked issues). It is likely related to the change, so the CSS might need to be adapted. I'm sorry for the inconvenience. |
Thanks for looking at this so quickly! 🙏 Yes, the suggested change works. 🎉 |
I noticed this the other day and found that explicitly setting
|
I've revisited this regression and think I've found a better solution in 078a411 and c62ff2c. Now, primary and accent colors are, by default, set to the This means that the workaround I mentioned in #4620 (comment) should no longer be necessary. Please note that it is extremly hard to foresee all possible uses and ways of overriding CSS that authors use, which is why the regression was introduced in the first place. However, from my best knowledge, we can consider this issue (#4620) and #4594 fixed. |
Released as part of 8.5.10. |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
I have
extra_css
that defines the primary colors, like so:This has always worked. But with version 8.5.9 some other colors are used instead. I see this in the inspector:
Expected behaviour
I expect my extra_css colors to be used.
Actual behaviour
Some other colors are used.
Steps to reproduce
Use this extra_css:
With 8.5.8 the colors are used, with 8.5.9 they are not
Package versions
3.9.7
1.4.1
8.5.9
Configuration
I haven't minimized this.
System information
The text was updated successfully, but these errors were encountered: