Basscss / Docs

Base

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.

Typography

Base type scale

Base type elements are normalized to a simple type scale that works well across devices.

Type scale utilities

Use the .h1.h6 font-size utilities to override an element’s default size.

Forms

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.

Inline Forms

By default, form elements display inline. Use the default .input style or create custom color styles to control the appearance.

Stacked Forms

Use .block and other utilities to stack form elements. The use of utilities allows for a lot of flexibility when building form layouts.

Buttons

Base button styles are defined in base. Use color styles and custom extensions to adjust their appearance.

Tables

Default table structural styles are defined in base. Use the default table-light color style with other color utilities or create custom theme extensions to suit your needs.

Typography Forms Buttons Tables