Tailwind 0.6.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Tailwind --version 0.6.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Tailwind --version 0.6.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Tailwind&version=0.6.0
nuke :add-package Tailwind --version 0.6.0

dotnet-tailwind

Really basic tool to bootstrap Tailwind in .NET Blazor projects.

Run dotnet tailwind init to automatically create the necessary build targets and files for a basic Tailwind integration.

Install

dotnet tool install tailwind

How to use

  1. In the directory with your .csproj:
dotnet tool run tailwind init
  1. Build your project. Tailwind will automatically generate site.css in wwwroot/css

  2. Add the site.css to your App.razor

<link rel="stylesheet" href="css/site.css" />
  1. Anytime you build the solution, site.css will now be regenerated.

Commands

init

  • Downloads the Tailwind CLI
  • Add targets and properties to your tailwind file to automatically build your CSS using the TailwindCLI
  • Adds the app.css with the Tailwind directives

reset

  • Removes property groups added by the tool
  • Removes targets added by the tool
  • Only works on 0.6.0 and later

Release Notes

0.6.0

  • BREAKING: Renamed Targets
  • BREAKING: Labeled Property Groups
  • Added chmod command for Linux
  • Added reset command to clear changes made in the project file
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.8.0 213 4/4/2024
0.8.0-alpha.3 62 3/22/2024
0.8.0-alpha.2 43 3/22/2024
0.8.0-alpha.1 44 3/22/2024
0.7.0-alpha 81 1/25/2024
0.6.1 1,084 9/20/2023
0.6.0 107 9/20/2023
0.5.1 128 9/12/2023
0.5.0 103 9/12/2023
0.4.0 106 9/11/2023
0.2.0 89 9/11/2023
0.1.0 95 9/11/2023

Added Reset functionality, renamed targets, added chmod for linux