Customizing the appearance of st.tabs
The code below shows an example of how to customize the appearance of st.tabs using CSS. Hopefully somebody finds this helpful!
st.markdown("""
<style>
.stTabs [data-baseweb="tab-list"] {
gap: 2px;
}
.stTabs [data-baseweb="tab"] {
height: 50px;
white-space: pre-wrap;
background-color: #F0F2F6;
border-radius: 4px 4px 0px 0px;
gap: 1px;
padding-top: 10px;
padding-bottom: 10px;
}
.stTabs [aria-selected="true"] {
background-color: #FFFFFF;
}
</style>""", unsafe_allow_html=True)