tailwind

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package tailwind integrates Tailwind CSS v4 through the standalone CLI.

Index

Constants

This section is empty.

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. 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", resolved from PATH. Projects can pass an absolute path to a
	// pinned 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