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:


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:

1 Like