state
focusVisible
Sugar over when("&:focus-visible", input).
import { focusVisible } from "@sdxc/u/state";Quick reference
Every documented call, beside the CSS it emits.
| Call | CSS |
|---|---|
u.focusVisible(u.ring("brand")) | css({ "&:focus-visible": { outlineColor: "..." } }) |
Using a custom value
Every scale argument also takes a raw CSS value, which passes through untouched.
u.focusVisible(u.ring("brand"))Responsive design
Wrap the call in a container query to scope it to one width.
u.at("md", u.focusVisible(u.ring("brand")))Signature
u.focusVisible(input: UtilityInput<Node>)