Utilities for suppressing native form control styling.
Use appearance-none
to reset any browser specific styling on an element. This utility is often used when creating custom form components.
<select>
<option>Yes</option>
<option>No</option>
<option>Maybe</option>
</select>
<select class="appearance-none">
<option>Yes</option>
<option>No</option>
<option>Maybe</option>
</select>
By default, only responsive variants are generated for appearance utilities.
You can control which variants are generated for the appearance utilities by modifying the appearance
property in the variants
section of your tailwind.config.js
file.
For example, this config will also generate hover and focus variants:
// tailwind.config.js
module.exports = {
variants: {
extend: {
// ...
+ appearance: ['hover', 'focus'],
}
}
}
If you don't plan to use the appearance utilities in your project, you can disable them entirely by setting the appearance
property to false
in the corePlugins
section of your config file:
// tailwind.config.js
module.exports = {
corePlugins: {
// ...
+ appearance: false,
}
}