Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.13 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.13 KB

Tailo

Tailo is a Go wrapper for the Tailwind CSS standalone binary. It is intended to help the downloading and usage of the TailwindCSS binary.

Download

To download the Tailwind CSS binary, you can use the download command.

// Downloading latest Tailwind CSS version
go tool tailo download

// Or specifying a version
go tool tailo download -v v3.4.6 --musl

// Or specifying a version and musl
go tool tailo download -v v3.4.6 --musl

// OR invoke via go run
go run github.com/paganotoni/tailo/@latest download -v v3.4.6 --musl

This removes any file at bin/tailwind and download the Tailwind CSS binary into bin/tailwindcss

Calling the Tailwind CSS binary

If the tool is invoked with other thing than 'download' it passes the arguments to the Tailwind CSS binary. For example:

go tool tailo --input <input_file> --output <output_file>
go tool tailo --watch -i tailwind.css --o application.css

// or via go run
go run github.com/paganotoni/tailo/@latest --watch -i tailwind.css --o application.css

Invoking the Tailwind CSS binary assumes the binary has already been downloaded and is available in the bin directory.