Replies: 6 comments 6 replies
-
|
I agree we need support to disable these through configuration. In the mean time, for the @utility container {
@media (min-width: theme(--breakpoint-sm)) {
max-width: none;
}
} |
Beta Was this translation helpful? Give feedback.
-
|
This is quite a subtly hostile change from v3. It was previously possible to configure core plugins in an opt-in fashion to reduce clashes with other CSS and have tighter control over the output. The "all or nothing" approach is sad to see. |
Beta Was this translation helpful? Give feedback.
-
|
One of the biggest issues I am facing, due to the inability to disable built-in/core utilities, is that I cannot stop the dynamically generated border width utils like border-1, border-t-2 in favour for our design system border width sizing of border-thin, border-t-thick etc. There are several other utils where we want to replace the default ones with tshirt sizes etc. |
Beta Was this translation helpful? Give feedback.
-
|
Looks like Tailwind 4.1 introduces the ability to disable utilities using |
Beta Was this translation helpful? Give feedback.
-
|
I’m really frustrated with this change. I relied on disabling the container core plugin to customize things my way, and now in v4 that option is gone. What’s the workaround here? I tried everything in this convo and they all got drawbacks, this feels like a major setback for those of us who need that flexibility. I might just update the name to something like "container-custom" and update it around in my app, which piss me off. |
Beta Was this translation helpful? Give feedback.
-
|
Shortly after the v4 release I got a brief response from @philipp-spiess that they would be thinking this through (as well as ability to replace such utilities). Given that, as many here have pointed out, this is a breaking change, and that we are coming up on a year since the v4 release, it would be awesome if the maintainers could weigh in on the direction here (or better yet, document it on the website). I think the strongly opinionated defaults are awesome, but I think the ideal for a framework this widely used would be that users can customize what utilities are not allowed, or even override them when appropriate for their team/use-case. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Disabling core plugins is not available in v4 - https://tailwindcss.com/docs/upgrade-guide#disabling-core-plugins
This is a blocker for us to upgrade as we disable a few core plugins so that they don't conflict with some of our custom utils. One example is the
containerplugin since we have our own container classes and don't use the Tailwind ones. Another one is theringplugins. We have a custom ring class that enforces our design system so we disabled toringplugins to avoid confusion and conflict.Is this feature planned? Are there any existing workarounds?
Beta Was this translation helpful? Give feedback.
All reactions