Outline
Outline Width and Offset Utility Classes
The following utility classes control the outline width and offset of elements:
.outline-{width}
Sets the outline-width property to a specific value in pixels.
CSS equivalent: outline-width: {width}px;
Example usage:
.outline-offset-{number}
Sets the outline-offset property to a specific value in pixels.
CSS equivalent: outline-offset: {number}px;
Example usage:
These utility classes allow you to easily control the outline width and offset of elements, providing flexibility in customizing the appearance of outlines for improved visual styling.
Outline Color Classes
The following utility classes control the outline color of elements:
.outline-{color}
Sets the outline-color property to a specific color value.
CSS equivalent: outline-color: {color};
Example usage:
These utility classes allow you to easily set the outline color of elements, providing a convenient way to customize the visual appearance of outlines for better design cohesion.
Outline Style Classes
The following classes control the style of outlines:
.outline
Sets the outline property to a default style of 1px solid.
CSS equivalent: outline: 1px solid;
Example usage:
.outline-style-dotted
Sets the outline-style property to dotted.
CSS equivalent: outline-style: dotted;
Example usage:
.outline-style-dashed
Sets the outline-style property to dashed.
CSS equivalent: outline-style: dashed;
Example usage:
.outline-style-double
Sets the outline-style property to double.
CSS equivalent: outline-style: double;
Example usage:
.outline-style-solid
Sets the outline-style property to solid.
CSS equivalent: outline-style: solid;
Example usage:
.outline-style-inset
Sets the outline-style property to inset.
CSS equivalent: outline-style: inset;
Example usage:
.outline-style-outset
Sets the outline-style property to outset.
CSS equivalent: outline-style: outset;
Example usage:
.outline-style-ridge
Sets the outline-style property to ridge.
CSS equivalent: outline-style: ridge;
Example usage:
.outline-style-groove
Sets the outline-style property to groove.
CSS equivalent: outline-style: groove;
Example usage:
.outline-style-initial
Sets the outline-style property to initial.
CSS equivalent: outline-style: initial;
Example usage:
.outline-style-inherit
Sets the outline-style property to inherit.
CSS equivalent: outline-style: inherit;
Example usage:
.outline-none
Sets the outline property to none.
CSS equivalent: outline: none;
Example usage:
These utility classes allow you to easily apply different outline styles to elements, giving you flexibility in designing and customizing the appearance of outlines for visual emphasis and aesthetics.
Last updated