How to styled st.expander in streamlit and python based on value

Hi @leb_dev!

  1. As far as I noticed for “css hacking” people are usually using st.markdown not st.write (this however, should not have an impact)
  2. This example should help in regards how to refer to st.expander label style
  3. Could you share some screens what you are seeing or what you are expecting to see?