RReleaseNoteKit

← All examples

Tailwind CSS
tailwindlabs/tailwindcss · v4.0.0…v4.1.0 · 187 commits
Demo

Container queries everywhere, 28% faster JIT

v4.1 lands native container queries on every utility, cuts JIT cold-start time by 28%, and halves the breaking-diff surface for upgrades.

Preview

Container queries everywhere, 28% faster JIT

_2026-05-20_

v4.1 lands native container queries on every utility, cuts JIT cold-start time by 28%, and halves the breaking-diff surface for upgrades.

New features

  • container: @container works with every variant, not just flex / grid (#13420)
  • field-sizing-content utility for auto-growing textareas (#13501)
  • text-balance and text-pretty as first-class utilities (#13478)
  • Theme function resolves inside @import URLs (#13522)

Performance

  • 28% faster JIT cold start on a typical 12k-line stylesheet (#13455)
  • 6× faster class-detection regex on large React projects

Bug fixes

  • dark: variant no longer loses precedence in nested @layer blocks
  • Sourcemap line offsets correct when @apply spans multiple utilities
  • No crash when PostCSS plugins inject empty rules
  • Arbitrary values with parentheses now parse correctly (bg-(--my-color))

Behind the scenes

12 dependency updates, 8 internal refactors, and 23 docs improvements.

Markdown

# Container queries everywhere, 28% faster JIT

_2026-05-20_

v4.1 lands native container queries on every utility, cuts JIT cold-start time by 28%, and halves the breaking-diff surface for upgrades.

## New features
- **container:** `@container` works with every variant, not just `flex` / `grid` ([#13420](https://github.com/tailwindlabs/tailwindcss/pull/13420))
- `field-sizing-content` utility for auto-growing textareas ([#13501](https://github.com/tailwindlabs/tailwindcss/pull/13501))
- `text-balance` and `text-pretty` as first-class utilities ([#13478](https://github.com/tailwindlabs/tailwindcss/pull/13478))
- Theme function resolves inside `@import` URLs ([#13522](https://github.com/tailwindlabs/tailwindcss/pull/13522))

## Performance
- 28% faster JIT cold start on a typical 12k-line stylesheet ([#13455](https://github.com/tailwindlabs/tailwindcss/pull/13455))
- 6× faster class-detection regex on large React projects

## Bug fixes
- `dark:` variant no longer loses precedence in nested `@layer` blocks
- Sourcemap line offsets correct when `@apply` spans multiple utilities
- No crash when PostCSS plugins inject empty rules
- Arbitrary values with parentheses now parse correctly (`bg-(--my-color)`)

## Behind the scenes

12 dependency updates, 8 internal refactors, and 23 docs improvements.

Tweet / X thread

🚀 Tailwind CSS 4.1.0 is out.

v4.1 lands native container queries on every utility, cuts JIT cold-start time by 28%, and halves the breaking-diff surface for upgrades.

---

New features:
• @container works with every variant, not just flex / grid
• field-sizing-content for auto-growing textareas
• text-balance and text-pretty as first-class utilities

---

Performance:
• 28% faster JIT cold start
• 6× faster class-detection regex on large React projects

---

Full changelog → https://releasenotekit.toolu.dev/examples/tailwindcss

Email digest

Want this on your own repo?

Free preview, $19 once to publish. No subscription.