TailwindCSS: Native CSS Nesting Lands

Tailwind now handles CSS nesting itself in a single pass over the syntax tree, instead of leaning on Lightning CSS for it, which improves performance and consistency in environments like the browser build and Tailwind Play where Lightning CSS isn't used. The change, from pull request 20124, is internal and shouldn't break existing output, though some selector output may shift slightly.

Duration: PT2M29S

Episode overview

This episode is a short developer briefing from TailwindCSS.

It explains recent repository work in plain language.

  • Show: TailwindCSS
  • Published: 2026-07-08T13:06:27Z
  • Audio duration: PT2M29S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good morning. It's July 8th, 2026, and today's briefing centers on one substantial change to how Tailwind processes CSS under the hood.

The headline: Tailwind is no longer fully dependent on Lightning CSS to flatten nested rules. Robin Malfait's pull request 20124 introduces native handling of CSS nesting, resolving selectors like an ampersand reference into proper "is" wrapped parent selectors, merging adjacent rules and at-rules with matching…

Why this matters: Lightning CSS isn't always in the picture. During development, minification typically isn't running, and in places like the browser package or Tailwind Play, Lightning CSS is hard to use at all. Previously, that meant nesting wasn't resolved consistently everywhere. Now it happens by default,…

There's also a performance story here. Testing against the tailwindcss dot com codebase, a large real-world stylesheet, showed the new hand-written single-pass approach processing in about ten milliseconds, compared to over one hundred thirty milliseconds for the step-by-step reference implementation used to verify…

One maintainability win worth flagging: this also let the team simplify the existing AST optimizer, which was mutating…

The…

Nearby episodes from TailwindCSS

  1. PostCSS Cache Fix Closes Stale Build Gap
  2. Weekly Recap - Correctness Fixes and CLI Watch Mode Returns
  3. Attribute Selector Parsing Fixed
  4. Quiet Edge Cases in Variants and Modifiers
  5. Weekly Recap - Source Handling & Developer Experience
  6. Minor Documentation Cleanup
  7. Type Safety and Grid Utilities Update
  8. Developer Experience Improvements