Styling st.text using separate CSS

I understand that with st.markdown, it’s possible to style text, but is it possible to add the classes or id to the st.text that I can use the separate CSS to customize the styles? It’s capable to use markdown to style, though.

The reason is that I want to separate the concerns as much as possible. I’ve got 500 lines of code mixed with Plotly charts, HTML components, data frames stuff. Thanks. Plus, I am using variables to reflect my calculations.