How to find .streamlit/config.toml file?


cannot find .streamlit/config.toml file in my computer,I want to change the theme of app

Steps to reproduce

Code snippet:

add code here

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

Explain what you expect to happen when you run the code above.

Actual behavior:

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.

Debug info

  • Streamlit version: (get it with $ streamlit version)
  • Python version: (get it with $ python --version)
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Requirements file

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:

Additional information

If needed, add any other context about the problem here.

Hi @selenachenjingxin

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:

font="sans serif"

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!

Best regards,

1 Like

Hi @selenachenjingxin

.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:

$ cd
$ 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!

Kind Regards,
Viraj Sabhaya

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.