-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstreamlit_theme_alt.py
124 lines (121 loc) · 3.98 KB
/
streamlit_theme_alt.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
def streamlit_theme_alt():
font = "Helvetica"
primary_color = "#bf0838" # #F63366 Bright pink
font_color = "#262730" # dark grey
grey_color = "#f0f2f6"
lightgrey_color = "#f6f2f6"
black= '#201e1f'
darkGray= '#a6a6a6'
gray= '#eaeaea'
lightGray= '#f0f0f0'
white= '#ffffff'
green= '#64CB29'
blue= '#2d9ee0'
rose= '#f45b69'
cerise= '#f00faa'
red= '#ed6a5a'
orange= '#edae49'
yellow= '#e4ce44'
lightRed= '#cc998d'
darkPurple= '#303965'
base_size = 14
lg_font = base_size * 1.15
sm_font = base_size * 0.8 # st.table size
xl_font = base_size * 1.5
config = {
"config": {
"view": {"fill": lightGray},
"arc": {"fill": primary_color},
"area": {"fill": primary_color},
"circle": {"fill": primary_color, "stroke": font_color, "strokeWidth": 0.5},
"line": {"stroke": primary_color},
"path": {"stroke": primary_color},
"point": {"stroke": primary_color},
"rect": {"fill": primary_color},
"shape": {"stroke": primary_color},
"symbol": {"fill": primary_color},
"title": {
"font": font,
"color": font_color,
"fontSize": lg_font,
"anchor": "start",
},
"axis": {
"titleFont": font,
"titleColor": font_color,
"titleFontSize": sm_font,
"labelFont": font,
"labelColor": font_color,
"labelFontSize": sm_font,
"grid": True,
"gridColor": "#fff",
"gridOpacity": 1,
"domain": True, # False
"domainColor": lightGray,
"tickColor": font_color,
},
"header": {
"labelFont": font,
"titleFont": font,
"labelFontSize": base_size,
"titleFontSize": base_size,
},
"legend": {
"titleFont": font,
"titleColor": font_color,
"titleFontSize": sm_font,
"labelFont": font,
"labelColor": font_color,
"labelFontSize": sm_font,
},
"range": {
#"category": ["#f63366", "#fffd80", "#0068c9", "#ff2b2b", "#09ab3b"],
"category": [ "#f63366", "#0068c9", "#fffd80", "#7c61b0", "#ffd37b", "#ae5897", "#ffa774","#d44a7e", "#fd756d",'#f00faa'], # =category_large
"diverging": [
"#850018",
"#cd1549",
"#f6618d",
"#fbafc4",
"#f5f5f5",
"#93c5fe",
"#5091e6",
"#1d5ebd",
"#002f84",
],
"heatmap": [
"#ffb5d4",
"#ff97b8",
"#ff7499",
"#fc4c78",
"#ec245f",
"#d2004b",
"#b10034",
"#91001f",
"#720008",
],
"ramp": [
"#ffb5d4",
"#ff97b8",
"#ff7499",
"#fc4c78",
"#ec245f",
"#d2004b",
"#b10034",
"#91001f",
"#720008",
],
"ordinal": [
"#ffb5d4",
"#ff97b8",
"#ff7499",
"#fc4c78",
"#ec245f",
"#d2004b",
"#b10034",
"#91001f",
"#720008",
],
},
}
}
return config