tailwindcss-typography-v4-vite-plugin

Register @tailwindcss/typography via the @plugin CSS directive in Tailwind CSS v4 Vite projects.

2|Updated May 10, 2026
One-click install
npx skills add https://github.com/freedomw1987/tree_monstor --skill tailwindcss-typography-v4-vite-plugin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwindcss-typography-v4-vite-plugin
Source: https://github.com/freedomw1987/tree_monstor/tree/main/skills/tailwindcss-typography-v4-vite-plugin
Command: npx skills add https://github.com/freedomw1987/tree_monstor --skill tailwindcss-typography-v4-vite-plugin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When using Tailwind CSS v4 with Vite, the @tailwindcss/typography plugin styles fail to apply even when the plugin is listed in tailwind.config.js, breaking prose styling for rich text content like blog posts or documentation.

Core Features & Use Cases

  • Resolves the Tailwind v4 plugin registration mismatch that prevents typography styles from loading
  • Provides the correct CSS-based @plugin directive setup aligned with Tailwind v4's new configuration system
  • Includes a simple verification step to confirm prose styles are successfully bundled in the final CSS output
  • Use Case: For example, if you are building a content-heavy site with Tailwind v4 and Vite, and your prose class is not styling markdown content as expected, this skill fixes the root configuration issue.

Quick Start

Use this skill to fix missing @tailwindcss/typography styles in your Tailwind CSS v4 + Vite project by adding the correct @plugin directive to your main CSS file.

Frequently Asked Questions about tailwindcss-typography-v4-vite-plugin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why is my Tailwind CSS typography plugin not working in Vite?

Tailwind CSS v4 typography styles fail in Vite because plugins listed in tailwind.config.js do not load; you must register the typography plugin using the new @plugin CSS directive in your main CSS file.

How do I configure the typography plugin for Tailwind CSS v4?

To configure the typography plugin for Tailwind CSS v4, add the @plugin directive referencing @tailwindcss/typography directly inside your main CSS file instead of using the v3-style tailwind.config.js plugins array.

Does Tailwind v4 still use tailwind.config.js for registering plugins?

Tailwind v4 shifts plugin registration away from tailwind.config.js toward CSS-based configuration, requiring directives like @plugin to load extensions such as @tailwindcss/typography for Vite projects.

How do I verify prose styles are bundled in my Vite CSS output?

Verify prose styles are bundled in your Vite CSS output by inspecting the compiled CSS file to confirm the typography plugin styles for the prose class are successfully present after applying the @plugin directive.

Tailwind v4 prose class not styling markdown content, what is wrong?

The prose class fails to style markdown content when the typography plugin is misconfigured using v3 conventions; fixing this requires migrating to the Tailwind v4 @plugin CSS directive to restore rich text styling.

Can I use the @tailwindcss/typography plugin with Tailwind v4 and Vite?

Yes, you can use the @tailwindcss/typography plugin with Tailwind v4 and Vite by registering it via the @plugin CSS directive, which resolves the plugin loading mismatch and restores prose styling for content-heavy sites.