Skip to main content

Typography

For long-form content like articles or documentation, use our typography styles to ensure consistent formatting. These styles extend the default @tailwindcss/typography plugin.

Installation

In order to use the typography styles, you need to install the official Tailwind CSS Typography plugin and create a custom typography styles file as shows below:

1. Install the typography plugin

Simply install the official Tailwind CSS Typography plugin with your favorite package manager:

2. Create custom typography styles

Now, create a typography.css file and add the following code:
typography.css

3. Import the typography styles

Now, in your globals.css file, import the typography.css file:
globals.css

4. Use the typography styles

And finally, add the prose class to your content: