I am out of my depth here. please let me ask you and @thomasloven why this could be happening:
using:
- type: markdown
content: >
<h1><font color="rgb(128, 0, 128)">This text should be purple</font></h1>
this is what is in the frontend card:
and
- type: markdown
content: >
<h1><font color="rgb(128,0,128)">This text should be purple</font></h1>
shows as:
I have tried all you said here and in the other linked thread above, rgb() colors simply don’t show at all.
Why this is green I cant explain either, maybe that is a default color somewhere in the system? But even in the ‘default’ HA setting, this is showing green…could this be a bug in the ha markdown card?
are you clearing cache and reloading your page? F12 your elements and see where it’s inheriting the colors too. It’s been far too long at this point. You need to dive into the deepend and take time to understand all these languages you play with so often. I think this is the 4th or 5th time i’ve said this in the last 2 years?
yes, of course I do. (clear cache , reload, etc etc.) I always test in 3 different browsers adding to that.
agree with you here. Dont have the answer yet though.
I don’t think this has anything to do with me playing with the languages, I think this is a bug…
why else would the simplest of cards I posted above not show correctly. A native card in Lovelace without any customization, mixing of languages or other possible conflicting techniques.
havent found any documentation on using colors in Markdown for that matter, so maybe it simply isn’t possible in the markdown implementation HA is using.
tried to follow this, but no results unfortunately.
Besides the fact that <font> is deprecated and shouldn’t be used (though unless you’re using e.g. card-mod you are short on alternatives for the markdown card), it never officially supported rgb().
You can try <font color="#800080"> instead.
ok thanks for confirming… I use hex and color names successfully already, and now was simply trying to follow up on your example from the other thread, which, as I have been experiencing, is indeed not supported…
I do use the card-mod card though, so if you would know how to do that, would still be very interested to learn how to do so on the markdown card even the simple text above.
what I can’t grasp is why the inspector shows the correct rgb color, and in the font card above shows #008012.
when you say font is deprecated, is that so in the Markdown HA card, or in other libraries we depend on? was it a breaking change in HA somehow?
I’d love to know what is supported, but don’t know where to find that. Would appreciate pointers to read up on that.