sdxc

Type to search, or start from one of these:

state

before

Applies the given utilities to an element's ::before pseudo-element.

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

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.before([u.raw({ content: '""' }), u.absolute()])css({ "&::before": { content: '""', position: "absolute" } })

Using a custom value

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

u.before([u.raw({ content: '""' }), u.absolute()])

Responsive design

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

u.at("md", u.before([u.raw({ content: '""' }), u.absolute()]))

Signature

u.before(input: UtilityInput<Node>)