Redpanda UI
RC
Redpanda UI

Typography

Comprehensive typography system with headings, text variants, labels, numbers, and more

Made by shadcn
Loading component...

Installation

Usage

import {
  Heading,
  Text,
  Blockquote,
  List,
  ListItem,
  InlineCode,
  Link,
} from "@/components/redpanda-ui/typography"

// Headings
<Heading level={1}>Heading 1</Heading>
<Heading level={2}>Heading 2</Heading>
<Heading as="h2" align="center">Centered Heading</Heading>

// Text variants
<Text variant="titleLarge">Title Large</Text>
<Text variant="bodyLarge">Body text</Text>
<Text variant="labelMedium" as="label">Form Label</Text>
<Text variant="numberMedium">1,234.56</Text>
<Text variant="captionMedium">Caption text</Text>

// Other elements
<Blockquote>Blockquote text</Blockquote>
<InlineCode>code</InlineCode>
<Link href="#">Link text</Link>

Typography Scale

The typography system is organized into categories based on usage:

Headings

Display-style headings for page and section titles.

Loading component...
Loading component...
Loading component...
Loading component...

Titles

Medium-weight display text for subsection headings and card titles.

Loading component...
Loading component...
Loading component...
Loading component...
Loading component...

Body Text

Standard paragraph and content text with comfortable line heights.

Loading component...
Loading component...
Loading component...
Loading component...

Body Strong

Emphasized body text with medium font weight.

Loading component...
Loading component...
Loading component...
Loading component...

Labels

Text optimized for form labels and UI elements.

Loading component...
Loading component...
Loading component...
Loading component...

Label Strong

Bold labels for emphasized form fields and UI text.

Loading component...
Loading component...
Loading component...
Loading component...

Button Text

Semibold text with tight line height optimized for buttons.

Loading component...
Loading component...
Loading component...
Loading component...

Numbers

Tabular numbers with optimized spacing for data display.

Loading component...
Loading component...
Loading component...
Loading component...

Number Strong

Emphasized tabular numbers with medium font weight.

Loading component...
Loading component...
Loading component...
Loading component...

Captions

Small text for image captions, annotations, and metadata.

Loading component...
Loading component...
Loading component...
Loading component...

Legacy Variants

These variants are maintained for backward compatibility:

Loading component...
Loading component...
Loading component...
Loading component...
Loading component...
Loading component...
Loading component...

Other Elements

Loading component...
Loading component...
Loading component...
Loading component...
Loading component...
Loading component...
Loading component...
Loading component...
Loading component...

When to Use

Typography components provide consistent text styling across your application:

  • Headings (h1-h4): Use for page and section titles with semantic HTML
  • Titles: Display text for subsection headings without strict semantic meaning
  • Body: Standard paragraph and content text
  • Labels: Form labels, navigation items, and UI text
  • Button: Text within button components
  • Numbers: Tabular data, metrics, and statistics
  • Captions: Supplementary information and metadata

Choosing the Right Variant

  1. Semantic structure needed? → Use Heading components
  2. Display heading without semantics? → Use Text with title variants
  3. Body content? → Use Text with body variants
  4. Form labels? → Use Text with label variants
  5. Numerical data? → Use Text with number variants
  6. Small annotations? → Use Text with caption variants

Built by malinskibeniamin. The source code is available on GitHub.

On this page