-
May I ask how to specify different colors for different levels of headings in mkdocs? I'm asking this because I'd like to differentiate the headings from body text by not only font size but also by color. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
alexvoss
Apr 9, 2024
Replies: 1 comment
-
All you need to do is to add some custom CSS to your project. You will want the CSS selector to be specific enough to override any given styling. .md-content h1 { color: red; } should be enough. Do the same for H2, H3 etc. headings. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hopezh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All you need to do is to add some custom CSS to your project. You will want the CSS selector to be specific enough to override any given styling.
should be enough. Do the same for H2, H3 etc. headings.