tailwindlabs / tailwindcss

A utility-first CSS framework for rapid UI development.
https://tailwindcss.com/
MIT License
81.77k stars 4.11k forks source link

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

Open devcaeg opened 6 months ago

devcaeg commented 6 months ago

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.

dhalucario commented 6 months ago

I am using SvelteKit and I can comfirm this.

gaetansenn commented 5 months ago

Using Vite with nuxt with same problem

francoismassart commented 5 months ago

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

devcaeg commented 2 months ago

@adamwathan

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

Matheun commented 1 month ago

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

terciodejesus commented 1 week ago

up