Work in progress!
More detailed documentation is coming soon, but in the meantime here’s a quick class reference.
Class reference
Customizing
By default Tailwind provides utilities for auto
, cover
, and contain
background sizes. You can change, add, or remove these by editing the backgroundSize
section of your config.
Responsive and State Variants
By default, only responsive variants are generated for background size utilities.
You can control which variants are generated for the background size utilities by modifying the backgroundSize
property in the modules
section of your Tailwind config file.
For example, this config will also generate hover and focus variants:
Disabling
If you don’t plan to use the background size utilities in your project, you can disable them entirely by setting the backgroundSize
property to false
in the modules
section of your config file: