Typography & Colors

Ready-to-copy patterns for fluid typography, text utility classes, the color palette, and GPU-accelerated text effects.

Fluid Headings (Fluid Typography)

Standard <h1> through <h6> tags - CSS variables handle the right size on a phone and on a 4K monitor on their own.

Heading H1 (Hero)

Heading H2 (Section)

Heading H3 (Card)

Heading H4

Heading H5
Heading H6
<h1>Heading H1 (Hero)</h1>
<h2>Heading H2 (Section)</h2>
<h3>Heading H3 (Card)</h3>

Text Utilities

A set of utility classes for precise control over text size, weight, alignment, and transformation.

Centered and Uppercase

right-aligned and capitalized

.text-1 .fw-light 0.75rem (12px)
.text-3 .fw-normal 14–15px (Base)
.text-5 .fw-medium up to 1.28rem (H4)
.text-8 .fw-bold up to 2.5rem (H1)
.text-11 .fw-black up to 6.5rem (Hero)
<!-- Alignment and transformation -->
<p class="text-center text-uppercase">Text</p>

<!-- Responsive alignment (left on mobile, center on desktop) -->
<p class="text-start text-md-center">Text</p>

<!-- Size and weight -->
<h2 class="text-8 fw-black">Large, bold heading</h2>
<p class="text-2 fw-light">Small, thin text</p>

Text and Background Colors

A set of utility classes for quickly styling elements.

.bg-primary
.bg-secondary
.bg-success
.bg-danger
.bg-warning
.bg-dark

.text-primary

.text-success

.text-danger

.text-muted

<!-- Backgrounds with automatic text contrast -->
<div class="bg-primary">Blue background, white text</div>
<div class="bg-warning">Yellow background, dark text</div>

<!-- Text-only colors -->
<p class="text-danger">Error text</p>
<p class="text-muted">Muted helper text</p>

Text Effects (GPU Accelerated)

Modern text microinteractions that don't tax the CPU - ideal for highlighting key words in headings.

Highlight Draw (Highlighter)

Build this with molique

Text Color Wipe (Color fill on hover)

Hover over me

Animated Underline (Scale-X)

Smooth link underline
<!-- Highlighter effect (add .is-active or it triggers on :hover) -->
<span class="text-highlight is-active">Highlighted text</span>

<!-- Color fill from left to right -->
<h3 class="hover-text-wipe">Hover over me</h3>

<!-- Smooth link underline -->
<a href="#" class="hover-underline">Underlined link</a>