{"repo":"kallebysantos/tailwind-dotnet","free":true,"listed":false,"github":"https://github.com/kallebysantos/tailwind-dotnet","clone":"git clone https://github.com/kallebysantos/tailwind-dotnet.git","description":"Provides native integration with Tailwind CSS and .NET","language":"C#","stars":95,"topics":["developer-tools","dotnet","hot-reload","msbuild","tailwindcss"],"license":"MIT","category":"dev-tools","readme_excerpt":"Unofficial Tailwind CSS Integration for .NET. [!TIP] Please upvote it 👍 if you would like to help me turn this project as official Framework Guide , live demo ------ - Core features - Installation - Configuration - Examples This repository haves a pack toolset for tailwindcss integration with .Net that is based in 2 main packages, one for Hosting Startup and other for MsBuild. Core features - No external requirements, like NodeJs or Postcss - Integrated hot-reload, it works with dotnet watch as well most common IDEs(Visual Studio and Rider) - Minified output on publish - .NET 9+ static asset compression Getting Started [!WARNING] Windows users : There's a bug in .NET 9 compiler, please check this section Requirements: You only need .NET, nothing more! - No npm neither postcss stuff Creating a new project First of all let's create a new .Net 8 Blazor app Of course you can use this same guide for mvc , razor or even the legacy webforms Installing the Tailwindcss integration Now you need to add 2 packages: 1. Tailwind.Hosting : Add support for HotReload when you execute dotnet watch 2. Tailwind.Hosting.Build : Integrates with the MsBuild compiler, so it will automatically setup the tailwindcss as well generate publish ready output on dotnet publish Finally to enable HotReload you only need to add the following to your Properties/launchSettings.json Tailwindcss setup This last one is related with tailwind itself. Since v4 you only need to add the following to a wwwroot/styles.cs","default_branch":null,"files":null,"tree":[],"storefront":"/r/kallebysantos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kallebysantos/tailwind-dotnet/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}