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
<!-- 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.
.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>