Skip to content

Rule · Lint

Utility whose meaning changed between Tailwind v3 and v4

lint/tw-v3-renamedinfovoid lintupdated

Why it matters

v4 shifted the scales: v3 shadow-sm is v4 shadow-xs, shadowshadow-sm, rounded-smrounded-xs, blur-smblur-xs, ring is 1px instead of 3px, and outline-none became outline-hidden. Code pasted from v3 docs or registries renders one step off without any error.

How to fix it

When porting v3 code, rename to the v4 equivalents (or run npx @tailwindcss/upgrade). Only reported while v3 config signals remain in the project.

Example

tsx
// v3                         // v4
shadow-sm rounded-sm ring  →  shadow-xs rounded-xs ring-3

References

void lint reports 67 rules in this category. Static source checks with no browser: Tailwind v4 silent failures, Next.js 16 API traps, React render-body bugs, accessibility markup, SEO files and motion hygiene.