Typography

The Skeleton typography system.

Skeleton provides an array of opt-in utility classes for common typographic elements, with a fully functional typography scale based on your theme settings. As well as a number of primitives for generating a semantic typography set for your project's individual needs.

Native Element Styles

Skeleton provides the following utlity classes for styling semantic native HTML elements. These are available for a variety of common typographic elements and opt-in by default, providing an escape hatch to easily to break from convention.

Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraphs

The quick brown fox jumps over the lazy dog

Blockquotes

"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nesciunt, aliquid. Molestias, odio illum voluptatibus natus dignissimos, quidem est unde aspernatur veniam pariatur fuga distinctio esse in quas, repellendus neque reiciendis!"

Anchor

Pre-Formatted

The quick brown fox jumps over the lazy dog.

Code

Insert the .example class here.

Keyboard

Press + C to copy.

Insert & Delete

Always Gonna Give You Up Never Gonna Give You Up

Mark

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nesciunt, aliquid. Molestias, odio illum voluptatibus natus dignissimos, quidem est unde aspernatur veniam pariatur fuga.

Lists

Skeleton defers to Tailwind’s built-in utility classes for common list styles.

Basic List

  • Id maxime optio soluta placeat ea eaque similique consectetur dicta tempore.
  • Repellat veritatis et harum ad sint reprehenderit tenetur, possimus tempora.
  • Lorem ipsum dolor sit amet consectetur adipisicing elit harum ad sint.

Unordered List

  • Id maxime optio soluta placeat ea eaque similique consectetur dicta tempore.
  • Repellat veritatis et harum ad sint reprehenderit tenetur, possimus tempora.
  • Lorem ipsum dolor sit amet consectetur adipisicing elit harum ad sint.

Ordered List

  • Id maxime optio soluta placeat ea eaque similique consectetur dicta tempore.
  • Repellat veritatis et harum ad sint reprehenderit tenetur, possimus tempora.
  • Lorem ipsum dolor sit amet consectetur adipisicing elit harum ad sint.

Description List

Item A
Id maxime optio soluta placeat ea eaque similique consectetur dicta tempore.
Item B
Repellat veritatis et harum ad sint reprehenderit tenetur, possimus tempora.
Item C
Lorem ipsum dolor sit amet consectetur adipisicing elit harum ad sint.

Advanced Features

The following features are optional and intended for professionals with extensive understanding of web-based typography. If you’re unfamiliar with these concepts, feel free skip them and use the friendly defaults Skeleton provides out of the box.

Typographic Scale

Skeleton augments Tailwind’s font-size utilities to support a customizable Typographic Scale system. Put simply, by modifying your theme’s --text-scaling property, you can control the overall scale of text globally throughout your application. See the Core API to review the scaling forumula.

--text-scaling: 1
Aa
text-9xl
Aa
text-8xl
Aa
text-7xl
Aa
text-6xl
Aa
text-5xl
Aa
text-4xl
Aa
text-3xl
Aa
text-2xl
Aa
text-xl
Aa
text-lg
Aa
text-base
Aa
text-sm
Aa
text-xs

TIP: the base scale size is 1.0 for 100%

Semantic Typography

When working in a professional environment, your designers may craft a semantic set of typography for your project using unique names, canned sizes, adn pre-configured styles. To handle this in Skeleton, we recommend following best practices for User Generated Presets , mixing CSS primitives with semantic HTML elements to replicate all required styles.

We’ve provided a boilerplate set to help you get started. Implement into your global stylesheet, then customize as needed.

ClassPreview
preset-typo-display-4

Aa

preset-typo-display-3

Aa

preset-typo-display-2

Aa

preset-typo-display-1

Aa

preset-typo-headline

Headline

preset-typo-title

Title

preset-typo-subtitle

Subtitle

preset-typo-body-1

Body 1

preset-typo-body-2

Body 2

preset-typo-captionCaption
preset-typo-menuMenu
preset-typo-buttonButton
View page on GitHub