tailwindcss.cli 3.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global tailwindcss.cli --version 3.1.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 tailwindcss.cli --version 3.1.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=tailwindcss.cli&version=3.1.0                
nuke :add-package tailwindcss.cli --version 3.1.0                

A dotnet tool to install the tailwindcss cli for windows (x64), macos (x64 and arm64) and linux (x64 and arm64).

Installation

Global install

dotnet tool install --global tailwindcss.cli

Once installed, tailwindcss should now be added to the path and invokable in your command prompts or terminals.

Note: on macos when using the default terminal zsh, globally installed tools will not be found. They will be found however if you use a bash shell.

To add globally installed tools to your zsh profile, edit ~/.zshrc and add the following line:

export PATH=$HOME/.dotnet/tools:$PATH

See: https://github.com/dotnet/sdk/issues/9415 for more information.

Local install

dotnet tool install tailwindcss.cli

Once installed, dotnet tailwindcss should now be invokable in your command prompts or terminals.

Installing specific versions

# global installs
dotnet tool install tailwindcss.cli --version 3.0.10 --global

# local installs
dotnet tool install tailwindcss.cli --version 3.0.10

Upgrading installations

# global installs
dotnet tool update tailwindcss.cli --version 3.0.10 --global

# local installs
dotnet tool update tailwindcss.cli --version 3.0.11

Uninstallation

# global installs
dotnet tool uninstall tailwindcss.cli --global

# local installs
dotnet tool uninstall tailwindcss.cli

Bootstrap process

On initial run, there is a bootstrap process to download the platform specific tailwindcss cli binary to be used. e.g.:

PS C:\Users\Duane> tailwindcss
Running on windows-x64, downloading tailwindcss cli v3.0.23 using nuget...
Package found in repository nuget.org: https://api.nuget.org/v3/index.json
Downloaded package tailwindcss.cli.windows.x64 v3.0.23 from nuget.org.
Extracting tailwindcss cli for windows-x64...

tailwindcss v3.0.23

Usage:
   tailwindcss [--input input.css] [--output output.css] [--watch] [options...]
   tailwindcss init [--full] [--postcss] [options...]
...
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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
3.4.0 1,079 12/31/2023
3.3.7 190 12/31/2023
3.3.6 122 12/31/2023
3.3.5 3,625 12/3/2023
3.3.4 179 12/3/2023
3.3.3 175 12/3/2023
3.3.2 179 12/3/2023
3.3.1 110 12/3/2023
3.3.0 211 12/3/2023
3.2.7 2,600 3/20/2023
3.2.6 479 3/20/2023
3.2.5 508 3/20/2023
3.2.4 771 12/5/2022
3.2.3 680 12/5/2022
3.2.2 641 12/5/2022
3.2.1 795 10/22/2022
3.2.0 587 10/22/2022
3.1.8 667 8/20/2022
3.1.7 660 8/20/2022
3.1.6 766 7/19/2022
3.1.5 748 7/19/2022
3.1.4 684 7/19/2022
3.1.3 662 7/19/2022
3.1.2 700 7/19/2022
3.1.1 715 7/19/2022
3.1.0 674 7/19/2022
3.0.24 764 7/19/2022
3.0.23 683 7/19/2022
3.0.22 708 7/19/2022
3.0.21 698 7/19/2022
3.0.20 739 7/19/2022
3.0.19 698 7/19/2022
3.0.18 761 7/19/2022
3.0.17 776 7/19/2022
3.0.16 771 7/19/2022
3.0.15 789 7/19/2022
3.0.14 738 7/19/2022
3.0.13 782 7/19/2022
3.0.12 744 7/19/2022
3.0.11 803 7/19/2022

We just released Tailwind CSS v3.1 — the first new feature release since v3.0 came out last year!

