Skip to content

Typography Helper Classes

TIP

See Color Helper Classes for Color Helper Classes.

These utility classes (prefixed with h-) provide quick overrides for text alignment, weight, and decoration without writing custom CSS for every component.

Alignment Helpers

Controls the horizontal flow of text within its container.

ClassPurposePreview (Live)Code Snippet
.h-type-align-leftLeft-aligned text

Text aligned left (Default)

<p class="h-type-align-left">...</p>
.h-type-align-centerCentered text

Text aligned center

<p class="h-type-align-center">...</p>
.h-type-align-rightRight-aligned text

Text aligned right

<p class="h-type-align-right">...</p>

Emphasis & Decoration

Used to highlight specific words or apply visual transformations.

ClassPurposePreview (Live)Code Snippet
.h-type-emphasizeItalicized style

Emphasized text

<p class="h-type-emphasize">...</p>
.h-type-boldHeavier font weight

Bolded text

<p class="h-type-bold">...</p>
.h-type-uppercaseAll capital letters

uppercase text

<p class="h-type-uppercase">...</p>
.h-type-underlineStandard text decoration

Underlined text

<p class="h-type-underline">...</p>
.h-type-underline-pseudoCustom hover/pseudo underline
<button class="h-type-underline-pseudo">...</button>

Typography Size Utilities

These helper classes allow you to apply specific font sizes from your design scale to any text element, regardless of its HTML tag.

ClassScale LevelPreview (Live)Code Snippet
Extra Large.h-type-extra-large

Extra Large Text Size

<p class="h-type-extra-large">...</p>
Largest.h-type-largest

Largest Text Size
(I know the naming is 🤡)

<p class="h-type-largest">...</p>
Larger.h-type-larger

Larger Text Size

<p class="h-type-larger">...</p>
Large.h-type-large

Large Text Size

<p class="h-type-large">...</p>
Base.h-type-base

Base Text Size (Standard)

<p class="h-type-base">...</p>
Small.h-type-small

Small Text Size

<p class="h-type-small">...</p>
Extra Small.h-extra-small

Extra Small Text Size

<p class="h-extra-small">...</p>

Text Wrapping & Breaking

These classes control how the browser handles line breaks when a string of text is too long for its container.

ClassBehaviorPreview (Live)Code Snippet
.h-break-wordWraps long words at logical points to prevent overflow.
Loremipsumdolorsitametconsetetursadipscingelitrseddiamnonumyeirmod
<span class="h-break-word">...</span>
.h-no-wrapForces text to stay on a single line; collapses extra spaces.
Lorem ipsum dolor sit amet consetetur sadipscing
<span class="h-no-wrap">...</span>
.h-break-allBreaks words at any character to strictly fit the width.
Loremipsumdolorsitametconsetetursadipscingelitrseddiamnonumyeirmod
<span class="h-break-all">...</span>
.h-break-spacesBehaves like pre-wrap but breaks at any whitespace sequence.
Lorem ipsum dolor sit amet
<span class="h-break-spaces">...</span>

Overflow Management

Utilities for handling content that exceeds the dimensions of its parent container.

ClassPurposePreview (Live)Code Snippet
.h-overflow-hiddenHides any content that spills outside the box.
Long text hidden here
<div class="h-overflow-hidden">...</div>
.h-overflow-autoAdds scrollbars only if content overflows.
Scrollable content goes here
<div class="h-overflow-auto">...</div>
.h-overflow-ellipsisAdds ... to truncated text (requires block & width).
This text is way too long for this small box
<span class="h-overflow-ellipsis">...</span>

Visual Transformation

ClassPurposePreview (Live)Code Snippet
.h-capitalize-first-letterAutomatically capitalizes the first character of a string.
lorem ipsum (transformed)
<span class="h-capitalize-first-letter">...</span>