sdxc

Type to search, or start from one of these:

state

hover

Sugar over when("&:hover", input).

import { hover } from "@sdxc/u/state";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.hover(u.bg("brand.tint"))css({ "&:hover": { backgroundColor: "..." } })

Using a custom value

Every scale argument also takes a raw CSS value, which passes through untouched.

u.hover(u.bg("brand.tint"))

Responsive design

Wrap the call in a container query to scope it to one width.

u.at("md", u.hover(u.bg("brand.tint")))

Signature

u.hover(input: UtilityInput<Node>)