Bob Bob - 17 days ago 5
Sass (Sass) Question

Customize bootstrap button font

I'm using sass-version of Bootstrap and want to customize the buttons' font, so that it differs from the system font.

I don't see any sass/less variables that would modify the font-family of my buttons: http://getbootstrap.com/customize/#buttons

So, how do I achieve that ?

Answer

The font family of buttons is inherited from the @font-family-sans-serif variable which is "Helvetica Neue", Helvetica, Arial, sans-serif as standard. You can find the variable here.

You could override it the btn class in your ccs with something like:

.btn {
    font-family: SomeFont;
}
Comments