Outline

Utilities for controlling an element's outline.

Work in progress!

More detailed documentation is coming soon, but in the meantime here's a quick class reference.

Class reference

Class Properties
.outline-none outline: 0;

Customizing

Responsive and State Variants

By default, only focus variants are generated for outline utilities.

You can control which variants are generated for the outline utilities by modifying the outline property in the modules section of your Tailwind config file.

For example, this config will also generate responsive and hover variants:

{
// ...
modules: {
    // ...
-   outline: ['focus'],
+   outline: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
}
}

Disabling

If you don't plan to use the outline utilities in your project, you can disable them entirely by setting the outline property to false in the modules section of your config file:

{
// ...
modules: {
    // ...
-   outline: ['focus'],
+   outline: false,
}
}