tailwindcss icon indicating copy to clipboard operation
tailwindcss copied to clipboard

[v4] Styles are not applied to the "container" class

Open devcaeg opened this issue 11 months ago • 7 comments

What version of Tailwind CSS are you using? v.next

What build tool (or framework if it abstracts the build tool) are you using? vite (v5.1.5), @builder.io/qwik (v1.5.1), @builder.io/qwik-city (v1.5.1), @tailwindcss/vite (v.next)

What version of Node.js are you using? v20.9.0

What browser are you using? Chrome, Safari, Edge

What operating system are you using? macOS

Reproduction URL https://codesandbox.io/p/devbox/peaceful-hertz-jx9sd2?file=%2Fsrc%2Froutes%2Findex.tsx

Describe your issue

In TailwindCSS version 4, it seems that the styles of the "container" class are not loaded. In previous versions the "container" class works correctly.

devcaeg avatar Mar 07 '24 15:03 devcaeg

I am using SvelteKit and I can comfirm this.

dhalucario avatar Mar 10 '24 14:03 dhalucario

Using Vite with nuxt with same problem

gaetansenn avatar Mar 13 '24 12:03 gaetansenn

I guess it is not implemented yet, I don't see it in the packages/tailwindcss/src/utilities.ts.

francoismassart avatar Mar 26 '24 20:03 francoismassart

@adamwathan

Has any decision been made regarding adding this class? I think it is a very useful and widely used class.

devcaeg avatar Jun 16 '24 07:06 devcaeg

What could we use to replace the container while you guys figure out how to tackle the inclusion of the container?

Matheun avatar Jul 17 '24 14:07 Matheun

up

terciodejesus avatar Sep 01 '24 13:09 terciodejesus