Typography

The Skeleton typography system.

Skeleton provides an array of opt-in utility classes for common typographic elements. As well as providing a fully functional typography scale base on theme settings. With guidance on crafting a custom semantic typography set tailored for your project's individual needs.

Global Styles

The default base typography styles are applied as globals .

Native Element Styles

Skeleton provides the following utlity classes for styling semantic native HTML elements. All styles are opt-in by default, providing an escape hatch when you need to break from convention.

Headings

Represents six levels of section headings.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraphs

Represents a block of running text.

The quick brown fox jumps over the lazy dog

Anchor

Creates a hyperlink to other pages, files, or locations within the same page.

Pre-Formatted

Displays preformatted text exactly as written, preserving whitespace and line breaks.

The quick brown fox jumps over the lazy dog.

Code

Displays an inline fragment of computer code. Provides support for Presets .

Use .code to highlight partials.

Use .code to highlight partials.

Use .code to highlight partials.

Keyboard

Represents textual user input from a keyboard, voice, or other input device.

Press + c to copy.

q w e r t y u i o p
a s d f g h j k l
z x c v b n m

Insert & Delete

Marks text that has been added to or removed from a document.

Always Gonna Give You Up Never Gonna Give You Up

Abbreviation

Represents an abbreviation or acronym, optionally paired with its full expansion.

The HTML standard is maintained by the W3C.

Blockquotes

Indicates an extended quotation set apart from surrounding content.

"The only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on."

— Steve Jobs

Citation

References the title of a creative work, such as a book, article, or film.

One of the most influential novels of the 20th century is The Great Gatsby by F. Scott Fitzgerald, often studied alongside To Kill a Mockingbird.

Mark

Highlights text of relevance or importance within the surrounding context.

The quick brown fox jumps over the lazy dog.

Quotation

Represents a short inline quotation.

The lead said, we ship when ready.

Subscript

Renders text in subscript, typically lowered and reduced in size.

The chemical formula for water is H2O, and table salt is Na1Cl1.

Superscript

Renders text in superscript, typically raised and reduced in size.

Einstein's mass-energy equivalence is expressed as E = mc2, and the area of a circle is πr2.

Time

Represents a specific period in time or a machine-readable date.

Apollo 11 landed on the Moon on .

Lists

Represents ordered and unordered lists of items. Skeleton defers to Tailwind’s built-in utility classes for common list styles.

Basic List

  • Skeleton is an adaptive design system powered by the Tailwind CSS framework.
  • Compatible with Svelte, React, Astro, and many other popular frameworks.
  • Theming is driven by CSS custom properties for quick color customization.

Unordered List

  • Skeleton is an adaptive design system powered by the Tailwind CSS framework.
  • Compatible with Svelte, React, Astro, and many other popular frameworks.
  • Theming is driven by CSS custom properties for quick color customization.

Ordered List

  1. Skeleton is an adaptive design system powered by the Tailwind CSS framework.
  2. Compatible with Svelte, React, Astro, and many other popular frameworks.
  3. Theming is driven by CSS custom properties for quick color customization.

Description List

Item A
Skeleton is an adaptive design system powered by the Tailwind CSS framework.
Item B
Compatible with Svelte, React, Astro, and many other popular frameworks.
Item C
Theming is driven by CSS custom properties for quick color customization.

Advanced Features

The following features are optional and intended for professionals with moderate 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 . Put simply, by modifying your theme’s --text-scaling property, you can control the overall scale of text sizing 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 with a designer, they may craft a semantic set of typography for your project. These might include semantic names, canned sizes, and pre-configured styling. To handle this in Skeleton, we recommend following best practices for User Generated Presets , while mixing CSS primitives with semantic HTML elements to replicate all required styles.

We’ve provided a boilerplate below to help you get started. Implement in your global stylesheet, and 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

Core API

For more information on theme properties, please refer to the Core API documentation.

View page on GitHub