Fusion UI LogoFusion UI Logo
Fusion UI LogoFusion UI Logo
/
Getting Started
Concepts
Components
Example Apps
Getting Started
Concepts
Components
Example Apps
Fusion UI LogoFusion UI Logo
Getting Started
Concepts
Components
Example Apps
Overview
Foundations
Color
Typography
Spacing & Radius
Core Concepts
Surfaces & Elevation
States
Nesting
Views & Offsets
Animations
Touch & Mobile

Typography

Font styles and modifiers, and why components never override them.

Font styles

Text is set in Inter. fusion-css defines a fixed set of font styles as classes; each sets family, size, weight, line height and letter spacing at once. The sizes below are those of the current theme.

display-font
Hero numbers and landing pages
The quick brown fox
heading-1-font
Page titles
The quick brown fox
heading-2-font
Sections of a page
The quick brown fox
heading-3-font
Tile titles
The quick brown fox
heading-4-font
Subsections
The quick brown fox
heading-5-font
Small headings, menu sections
The quick brown fox
heading-6-font
Smallest headings
The quick brown fox
subheading-font
Text below headings
The quick brown fox
subheading-2-font
Labels in dense layouts
The quick brown fox
body-font
Running text
The quick brown fox
button-font
Labels of buttons
The quick brown fox
caption-font
Captions of figures and tables
The quick brown fox
helper-text-font
Hints below form fields
The quick brown fox
overline-font
Small line above a title
The quick brown fox

Modifiers

Modifiers adjust a font style without replacing it.

ModifierEffectExample
small-fontSmaller size and line heightSmall body text
large-fontLarger size and line heightLarge body text
strong-fontBold weightStrong body text

Using font styles

Put the classes on the element, or apply a style in SCSS with apply-font-style.

<h2 className="heading-3-font">Revenue</h2>
<p className="body-font small-font">Updated 5 minutes ago</p>
@use "@brynlabs/fusion-css/index" as fusioncss;
.title {
@include fusioncss.apply-font-style("heading-4-font");
}

Never override font styles

Components must not override what a font style sets: font-size, font-weight, line-height, font-family and letter-spacing. Pick another style or a modifier instead. This keeps the rhythm of the text consistent and lets themes change the typography in one place.

The one exception: text fields use at least 16px on touch screens, otherwise iOS zooms into the page on focus.

On this page
  • Font styles
  • Modifiers
  • Using font styles
  • Never override font styles