Focus & shadow

Make keyboard focus visible and use a shared shadow for elevation. This example assigns a color to the focus-ring token and supplies outline width and style at the point of use.

In use

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.popover {
  background: var(--bg-raised);
  box-shadow: var(--box-shadow);
}

These examples show how to consume the tokens. Assign values before using them.

--focus-ring

coreType: color

Focus indicator color or shorthand used for :focus-visible outlines.

Use for: keyboard focus rings on interactive elements

Value: supplied by your design.

--box-shadow

coreType: shadow

Default elevation shadow for raised surfaces.

Value: supplied by your design.

← All tokens