Skip to main content

Typography

Heading and Text map to the type scale, keep semantics separate from looks, and handle truncation and clamping for you.

TypographyNew

Heading

Semantic level vs visual size

Dashboard

Recent activity — an h2 styled small

Text

Tones, sizes and clamping

Updated 2 min ago

Deployed to production

Payment failed

VhyxUI components are accessible by default, animate with motion tokens, carry machine-readable VhyxSeal contracts for AI agents, and style with plain CSS variables or Tailwind utilities.

Kbd

Shortcut hints
Search⌘KCloseEsc

VisuallyHidden

Icon button with a screen-reader label

Props

Text

PropTypeDefaultDescription
asElementType'p'Element to render.
size'xs' | 'sm' | 'md' | 'lg' | 'xl''md'Font size token.
tone'default' | 'subtle' | 'muted' | 'accent' | 'success' | 'warning' | 'danger' | 'inherit''default'Semantic colour.
weight'normal' | 'medium' | 'semibold' | 'bold'—Font weight token.
truncateboolean—One line with ellipsis.
linesnumber—Clamp to N lines.
monoboolean—Monospace font.

Heading

PropTypeDefaultDescription
level1 | 2 | 3 | 4 | 5 | 62Renders <h1>…<h6>.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'—Visual size (defaults from level).