Can i set the dark theme in Streamlit?
I tried to apply the dark theme in my (private) space,usingStreamlit configuration.I created theconfig.tomlfile with the following content:[theme]
base="dark"But the space doesn’t update the theme.Is it possible to change the theme? Do you have any suggestions?
2022-05-12T01:11:26Z
Looks like the config.toml file doesn’t get picked up. One quick way to solve your issue is to change your theme to dark in your user settings on the sitehere.
2022-05-12T07:02:27Z
Excellent advicefor the moment.It’s probably not the ultimate and cleanest solution, since I can’t have different themes on different spaces.Thank you!
2022-05-12T17:40:25Z
Agreed - I’ll make sure the team knows about this issue to see if we can add config.toml support or something similar.
2022-05-20T20:26:45Z
Unfortunately setting my theme to dark solves the problem only for me.If another user enters my space with a light theme, he sees it with his light theme.
2022-05-21T19:54:49Z
The reason behind that decision was to make the UI of the space match the UI of the Hub. If the user is in dark theme, forcing a light theme can annoy that user. Likewise, if user is using light theme, forcing a dark theme can cause same effect.I think we do allow this with Gradio though and it might be an option we should explore. cc@cbensimon@julien-c@victor
2022-08-31T07:07:44Z
Contrary to what their documentation states, the.streamlit/config.tomlfile in the project is not getting picked. But~/.streamlit/config.tomlis (the one in your home directory). You can set the base theme there.Another option would be to pass--theme.base darkin the command line when you run your app.
2022-12-05T17:40:29Z
But~/.streamlit/config.tomlis (the one in your home directory). You can set the base theme there.I have the same issue, so that could be the solutionHow do you do it? where do you place config.toml? I just don’t get it.If I’m in my space, in ‘files and versions’ I can see my files, so where to upload?