sdxc

Type to search, or start from one of these:

color

conicGradient

Builds a conic-gradient(...) value string for any background-image use.

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

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.conicGradient(45, "red", "blue")"conic-gradient(from 45deg, red, blue)"
u.conicGradient("from 45deg at top left", "red", "blue")"conic-gradient(from 45deg at top left, red, blue)"

Using a custom value

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

u.conicGradient(45, "red", "blue")

Applying on a state

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

u.hover(u.conicGradient(45, "red", "blue"))

Responsive design

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

u.at("md", u.conicGradient(45, "red", "blue"))

Signature

u.conicGradient(angle: number | `from ${number}deg` | `from ${number}deg at ${GradientPosition}` | (string & {}), ...stops: GradientStop[])