Filters

These utilities allow you to apply image-like effects to elements using native CSS filter and backdrop-filter. This includes blur, brightness, contrast, grayscale, hue rotation, inversion, saturation, and sepia effects.

All classes use the al- prefix and follow utility-first conventions.

Overview

Filter TypeClass FormatDescription
Blur.al-blur-{value}Apply blur in pixels
Brightness.al-brightness-{percent}Adjust brightness
Contrast.al-contrast-{percent}Adjust contrast
Grayscale.al-grayscale-{percent}Convert to grayscale
Hue Rotate.al-hue-rotate-{deg}Rotate hue in degrees
Invert.al-invert-{percent}Invert colors
Saturate.al-saturate-{percent}Adjust saturation
Sepia.al-sepia-{percent}Apply sepia tone
Backdrop Filters.al-backdrop-{filter}-{value}Apply same effects to background

Sass Reference

assets/scss/_filters.scss Copy

Class Usage Reference

ClassEffect
.al-blur-4Applies 4px blur
.al-brightness-7575% brightness
.al-contrast-100Normal contrast
.al-grayscale-5050% grayscale
.al-hue-rotate-9090 degree hue rotation
.al-invert-100Inverted colors
.al-saturate-2525% saturation
.al-sepia-1010% sepia tone
.al-backdrop-blur-8Backdrop blur 8px

Examples

Blur

filter: blur

0px
8px
16px
32px

backdrop-filter: blur

0px
8px
16px
32px
Copy

Brightness

filter: brightness

0%
10%
25%
50%

backdrop-filter: brightness

0%
10%
25%
50%
Copy

Contrast

filter: contrast

0%
10%
25%
50%

backdrop-filter: contrast

0%
10%
25%
50%
Copy

Grayscale

filter: grayscale

25%
50%
75%
100%

backdrop-filter: grayscale

0%
10%
25%
50%
Copy

Hue Rotate

filter: hue-rotate

45deg
90deg
75deg
270deg

backdrop-filter: hue-rotate

45deg
90deg
180deg
270deg
Copy

Invert

filter: invert

25%
50%
75%
100%

backdrop-filter: invert

0%
10%
25%
50%
Copy

Saturate

filter: saturate

0%
10%
25%
50%

backdrop-filter: saturate

0%
10%
25%
50%
Copy

Sepia

filter: sepia

25%
50%
75%
100%

backdrop-filter: sepia

0%
10%
25%
50%
Copy

Developer Notes

  • Uses CSS filter and backdrop-filter properties

  • All values are generated via Sass maps

  • Designed to complement Bootstrap 5 utilities

  • backdrop-filter support depends on browser compatibility

  • Utility naming consistent with other .al-* extensions