Skip to content

Backdrop Contrast

Adjust backdrop contrast

Syntax

visual="backdrop-contrast:[value]"

Values

ValueCSS OutputDescription
lowbackdrop-filter: contrast(0.5)Low contrast
reducedbackdrop-filter: contrast(0.75)Reduced contrast
normalbackdrop-filter: contrast(1)Normal contrast
highbackdrop-filter: contrast(1.25)High contrast
maxbackdrop-filter: contrast(1.5)Maximum contrast

Examples

html
<div visual="backdrop-contrast:high">High contrast backdrop</div>

Preview

Backdrop Contrast

visual="backdrop-contrast:high" - Adjust contrast behind element

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

Arbitrary Values

Supports custom values using bracket syntax:

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