In tailwind 4 you only need to do the following. Install the plugin

npm install -D @tailwindcss/typography

enable it in global.css (assuming you are using default next configuration withapp router):

@import "tailwindcss";
@plugin '@tailwindcss/typography';

Github issue dicussing this

Answer from Iaroslav Sobolev on Stack Overflow
🌐
GitHub
github.com › tailwindlabs › tailwindcss-typography
GitHub - tailwindlabs/tailwindcss-typography: Beautiful typographic defaults for HTML you don't control. · GitHub
The official Tailwind CSS Typography plugin provides a set of prose classes you can use to add beautiful typographic defaults to any vanilla HTML you don’t control, like HTML rendered from Markdown, or pulled from a CMS.
Starred by 6.3K users
Forked by 316 users
Languages   JavaScript
🌐
Tailwind CSS
v1.tailwindcss.com › docs › typography-plugin
@tailwindcss/typography - Tailwind CSS
A first-party plugin for providing beautiful typographic defaults. The @tailwindcss/typography plugin adds a set of customizable prose classes that you can use to add beautiful typographic defaults to any vanilla HTML, like the output you'd ...
🌐
Tailwind CSS
tailwindcss.com › blog › tailwindcss-typography
Introducing Tailwind CSS Typography - Tailwind CSS
Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS. That's why today we're excited to release @tailwindcss/typography — a plugin that lets you easily style vanilla HTML content with beautiful typographic defaults.
Top answer
1 of 2
12

In tailwind 4 you only need to do the following. Install the plugin

npm install -D @tailwindcss/typography

enable it in global.css (assuming you are using default next configuration withapp router):

@import "tailwindcss";
@plugin '@tailwindcss/typography';

Github issue dicussing this

2 of 2
4

Update (configure without tailwind.config.js)

I just based it on an answer written by someone else. I quickly put together a v4 reproduction in the Play environment without a config file by new @utility directive:

  • Tailwind Play Reproduction
@import "tailwindcss";
@plugin "@tailwindcss/typography";

@utility prose-pink {
  @apply prose;
  & > * {
    --tw-prose-body: var(--color-pink-800);
    --tw-prose-headings: var(--color-pink-900);
  }
}

With this, I produce exactly the same result that the documentation recommends using a config file for:

  • Adding custom color theme for Typography

Plugin

Starting from TailwindCSS v4, a CSS-first configuration approach is preferred. Therefore, all plugins should be integrated with TailwindCSS using the @plugin directive. Following the Typography documentation:

  • New CSS-first configuration option in v4 - StackOverflow
  • @plugin directive - TailwindCSS v4 Docs
  • Typography Installation - GitHub Readme
npm install -D @tailwindcss/typography
@import "tailwindcss";
@plugin "@tailwindcss/typography";

Configuration

In CSS-first mode, you have the option to change the default prose class name when declaring the plugin:

@import "tailwindcss";
@plugin "@tailwindcss/typography" {
  className: wysiwyg; /* changed from prose to wysiwyg */
}

In TailwindCSS v3, however, the legacy JavaScript-based configuration (tailwind.config.js) allowed for custom configuration as well.

You can still do this using the @config directive.

  • @config directive - TailwindCSS v4 Docs
  • Adding custom color themes to Typography - GitHub Readme
  • Customizing the CSS to Typography - GitHub Readme
@import "tailwindcss";
@plugin "@tailwindcss/typography";
@config "./relative/path/to/tailwind.config.js";
/** @type {import('tailwindcss').Config} */
module.exports = {
  theme: {
    extend: {
      typography: () => ({
        // ...
      }),
    },
  },
}

Contrary to the documentation, by completely omitting the JavaScript-based configuration, you still have the option to customize the prose utility like this:

  • Typography upgrade to TailwindCSS v4 - @ErwannRousseau's code snippet - GitHub
@import "tailwindcss";
@plugin "@tailwindcss/typography";

