digestthemes

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Valid

func Valid(name string) bool

Valid reports whether name is a known theme.

Types

type Theme

type Theme struct {
	Name        string
	Description string
}

Theme defines a named visual style for the digest HTML output. The actual colors live in the templates' html[data-theme="<name>"] CSS blocks; this registry exists for CLI validation and listing.

func All

func All() []Theme

All returns all available themes in display order.

func Get

func Get(name string) (Theme, bool)

Get returns the Theme for the given name and whether it was found.

Jump to

Keyboard shortcuts

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