unstale

npm / tailwind-variants

tailwind-variants

What changed in tailwind-variants 1 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

5 breaking2 new APIs and options1 performance3 behavior and defaults3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.4 on npm

tailwind-variants 310 changes

Breaking changes 3

  • Removes responsiveVariants.

    1.0.0, 3.2.0release notesrelease notes

  • cnBase was moved to utils and renamed to cn; the lite version exports cn without any tw-merge logic.

    3.0.0release notes

  • In the lite version, createTV, tv, and cn no longer accept config parameters such as tailwind-merge config.

    3.0.0release notes

New APIs and options 2

  • Adds the cx function for combining classes.

    3.2.0release notes

  • A lite entry point is available without tailwind-merge logic; import from it when you do not use tailwind-merge.

    3.0.0release notes

Behavior and default changes 2

  • twMerge now defaults to true in cn, enabling Tailwind class merging by default.

    3.2.0release notes

  • cnBase now filters and handles various input types and formats output, including removing extra spaces or newlines.

    3.0.0release notes

Fixes and other changes 3

  • Fixes shared-state contamination involving slots.

    3.3.1release notes

  • Updated the cn function type and imported cx from tailwind-variants/lite.

    3.2.1release notes

  • Exports defaultConfig as a value.

    3.2.0release notes

tailwind-variants 22 changes

Breaking changes 1

  • tailwind-merge is no longer bundled and is now an optional peer dependency. Install it separately to use conflict resolution, or disable twMerge if conflict resolution is not needed.

    2.0.0release notes

Performance 1

  • Operations are 37–62% faster for most use cases, with optimized object creation and array operations, reduced function call overhead, and better memory usage.

    2.0.0release notes

tailwind-variants 12 changes

Breaking changes 1

Behavior and default changes 1

  • Tailwind Variants now supports Tailwind CSS v4.

    1.0.0release notes