Comments (4)
To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.
Your vote helps us identify which enhancements matter most to our users.
from streamlit.
Hey @TechbaltoroBI002, you should be able to set the theme by adding a .streamlit/config.toml
file with the following content
[theme]
# or "light"
base = "dark"
See also the docs here. It will set the theme in the hamburger menu to Custom Theme
by default:
Its not a dedicated st
-command, but it sounds like this should fulfil your needs. What do you think?
from streamlit.
Just to add, we probably also don't want an st command for this use case because it would mean the app would flicker at page load (it would first show the theme according to the user's system settings, and then switch the theme once the command is reached). Doing it via the config file is far better because these settings are applied before the page loads/script runs.
from streamlit.
@raethlein yes it does actually. @jrieke @raethlein thank you guys, for the clarification.
from streamlit.
Related Issues (20)
- https://ssg-sea.streamlit.app/ does not extract any skills. HOT 3
- KeyError (only in terminal) when accessing session_state key in a multipage app HOT 4
- Unify dropdown styles for `st.selectbox`, `st.multiselect`, and `st.date_input` HOT 1
- `st.time_input` has different height than other elements HOT 2
- Set sidebar min-width to prevent `st.logo` from hiding the X to close it HOT 1
- mypy strict: error: Module "streamlit" does not explicitly export attribute "experimental_dialog" [attr-defined] (among others) HOT 2
- Custom 404 / Error Page / Maintenance Page that is displayed whenever a bug is pushed or the app encounters and issue on boot HOT 1
- Update error message to show dataframes and charts (when used as widgets) can't be assigned values through Session State HOT 1
- st.selectbox could be typed so that it always returns T unless the index is None (etc) HOT 3
- Button Clicks Ignored (WHEN TEXTAREA HAS FOCUS) HOT 9
- Incomplete shortcodes disappear HOT 9
- Update to support protocol buffer above version 5.0 HOT 3
- button should be able to contain image HOT 2
- doesnt work HOT 2
- Streamlit unnecessarily runs the file watcher against every path in imported modules, even when watching is disabled HOT 5
- `st.experimental_dialog` feels a bit laggy when closing HOT 1
- Add Support for Hover-over Tooltips without Input Widgets HOT 2
- disabled_chat_input feature not working correctly last version of Streamlit HOT 1
- Pages clipped off bottom of sidebar in streamlit 1.35.0 HOT 1
- plotly_chart `on_select` not returning anything for an imshow or heatmap HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamlit.