Dear all,
I am developing streamlit application in corporate.
I have my interpreter saved on shared drive, together with app.py
How to best change the font to Calibri in whole application?
- ChatGPT suggested include CSS code in application, but this doesn’t work:
custom_css = """
<style>
/* Replace 'Agency FB' with the desired font family */
body {
font-family: 'Calibri', sans-serif;
}
</style>
"""
st.markdown(custom_css, unsafe_allow_html=True)
That would be the easiest way, do you have any tips how to fix it?
- I saw in the formuls old post that you can somehow add your custom Theme in .streamlit config.toml , but I cannot find it anywhere on my computer… (it’s not in Interpreter folder, it’s not in my application folder). I suspect it might be somewhere in my local files (user), but given this application is started from shared drive by multiple people, how I can create one config.toml and point application to use always saved one i.e. on shared drive, instead of having multiple files for multiple people saved locally?
Any other ideas?
Apologies for possibly stupid questions, begginier in coding here and complete noob with CSS.
Thank you
Pawel