whitphx HF staff commited on
Commit
22d3c4a
1 Parent(s): c80ef9b

Add app.py and .streamlit/config.toml

Browse files
Files changed (2) hide show
  1. .streamlit/config.toml +19 -0
  2. app.py +13 -0
.streamlit/config.toml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [theme]
2
+
3
+ # The preset Streamlit theme that your custom theme inherits from. One of "light" or "dark".
4
+ # base =
5
+
6
+ # Primary accent color for interactive elements.
7
+ primaryColor = "#00b9e8"
8
+
9
+ # Background color for the main content area.
10
+ backgroundColor = "#F1F6F7"
11
+
12
+ # Background color used for the sidebar and most interactive widgets.
13
+ secondaryBackgroundColor = "#E7EFF1"
14
+
15
+ # Color used for almost all text.
16
+ textColor = "#545656"
17
+
18
+ # Font family for all text in the app, except code blocks. One of "sans serif", "serif", or "monospace".
19
+ # font =
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ name = st.text_input("Name")
4
+ if name:
5
+ st.write("Hello,", name)
6
+
7
+ st.date_input("date")
8
+
9
+ st.slider("slider", 0, 100, 50)
10
+
11
+ with st.sidebar:
12
+ st.title("Color theme sample")
13
+ st.markdown("This Streamlit app is served with `.streamlit/config.toml` to control the color theme with its `[theme]` section!")