Skip to content

v5.0.0-beta.6

Pre-release
Pre-release

Choose a tag to compare

@LouisMazel LouisMazel released this 11 May 14:37
· 2 commits to master since this release

compare changes

🚀 Features

  • @maz-ui/eslint-config: Add maz/tailwind-no-arbitrary-px rule (2b52d922)

    New ESLint rule that enforces rem (or em) instead of px units in Tailwind arbitrary value classes (w-[16px], [gap:24px], etc.) with automatic fixes. Enable via the tailwindcss config option:

    defineConfig({
      tailwindcss: {
        preset: 'recommended',
        noArbitraryPx: { baseFontSize: 16, unit: 'rem', severity: 'error' },
      },
    })

    The plugin registers automatically with this configuration. For manual setup, import and wire mazPlugin directly without enabling the full Tailwind preset.

📦 Build

❤️ Contributors