@utility prose {
  --tw-prose-body: var(--color-primary);
  --tw-prose-headings: var(--color-primary);
  --tw-prose-bold: var(--color-primary);
  --tw-prose-quote-borders: var(--color-slate-300);
  --tw-prose-quotes: var(--color-muted-foreground);
  --tw-prose-code: var(--color-primary);

  code {
    &::before,
    &::after {
      display: none;
    }
    text-wrap: nowrap;
  }

  blockquote {
    font-weight: 400;
  }
}
🌐
Flowbite
flowbite.com › docs › components › typography
Tailwind CSS Typography - Flowbite
Get started with the Flowbite Typography plugin forked from the official Tailwind CSS Typography plugin to set a custom format class to a wrapper element to apply styles to all inline child elements such as headings, paragraphs, images, lists, ...
🌐
LogRocket
blog.logrocket.com › home › how to use the tailwind typography plugin
How to use the Tailwind Typography plugin - LogRocket Blog
May 8, 2025 - It applies a well-balanced set of typographic defaults to the child elements of any container it’s applied to, therefore automatically styling elements like paragraphs, headings, lists, blockquotes, and tables to look polished and readable right out of the box. Think of the plugin as a pre-defined style for content you don’t directly control, such as blog posts, documentation pages, or Markdown-rendered content, without sacrificing Tailwind’s core utility-first styling approach or disabling its base styles.
Find elsewhere
🌐
Tailwind CSS
tailwindcss.com › blog › tailwindcss-typography-v0-5
Effortless Typography, Even in Dark Mode - Tailwind CSS
Today we're announcing the next version of the Tailwind CSS Typography plugin, which brings easy dark mode support, a brand new customization API, and the not-prose class I wasn't sure we'd ever figure out how to support.
🌐
npm
npmjs.com › package › @tailwindcss › typography › v › 0.0.0-insiders.0339c42
@tailwindcss/typography - npm
August 30, 2023 - A plugin that provides a set of prose classes you can use to add beautiful typographic defaults to any vanilla HTML you don't control, like HTML rendered from Markdown, or pulled from a CMS.
      » npm install @tailwindcss/typography
    
Published   Sep 24, 2025
Version   0.0.0-insiders.0339c42
🌐
DEV Community
dev.to › gridou › announcing-tw-prose-a-css-only-typography-plugin-for-tailwind-css-v4-o8j
Announcing `tw-prose`: A CSS-Only Typography Plugin for Tailwind CSS v4 - DEV Community
September 11, 2025 - I'am excited to introduce tw-prose — a CSS-only implementation of the Tailwind Typography plugin built specifically for Tailwind CSS v4.
🌐
Tailwind CSS
v3.tailwindcss.com › docs › plugins
Plugins - Tailwind CSS
The @tailwindcss/typography plugin adds a set of prose classes that can be used to quickly add sensible typographic styles to content blocks that come from sources like markdown or a CMS database.
🌐
Benjamin Crozat
benjamincrozat.com › home › blog › how to use the tailwind css typography plugin
Tailwind CSS typography plugin: a step-by-step build guide
April 26, 2023 - Install @tailwindcss/typography and use prose classes to style Markdown, CMS content, and long-form text.
🌐
Tailwindresources
tailwindresources.com › theme › tailwindlabs-tailwindcss-typography
Tailwindcss Typography | Tailwind Resources
The official Tailwind CSS Typography plugin offers prose classes for adding beautiful typographic defaults to HTML content. This plugin enhances the typography of HTML elements generated from Markdown or CMS outputs.
🌐
SW Habitation
swhabitation.com › blogs › tailwind-css-typography-plugin-nextjs
How to use the TailwindCSS Typography Plugin with Next.js?
January 24, 2025 - Tailwind typography is the plugin that helps to make your text look great with minimal efforts.
🌐
Bundle, LLC
bundleapps.io › blog › how-to-use-the-tailwindcss-typography-plugin
How to Use the TailwindCSS Typography Plugin
August 13, 2021 - The team at TailwindLabs have identified this pain point and created an easy-to-use plugin that extracts text styles into a design system through the Tailwind Typography plugin.
🌐
Tailkits
tailkits.com › blog
Tailwind Typography Plugin Guide | Tailkits
October 12, 2025 - ... Blog posts, docs, and CMS pages ship a lot of raw HTML: headings, lists, tables, code blocks, images. The Typography plugin adds opinionated styles to that content via a single prose class, so your long-form text looks great without ...
🌐
DeepWiki
deepwiki.com › tailwindlabs › tailwindcss-typography › 2-installation-and-basic-usage
Installation and Basic Usage | tailwindlabs/tailwindcss-typography | DeepWiki
April 20, 2025 - The typography plugin provides a set of prose classes that add beautiful typographic defaults to any vanilla HTML you don't control, such as content from a CMS or rendered from Markdown.
🌐
Accreditly
accreditly.io › articles › when-to-use-tailwind-typography-and-prose-functionality
When to use Tailwind Typography and prose functionality - Accreditly
May 8, 2023 - The Tailwind Typography plugin is an extension for Tailwind CSS designed to make styling text content a breeze. It provides a set of pre-configured styles that work well together, ensuring a clean and visually appealing typography for your web ...
🌐
GitHub
github.com › tailwindlabs › tailwindcss › discussions › 15305
Any plans to revamp tailwindcss-typography in 4.0 or beyond? · tailwindlabs/tailwindcss · Discussion #15305
December 4, 2024 - See the readme: https://github.com/tailwindlabs/tailwindcss-typography?tab=readme-ov-file#adding-custom-color-themes · Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... Hello. I'd just like to bump this. We too use Typography Plugin on StoryMate and the overhaul being described by @adamwathan sounds like just what we need :)
Author   tailwindlabs