Replies: 1 comment
-
Parametrization is implemented using CSS Variables. You can find all defined colors here: mkdocs-material/src/assets/stylesheets/main/_colors.scss Lines 27 to 134 in 88cfdce By overriding those variables, you can easily define custom colors and use them across your customizations: :root {
--md-primary-fg-color: #EE0F0F;
--md-primary-fg-color--light: #ECB7B7;
--md-primary-fg-color--dark: #90030C;
} Use it with: .md-typeset em {
color: var(--md-primary-fg-color);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to add some color the bold (em) elements in order to make them easier to identify in the text but I was not able to identify how I can refer to the theme primary and accent colors in order to achieve that.
Can someone please give an example? For example, the code below works as expected but it does not make use of theme specific colors.
The colors defined in color-scheme are clearly not official HTML color names and I want to be able to use the ones from the scheme. How can I do this?
Beta Was this translation helpful? Give feedback.
All reactions