Typography

Text styles for headings and body content.

Heading 1
type-title-1
Heading 2
type-title-2
Heading 3
type-title-3
Heading 4
type-title-4
Heading 5
type-title-5
Paragraph
type-body
Paragraph Bold
type-body-strong
Small
type-small
Small Bold
type-small-strong
Tiny
type-tiny
Tiny Bold
type-tiny-strong

Overview

The Rogo typography system is built on three font families and a consistent type scale. All text styles are defined as Tailwind utility classes that combine font family, size, line height, and weight into semantic tokens. Use these tokens instead of manually combining font properties.

Font Families

Three font families serve distinct purposes in the design system.

CSS VariableTailwind ClassFontUsage
--font-bodyfont-bodyInterDefault body font. Used for paragraphs, UI text, and all general content.
--font-displayfont-displayMartina PlantijnSerif display font. Used for large headings (title-1 through title-4) to add elegance.
--font-monofont-monoRoboto MonoMonospace font. Used for code, data, and technical content. Always use in full uppercase.

Type Scale

Headings

Display headings use the serif font-display for a refined, editorial feel. Heading 5 uses the body font with medium weight for a more utilitarian style.

Tailwind ClassFontSizeLine HeightWeightUsage
type-title-1Display36px (4xl)2.5rem400Page titles, hero headings. Use sparingly, once per page.
type-title-2Display30px (3xl)2.25rem400Major section headings. Primary content divisions.
type-title-3Display24px (2xl)1.75rem400Subsection headings. Secondary content groupings.
type-title-4Display20px (xl)1.5rem400Card titles, dialog headers. Tertiary headings.
type-title-5Body18px (lg)1.25rem500Small headings, list headers. Uses medium weight instead of display font.

Body Text

Body styles use the Inter font family for optimal readability. Each size has a regular and strong (medium weight) variant.

Tailwind ClassSizeLine HeightWeightUsage
type-body16px (base)1.5rem400Default body text. Paragraphs, descriptions, primary content.
type-body-strong16px (base)1.5rem500Emphasized body text. Labels, important callouts, inline emphasis.
type-small14px (sm)1.25rem400Secondary text. Captions, helper text, metadata.
type-small-strong14px (sm)1.25rem500Emphasized small text. Button labels, table headers, tags.
type-tiny12px (xs)1rem400Tertiary text. Footnotes, timestamps, badges.
type-tiny-strong12px (xs)1rem500Emphasized tiny text. Status indicators, compact labels.

Text Colors

Typography should be paired with semantic text color tokens for proper hierarchy. See the Colors page for the full reference.

Tailwind ClassUsage
text-primaryHeadings and emphasized content.
text-secondaryBody text and standard content.
text-tertiaryCaptions, labels, and supporting text.
text-quaternaryPlaceholders, disabled text, and subtle hints.

Usage Guidelines

Do

  • Use type-title-* classes for headings to maintain consistent hierarchy
  • Use type-body for paragraph content, type-small for secondary info
  • Pair typography tokens with semantic text colors (text-primary, text-secondary)
  • Use -strong variants for emphasis instead of arbitrary font weights
  • Use font-mono for code snippets, data tables, and technical identifiers—always in full uppercase
  • Maintain heading hierarchy: don't skip levels (e.g., title-1title-3)

Don't

  • Don't use raw font sizes like text-lg or text-sm for content typography
  • Don't mix arbitrary font weights with type tokens
  • Don't use display font (font-display) for body text or small sizes
  • Don't use font-mono in lowercase or mixed case—always use uppercase
  • Don't use type-title-1 more than once per page
  • Don't combine multiple type tokens on the same element
  • Don't use headings purely for visual size; use semantically appropriate levels

Combining with Font Family

For specialized use cases, you can combine base type tokens with font family utilities:

CombinationUsage
font-mono type-body uppercaseMonospace body text for code blocks.
font-mono type-small uppercaseMonospace small text for inline code.
font-mono type-tiny uppercaseMonospace tiny text for technical metadata.

Note: Always pair font-mono with uppercase for consistent styling.

Responsive Typography

The type scale is designed to work across screen sizes. For responsive adjustments, combine with Tailwind breakpoint prefixes:

PatternUsage
type-title-2 md:type-title-1Larger heading on medium+ screens.
type-small md:type-bodyLarger body text on medium+ screens.
PreviousColors
NextIcons
© 2026 Rogo Technologies Inc.