Typography Utilities

# Font Family

The font family utility controls the font of an element.

ClassProperties
--family-sansfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--family-seriffont-family: Georgia, Cambria, "Times New Roman", Times, serif;
--family-monofont-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

# Font Size

The font size utility controls the font size of an element.

ClassProperties
--size-basefont-size: 1rem;
--size-xsfont-size: .75rem;
--size-smfont-size: .875rem;
--size-lgfont-size: 1.125rem;
--size-xlfont-size: 1.25rem;
--size-2xlfont-size: 1.5rem;
--size-3xlfont-size: 1.875rem;
--size-4xlfont-size: 2.25rem;
--size-5xlfont-size: 3rem;
--size-6xlfont-size: 4rem;

# Font Weight

The font weight utility controls the font weight of an element.

ClassProperties
--weight-hairlinefont-weight: 100;
--weight-thinfont-weight: 200;
--weight-lightfont-weight: 300;
--weight-normalfont-weight: 400;
--weight-mediumfont-weight: 500;
--weight-semiboldfont-weight: 600;
--weight-boldfont-weight: 700;
--weight-extraboldfont-weight: 800;
--weight-blackfont-weight: 900;

# Letter Spacing

The font weight utility controls the font weight of an element.

ClassProperties
--spacing-tighterletter-spacing: -0.05em;
--spacing-tightletter-spacing: -0.025em;
--spacing-normalletter-spacing: 0;
--spacing-wideletter-spacing: 0.025em;
--spacing-widerletter-spacing: 0.05em;
--spacing-widestletter-spacing: 0.1em;

# Line Height

The line height utility controls the line height of an element.

ClassProperties
--line-noneline-height: 1;
--line-tightline-height: 1.25;
--line-snugline-height: 1.375;
--line-normalline-height: 1.5;
--line-relaxedline-height: 1.625;
--line-looseline-height: 2;

# Text Align

The text align utility controls the text align of an element.

ClassProperties
--align-lefttext-align: left;
--align-centertext-align: center;
--align-righttext-align: right;
--align-justifytext-align: justify;

# Text Color

The text color utility controls the text color of an element and contains classes for each color variable along with primary, success, warning, danger, dark, and light. This utility also includes classes for focus and hover states. See colors.

ClassStateProperties
--color-bluecolor: @color[blue];
--color-primarycolor: @color[blue];
--focus-color-primary:focuscolor: @color[blue];
--hover-color-primary:hovercolor: @color[blue];

# Text Transform

The text transform utility controls the text transform of an element.

ClassProperties
--uppercasetext-transform: uppercase;
--lowercasetext-transform: lowercase;
--capitalizetext-transform: capitalize;
--normal-casetext-transform: none;
--truncate overflow: hidden; text-overflow: ellipsis; white-space: nowrap;

# Vertical Align

The vertical align utility controls the vertical align of an element.

ClassProperties
--vertical-baselinevertical-align: baseline;
--vertical-topvertical-align: top;
--vertical-middlevertical-align: middle;
--vertical-bottomvertical-align: bottom;
--vertical-text-topvertical-align: text-top;
--vertical-text-bottomvertical-align: text-bottom;