Hi! I managed to change the theme of my app while building it in my local host. When I deploy this on Heroku, should I include the config.toml I used locally so that the deployed app will have the theme settings I want?
Yes put it in
.streamlit/config.toml and make sure it is deployed.
Thank you for answering, but I’m not sure I get what you mean.
I got it, thank you. I put this in my setup.sh:
mkdir -p ~/.streamlit/
primaryColor = ‘#84a3a7’
backgroundColor = ‘#EFEDE8’
secondaryBackgroundColor = ‘#fafafa’
font = ‘sans serif’
headless = true
port = $PORT
enableCORS = false
" > ~/.streamlit/config.toml
I haven’t used Heroku, but this seems to be the right way to go, according to this article:
Hi @Phoemela_Ballaran -
Here is an example of having a file in your repo, so that you don’t have to dynamically create anything:
Create a folder labelled
.streamlit in your code repo, then place the
config.toml file in it. Commit it to GitHub and it will exist in your repo when you deploy it.