--- title: Typography Helpers description: Our helper classes allow you to scaffold certain typographic styles faster. video: dq7s3PVpQ7M sass: - scss/typography/_helpers.scss - scss/typography/_alignment.scss tags: - alignment - subheader - lead - statistic --- ## Text Alignment
Deprecation Notice: From v6.5.x, we are moving text alignment classes to Prototype specific mode and thus text alignment classes will be disabled by default. You can re-enable it though, with a simple `@include`.
This text is left-aligned. Set in the year 0 F.E. ("Foundation Era"), The Psychohistorians opens on Trantor, the capital of the 12,000-year-old Galactic Empire. Though the empire appears stable and powerful, it is slowly decaying in ways that parallel the decline of the Western Roman Empire.
This text is right-aligned. Set in the year 0 F.E. ("Foundation Era"), The Psychohistorians opens on Trantor, the capital of the 12,000-year-old Galactic Empire. Though the empire appears stable and powerful, it is slowly decaying in ways that parallel the decline of the Western Roman Empire.
This text is center-aligned. Set in the year 0 F.E. ("Foundation Era"), The Psychohistorians opens on Trantor, the capital of the 12,000-year-old Galactic Empire. Though the empire appears stable and powerful, it is slowly decaying in ways that parallel the decline of the Western Roman Empire.
This text is justified. Set in the year 0 F.E. ("Foundation Era"), The Psychohistorians opens on Trantor, the capital of the 12,000-year-old Galactic Empire. Though the empire appears stable and powerful, it is slowly decaying in ways that parallel the decline of the Western Roman Empire.
--- ## Subheader Lighten up your headers by adding a class of `.subheader` to any header element. ```html_exampleWhat are your cats really dreaming about while they sleep?
``` --- ## Un-bulleted List In Foundation, the `` or `
Especially useful because: It's important to avoid skipping heading levels when structuring your document, as it confuses screen readers. For example, after using an <h2>
in your code, the next heading used should be either <h2>
or <h3>
. If you need a heading to look bigger or smaller to match a specific style, use CSS to override the default size.
Lorem Ipsum Dolor
Lorem Ipsum Dolor
Lorem Ipsum Dolor
Lorem Ipsum Dolor
Lorem Ipsum Dolor
Lorem Ipsum Dolor
``` --- ## Statistics If you're building a dashboard, you might need to display some important numbers *real big*. Just add the `.stat` class to any element to amp up the font size. ```html_exampleDays without merge conflict