I want to change my theme using the command st.markdown( “”"
""", unsafe_allow_html=True,). My current custom theme is [theme] base="dark" primaryColor="#002b36" backgroundColor="#002b36" secondaryBackgroundColor="#586e75" font="sans serif" Can someone please help me to sort out this problem?Please anyone suggest me a solution. Or tell me the solution is possible or not.
Hi @udo
Those edits are to be put inside a .streamlit/config.toml
file (Theming - Streamlit Docs).
Edits done in st.markdown
should be CSS Selectors + Properties only like
<style>
body {
background-color: lightgoldenrodyellow;
}
div[role="listbox"] ul {
background-color: red;
}
</style>
There are some tutorials wandering in this forum like
- Can I change the color of the selectbox widget? - Using Streamlit - Streamlit
- Creating a nicely formatted search field? - Using Streamlit - Streamlit
- CSS hacks - #3 by andfanilo
to understand all the HTML blocks and CSS properties you can edit within the Streamlit app.
Have a nice day,
Fanilo
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.