I want to change the font and color of st.beta_expander, is there have some methods?
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.
I hope this helps!