tailwind

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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