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.
12345{ "rules": { "systomic/max-blur": "warn" }}See the difference
className="backdrop-blur-2xl"className="backdrop-blur-lg"What doesn't work
Oxlint
2 findings12345678910111213141516import { motion } from "motion/react";
export function Overlay() { return <div className="fixed inset-0 bg-black/40 backdrop-blur-2xl" />;}
export function Reveal() { return ( <motion.h1 initial={{ filter: "blur(32px)", opacity: 0 }} animate={{ filter: "blur(0px)", opacity: 1 }} > Hello </motion.h1> );}systomic/max-blur 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.
systomic/max-blur filter: "blur(32px)" blurs 32px. Large blur radii are expensive to paint (especially in Safari and over large areas): keep blur at or under 20px.
Stylelint
1 finding123.glass { backdrop-filter: blur(40px) saturate(1.8);}systomic/max-blur backdrop-filter: blur(40px) saturate(1.8) blurs 40px. Large blur radii are expensive to paint (especially in Safari and over large areas): keep backdrop blur at or under 20px.
What works
No findingsOxlint
1234567891011121314import { motion } from "motion/react";
export function Overlay() { return <div className="fixed inset-0 bg-black/40 backdrop-blur-md" />;}
/** 2–5px is enough to soften a reveal. */export function Reveal() { return ( <motion.h1 initial={{ filter: "blur(4px)", opacity: 0 }} animate={{ filter: "blur(0px)", opacity: 1 }}> Hello </motion.h1> );}Stylelint
123.glass { backdrop-filter: blur(16px) saturate(1.8);}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.
12<div className="fixed inset-0 backdrop-blur-2xl" /> // reported: 40px<div className="fixed inset-0 backdrop-blur-lg" /> // 16px
backdrop-blur-2xlblurs 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-*andbackdrop-blur-*(named,blur-[48px], with any variant), arbitrary properties ([backdrop-filter:blur(40px)]). filter,backdropFilterandWebkitBackdropFilterin 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.