sdxc

Type to search, or start from one of these:

color

outline-width

Sets outline-width alone, so a state can override the width while the color and style already in effect stay in force.

import { outlineWidth } from "@sdxc/u/color";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.outlineWidth(4)css({ outlineWidth: "4px" })
u.outlineWidth("0.25rem")css({ outlineWidth: "0.25rem" })

Using a custom value

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

u.outlineWidth("2.75rem")

Applying on a state

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

u.hover(u.outlineWidth(4))

Responsive design

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

u.at("md", u.outlineWidth(4))

Signature

u.outlineWidth(value: number | (string & {}))