Skip to content
Discussion options

You must be logged in to vote

Another question is whether there is any information on "how to define variables in the custom-css file so that they can be applied in mkdocs.yml, such as the variable names in the circles in the picture below.How can I write the contents in "[]" and how can I use them in mkdocs.yml later?

I'm still not sure what you're after, sorry. You can override the CSS with a custom-css file:
https://squidfunk.github.io/mkdocs-material/customization/#additional-css
you set the extra_css in the mkdocs.yml to load the file:
https://www.mkdocs.org/user-guide/configuration/#extra_css

The values set in the palette section in mkdocs.yml are set in the template file on the <body> HTML tag:

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@W1ndys
Comment options

@W1ndys
Comment options

@kamilkrzyskow
Comment options

Answer selected by W1ndys
@W1ndys
Comment options

@kamilkrzyskow
Comment options

Comment options

You must be logged in to vote
0 replies
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