Introduction
Natura11y offers a wide range of customizable typography styles. Out-of-the-box, font sizes are set using a type scale. This makes it easy to adjust all font sizes with just one variable, without needing to specify sizes for each element individually.
Banner Headline
The .banner-headline
utility is named after the large headlines in newspapers that stretch across the top of the front page. This utility is useful for creating a header that is larger or visually distinct from the usual <h1>
tag.
Section Headings
Natura11y provides six levels of section headings, <h1>
through <h6>
. Styles for each level are consistent for a tag header (e.g. <h1>
) and a utility class header (e.g. .h1
).
Font Size Utilities
Easily change the font-size of text, buttons, navigation, entire forms, or any DOM element with Natura11y's font size utilities.
Paragraphs
Below is an example of Natura11y's default <p>
tags.
Text Align Utilities
Apply text-align property to a selector.
Text Transform Utilities
Apply text-transform property to a selector.
Text Decoration Utilities
Apply text-decoration property to a selector.
Natura11y's Type Scale
A type scale helps maintain consistent, readable font sizes across your projects and screen sizes. In Natura11y, font sizes follow a simple type scale that you can easily adjust with two properties.
The first property, --base-font-size
, controls the smallest font size. The second property, --type-scale
, sets the multiplier used to create larger font sizes. Each size is a multiple of the one before it, based on the scale value.
For more details, check out the Related CSS Variables section at the end of this page, which explains how font sizes relate to each other.
To see it in action, use the dropdown options below to explore how the type scale works.
Type Scale VisualizerResponsive Fonts
You can easily make fonts responsive by using a different type scale inside a @media
or @container
query (see Figure 9).