Skip to content

Bootstrap 6 defaulting to 14px instead of 16px for the $font-size-base #42061

@pricop

Description

@pricop

Is there a reason in particular on why Bootstrap 6 is going to a different $font-size-base in scss/_variables.scss than the browser's default one which is 1rem on all the browsers and operating systems I can think of.

I noticed this while looking at the v6 docs, the examples feel off on pretty much every component I've checked (badges, cards, inputs, buttons), they all look so small.

Tailwind, BS5, and BS4 all default to 1rem (16px basically).

Is BS6 going to default to 1rem moving forward or was this a temporary change that was left to 14px?

Personally I believe, at least for the sake of accessibility, that the default $font-size-base should be set to 1rem. I know this is configurable, but the defaults matter too.

Originally posted by @pricop in #41740

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions