Skip to content

Backdrop Grayscale

Apply grayscale to backdrop

Syntax

visual="backdrop-grayscale:[value]"

Values

ValueCSS OutputDescription
nonebackdrop-filter: grayscale(0%)No grayscale
partialbackdrop-filter: grayscale(50%)50% grayscale
fullbackdrop-filter: grayscale(100%)Full grayscale

Examples

html
<div visual="backdrop-grayscale:full">Grayscale backdrop</div>

Preview

Backdrop Grayscale

visual="backdrop-grayscale:full" - Remove color from backdrop, creating a desaturated effect

Original
Grayscale
View Code
html
<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <div space="p:small" visual="bg-image:gradient-to-br from:blue-500 to:emerald-500 rounded:small text:white">Original</div>
  <div space="p:small" visual="bg-image:gradient-to-br from:blue-500 to:emerald-500 filter-grayscale:full rounded:small text:white">Grayscale</div>
</div>

Arbitrary Values

Supports custom values using bracket syntax:

html
<div visual="backdrop:[custom-value]">Custom</div>