Utilities

Effects

Panda offers a range of utilities or style properties for applying visual effects to elements. These effects include opacity, shadows, blending modes, filters, and more.

Opacity

<div className={css({ opacity: 0.5 })} />
PropCSS PropertyToken Category
opacityopacityopacity

Box Shadow

Apply box shadows to elements.

<div className={css({ boxShadow: 'lg' })} />
PropCSS PropertyToken Category
boxShadowbox-shadowshadows
shadowbox-shadowshadows
shadowColor--shadow-colorcolors

Mix Blend Mode

Control the blending mode of an element.

<div className={css({ mixBlendMode: 'multiply' })} />
PropCSS PropertyToken Category
mixBlendModemix-blend-modenone

Filter

Apply various filters to elements.

<div className={css({ filter: 'auto', blur: 'sm' })} />
PropCSS PropertyToken Category
filterfilternone
blur--blurblurs
brightness--brightnessnone
contrast--contrastnone
grayscale--grayscalenone
hueRotate--hue-rotatenone
invert--invertnone
saturate--saturatenone
sepia--sepianone
dropShadow--drop-shadowdropShadows

Backdrop Filter

Apply filters to the backdrop of an element.

<div className={css({ backdropFilter: 'auto', backdropBlur: 'sm' })} />
PropCSS PropertyToken Category
backdropFilterbackdrop-filternone
backdropBlur--backdrop-blurblurs
backdropBrightness--backdrop-brightnessnone
backdropContrast--backdrop-contrastnone
backdropGrayscale--backdrop-grayscalenone
backdropHueRotate--backdrop-hue-rotatenone
backdropInvert--backdrop-invertnone
backdropOpacity--backdrop-opacitynone
backdropSaturate--backdrop-saturatenone
backdropSepia--backdrop-sepianone