Skip to content

[v4] Can't remove max-width on container utility #15091

@sntran

Description

@sntran

What version of Tailwind CSS are you using?

v4.0.0-beta.1

What build tool (or framework if it abstracts the build tool) are you using?

@tailwindcss/[email protected]

What version of Node.js are you using?

v20

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

https://play.tailwindcss.com/2Gw5xBur52?file=css

Describe your issue

I have custom container utility that uses grid instead of max width and margin so I can break out of it when I need to.

Unfortunately, after upgrading to beta.1 from alpha.29, there are now generated rules for .container with max-width set on different breakpoints. Even setting max-w-none in my utility does not remove it, and I don't want to do md:max-w-none lg:max-w-none ... to override all the breakpoints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions