Posts

Now There Are Theming Capabilities for Streamlit Apps

avatar of @geekgirl
25
@geekgirl
·
·
0 views
·
2 min read

Today Streamlit announced a new feature - theming for Streamlit Apps. Previously by default there was only one out of the box theme for all Streamlit apps. If I wanted to changes styles of an app, we would have to inspect the elements in the Chrome browser and apply needed CSS styles.

What Streamlit tries to provide its users is an ability to quickly build Apps without much need or knowledge of html, css, or javascript. We can build Apps only using Python. Not only Streamlit gives Pythonistas an ability build Apps quick and easy but also to share them using Streamlit Share. Streamlit Apps also easy to deploy on Heroku or personal servers.

Some of the use cases for Streamlit is for data analysis, machine learning, data visualization projects. What I personally like to use it for is for my stocks, crypto, and market related projects.

Streamlit always tried to provide tools that can be used as is out of the box without much need of extra configuration. This would save time and App creators would mainly focus on the functionality of their python scripts.

It is great to hear that Streamlit continues to think Streamlit apps are beautiful out of the box. And this new feature of theming capabilities delivers on that promise.

You can read the full announcement blog post here:

https://blog.streamlit.io/introducing-theming/

Those of us who have already been using Streamlit, will need to upgrade to the latest version of Streamlit, running the following command in the terminal or command prompt:

pip install streamlit --upgrade

Those who are new to Streamlit, just make sure to install the latest version.

They have introduced Dark Mode. Previous theme remains the same, but now called the Light Mode. For both light and dark modes it seems like Streamlit will automatically pick operating system theme and change the colors with the OS.

Most importantly, they are introducing Custom them, which will give more flexibility for App authors to make Apps look according to their customization preferences.

App authors will be able to set the themes via Streamlit config system or by using the new theme editor tool.

Feel free to read their announcement blog post for more details and try the changes with the demo app. I really like this new upgrade for Streamlit. I will be experimenting more with it and see how I can make my Apps look even better.

Below are the list to the Apps I built using Streamlit. Hive Librarian gets past conversations between two Hive users, gets the Hive rich list, can check delegations user received or sent. Librarian Search helps finding posts based on various sorting parameters. If you haven't used them yes, give them a try and see if you may find the useful.

https://hivelibrarian.herokuapp.com

https://librariansearch.herokuapp.com

Posted Using LeoFinance Beta