Text Color
Usageโ
Please refer to the
documentation on the Tailwind CSS website
Compatibilityโ
Class | Support |
---|---|
text-{n} | โ Full Support |
text-[n] | โ Full Support |
text-inherit | ๐ Web only |
text-current | ๐ Web only |
Legend
textOpacity (native only)
For performance reasons, NativeWind renders with the corePlugin
textOpacity
disabled. This plugin allows text to dynamically change it's opacity via the --tw-text-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: {
textOpacity: true,
},
};