Python Forum

Full Version: Help on the User Interface
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!
I am new to Python. I have some doubts about the Streamlit UI.
As in the screenshot, the value is not visible. How can I change the color of the calculated output?
You have to look Streamlit docs.
Guess few here know this library,and you not posted any code.
It's of course build with HTML/CSS in bottom as work in browsers,but calling it i guess the use mostly own wrappers to make the experience easier.
So they will have own method to change color.

You have green color on text and output an other color may work better.
If i take i quick look.
# Show the input back to the user with colored text
st.write(f'<span style="color:blue">Hello, {user_input}! Welcome to Streamlit</span>', unsafe_allow_html=True)
So can use standard HTML/CSS if use unsafe allow.