Outline Width
Utilities for controlling the width of an element’s outline.
Use the utilities to change the width of an element’s outline.
Tailwind lets you conditionally apply utility classes in different states using variant modifiers. For example, use hover:outline-2
to only apply the utility on hover.
For a complete list of all available state modifiers, check out the documentation.
You can also use variant modifiers to target media queries like responsive breakpoints, dark mode, prefers-reduced-motion, and more. For example, use md:outline-2
to apply the outline-2
utility at only medium screen sizes and above.
You can customize the utilities by editing theme.outlineWidth
or theme.extend.outlineWidth
in your file.
tailwind.config.js
Learn more about customizing the default theme in the documentation.
Learn more about arbitrary value support in the documentation.