Utilities

Outline

Panda provides utilities for customizing outlines.

Compound Property

Set the width, color, and style of the outline.

<div className={css({ outline: '2px solid blue.500' })} />
<div className={css({ ring: '2px solid blue.500' })} /> // shorthand
PropCSS PropertyToken Category
ring , outlineoutlineborders

Outline Width

Change the width of the outline.

<div className={css({ outlineWidth: '4' })} />
<div className={css({ outlineWidth: '2px' })} />
<div className={css({ ringWidth: '2px' })} /> // shorthand
PropCSS PropertyToken Category
ringWidth , outlineWidthoutline-widthborderWidths

Outline Color

Change the color of the outline.

<div className={css({ outlineColor: 'blue.500' })} />
<div className={css({ ringColor: 'blue.500' })} /> // shorthand
PropCSS PropertyToken Category
outlineColoroutline-colorcolors

Outline Offset

Adjust the space between the outline and the element.

<div className={css({ outlineOffset: '4' })} />
<div className={css({ ringOffset: '4' })} /> // shorthand
PropCSS PropertyToken Category
outlineOffsetoutline-offsetspacing