Bob Bob - 6 months ago 55
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:

So, how do I achieve that ?


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;