Custom font with streamlit extras

Hi,
about this ticket

is it possible to customize the font of a widget with stylable_container?

code below doesn’t work

    with stylable_container(
            key="comic_sans_button",
            css_styles="""
             button {
                 font-family: 'Comic Sans MS', cursive, sans-serif;
             }
             """,
    ):
        st.button("Comic Sans button")

:face_with_monocle: Check those posts, maybe will help you:

Hey @coder,

I did add a response in the original issue, let me know if that helps!

3 Likes

You are correct, and the documentation about the Styleable Container can be found at:
Streamlit-extras - Styleable Container

2 Likes

Thanks @coder! I meant to tag @iuiu, but thanks even more for quoting the docs page.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.