Width
Work in progress!
More detailed documentation is coming soon, but in the meantime here's a quick class reference.
Class reference
Customizing
Width Scale
By default Tailwind provides 15 fixed width
utilities, 12 percentage-based utilities, an auto
utility, and a utility for setting the width of an element to match the viewport width. You change, add, or remove these by editing the width
section of your Tailwind config.
Responsive and State Variants
By default, only responsive variants are generated for width utilities.
You can control which variants are generated for the width utilities by modifying the width
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 width utilities in your project, you can disable them entirely by setting the width
property to false
in the modules
section of your config file: