How to change the theme on a webpage made by streamlit and python?

Summary

I try to follow the tutorial on YouTube, which is to add a new folder called .streamlit and then create a new file called config.toml.
Link: Build a Website in only 12 minutes using Python & Streamlit - YouTube

Steps to reproduce

Code snippet:
[theme]

primaryColor = โ€˜#E694FFโ€™

backgroundColor = โ€˜#00172Bโ€™

secondaryBackgroundColor = โ€˜#0083B8โ€™

textColor = โ€˜#FFFFFFโ€™

font = โ€œsans serifโ€

Expected behavior:

I expect the theme will be changed automatically once the file is created.

Actual behavior:

However, the theme still remains the same.

Debug info

  • OS version:window10


Hi @Jason_Ade,

Have you restarted your app?

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