tailwind

Contains all the functions necessary to install and execute the TailwindCSS CLI.

Functions

pub fn get_args() -> Result(List(String), String)

Fetches the argument list from the gleam.toml.

Public because it’s needed in tailwind/run.

pub fn install() -> Result(Nil, String)

Downloads the TailwindCSS CLI matching your operating system and architecture.

pub fn install_and_run(
  args: List(String),
) -> Result(String, String)

Installs and then executes the TailwindCSS CLI with the passed arguments.

Check install() and run().

pub fn run(args: List(String)) -> Result(String, String)

Executes the TailwindCSS CLI with the passed arguments.

Example

> run(["--config=tailwind.config.js", "--input=./test/input.css", "--output=./build/css/output.css"])
Rebuilding...
Done in 90ms.
Search Document