Replies: 4 comments 2 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.
-
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
container
plugin since we have our own container classes and don't use the Tailwind ones. Another one is thering
plugins. We have a custom ring class that enforces our design system so we disabled toring
plugins to avoid confusion and conflict.Is this feature planned? Are there any existing workarounds?
Beta Was this translation helpful? Give feedback.
All reactions