Typography
Opt-in prose and heading recipes with zero global element resets.
Typography scale
Zero-reset semantic typography recipes from coatx/typography.
Use coatx/typography for headings, paragraphs, and prose blocks without clobbering surrounding page styles.
Highlights
- Balanced headings with tight tracking
- Inline code chips using monospace font tokens
"Good defaults should never leak outside the elements you opt in."
Small captionMuted helper copy
Usage
import {
blockquote,
h1,
h2,
h3,
h4,
inlineCode,
large,
lead,
list,
muted,
p,
small,
} from "coatx/typography";
export const Article = () => (
<article>
<h1 {...h1()}>Zero-reset typography</h1>
<p {...lead()}>Opt in element by element without global CSS resets.</p>
<p {...p()}>
Spread <code {...inlineCode()}>coatx/typography</code> recipes onto any
heading, paragraph, blockquote, or list.
</p>
</article>
);
Exports (coatx/typography)
| Export | Description |
|---|---|
h1, h2, h3, h4 |
Balanced heading scale (<h1>–<h4>) |
p, lead, large, small, muted |
Body, lead, callout, caption, and muted text recipes |
blockquote |
Bordered italic quotation |
inlineCode |
Monospace inline code chip |
list |
Bulleted prose list |
typographyStyles |
Compiled StyleX style map |