Config.toml only works inpages folder

Hello there.

I’m running streamlit locally with the version 1.37.00

image

The issue is the theme settings on the config.toml file only works on the files that are inside the pages folder. On the main_app.py file it doesn’t work. What could be the reason?

Thank you.

That’s strange, and I’m not able to reproduce it locally. Can you try streamlit config show and see what it says?

You can also add

st.write(st.config.get_config_options())

to the top of each page and see if it shows the custom theme settings you are using.