Documentation
¶
Overview ¶
Package tailwind integrates Tailwind CSS v4 through the standalone CLI.
Index ¶
Constants ¶
View Source
const (
// ImportPath is the canonical Go import path for the Tailwind addon.
ImportPath = "github.com/cssbruno/gowdk/addons/tailwind"
)
Variables ¶
This section is empty.
Functions ¶
func Addon ¶
func Addon(options Options) gowdk.CSSProcessor
Addon returns a compile-time CSS processor that wraps the Tailwind v4 standalone CLI. When no command is configured it uses tailwindcss on PATH. It does not download Tailwind, use npm, or run through a shell.
Types ¶
type Options ¶
type Options struct {
// Input is the Tailwind input CSS file, for example "assets/app.css".
Input string
// OutputPath is the generated CSS asset path inside the GOWDK output
// directory. It defaults to "assets/app.css".
OutputPath string
// Href is the stylesheet href emitted into generated HTML. It defaults to
// "/assets/app.css".
Href string
// Command is the Tailwind standalone executable. It defaults to
// "tailwindcss" on PATH. Projects can pass an absolute path to a pinned
// installed executable.
Command string
// Minify passes --minify to the Tailwind CLI.
Minify bool
}
Options configures the Tailwind CSS v4 processor.
Click to show internal directories.
Click to hide internal directories.