layout
appearance
Applies appearance to clear a form control's native platform chrome, which Safari and Firefox honor only with their own prefixed property alongside the standard one, so all three are emitted; options narrows that set.
import { appearance } from "@sdxc/u/layout";Quick reference
Every documented call, beside the CSS it emits.
| Call | CSS |
|---|---|
u.appearance() | css({ appearance: "none", WebkitAppearance: "none", MozAppearance: "none" }) |
u.appearance("auto") | css({ appearance: "auto", WebkitAppearance: "auto", MozAppearance: "auto" }) |
u.appearance("none", { moz: false }) // Chromium/Safari-only vendor reset | css({ appearance: "none", WebkitAppearance: "none" }) |
Using a custom value
Every scale argument also takes a raw CSS value, which passes through untouched.
u.appearance()Applying on a state
Wrap the call in a state utility to scope it to one selector.
u.hover(u.appearance())Responsive design
Wrap the call in a container query to scope it to one width.
u.at("md", u.appearance())Signature
u.appearance(value?: AppearanceValue | (string & {}), options?: AppearanceOptions)