←back to thread

Tailwind CSS v4.0 Beta 1

(tailwindcss.com)
159 points creativedg | 2 comments | | HN request time: 1.245s | source
1. sam_goody ◴[] No.42211877[source]
Looks good.

I am glad that they support container-queries[1].

But all the real goodness is in contain[2] (which sounds the same but is not related).

Tailwind really needs to support contain. I am disappointed by their statement that there will be no major additions, because contain is really that important - both from a dev perspective, and from a performance perspective. It belongs in v4 from the start.

[1]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_contain... [2]: https://developer.mozilla.org/en-US/docs/Web/CSS/contain

replies(1): >>42212575 #
2. hanneskt ◴[] No.42212575[source]
Looks like the contain utility has been added here [1] and is also available in v4.

[1]: https://github.com/tailwindlabs/tailwindcss/pull/12993