← all articles
// article

Tailwind CSS 4 — what changed since v3

2025-07-23

What exactly changed with Tailwind CSS 4?

Tailwind CSS 4, while still in its early alpha stages, represents a significant architectural shift from version 3. The most impactful changes include a complete rewrite of its core engine in Rust, leveraging Lightning CSS for compilation; a move towards a simpler, often 'zero-config' approach by deprecating the traditional tailwind.config.js for many use cases; and a brand-new plugin API designed for greater extensibility and maintainability. In short: faster builds, less boilerplate, and a more robust foundation.

Why did Tailwind CSS need a rewrite?

The previous versions of Tailwind CSS, while incredibly popular and effective, relied heavily on PostCSS and a JavaScript-based engine. This architecture, while flexible, started showing its age as projects scaled and modern CSS features evolved. The primary drivers for the v4 rewrite were:

The Lightning CSS Integration: Speed, Seriously.

This is arguably the headline feature of Tailwind CSS 4. The switch from a PostCSS-based compilation pipeline to one powered by Lightning CSS (written in Rust) is a game-changer. Lightning CSS is an incredibly fast CSS parser, transformer, minifier, and bundler. What does this mean in practice?

The tailwind.config.js Exodus: Simpler Configuration?

In Tailwind CSS v3, the tailwind.config.js file was central to customizing everything from colors and spacing to plugins and variants. In v4, while it still exists, the ambition is to make it optional for many common scenarios. The new approach prioritizes:

For existing v3 users, this shift might feel a bit disorienting initially, as muscle memory often involves tweaking that JavaScript config. However, the long-term benefit is a simpler, more direct approach to styling.

A New Plugin API: Extensibility Reimagined.

The previous plugin API in Tailwind CSS v3, while functional, could be quite verbose and often required a decent understanding of PostCSS to build anything complex. Tailwind CSS 4 introduces a new, streamlined plugin API that aims to be more intuitive and powerful.

This reimagined API could foster a new wave of innovative plugins, allowing developers to extend Tailwind with custom components or design systems more effectively. At SISL, we often build bespoke design systems for our clients, and a more approachable plugin API could significantly streamline that process.

Tree-Shaking, Defaulting to Efficiency.

While Tailwind CSS v3 had mechanisms for purging unused CSS (like PurgeCSS), v4 takes this to the next level by baking in more aggressive and efficient tree-shaking by default. This means:

What does this mean for existing Tailwind CSS v3 projects?

For projects currently running on Tailwind CSS v3, the decision to upgrade to v4 isn't a simple flip of a switch. Given the architectural changes, a direct, seamless upgrade path might not exist for complex configurations. Consider:

As a boutique studio, SISL often helps clients navigate such migrations. We'd meticulously evaluate the long-term benefits against the immediate development cost before recommending a large-scale refactor for a mature v3 project. Sometimes, stability trumps being on the bleeding edge.

Should new projects start with Tailwind CSS 4?

Absolutely. If you're embarking on a fresh project today, starting with Tailwind CSS 4 (even in its alpha state, understanding that things might still shift slightly before a stable release) offers significant advantages:

For new ventures, every minute of development time saved and every millisecond shaved off load times can have a tangible impact on budget and user acquisition. Companies like Stripe or PostHog, known for their focus on developer experience and performance, would undoubtedly appreciate the efficiency gains offered by tools like Tailwind CSS 4.

The Broader Impact: Developer Experience and Business Value.

While often discussed in technical terms, the advancements in Tailwind CSS 4 have clear business implications for SME owners, freelancers, and startup founders:

For SME owners, these subtle performance gains translate directly into better user retention and lower operational costs – a win we often highlight for our clients. If you're pondering a fresh build or a refactor, don't hesitate to get in touch. We're always keen to discuss how cutting-edge tools like Tailwind CSS 4 can propel your digital presence forward.

Got a similar problem?

Boutique web development studio from Poland — sites, WooCommerce / Magento stores, custom web apps and landings. See what we shipped.

See SISL portfolio →

Free technical audit of your site — in 24h

Core Web Vitals measured on real users, indexability, structured data, meta and internal linking. A written report with prioritised fixes, not a PDF from a generic tool. No cost, no call required.

Get the free audit →