I did something like this the other day and it worked:
st.markdown(
"""
<style>
.reportview-container .markdown-text-container {
font-family: monospace;
}
.sidebar .sidebar-content {
background-image: linear-gradient(#2e7bcf,#2e7bcf);
color: white;
}
.Widget>label {
color: white;
font-family: monospace;
}
[class^="st-b"] {
color: white;
font-family: monospace;
}
.st-bb {
background-color: transparent;
}
.st-at {
background-color: #0c0080;
}
footer {
font-family: monospace;
}
.reportview-container .main footer, .reportview-container .main footer a {
color: #0c0080;
}
header .decoration {
background-image: none;
}
</style>
""",
unsafe_allow_html=True,
)
So much of it is just fooling around with Chrome DevTools or whatever other browsers provide, trying to find the right CSS selectors