Light mode by default

Hello ! How can I set my dashboard to the Light Mode by default ? Currently, it looks like the “Use system setting” is setting by default. May you advise please ? :slight_smile:
Thanks in advance !

Hi @miranarkt, welcome to the Streamlit community!! :wave: :partying_face:

I would suggest reading our documentation on Theming. To use the light theme by default, create a .streamlit/config.toml file in your app folder with the following lines:

[theme]
base="light"

Once you create a .streamlit/ folder containing the above config.toml file, restart your app. Your app should now be using your custom (light) theme. To verify, click on the hamburger menu on the top-right corner of your app and click on Settings. Under the Theme section, you should see “Custom Theme” as the selected option:

Does this help?

Happy Streamlit-ing! :balloon:
Snehan

2 Likes

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