Navigate:
All Repostailwindcss-typography
~$TAILWI0.1%

Tailwind CSS Typography: Typographic defaults plugin

Cascading typographic styles for unstyled HTML containers.

LIVE RANKINGS • 06:50 AM • STEADY
OVERALL
#189
31
FRONTEND
#17
6
30 DAY RANKING TREND
ovr#189
·Front#17
STARS
6.1K
FORKS
311
DOWNLOADS
2.3K
7D STARS
+5
7D FORKS
+1
See Repo:
Share:

Learn more about tailwindcss-typography

Tailwind CSS Typography is a plugin that provides carefully crafted typographic defaults for rendering unstyled HTML content through composing utility classes. It works by applying a comprehensive set of CSS rules to descendant elements within a container, automatically styling headings, paragraphs, lists, links, code blocks, and other semantic HTML elements without requiring individual class assignments. The plugin includes responsive modifiers and color scheme variants that allow the typography styles to adapt to different viewport sizes and design contexts. Typography rules are implemented as a prose class that cascades styling down through the DOM tree, with additional modifier classes available to adjust font sizes, colors, and spacing proportions. This approach bridges the gap between utility-first styling and content-rich areas where manually styling every element would be impractical.

tailwindcss-typography

1

Multi-scale typography system

Includes five predefined size modifiers (prose-sm through prose-2xl) that adjust font sizes, line heights, spacing, and related properties as a coordinated set. Each size scale is hand-tuned to maintain proper proportions across all typographic elements.

2

Gray scale variants

Provides modifier classes for five different gray palettes (slate, zinc, neutral, stone, and default gray) allowing typography styling to match project color schemes without additional configuration.

3

Responsive modifier support

Works with Tailwind's breakpoint system, allowing typography size and styling to change at different viewport widths using standard responsive prefixes like md: and lg:.


<article className="prose lg:prose-xl">
  <h1>Understanding Machine Learning</h1>
  <p>Machine learning is a subset of artificial intelligence...</p>
  <ul>
    <li>Supervised learning</li>
    <li>Unsupervised learning</li>
    <li>Reinforcement learning</li>
  </ul>
  <pre><code>model.fit(X_train, y_train)</code></pre>
</article>

vv0.5.19

Fixes broken color styles in typography plugin; no breaking changes or new requirements.

  • Upgrade to resolve incorrect color rendering in prose elements.
  • Release notes do not specify which colors or components were affected.
vv0.5.18

Patches an undefined variable error that could break builds; no breaking changes or new requirements.

  • Apply this patch to resolve a runtime undefined variable error introduced in a prior release.
  • Release notes do not specify which variable or usage scenario triggered the error.
vv0.5.17

Maintenance release adds description list and picture modifiers, fixes Tailwind v4 compatibility for kbd styles, and removes lodash.

  • Use new prose-picture and description list modifiers (prose-dt, prose-dd) to style those elements directly.
  • Verify <kbd> rendering if upgrading to Tailwind CSS v4; hr border-width now includes explicit unit.

See how people are using tailwindcss-typography

Loading tweets...


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers