Typography

Documentation and examples for Franken UI typography, including headings, body text, lists, and more.

Table of contents

Headings

Add one of the following classes to modify the size and style of headings. Usually, these classes would be used on heading elements, but they work also with any other element like a div element.

ClassDescription
.uk-h1Add this class to apply an h1 heading.
.uk-h2Add this class to apply an h2 heading.
.uk-h3Add this class to apply an h3 heading.
.uk-h4Add this class to apply an h4 heading.

Hero

Add one of the following classes to apply hero headings. These classes are typically used to add a prominent message with a very large font size.

ClassDescription
.uk-hero-smAdd this class to apply a small-sized heading.
.uk-hero-mdAdd this class to apply a medium-sized heading.
.uk-hero-lgAdd this class to apply a large-sized heading.
.uk-hero-xlAdd this class to apply a xlarge-sized heading.
.uk-hero-2xlAdd this class to apply a 2xlarge-sized heading.
.uk-hero-3xlAdd this class to apply a 3xlarge-sized heading.

Heading Styles

Add one of the following classes to modify the size and style of headings.

ClassDescription
.uk-heading-dividerAdd this class to apply a divider to a heading.
.uk-heading-lineAdd this class to apply a vertically centered line to a heading.
.uk-heading-bulletAdd this class to apply a bullet to a heading.

Paragraph

Blockquote

Inline code

Text

Franken UI offers various text utilities to style your text.

ClassDescription
.uk-text-leadAdd this class to highlight text, for example in article subtitles.
.uk-text-metaAdd this class to a paragraph that contains meta text about an article or similar.
.uk-text-smAdd this class to apply a small font size.
.uk-text-baseAdd this class to apply the default the font size.
.uk-text-truncatePrevents text from wrapping into multiple lines, truncating it and displaying an ellipsis instead.
.uk-text-breakBreaks strings, if their length exceeds the width of their container.

Text background

To apply a gradient or background image to text, add the .uk-text-background class to a <span> element inside the text element. Styles that don’t define a background-image, will apply the primary color.

Customize

Customize your Franken UI experience.