Skip to main content
Version: v4

Divide Color

Usageโ€‹

Please refer to the

documentation on the Tailwind CSS website

caution

Divide Color was temporary removed in v4. We are working to re-add it in the future.

Compatibilityโ€‹

ClassSupport
divide-{n}๐ŸŒ Web only
divide-[n]๐ŸŒ Web only
divide-inherit๐ŸŒ Web only
divide-current๐ŸŒ Web only
Legend

Classโ€‹

-{n} Supports values from theme

-[n] Supports arbitrary values

Iconโ€‹

โœ… Full support

โœ”๏ธ Partial support on native

๐Ÿงช Experimental support on native

๐Ÿ“ฑ Native only

๐ŸŒ Web only

divideOpacity (native only)

For performance reasons, NativeWind renders with the corePlugin divideOpacity disabled. This plugin allows the divide color to dynamically change it's opacity via the --tw-divide-opacity variable. Instead, the opacity is set as a static value in the color property.

If you need to use this feature, you can enable it by adding the following to your tailwind.config.js file:

module.exports = {
/* ... */
corePlugin: {
divideOpacity: true,
},
};