Typography
A polymorphic text component for consistent headings, paragraphs, lead text, and inline code styling.
We moved the checkout service off the shared database last quarter. The migration took three weekends and one very long Friday, but read latency at the p95 dropped from 340ms to 90ms and the on call rotation stopped getting paged about lock contention.
Installation
pnpm dlx nachui add typographyAnatomy
Examples
Default
We moved the checkout service off the shared database last quarter. The migration took three weekends and one very long Friday, but read latency at the p95 dropped from 340ms to 90ms and the on call rotation stopped getting paged about lock contention.
Headings
Moving 40 packages into one repo
Why we stopped publishing internal packages
Versioning without a release train
What broke in CI on the first day
Cache keys and lockfile drift
Appendix: migration checklist
Lead, Large & Muted
Rebuilding search on a small budget
By Lucia Mendez, 6 min read, updated Mar 14
Our old search ran on a managed cluster that cost more than the rest of the stack combined. We replaced it with Postgres full text search and kept the results people actually clicked.
Queries got 40ms slower. The bill went from $1,900 a month to $60.
Polymorphic (as prop)
Dialogs now restore focus to the element that opened them. Run pnpm add @acme/ui@2.4.0 to pick up the fix.
API Reference
Typography
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'blockquote' | 'lead' | 'large' | 'small' | 'muted' | 'code' | 'p' | Text style variant |
as | React.ElementType | - | Override the rendered HTML element |
align | 'left' | 'center' | 'right' | 'justify' | - | Text alignment |
weight | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | - | Font weight override |
className | string | - | Additional CSS classes |
Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.