sdxc

Type to search, or start from one of these:

effects

blur

Applies a blur from the blur scale by writing only its own --ui-filter-blur custom property, so it combines with u.grayscale(), u.brightness(), and every other filter utility in one composite filter.

import { blur } from "@sdxc/u/effects";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.blur("lg")css({ "--ui-filter-blur": "var(--ui-blur-lg, 24px)", filter: "blur(var(--ui-filter-blur, 0px)) brightness(var(--ui-filter-brightness, 1)) ..." })

Using a custom value

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

u.blur("lg")

Applying on a state

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

u.hover(u.blur("lg"))

Responsive design

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

u.at("md", u.blur("lg"))

Customizing the theme

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

Variable
--ui-blur-lg
--ui-filter-blur
--ui-filter-brightness

Signature

u.blur(name?: BlurName | (string & {}))