Packages

@tailwindcss/typography

0.5.20 · 8 Jun 2026MIT26.7M / weekRepositoryHomepagenpmAtom feed

Your version

0.5.0

9 Dec 2021Where it was published

0.5.20 is the newest release of 0.5.x.

In short

5 new1 changed

Release note

This release of @tailwindcss/typography is an exciting one, and finally includes easy support for dark mode, the ability to escape prose styles, and a brand new HTML-based customization API that is a lot more fun to work with than the configuration based API we've offered in the past.

To upgrade, make sure you are on the latest version of Tailwind CSS, then install @tailwindcss/typography@latest:

npm install -D @tailwindcss/typography@latest

This version is designed for Tailwind CSS v3.0+, and is not compatible with earlier versions.


Added

  • Added prose-invert for easy dark mode support

  • Added gray scale modifiers like prose-slate and prose-stone to make it easy to match your typography to your site's gray scale

  • Added new element modifiers API like prose-a:text-blue-500 for easily customizing individual elements directly in your HTML

  • Added not-prose class for preventing prose styles from affecting a section of HTML

  • Updated selectors to use :where to reduce specificity, making it possible to override prose children with utilities

Changes

  • Switch from ::before pseudo-elements to using the native ::marker pseudo-element for styling list bullets and counters

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.