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 ¶
Types ¶
This section is empty.