Appearance

Utilities for suppressing native form control styling.

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

Responsive and pseudo-class 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: {
      // ...
-     appearance: ['responsive'],
+     appearance: ['responsive', '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,
    }
  }

Tailwind UI is now in early access!