Fill
Use to set the fill color of an SVG to the current text color. This makes it easy to set an element’s fill color by combining this class with an existing text color utility.
Useful for styling icon sets like that are drawn entirely with fills.
Control which fill utilities Tailwind generates by customizing the theme.fill
section of your tailwind.config.js
file:
By default, only responsive variants are generated for fill utilities.
For example, this config will also generate hover and focus variants:
Disabling
If you don’t plan to use the fill utilities in your project, you can disable them entirely by setting the property to false
in the corePlugins
section of your config file: