HTML color names for labels, etc.
See original GitHub issueIn my sitemap I’m using different colors for the labels. The colors are somehow set by the application as it should be near by the standards. In my case I need a yellow, which is hardly readable. So I replace yellow by gold which this statement:
labelcolor=["gold"]
In the BasicUI in the webbrowser this works fine as the HTML color names are supported.
I would like to have the HTML color names also supported within the Android app.
Thanks!
I’m using app version 2.9.0 on Android 9.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
HTML Color Names - W3Schools
AliceBlue · #F0F8FF ; AntiqueWhite · #FAEBD7 ; Aqua · #00FFFF ; Aquamarine · #7FFFD4 ; Azure · #F0FFFF.
Read more >HTML color names for labels, etc. · Issue #486 - GitHub
In my sitemap I'm using different colors for the labels. The colors are somehow set by the application as it should be near...
Read more >What do you name color variables? | CSS-Tricks
What do you name color variables? · $mainBrandColor: #F060D6; $secondaryFocus: #4C9FEB; $fadedHighlight: #F1F3F4; · $orange: #F060D6; $red: # ...
Read more >Color Names - HTML Color Codes
Plum, #DDA0DD ; Violet, #EE82EE ; Orchid, #DA70D6 ; Fuchsia, #FF00FF ...
Read more ><color> - CSS: Cascading Style Sheets - MDN Web Docs
Examples · Fully saturated colors. Notation, Description, Live. hsl(0, 100%, 50%), red. hsl(30, 100%, 50%), orange · Lighter and darker greens ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think we can find a good compromise by extending the current supported color list with “common” color names from the html color names list: https://htmlcolor-codes.com/color-names IMO adding “gold” and “pink” is enough.
@openhab/ios-maintainers @openhab/webui-maintainers @openhab/core-maintainers
The (linked) docs already cover this sufficiently, I think: the table in the docs is what is guaranteed to work, besides that all bets are off. The problem I have with supporting all (~150!) HTML color names is that in order to support them properly, we’d need to test all of them with light & dark modes and adjust them accordingly, which is a time-consuming effort for little gain, as the HTML names tend to get a bit obscure once one gets into the details … or do you have an immediate understanding of the colors behind
gainsboro,mistyroseorpapayawhip?