Tailwind Variants .NET

Build maintainable, type-safe components with TailwindCSS and Blazor. Forget stringly-typed classes – use strongly-typed slots and variants instead.

Why Tailwind Variants .NET?

Typed Safety

Avoid runtime errors. Variants and slots are generated as strongly-typed properties, ensuring reliability at compile time.

Blazor Native

Designed for Blazor WebAssembly and Server. Works seamlessly with your components and Razor code.

Productive DX

Write less boilerplate. Enjoy a developer experience similar to the official Tailwind Variants library, but in .NET.

Get Started in Seconds

Install via NuGet and start building typed components.

# Package Manager
Install-Package TailwindVariants.NET
# .NET CLI
dotnet add package TailwindVariants.NET
An unhandled error has occurred. Reload 🗙