Tailwind CSS on GitHub

Appearance

Utilities for suppressing native form control styling.

Default class reference

Class
Properties
appearance-noneappearance: none;

Usage

Use appearance-none to reset any browser specific styling on an element. This utility is often used when creating custom form components.

Default browser styles applied
Default styles removed
<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>

Customizing

Variants

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'],
      }
    }
  }

Disabling

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,
    }
  }