tailwind-variants breaking changes
Updated December 4, 2026
On this page
Latest version 4.1.0, released November 26, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.3.0 to 4.0.2: 34 breaking changes in 2 versions.
- From 1.0.0 to 4.0.2: 73 breaking changes in 8 versions.
tailwind-variants 4.0.2 breaking changes
- Signature changed
TV.__call
Was <V extends TVVariantsConstraint = {}, DV = {}, CV extends readonly object[] = [], B extends ClassNameValue = undefined, S extends TVSlots = undefined, E extends TVReturnTypeLike<any, any> | TVExtendList | undefined = undefined, EV... npmjs.com - Signature changed
TVCompoundSlots
Was type TVCompoundSlots<V extends TVVariantsShape, S extends TVSlots, B extends ClassNameValue, EV extends TVVariantsShape = undefined> = Array<{slots: Array<TVSlotsWithBase<S, B>>;} & {[K in TVCompoundSlotVariantKeys<V, EV>]?... npmjs.com - Signature changed
TVCompoundVariant
Was type TVCompoundVariant<V extends TVVariantsShape, S extends TVSlots, B extends ClassNameValue, EV extends TVVariantsShape, ES extends TVSlots = undefined> = TVCompoundVariantAxes<V, EV> & ClassProp<SlotsClassValue<TVMergedSlots<S, ES>... npmjs.com - Signature changed
TVLite.__call
Was <V extends TVVariantsConstraint = {}, DV = {}, CV extends readonly object[] = [], B extends ClassNameValue = undefined, S extends TVSlots = undefined, E extends TVReturnTypeLike<any, any> | TVExtendList | undefined = undefined, EV... npmjs.com
tailwind-variants 4.0.0 breaking changes
- Removed
experimentalParseClassName
Compiled tables cannot run this hook. Keep tailwind-merge and inject it through extendTailwindMerge if you need it. github.com - Removed
TWMConfig.twMergeConfig
The default entry now throws on twMergeConfig. Import createTV and related helpers from tailwind-variants/config instead. npmjs.com - Behavior changed
Unlabeled font-[...] values are now read as Tailwind v4 does: font-[Inter] is a family and font-[700] is a weight. github.com - Behavior changed
Unknown keys on variants, compoundVariants, defaultVariants, and unknown slot names now error at compile time. github.com - Behavior changed
cn
cn now follows clsx: a 0 next to other arguments is dropped, while a lone 0 still returns "0". github.com - Behavior changed
cx
Empty lists now return "" instead of undefined. Check results with a falsy test, not === undefined. github.com - Behavior changed
tv
Empty lists now return "" instead of undefined. Check results with a falsy test, not === undefined. github.com - Behavior changed
twMerge
A function passed as twMerge is now invoked. Previously it was treated as true and used the built-in table. github.com - Configuration changed
Conflict resolution now ships in the default entry, so projects should stop relying on these peers for it. github.com - Signature changed
cn
Was const cn: <T extends CnOptions>(...classnames: T) => CnReturn; now const cn: CnFunction. npmjs.com
And 20 more in this version. Sign up to see every change
tailwind-variants 3.3.0 breaking changes
- Signature changed
ClassProp
Was type ClassProp<V extends unknown = ClassValue> = | {class?: V; className?: never} | {class?: never; className?: V}; now type ClassProp<V = ClassNameValue> = {class?: V; className?: never;} | {class?: never; className?: V;}. npmjs.com - Signature changed
cn
Was const cn: <T extends CnOptions>(...classes: T) => CnReturn; now const cn: <T extends CnOptions>(...classnames: T) => CnReturn. npmjs.com - Signature changed
cnMerge
Was const cnMerge: <T extends CnOptions>(...classes: T) => (config?: TWMConfig) => CnReturn; now const cnMerge: <T extends CnOptions>(...classnames: T) => ((config?: TWMConfig) => CnReturn). npmjs.com - Signature changed
createTV
Was function createTV(config: TVConfig): TV; now const createTV: (config: TVConfig) => TV. npmjs.com - Signature changed
cx
Was const cx: <T extends CnOptions>(...classes: T) => CnReturn; now const cx: <T extends CnOptions>(...classnames: T) => CnReturn. npmjs.com - Signature changed
lite:cn
Was const cn: <T extends CnOptions>(...classes: T) => (config?: any) => CnReturn; now const cn: <T extends CnOptions>(...classnames: T) => ((config?: any) => CnReturn). npmjs.com - Signature changed
lite:createTV
Was function createTV(): TVLite; now const createTV: () => TVLite. npmjs.com - Signature changed
TV
Was type TV = {<V extends TVVariants<S, B, EV>, CV extends TVCompoundVariants<V, S, B, EV, ES>, DV extends TVDefaultVariants<V, S, EV, ES>, B extends ClassValue = undefined, S extends TVSlots = undefined, E extends TVReturnType =... npmjs.com - Signature changed
TVCompoundSlots
Was type TVCompoundSlots<V extends TVVariants<S>, S extends TVSlots, B extends ClassValue> = Array<V extends undefined ? {slots: Array<TVSlotsWithBase<S, B>>;} & ClassProp : {slots: Array<TVSlotsWithBase<S, B>>;} & {[K in keyof V]?... npmjs.com - Signature changed
TVCompoundVariants
Was type TVCompoundVariants<V extends TVVariants<S>, S extends TVSlots, B extends ClassValue, EV extends TVVariants<ES>, ES extends TVSlots> = Array<{[K in keyof V | keyof EV]?: | (K extends keyof V ? StringToBoolean<keyof V[K]> : never) |... npmjs.com
And 13 more in this version. Sign up to see every change
tailwind-variants 3.2.2 breaking changes
- Signature changed
cn
Was const cn: <T extends CnOptions>(...classes: T) => CnCallable; now const cn: <T extends CnOptions>(...classes: T) => CnReturn. npmjs.com
tailwind-variants 3.2.1 breaking changes
- Signature changed
cn
Was const cn: <T extends CnOptions>(...classes: T) => (config?: TWMConfig) => CnReturn; now const cn: <T extends CnOptions>(...classes: T) => CnCallable. npmjs.com
tailwind-variants 3.2.0 breaking changes
- Removed
cnBase
cnBase was removed in tailwind-variants 3.2.0 npmjs.com - Removed
lite:defaultConfig
defaultConfig was removed in tailwind-variants 3.2.0 npmjs.com - Removed
responsiveVariants
The responsiveVariants export was removed in this release, so code importing it must be updated. github.com - Removed
utils:cn
cn was removed in tailwind-variants 3.2.0 npmjs.com - Default changed
cn
The cn function now defaults twMerge to true, so Tailwind class conflicts are merged unless you turn it off. github.com - Signature changed
lite:cn
Was const cn: <T extends CnOptions>(...classes: T) => CnReturn; now const cn: <T extends CnOptions>(...classes: T) => (config?: any) => CnReturn. npmjs.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
tailwind-variants 3.0.0 breaking changes
- Removed
CreateTV
CreateTV was removed in tailwind-variants 3.0.0 npmjs.com - Renamed
cnBase
cnBase was moved to utils and renamed to cn. Update imports and calls to use cn. github.com
And 5 more in this version.
tailwind-variants 2.0.0 breaking changes
- Behavior changed
Users who keep the default twMerge: true must install tailwind-merge themselves. Users who don't need conflict resolution can set twMerge: false in the config. github.com
tailwind-variants 1.0.0 breaking changes
- Removed
responsiveVariants
The responsiveVariants option has been removed in this release. Code that passes it must stop using it. github.com - Removed
withTv
withTv has been removed in this release. Code that imports or calls it must stop using it. github.com
And 6 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.