Skip to content

pantoken / formats/components/src / focusOutlineCss

Function: focusOutlineCss()

focusOutlineCss(options?): string

Beta

Build the focus-outline block: the --instui-focus-outline-* token defs plus the ring rules. Baked into base.css (so focusables get the ring out of the box), and reusable by other layered outputs (e.g. the Pendo renderer) via the selector/tokenSelector options.

Parameters

options?

selector — the focusable selector; tokenSelector — where the token defs land (default :where(:root)).

selector?

string

tokenSelector?

string

Returns

string

The CSS string.