Skip to content

Backdrop Invert

Invert backdrop colors

Syntax

visual="backdrop-invert:[value]"

Values

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

Examples

html
<div visual="backdrop-invert:full">Inverted backdrop</div>

Preview

Backdrop Invert

visual="backdrop-invert:full" - Invert colors behind element

none
full
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:primary text:white rounded:small">none</div>
  <div space="p:small" visual="bg:primary text:white rounded:small">full</div>
</div>

Arbitrary Values

Supports custom values using bracket syntax:

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