Backdrop Hue Rotate ​
Utilities for controlling the backdrop hue-rotate effect of an element.
| Class Name | CSS Equivalent |
|---|---|
| backdrop-hue-rotate-0 | --cds-sys-filter-backdrop-hue-rotate: 0deg; |
| backdrop-hue-rotate-15 | --cds-sys-filter-backdrop-hue-rotate: 15deg; |
| backdrop-hue-rotate-30 | --cds-sys-filter-backdrop-hue-rotate: 30deg; |
| backdrop-hue-rotate-60 | --cds-sys-filter-backdrop-hue-rotate: 60deg; |
| backdrop-hue-rotate-90 | --cds-sys-filter-backdrop-hue-rotate: 90deg; |
| backdrop-hue-rotate-180 | --cds-sys-filter-backdrop-hue-rotate: 180deg; |
Setting the backdrop hue-rotate filter ​
Control the backdrop hue-rotate effect on an element using the backdrop-hue-rotate-{angle} utilities.
html
<div class="text-center relative">
<img class="w-3xs h-3xs " src="..." />
<div class="[...] backdrop-filter backdrop-hue-rotate-15 surface bg-opacity-low">backdrop-hue-rotate-15</div>
</div>âť— Keep in mind
To establish filters like backdrop hue-rotate, it's essential to commence class declarations with backdrop-filter.
This action defines a default filter for the element.
css
backdrop-filter: blur(var(--cds-sys-filter-backdrop-blur, 0)) brightness(var(--cds-sys-filter-backdrop-brightness, 100%)) contrast(var(--cds-sys-filter-backdrop-contrast, 100%)) drop-shadow(var(--cds-sys-filter-backdrop-drop-shadow, 0 0 0 transparent)) grayscale(var(--cds-sys-filter-backdrop-grayscale, 0%)) hue-rotate(var(--cds-sys-filter-backdrop-hue-rotate, 0deg)) invert(var(--cds-sys-filter-backdrop-invert, 0%)) opacity(var(--cds-sys-filter-backdrop-opacity, 100%)) saturate(var(--cds-sys-filter-backdrop-saturate, 100%)) sepia(var(--cds-sys-filter-backdrop-sepia, 0%));Subsequently, varying backdrop hue-rotate effects can be implemented by assigning classes as outlined on this page.
