Outline Width
Controls the width of the outline of an element.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
| Class | Style |
|---|---|
ow-0 | outline-width: 0px; |
ow-1 | outline-width: 1px; |
ow-2 | outline-width: 2px; |
ow-3 | outline-width: 3px; |
ow-4 | outline-width: 4px; |
This example showcases various outline-width utilities:
- The
1pxoutline width utility creates a thin outline. - The
2pxoutline width utility creates a medium outline. - The
3pxoutline width utility creates a thick outline.
<div class="d-g g-16 gtc-1 sm:gtc-3"> <div class="b-1 bc-indigo d-16 oc-indigo oo-1 os-s ow-1"></div> <div class="b-1 bc-indigo d-16 oc-indigo oo-1 os-s ow-2"></div> <div class="b-1 bc-indigo d-16 oc-indigo oo-1 os-s ow-3"></div></div>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Targeting different viewports
You can combine responsive breakpoints like sm:ow-*, md:ow-*, lg:ow-*, and xxl:ow-* to allow targeting specific utilities in different viewports.
Targeting hover states
Alternatively, you can apply :hover by using h:ow-* utility to override elements and change their values when hovering over them.