Skeleton provides an array of opt-in utility classes for common typographic elements. As well as a number of primitives for extending and generating semantic typography sets. Use theme settings to provide the perfect typographic scale.
Utlity Classes
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
.example
class here.Keyboard
Insert & Delete
Lists
Unordered
- 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
- 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.
Basic
- 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
- 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.
Navigation
Primitives
The basic building blocks that Skeleton typography is built upon.
Typographic Scale
Primimtive font sizes based on your theme’s typographic scale, via the --type-scale-factor
theme property.
Semantic Typography
Given that typography can differ wildly from project to project, we’ve provided an opinionated boilerplate for generating a set of semantic typography. These classes are constructed using a combination of Skelton and Tailwind primitives. Tap the code view, copy the styles to your global stylesheet, then modify as desired. Use the type-{foo}
prefix to help keep things standarized.
Class | Preview |
---|---|
type-display-4 | Aa |
type-display-3 | Aa |
type-display-2 | Aa |
type-display-1 | Aa |
type-headline | Headline |
type-title | Title |
type-subtitle | Subtitle |
type-body-1 | Body 1 |
type-body-2 | Body 2 |
type-caption | |
type-menu | |
type-button |