Skip to content

Blur

Utilities for applying blur to an element.

Quick reference

ClassProperty
blur-0filter: blur(0);

Usage

Use the blur-{radius} class for setup ratio aspect.

html

<div class="blur-0">
    <!-- ... -->
</div>

Applying conditionally

Breakpoints and media queries

You can also control the responsive breakpoint with variant class modifiers. For example lg:blur will be only apply on large screens size and above.

html

<div class="blur-0">
    <!-- ... -->
</div>

Customization

Extend your theme

By default, the configuration provides a handful of general purpose blur utilities. You can easily extend the default scales using the Sass configuration.

scss
@use "lasco" with (
    $extend: (
        "blur": (
            "lg": "16px"
        )
    )
);

Note: the radius can be a pixel or rem value. ( Source MDN)

Released under the MIT License.