cannot find .streamlit/config.toml file in my computer,I want to change the theme of app
Steps to reproduce
add code here
If applicable, please provide the steps we should take to reproduce the error or specified behavior.
Explain what you expect to happen when you run the code above.
Explain the undesired behavior or error you see when you run the code above.
If you’re seeing an error message, share the full contents of the error message here.
- Streamlit version: (get it with
$ streamlit version)
- Python version: (get it with
$ python --version)
- Using Conda? PipEnv? PyEnv? Pex?
- OS version:
- Browser version:
Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.
- Link to your GitHub repo:
- Link to your deployed app:
If needed, add any other context about the problem here.
Thanks for your question, you can create a new folder called
.streamlit and inside this folder create a file called
config.toml. Next, inside the
config.toml file please paste the following contents and save the file:
Alternatively, you can clone this GitHub template of a Streamlit app (GitHub - streamlit/app-starter-kit: Streamlit App Starter Kit helps kick start your Streamlit app creation.) to build your own app.
Hope this helps!
.streamlit/config.toml file resides in the home dir of your system, and not in the current folder location.
if you are a Mac user, you can type the following In your terminal:
$ find .streamlit
This command should show you the dir name as “.streamlit” if it can find in the home dir
To add your custom theme to the config file, assuming the “.streamlit” dir resides in the home dir, you can do the following :
$ cd .streamlit
$ nano config.toml
And add your custom theme code.
Hope this helps!