How to color icons when used in templates? #6064
-
|
Hello, I created an override for some sort of a landing page where I also want use some icons. Following the docs I do it like this: First I don't understand why I am supposed to use the twemoji class. Is this doing anything that I am overlooking? Secondly and my actual question: I can not get the icon to use a different color. I tried the following: But the icon remains black. How to change the color of icons when used in html templates? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
You can see what styling is applied via the twemoji class in the corresponding SCSS stylesheet. Your CSS should be scoped within |
Beta Was this translation helpful? Give feedback.
-
|
Ok I got it. So not an issue with mkdocs. |
Beta Was this translation helpful? Give feedback.

Ok I got it.
What worked for me was setting fill instead of color.
So not an issue with mkdocs.