blur

Class Description

blur

Sets a blur filter via --blur. E.g. 4px.

CSS Rules

.blur {
  filter: blur(var(--blur));
}

Usage

The .blur class is flagged as a value-driven selector. The variable --blur is required.
<element class="blur" style="--blur: /* value */;" />

Responsive

Prefix .blur utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:blur" style="--md-blur: /* value */;" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="blur:hover" style="--blur-hover: /* value */;" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="blur:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before blur::before" style="--blur-before: /* value */;" />

<element class="content-after blur::after" style="--blur-after: /* value */;" />

Shorthand

Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime processes this for you. Unlike :hover that is generating CSS on the fly, shorthand only splits it and appends the corresponding style.

<!-- Input -->
<element class="blur=value" />

<!-- Output -->
<element class="blur" style="--blur: value;" />

CLS Alert

This feature may cause CLS (Cumulative Layout Shift). Make sure to include a z-not-ready class in your <head> tag.

.blur Sets a blur filter via --blur. E.g. 4px.

blur-xs

Applies a small blur filter to the element using the xs scale token.

CSS Rules

.blur-xs {
  filter: blur(var(--blur-xs));
}

Usage

<element class="blur-xs" />

Responsive

Prefix .blur-xs utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:blur-xs" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="blur-xs:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="blur-xs:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before blur-xs::before" />

<element class="content-after blur-xs::after" />
.blur-xs Applies a small blur filter to the element using the xs scale token.

blur-sm

Applies a small blur filter preset.

CSS Rules

.blur-sm {
  filter: blur(var(--blur-sm));
}

Usage

<element class="blur-sm" />

Responsive

Prefix .blur-sm utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:blur-sm" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="blur-sm:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="blur-sm:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before blur-sm::before" />

<element class="content-after blur-sm::after" />
.blur-sm Applies a small blur filter preset.

blur-md

Applies a medium blur filter preset.

CSS Rules

.blur-md {
  filter: blur(var(--blur-md));
}

Usage

<element class="blur-md" />

Responsive

Prefix .blur-md utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:blur-md" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="blur-md:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="blur-md:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before blur-md::before" />

<element class="content-after blur-md::after" />
.blur-md Applies a medium blur filter preset.

blur-lg

Applies a large blur filter preset.

CSS Rules

.blur-lg {
  filter: blur(var(--blur-lg));
}

Usage

<element class="blur-lg" />

Responsive

Prefix .blur-lg utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:blur-lg" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="blur-lg:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="blur-lg:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before blur-lg::before" />

<element class="content-after blur-lg::after" />
.blur-lg Applies a large blur filter preset.

blur-xl

Applies a large blur filter to the element using the xl scale token.

CSS Rules

.blur-xl {
  filter: blur(var(--blur-xl));
}

Usage

<element class="blur-xl" />

Responsive

Prefix .blur-xl utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:blur-xl" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="blur-xl:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="blur-xl:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before blur-xl::before" />

<element class="content-after blur-xl::after" />
.blur-xl Applies a large blur filter to the element using the xl scale token.

blur-2xl

Applies a larger blur filter to the element using the 2xl scale token.

CSS Rules

.blur-2xl {
  filter: blur(var(--blur-2xl));
}

Usage

<element class="blur-2xl" />

Responsive

Prefix .blur-2xl utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:blur-2xl" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="blur-2xl:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="blur-2xl:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before blur-2xl::before" />

<element class="content-after blur-2xl::after" />
.blur-2xl Applies a larger blur filter to the element using the 2xl scale token.

blur-3xl

Applies the largest blur filter to the element using the 3xl scale token.

CSS Rules

.blur-3xl {
  filter: blur(var(--blur-3xl));
}

Usage

<element class="blur-3xl" />

Responsive

Prefix .blur-3xl utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:blur-3xl" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="blur-3xl:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="blur-3xl:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before blur-3xl::before" />

<element class="content-after blur-3xl::after" />
.blur-3xl Applies the largest blur filter to the element using the 3xl scale token.

blur-none

Removes blur filter.

CSS Rules

.blur-none {
  filter: blur(0);
}

Usage

<element class="blur-none" />

Responsive

Prefix .blur-none utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:blur-none" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="blur-none:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="blur-none:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before blur-none::before" />

<element class="content-after blur-none::after" />
.blur-none Removes blur filter.