Base element styles control native HTML elements such as headings, paragraphs, buttons, and forms in a systematic and opinionated way. These styles include typographical considerations and utilities derived from base elements, such as typefaces, the type scale, forms, and buttons.
Typographic elements are normalized to a simple type scale that works well across devices. Default top and bottom margins are set for commonly-used typographic elements.
The .h1
– .h6
font-size utilities can be used to override an element’s default size.
Forms use base styles for their structure with color styles applied to adjust the look and feel. This creates a rhythmic consitency among all forms while allowing thematic differences where needed. Form elements do not rely on nested styles or markup structure, so utility styles can be used for contextual adjustments.
By default, form elements display inline.
The default .input
color style or custom styles can be used to control appearance.
Use .block
and other utilities to stack form elements.
The use of utilities allows for a lot of flexibility when building form layouts.
Default table styles are defined in base.
Use the table-light
color style with other color utilities
or create custom theme extensions to suit your needs.