tailwindcss
tailwindcss copied to clipboard
[v4] Styles are not applied to the "container" class
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.
I am using SvelteKit and I can comfirm this.
Using Vite with nuxt with same problem
I guess it is not implemented yet, I don't see it in the packages/tailwindcss/src/utilities.ts.
@adamwathan
Has any decision been made regarding adding this class? I think it is a very useful and widely used class.
What could we use to replace the container while you guys figure out how to tackle the inclusion of the container?
up