What is the default Streamlit theme when there is no custom theme? System theme mode or light?
If the Streamlit default theme is ‘Use system setting’, how do we explicitly set the default theme as ‘light’? (instead of having to explicitly define the full light theme like this as a custom theme)
Basically, I do not want the custom theme to be the default theme.
2 Likes
I see this has been sitting here for a year or so… Would be great to know if there’s a way to do this. If not, perhaps there should be a way in set_page_config
?
Hi @Doggie52 ![:wave: :wave:](https://emoji.discourse-cdn.com/google/wave.png?v=12)
There’s a straightforward way to do this. Create a .streamlit/config.toml
file containing the following:
[theme]
base="light"
When you run the app and check Settings, you’ll see the app uses your “Custom Theme” which is identical to the light theme.
Best, ![:balloon: :balloon:](https://emoji.discourse-cdn.com/google/balloon.png?v=12)
Snehan
2 Likes