sdxc

Type to search, or start from one of these:

transform

skewY

Skews the element along the vertical axis.

import { skewY } from "@sdxc/u/transform";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.skewY(10)css({ "--ui-skew-y": "10deg", transform: "... skew(var(--ui-skew-x, 0deg), var(--ui-skew-y, 0deg))" })

Using a custom value

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

u.skewY("2.75rem")

Applying on a state

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

u.hover(u.skewY(10))

Responsive design

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

u.at("md", u.skewY(10))

Customizing the theme

The custom properties this utility reads, which a theme redefines.

Variable
--ui-skew-x
--ui-skew-y

Signature

u.skewY(value: AngleValue)