All Projects → BamButz → msbuild-tailwindcss

BamButz / msbuild-tailwindcss

Licence: MIT license
Adds a build action to process stylesheets through postcss/tailwind

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to msbuild-tailwindcss

XamarinHosting
Xamarin Forms Generic Host implementation for Microsoft.Extensions.Hosting.
Stars: ✭ 19 (-66.07%)
Mutual labels:  nuget
Translit
C# library for cyrillic-latin transliteration (support only slavik languages) by GOST 7.79-2000 (ISO 9).
Stars: ✭ 47 (-16.07%)
Mutual labels:  nuget
Bing-Maps-V8-TypeScript-Definitions
This project contains the TypeScript definitions for the Bing Maps V8 Web Control.
Stars: ✭ 36 (-35.71%)
Mutual labels:  nuget
Xamarin.iOS.DGActivityIndicatorView
🔰 DGActivityIndicatorView is a collection of nice loading animations for Xamarin.iOS.
Stars: ✭ 28 (-50%)
Mutual labels:  nuget
Apos.Shapes
Shape rendering in MonoGame.
Stars: ✭ 21 (-62.5%)
Mutual labels:  nuget
net-EmailAddress
Multiple implementations on email address validation.
Stars: ✭ 12 (-78.57%)
Mutual labels:  nuget
RecursiveExtractor
RecursiveExtractor is a .NET Standard 2.0 archive extraction Library, and Command Line Tool which can process 7zip, ar, bzip2, deb, gzip, iso, rar, tar, vhd, vhdx, vmdk, wim, xzip, and zip archives and any nested combination of the supported formats.
Stars: ✭ 109 (+94.64%)
Mutual labels:  nuget
YaccLexTools
This package includes GPPG and GPLEX tools for compiling YACC and LEX source files in your C# project.
Stars: ✭ 16 (-71.43%)
Mutual labels:  nuget
MessageBox.Avalonia
Messagebox for AvaloniaUI
Stars: ✭ 222 (+296.43%)
Mutual labels:  nuget
Ubiety.Xmpp.Core
XMPP library for .NET Core
Stars: ✭ 32 (-42.86%)
Mutual labels:  nuget
EmptyLicensesLicx
Easy continuous integration of apps using third-party controls that rely on licenses.licx files
Stars: ✭ 57 (+1.79%)
Mutual labels:  nuget
Citrus.Avalonia
Modern styles for Avalonia controls.
Stars: ✭ 326 (+482.14%)
Mutual labels:  nuget
GW2.NET
A user friendly wrapper around the official GW2 API
Stars: ✭ 18 (-67.86%)
Mutual labels:  nuget
BingMapsSDSToolkit
This toolkit makes it easy to use the Bing Maps Spatial Data Services (SDS) in .NET
Stars: ✭ 39 (-30.36%)
Mutual labels:  nuget
HashDepot
.NET library for xxHash, FNV, MurmurHash3 and SipHash algorithms
Stars: ✭ 107 (+91.07%)
Mutual labels:  nuget
Open-Terraria-API
Open Terraria API - Mac, Linux & Windows
Stars: ✭ 65 (+16.07%)
Mutual labels:  nuget
Standard-Toolkit
An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET Core/.NET
Stars: ✭ 194 (+246.43%)
Mutual labels:  nuget
simple-datagridview-paging
A simple UserControl that shows the data-table and paging automatically with .Net Framework
Stars: ✭ 23 (-58.93%)
Mutual labels:  nuget
TfsCmdlets
PowerShell Cmdlets for Azure DevOps and Team Foundation Server
Stars: ✭ 75 (+33.93%)
Mutual labels:  nuget
paket-lock-diff
This is a tool to analyze two paket.lock files showing additions, removals, upgrades and downgrades.
Stars: ✭ 16 (-71.43%)
Mutual labels:  nuget

Welcome to MSBuild TailwindCSS 👋

Nuget Nuget GitHub

Package adds a build action "TailwindCSS" that will send marked files to postcss with tailwindcss plugin configured

Activated PostCSS Plugins:

  • tailwindcss
  • nesting
  • cssnano

Installation

The extension can be retrieved via nuget.org

dotnet add package BamButz.MSBuild.TailwindCSS

Usage

Simply set the build action of your stylesheet to TailwindCSS during build the extension will output a file with .min.css extension and the same name and location as its source file

I set up a test file in the project so that you can understand the usage.

Tailwind Configuration

A tailwind.config.js must exist in the same directory as your project file (.csproj). During the first build of your project after adding this extension, a minimal tailwind.config.js will be added to your project if one is not already present. This allows the incremental build process to work. Each change you make to this file will result in a rebuild of your css files.

Plugins

If you want to use any of the official tailwindcss plugins you can simply specify them in your tailwind.config.js file (see example below) and they will automatically be included in your compiled css.

// tailwind.config.js
module.exports = {
  // ...
  plugins: [
    require('@tailwindcss/typography'),
    require('@tailwindcss/forms'),
    require('@tailwindcss/line-clamp'),
    require('@tailwindcss/aspect-ratio'),
  ]
}

Contribution

If you have any ideas to improve this extension, don't be afraid to open an issue. 🙂

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].