streamlit / streamlit

Streamlit — A faster way to build and share data apps.
https://streamlit.io
Apache License 2.0
33.24k stars 2.9k forks source link

Support :hex[text to be colored] for colored text in addition to having :color[text to be colored] #7808

Open kwaksaewon opened 7 months ago

kwaksaewon commented 7 months ago

Checklist

Summary

Currently, we can only use the :color[text to be colored] syntax to change the color of text. For example, using the syntax :hex[#FF5733][text to be colored] would enable users to specify the exact color they want.

Why?

It would give developers more flexibility and control over the text color if we can pass in hexadecimal value. So far only these colors are supported: blue, green, orange, red, violet, gray/grey, rainbow. I want to be able to change the text colors to meet accessibility requirements for our users.

How?

No response

Additional Context

No response

github-actions[bot] commented 7 months ago

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

reasonmethis commented 3 weeks ago

+1 This feature would allow using the primary/brand color in text, e.g. "Hi, I'm :hex[#myhex][DocDocGo]! Rest of intro text."

AnVuTrong commented 3 weeks ago

yes please

ChaimTPipl commented 3 weeks ago

yes please