Not Variants

class
properties
not-first
&:not(:first-child)
not-last
&:not(:last-child)
not-first-of-type
&:not(:first-of-type)
not-last-of-type
&:not(:last-of-type)
not-[VALUE]
&:not(VALUE)

In order to use this feature, your Tailwind version must support the matchVariant feature. You’re safe if using v3.2.1 or above (I’m not sure about the older versions).

How to disable it?

tailwindcssAddons({
    variants: {
        notVariants: false,
    },
})
Return to top