Theming with config.toml undos CSS styling for buttons

Hi everyone,

It seems theming with config.toml undos some of the CSS styling - in particular the CSS styling for buttons. Do you know how to prevent this?

Step-by-step explanation with code:

  1. I have the following CSS styling for buttons in my app:
    st.markdown(f"""<style> .css-160hik1{{
        width:10em;
        height:4em;
    }}</style>""", unsafe_allow_html=True)
  1. Then I add a config.toml file in .streamlit folder with a custom theme.

  2. Then the CSS styling for buttons in step 1 is completely ignored.

Thanks.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.