sdxc

Type to search, or start from one of these:

effects

backdropSepia

Shifts what shows through the element's translucent background toward a warm brown monochrome.

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

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.backdropSepia()css({ "--ui-backdrop-sepia": "1", backdropFilter: "... sepia(var(--ui-backdrop-sepia, 0))", WebkitBackdropFilter: "... sepia(var(--ui-backdrop-sepia, 0))" })
u.transparencySafe(u.backdropSepia(0.6))css({ "@media (prefers-reduced-transparency: no-preference)": { "--ui-backdrop-sepia": "0.6", backdropFilter: "...", WebkitBackdropFilter: "..." } })

Using a custom value

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

u.backdropSepia()

Applying on a state

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

u.hover(u.backdropSepia())

Responsive design

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

u.at("md", u.backdropSepia())

Customizing the theme

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

Variable
--ui-backdrop-sepia

Signature

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