TailwindMerge.NET 1.2.0

dotnet add package TailwindMerge.NET --version 1.2.0
                    
NuGet\Install-Package TailwindMerge.NET -Version 1.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TailwindMerge.NET" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TailwindMerge.NET" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="TailwindMerge.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TailwindMerge.NET --version 1.2.0
                    
#r "nuget: TailwindMerge.NET, 1.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TailwindMerge.NET@1.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TailwindMerge.NET&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=TailwindMerge.NET&version=1.2.0
                    
Install as a Cake Tool

<div align="center"> <br /> <a href="https://github.com/desmondinho/tailwind-merge-dotnet"> <img src="https://raw.githubusercontent.com/desmondinho/tailwind-merge-dotnet/HEAD/assets/logo.svg" alt="tailwind-merge-dotnet" height="150px" /> </a> </div>

tailwind-merge-dotnet

A utility service to efficiently merge Tailwind CSS classes in C# without style conflicts.

  • Supports Tailwind CSS v4 (if you use Tailwind v3, use tailwind-merge-dotnet v0.3.0)
  • Thread-safe LRU caching
  • Compatible with .NET 8 and 9

Get Started

Contributing

Contributions are always welcome!

See CONTRIBUTING.md for ways to get started. Please adhere to this project's CODE_OF_CONDUCT.

Acknowledgements 🙏

This project is a C# adaptation of tailwind-merge originally developed by dcastil.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on TailwindMerge.NET:

Package Downloads
PureBlazor.Components

Tailwind based Blazor UI components

LumexUI

🚀 A versatile Blazor UI library built using Tailwind CSS.

TailwindVariants.NET

A Blazor library to manage TailwindCSS variants and slot-based styling with strongly typed APIs.

RizzyUI

This package allows you to build applications quickly using the Rizzy library and this set of SSR only components.

ShadcnBlazor

A port of shadcn to blazor

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on TailwindMerge.NET:

Repository Stars
LumexUI/lumexui
🚀 A versatile Blazor UI library built using Tailwind CSS.
Version Downloads Last Updated
1.2.0 939 10/23/2025
1.1.0 195 10/23/2025
1.0.0 10,560 2/24/2025
0.3.0 7,933 7/2/2024
0.2.0-rc 166 6/11/2024
0.1.0-rc 371 5/11/2024