Border & OutlineOutline Style

Outline Style

Controls the outline style of an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
os-noneoutline-style: none;
os-doutline-style: dashed;
os-soutline-style: solid;

This example showcases various outline-style utilities:

  • The dashed utility creates a dashed outline around the element.
  • The none utility removes any outline from the element.
  • The solid utility creates a solid outline around the element.
<div class="d-g g-16 gtc-1 sm:gtc-3">
<div class="b-1 bc-indigo d-16 oc-indigo oo-1 os-none"></div>
<div class="b-1 bc-indigo d-16 oc-indigo oo-1 os-d"></div>
<div class="b-1 bc-indigo d-16 oc-indigo oo-1 os-s"></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:os-*, md:os-*, lg:os-*, and xxl:os-* to allow targeting specific utilities in different viewports.

Targeting hover states

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