Skip to content

Outline Width

Controls the width of the outline of an element.

Utility Properties
Error: 429

This example showcases various outline-width utilities:

  • The 1px outline width utility creates a thin outline.
  • The 2px outline width utility creates a medium outline.
  • The 3px outline 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 rad-1"></div>
<div class="b-1 bc-indigo d-16 oc-indigo oo-1 os-s ow-2 rad-1"></div>
<div class="b-1 bc-indigo d-16 oc-indigo oo-1 os-s ow-3 rad-1"></div>
</div>

Conditional styles

Learn how to override existing utilities based on the userโ€™s screen size or other factors, such as hover states.

Media modifier

You can combine responsive breakpoints like sm:-*,md:-*, lg:-*, and xxl:-* allows targeting specific utilities in different viewports.

<div class="ow-1 md:ow-2 ..."></div>

Hover modifier

Alternatively, you can apply :hover by using h:-* utility to override elements and change their values when hovering over them.

<div class="ow-1 h:ow-2 ..."></div>