Typography

Reusable typography classes for consistent text styling across the design system. Uses Playfair Display for headings and Inter for body text. Typography Element classes eliminate the need for Tailwind text utilities in Design System patterns.

Display Headings Body Text Utility Modifiers Theme Responsive

1. Display Text

Largest text size for hero headlines and major page titles. Uses Playfair Display for premium, elegant feel.

1.1 Standard Layout Preview

Standard Context

For use on normal page surfaces (hero sections, landing pages)

Premium Nature Retreats
3rem (48px) | Playfair Display Bold | line-height: 1.1

1.2 Standard Layout HTML Snippet

HTML
<div class="t-display">Premium Nature Retreats</div>

1.3 Glassy Layout Preview

Glassy Context

For use on dark overlays and hero sections with background images

Premium Nature Retreats
Automatically adapts with light text on dark backgrounds

1.4 Glassy Layout HTML Snippet

HTML
<div class="t-display-glass">Premium Nature Retreats</div>

2. Heading 1 (.t-h1)

Primary page heading. Uses Playfair Display for public pages, main page titles.

2.1 Standard Layout Preview

Standard Context

For use in content areas, page headers

Discover Your Perfect Escape

2.25rem (36px) | Playfair Display Bold | line-height: 1.2

2.2 Standard Layout HTML Snippet

HTML
<h1 class="t-h1">Discover Your Perfect Escape</h1>

2.3 Glassy Layout Preview

Glassy Context

For use on dark overlays

Discover Your Perfect Escape

2.4 Glassy Layout HTML Snippet

HTML
<h1 class="t-h1-glass">Discover Your Perfect Escape</h1>

3. Heading 2 (.t-h2)

Section heading for major content divisions. Uses Playfair Display.

3.1 Standard Layout Preview

Standard Context

For section headings in content

Available Properties

1.875rem (30px) | Playfair Display Bold | line-height: 1.2

3.2 Standard Layout HTML Snippet

HTML
<h2 class="t-h2">Available Properties</h2>

3.3 Glassy Layout Preview

Glassy Context

For section headings on dark backgrounds

Available Properties

3.4 Glassy Layout HTML Snippet

HTML
<h2 class="t-h2-glass">Available Properties</h2>

4. Heading 3 (.t-h3)

Subsection heading. Uses Playfair Display on public pages.

4.1 Standard Layout Preview

Standard Context

For subsection headings

Property Features

1.5rem (24px) | Playfair Display Semibold | line-height: 1.3

4.2 Standard Layout HTML Snippet

HTML
<h3 class="t-h3">Property Features</h3>

4.3 Glassy Layout Preview

Glassy Context

For subsection headings on dark backgrounds

Property Features

4.4 Glassy Layout HTML Snippet

HTML
<h3 class="t-h3-glass">Property Features</h3>

5. Body Text (.t-body)

Standard paragraph text for descriptions, content blocks, and general information. Uses Inter for readability.

5.1 Standard Layout Preview

Standard Context

For paragraphs, descriptions, content

Standard paragraph text for descriptions, content blocks, and general information. Easy to read across all devices with optimal line height and spacing.

1rem (16px) | Inter Regular | line-height: 1.5

5.2 Standard Layout HTML Snippet

HTML
<p class="t-body">Standard paragraph text for descriptions and content.</p>

5.3 Glassy Layout Preview

Glassy Context

For body text on dark overlays

Standard paragraph text for descriptions, content blocks, and general information. Easy to read across all devices with optimal line height and spacing.

5.4 Glassy Layout HTML Snippet

HTML
<p class="t-body-glass">Standard paragraph text for descriptions and content.</p>

6. Lead Text (.t-lead)

Larger introductory paragraph text to draw attention and set context. Perfect for page introductions.

6.1 Standard Layout Preview

Standard Context

For introductory paragraphs

Larger introductory paragraph text to draw attention and set context for the content that follows.

1.25rem (20px) | Inter Regular | line-height: 1.75

6.2 Standard Layout HTML Snippet

HTML
<p class="t-lead">Larger introductory paragraph text.</p>

6.3 Glassy Layout Preview

Glassy Context

For lead text on dark backgrounds

Larger introductory paragraph text to draw attention and set context for the content that follows.

6.4 Glassy Layout HTML Snippet

HTML
<p class="t-lead-glass">Larger introductory paragraph text.</p>

7. Small Text (.t-small)

Smaller text for secondary information, metadata, and supporting details.

7.1 Standard Layout Preview

Standard Context

For metadata, secondary information

Smaller text for secondary information, metadata, and supporting details.

0.875rem (14px) | Inter Regular | line-height: 1.5

7.2 Standard Layout HTML Snippet

HTML
<p class="t-small">Smaller text for secondary information.</p>

7.3 Glassy Layout Preview

Glassy Context

For small text on dark backgrounds

Smaller text for secondary information, metadata, and supporting details.

7.4 Glassy Layout HTML Snippet

HTML
<p class="t-small-glass">Smaller text for secondary information.</p>

8. Muted Text Modifier (.t-muted)

Utility class to reduce text emphasis with muted color. Combine with any typography class.

8.1 Standard Layout Preview

Standard Context

For de-emphasized text

Secondary text with reduced emphasis using muted color.

Combine with .t-small for metadata

Uses --color-text-secondary (neutral-600 / neutral-400 in dark)

8.2 Standard Layout HTML Snippet

HTML
<p class="t-body t-muted">Secondary text with reduced emphasis.</p>
<p class="t-small t-muted">Metadata text</p>

8.3 Glassy Layout Preview

Glassy Context

For muted text on dark backgrounds

Secondary text with reduced emphasis using muted color.

Metadata text

8.4 Glassy Layout HTML Snippet

HTML
<p class="t-body-glass t-muted-glass">Secondary text with reduced emphasis.</p>
<p class="t-small-glass t-muted-glass">Metadata text</p>

Usage Guidelines

âś… Do

  • • Use Typography Element classes (.t-h1, .t-body) for all text in Design System patterns
  • • Use .t-h1 through .t-h3 for page-level headings (Playfair on public pages)
  • • Use .t-muted and .t-small for secondary text
  • • Combine modifiers: .t-body .t-muted
  • • Test typography in both light and dark themes
  • • Test on both standard and glassy contexts
  • • Use semantic HTML elements (<h1>, <p>) with typography classes

❌ Don't

  • • Don't use Tailwind text utilities (text-lg, font-semibold, text-neutral-900) in Design System patterns
  • • Don't hardcode font sizes, weights, or colors in CSS
  • • Don't create custom typography classes—use existing Typography Element classes
  • • Don't use font sizes below 12px (.t-xs) for body content
  • • Don't override Typography Element class styling—update the Element definition instead
  • • Don't use inline style="" for text styling (layout margins OK)

CSS Location

Typography styles are defined in:

/assets/css/typography.css

Includes: Type scale, font families (Playfair Display for headings, Inter for body), weights, line heights, colors, utility modifiers, and dark mode support.

Related Documentation