LabscoMCP early access ↗
mastra-ai avatar

tailwind-v4

No requirements found★ 26k on GitHub
part of mastra-ai/mastraby mastra-ai

Tailwind's version 4 renamed classes and moved configuration into the stylesheet — this is the current way to write it, and the old habits to stop shipping.

WHEN TO USE

SCOPE

USE FOR

  • Convert an old-style JavaScript theme configuration file into Tailwind v4's newer CSS-based theme syntax.
  • Catch v3-era class names like shadow-sm or bg-opacity-50 that quietly changed meaning in v4.
  • Replace an arbitrary-value class like w-[600px] with a named utility such as w-150.
  • Swap a hand-written focus-visible or data-state CSS rule for a Tailwind variant.
  • Pick the right v4 capability, like field-sizing-content or starting, instead of a JS workaround.