systomic

Max blur

Blur gets expensive as the radius grows, most of all in Safari, over large areas and while animating. Past 20px it barely looks different, so keep it there.

  • SuggestionIn suggestions.json: good practice. It only ever warns.
  • WarningShows in the editor and in CI output, but doesn't fail the run (unless you pass --deny-warnings).
  • StylelintThe same check runs on .css and .scss files through the Stylelint plugin.
  • Suggested fixSuggests a replacement your editor can apply. It changes how the UI looks or moves, so oxlint --fix leaves it to you.

See the difference

Before
Inboxblur(40px)
className="backdrop-blur-2xl"
After
Inboxblur(16px)
className="backdrop-blur-lg"

What doesn't work

Oxlint

2 findings

Stylelint

1 finding

What works

No findings

Oxlint

Stylelint

Details

filter: blur() and backdrop-filter: blur() get expensive fast as the radius grows, especially in Safari, over large areas (full-screen overlays, sticky headers) and while animating. Keep blur radii at or under 20px. For softening a crossfade or reveal, 2–5px is enough.

backdrop-blur-2xl blurs 40px. Large blur radii are expensive to paint (especially in Safari and over large areas): keep backdrop blur at or under 20px.

The suggestion replaces the class with the largest step that fits (blur-lg, keeping variants), or the blur() value with the limit (blur(20px)).

What is checked

  • Tailwind: blur-* and backdrop-blur-* (named, blur-[48px], with any variant), arbitrary properties ([backdrop-filter:blur(40px)]).
  • filter, backdropFilter and WebkitBackdropFilter in any object: inline styles, StyleX (including conditional values) and Motion (initial={{ filter: "blur(32px)" }}, keyframe arrays).

Not reported: values from tokens (backdrop-blur-(--glass), blur(var(--blur))) and computed values.

In CSS (Stylelint): filter, backdrop-filter, -webkit-backdrop-filter and @apply, with an autofix to the limit.

Option Default
limits { filter: 20, backdrop: 20 }: max radius in px
blurs Tailwind’s scale (xs 4, sm 8, md 12, lg 16, xl 24, 2xl 40, 3xl 64); merged, e.g. { "glass": 18 }
ignore []: file globs relative to the nearest package.json (Oxlint only); see monorepos
attributes, callees see styling
Esc