Skip to content

Glossary: Tailwind CSS

focus-visible

Also written: focus-visible:, outline, outline-offset

A variant that applies a style when an element has keyboard focus, matching the CSS `:focus-visible`. It is used with outline utilities on buttons and links so keyboard users can see where they are, while mouse users don't get a ring on click.

Where the book teaches it

Related terms

RingVariant