[Read the announcement post](https://tailwindcss.com/blog/tailwindcss-v3-1) for all the details, and [watch the YouTube video](https://www.youtube.com/watch?v=nOQyWbPO2Ds) for a tour of some of the highlights.

---

### Added

- Support PostCSS `Document` nodes ([#7291](https://github.com/tailwindlabs/tailwindcss/pull/7291))
- Add `text-start` and `text-end` utilities ([#6656](https://github.com/tailwindlabs/tailwindcss/pull/6656))
- Support customizing class name when using `darkMode: 'class'` ([#5800](https://github.com/tailwindlabs/tailwindcss/pull/5800))
- Add `--poll` option to the CLI ([#7725](https://github.com/tailwindlabs/tailwindcss/pull/7725))
- Add new `border-spacing` utilities ([#7102](https://github.com/tailwindlabs/tailwindcss/pull/7102))
- Add `enabled` variant ([#7905](https://github.com/tailwindlabs/tailwindcss/pull/7905))
- Add TypeScript types for the `tailwind.config.js` file ([#7891](https://github.com/tailwindlabs/tailwindcss/pull/7891))
- Add `backdrop` variant ([#7924](https://github.com/tailwindlabs/tailwindcss/pull/7924), [#8526](https://github.com/tailwindlabs/tailwindcss/pull/8526))
- Add `grid-flow-dense` utility ([#8193](https://github.com/tailwindlabs/tailwindcss/pull/8193))
- Add `mix-blend-plus-lighter` utility ([#8288](https://github.com/tailwindlabs/tailwindcss/pull/8288))
- Add arbitrary variants ([#8299](https://github.com/tailwindlabs/tailwindcss/pull/8299))
- Add experimental `matchVariant` API ([#8310](https://github.com/tailwindlabs/tailwindcss/pull/8310), [34fd0fb8](https://github.com/tailwindlabs/tailwindcss/commit/34fd0fb82aa574cddc5c7aa3ad7d1af5e3735e5d))
- Add `prefers-contrast` media query variants ([#8410](https://github.com/tailwindlabs/tailwindcss/pull/8410))
- Add opacity support when referencing colors with `theme` function ([#8416](https://github.com/tailwindlabs/tailwindcss/pull/8416))
- Add `postcss-import` support to the CLI ([#8437](https://github.com/tailwindlabs/tailwindcss/pull/8437))
- Add `optional` variant ([#8486](https://github.com/tailwindlabs/tailwindcss/pull/8486))
- Add `<alpha-value>` placeholder support for custom colors ([#8501](https://github.com/tailwindlabs/tailwindcss/pull/8501))

### Fixed

- Types: allow for arbitrary theme values (for 3rd party plugins) ([#7926](https://github.com/tailwindlabs/tailwindcss/pull/7926))
- Don’t split vars with numbers in them inside arbitrary values ([#8091](https://github.com/tailwindlabs/tailwindcss/pull/8091))
- Require matching prefix when detecting negatives ([#8121](https://github.com/tailwindlabs/tailwindcss/pull/8121))
- Handle duplicate At Rules without children ([#8122](https://github.com/tailwindlabs/tailwindcss/pull/8122))
- Allow arbitrary values with commas in `@apply` ([#8125](https://github.com/tailwindlabs/tailwindcss/pull/8125))
- Fix intellisense for plugins with multiple `@apply` rules ([#8213](https://github.com/tailwindlabs/tailwindcss/pull/8213))
- Improve type detection for arbitrary color values ([#8201](https://github.com/tailwindlabs/tailwindcss/pull/8201))
- Support PostCSS config options in config file in CLI ([#8226](https://github.com/tailwindlabs/tailwindcss/pull/8226))
- Remove default `[hidden]` style in preflight ([#8248](https://github.com/tailwindlabs/tailwindcss/pull/8248))
- Only check selectors containing base apply candidates for circular dependencies ([#8222](https://github.com/tailwindlabs/tailwindcss/pull/8222))
- Rewrite default class extractor ([#8204](https://github.com/tailwindlabs/tailwindcss/pull/8204))
- Move `important` selector to the front when `@apply`-ing selector-modifying variants in custom utilities ([#8313](https://github.com/tailwindlabs/tailwindcss/pull/8313))
- Error when registering an invalid custom variant ([#8345](https://github.com/tailwindlabs/tailwindcss/pull/8345))
- Create tailwind.config.cjs file in ESM package when running init ([#8363](https://github.com/tailwindlabs/tailwindcss/pull/8363))
- Fix `matchVariants` that use at-rules and placeholders ([#8392](https://github.com/tailwindlabs/tailwindcss/pull/8392))
- Improve types of the `tailwindcss/plugin` ([#8400](https://github.com/tailwindlabs/tailwindcss/pull/8400))
- Allow returning parallel variants from `addVariant` or `matchVariant` callback functions ([#8455](https://github.com/tailwindlabs/tailwindcss/pull/8455))
- Try using local `postcss` installation first in the CLI ([#8270](https://github.com/tailwindlabs/tailwindcss/pull/8270))
- Allow default ring color to be a function ([#7587](https://github.com/tailwindlabs/tailwindcss/pull/7587))
- Don't inherit `to` value from parent gradients ([#8489](https://github.com/tailwindlabs/tailwindcss/pull/8489))
- Remove process dependency from log functions ([#8530](https://github.com/tailwindlabs/tailwindcss/pull/8530))
- Ensure we can use `@import 'tailwindcss/...'` without node_modules ([#8537](https://github.com/tailwindlabs/tailwindcss/pull/8537))

### Changed

- Only apply hover styles when supported (future) ([#8394](https://github.com/tailwindlabs/tailwindcss/pull/8394))
- Respect default ring color opacity (future) ([#8448](https://github.com/tailwindlabs/tailwindcss/pull/8448), [3f4005e](https://github.com/tailwindlabs/tailwindcss/commit/3f4005e833445f7549219eb5ae89728cbb3a2630))