What it does
Provides Heading, Text, List, Blockquote, InlineCode, and CodeBlock with shared tone and emphasis props.
Use semantic HTML by default and tune visuals with display overrides only when necessary.
Sections
- Marketing pages with consistent heading scale.
- Documentation sites with lists and block quotes.
- Dashboard copy with muted secondary lines.
- Inline code and fenced samples without bespoke CSS.
Composition and API
Prefer small primitives over prop-heavy wrappers.
Compose bold, italic, underline, and strikethrough via booleans on Heading and Text.
Accessibility
Reserve headings for titles and sections.
Keep contrast sufficient for muted tones against your background; validate blockquotes with readable citations.
Next.js integration notes
Import from `@zentauri-ui/zentauri-components/ui/typography`.
Set NEXT_PUBLIC_SITE_URL so canonical metadata resolves on deploy.
FAQ
Does Typography work with Next.js App Router?
Yes. Primitives are plain React components; use them in server components unless you wrap interactive playgrounds that rely on client hooks.
Can I override styles with Tailwind?
Pass className to merge utilities; tones map to semantic Tailwind text colors aligned with the rest of Zentauri UI.
How do I choose heading levels for accessibility?
Match Heading level to document outline: one h1 per page where appropriate, then descend without skipping ranks inside each region.