How to change the style of st.beta_expander?

I want to change the font and color of st.beta_expander, is there have some methods?

1 Like

Hi @BeyondMyself,

You can amend fonts and colour via custom theming-> Creating Custom Themes for Streamlit Apps

It’s worth noting that the colour will only be applied on hover.

If you wanted to amend the colour on non-hover, AFAIA you’d have to weak the underlying CSS files. :slight_smile:

I hope this helps!


1 Like