Hi @Phoemela_Ballaran -
Here is an example of having a file in your repo, so that you don’t have to dynamically create anything:

  
      
      github.com
  
  
    

streamlit/theming-showcase-blue 46


  Showcase app for Theming (Custom Theme, Blue). Contribute to streamlit/theming-showcase-blue development by creating an account on GitHub.

  
  
    
    
  
  


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.

  
      github.com
  
  
    streamlit/theming-showcase-blue/blob/main/.streamlit/config.toml 19
[theme]
primaryColor = "#E694FF"
backgroundColor = "#00172B"
secondaryBackgroundColor = "#0083B8"
textColor = "#DCDCDC"
font = "sans-serif"


  
  
    
    
  
  


Best,
Randy