sdxc

Type to search, or start from one of these:

general

counter-reset

Applies counter-reset, creating or resetting the element's CSS counter named by the bare counter identifier name.

import { counterReset } from "@sdxc/u/general";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.counterReset("section")css({ counterReset: "section" })
u.counterReset("section", 0)css({ counterReset: "section 0" })

Using a custom value

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

u.counterReset("section")

Applying on a state

Wrap the call in a state utility to scope it to one selector.

u.hover(u.counterReset("section"))

Responsive design

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

u.at("md", u.counterReset("section"))

Signature

u.counterReset(name: string, value?: number)