tailwind

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tailwind drives the standalone Tailwind v4 CLI with a pre-generated `@source` listing that points at every template directory in the project — Burrow's contribs plus the project's own templates.

It is the engine behind `burrow tailwind`.

On every invocation Run writes `.tailwind/sources.css` next to the input CSS file passed via `-i` (or relative to the working directory when `-i` is not given) with `@source "<absolute path>";` lines for:

  • Every `<burrow>/contrib/<app>/templates/` directory in the Burrow module the project depends on (resolved via `go list -m`).
  • Every `<project>/internal/<app>/templates/` directory in the project's own Go module (resolved via `go env GOMOD`).
  • The project's `<project>/templates/` if it exists (flat layout).

The project's `tailwind.css` is expected to `@import "./.tailwind/sources.css"`. For the conventional Burrow layouts (flat `./templates` or `./internal/<app>/templates/`) no extra `@source` lines are needed.

Tailwind v4's standalone Rust CLI must be on PATH. mise users can pin it via `.mise.toml` (see `docs/guide/tailwind.md`).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string) error

Run invokes the standalone Tailwind CLI with args forwarded verbatim, after writing the auto-generated `@source` listing to `.tailwind/sources.css` next to the -i input (or in the cwd).

stdin/stdout/stderr are inherited from the parent process so users see Tailwind's output live.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL