Outline
Utilities for controlling an element's outline
Class reference
Usage
Use .outline-none
to remove browser specific outlining of focused elements.
It is highly recommended to apply your own focus styling for accessibility when using this utility.
The outline-none
utility is implemented using a transparent outline under the hood to ensure elements are still visibly focused to Windows high contrast mode users.
Dotted outlines
Use the outline-white
and outline-black
utilities to add a 2px dotted border around an element with a 2px offset. These are useful as an accessible general purpose custom focus style if you don’t want to design your own.
On this Page
v1.13.5