@tailwindcss/typography
0.5.20 · 8 Jun 2026MIT26.7M / weekRepositoryHomepagenpmAtom feed
31 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 0.5.x · latest line
0.5.20
8 Jun 2026Support installing with stable versions of Tailwind CSS v4
0.5.19
24 Sep 2025Fixed broken color styles
0.5.18
19 Sep 2025Fixed undefined variable error
0.5.17
19 Sep 2025Add modifiers for description list elements
Add
prose-picturemodifierInclude unit in
hrborder-width value
Added
Add modifiers for description list elements
Add
prose-picturemodifier
Fixed
Include unit in
hrborder-width valueEnsure
<kbd>styles work with Tailwind CSS v4
Changed
Remove lodash dependencies
0.5.16
7 Jan 2025Support installing with beta versions of Tailwind CSS v4
0.5.15
28 Aug 2024Support installing with alpha versions of Tailwind CSS v4
0.5.14
7 Aug 2024Fix table text alignment
0.5.13
26 Apr 2024Don't apply margins to
<br>elements contained in an<li>in FF
0.5.12
27 Mar 2024Use logical properties for better RTL support
0.5.11
26 Mar 2024Add
prose-kbdmodifierFix space between
<figcaption>and<video>
0.5.10
5 Sep 2023Fix space between
<figcaption>and<pre>Remove typography styles from
not-proseelements in addition to their childrenAdd
<picture>styles
Fixed
Fix space between
<figcaption>and<pre>Remove typography styles from
not-proseelements in addition to their childrenAdd
<picture>stylesFix
prose-invertwhen used with colors in light modeAdd
<kbd>stylesAdd description list (
<dl>,<dt>,<dd>) styles
0.5.9
10 Jan 2023Ensure
pstyles are inserted before.leadstyles
0.5.8
7 Nov 2022Fix selector when using a non-default class (e.g.
prose-sm)
0.5.7
2 Sep 2022Update TypeScript types
0.5.6
1 Sep 2022Actually publish types
0.5.5
1 Sep 2022Add typescript types
0.5.4
12 Jul 2022Update
strongandcodecolor styles to inherit from parent
0.5.3
7 Jul 2022Add styles for
tfootelementsAdd
prose-h5andprose-h6variantsFix prose elements
legacymode
Added
Add styles for
tfootelementsAdd
prose-h5andprose-h6variants
Fixed
Fix prose elements
legacymodeAllow
leadclass to override element stylesFix generation of
prose-headingsvariantFix
figurespacingFix child combinator
:whereselectorsFix
prose-headingsvariant to includeh5andh6elements
0.5.2
14 Feb 2022Ensure nested selectors using
&:hoverwork
0.5.1
28 Jan 2022- Breaking
Remove
distfolder and related dependencies Don't generate invalid CSS when given an array of property values
0.5.0
9 Dec 2021Added
prose-invertfor easy dark mode supportAdded gray scale modifiers like
prose-slateandprose-stoneto make it easy to match your typography to your site's gray scaleAdded new element modifiers API like
prose-a:text-blue-500for easily customizing individual elements directly in your HTML
This release of
@tailwindcss/typographyis 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-invertfor easy dark mode supportAdded gray scale modifiers like
prose-slateandprose-stoneto make it easy to match your typography to your site's gray scaleAdded new element modifiers API like
prose-a:text-blue-500for easily customizing individual elements directly in your HTMLAdded
not-proseclass for preventing prose styles from affecting a section of HTMLUpdated selectors to use
:whereto reduce specificity, making it possible to override prose children with utilities
Changes
Switch from
::beforepseudo-elements to using the native::markerpseudo-element for styling list bullets and counters
- 0.4.x
0.4.1
24 May 2021Fix list-style modifier selectors
0.4.0
15 Jan 2021Colors without
600variant, breaks everythingFix empty line in firefox for
pre codetagsAdd support for the
startandreversedattribute onolelements
- 0.3.x
0.3.1
18 Nov 20200.3.0
18 Nov 2020Use
extendfor any overrides, assigning directly totheme.typographynow completely overrides default configurationConsistently use
::beforeinstead of:before
This release drops support for Tailwind CSS v1.0.
Some of the changes needed to support Tailwind CSS v2.0 necessitate dropping support for v1.0. You should stay on v0.2.0 until you can upgrade your projects to Tailwind CSS v2.0.
Read the Tailwind CSS v2.0 upgrade guide for information on upgrading your projects.
Changed
Add support for Tailwind CSS v2.0 and drops support for v1.0 (#79, #82, #87)
Use
extendfor any overrides, assigning directly totheme.typographynow completely overrides default configurationConsistently use
::beforeinstead of:beforeRead color values from the user's theme instead of only the default theme
Added
Add new
classNameoption for overridingproseclassAdd color modifiers by default like
prose-bluefor setting link styles
Upgrading from v0.2.0 to v0.3.0
This version of the plugin is designed for Tailwind CSS v2.0. Make sure you upgrade Tailwind before upgrading this plugin.
Customizations should be moved under extend, default should become DEFAULT
The biggest difference is that any customizations you had under
theme.typographyshould be moved totheme.extend.typography, and thedefaultkey should be uppercased toDEFAULT:module.exports = { theme: { - typography: { - default: { - css: { - color: theme("colors.gray.700"), - '[class~="lead"]': { - color: theme("colors.gray.600"), - }, - a: { - color: theme("colors.indigo.600"), - fontWeight: 600, - textDecoration: "none", - }, - }, - }, - }, + extend: { + typography: { + DEFAULT: { + css: { + color: theme("colors.gray.700"), + '[class~="lead"]': { + color: theme("colors.gray.600"), + }, + a: { + color: theme("colors.indigo.600"), + fontWeight: 600, + textDecoration: "none", + }, + }, + }, + }, + }, }, };Any customizations directly under
theme.typographywill now completely replace the defaults, which is consistent with how theme modification generally works in Tailwind.Colors are read from theme by default
In previous versions, all of the colors used by this plugin were read from Tailwind's default theme rather than from your theme. The plugin now looks for colors in your theme first, falling back to the defaults if they don't exist. So if the plugin is looking for
gray.700for the main body color, it will use your definedgray.700if present, or fall back to the default one.If your colors are totally custom and the numbers don't line up with Tailwind's defaults from a contrast perspective, you probably won't get good results out of the box. In this case you should manually override the colors like you were likely already doing using the existing customization API.
- 0.2.x
0.2.0
15 Jul 2020Switches how variants are generated to use the new component variants API in Tailwind 1.5, dropping support for Tailwind < 1.5
- 0.1.x
0.1.4
15 Jul 2020Fixes an issue where the
leadclass was not being applied correctly when used in conjunction with responsive variants
0.1.3
14 Jul 2020Fixes an issue where the configured monospace font family was not used by default for
preandcodeblocks
0.1.2
13 Jul 2020Fixes an issue in our internal rounding logic that would round values like
20to2👀
0.1.1
13 Jul 2020Fixes an issue where the plugin was totally broken and didn't work at all because I deleted some code without even testing my changes 🧠
0.1.0
13 Jul 2020Everything!
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.