'St.Success of Customization Problems (Streamlit)

Is there any way to change the font and background color, and opacity of st.success ? Because anything doesn’t seem with default colors. Here a visual for the problem: enter image description here



Solution 1:[1]

import streamlit as st

st.markdown('''
<style>
.element-container {
    background-color: blue;
    opacity: 1;
}
.st-b7 {
    color: white;
}
.css-nlntq9 {
    font-family: Source Sans Pro;
}
</style>
''', unsafe_allow_html=True)

st.success('Whoever is happy will make others happy too. -Anne Frank')

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ferdy